Commit Graph

666 Commits

Author SHA1 Message Date
qazokm
7f50ca2a41 Add basic networking support for qemu session 2018-02-23 12:09:49 +08:00
qazokm
b0eddf6770 Create storage pools and volumes with correct permissions 2018-02-22 15:52:58 +08:00
Michael Darwish
1539f15d4a Fix issue where custom cpu model is ignored (Fixes #864) 2018-02-14 13:13:41 -05:00
dima
542f436fb4 0.0.43 2018-02-07 08:59:09 +01:00
Gerben Meijer
92a1e23d1a Merge pull request #849 from hugoboos/check-outdated
Check for box updates when starting
2018-02-03 14:14:19 +01:00
Nicholas Brown
c717353eea env is an instance variable 2018-02-03 13:01:24 +00:00
dima
5158b0e733 0.0.42 2018-02-03 11:21:07 +01:00
dima
34a0def7d1 0.0.41 2018-02-02 18:49:20 +01:00
Dmitry Vasilets
394cc34290 Revert "update to the recent changes of default behavior in netcat.openbsd (fixes #796)" 2018-02-02 18:42:50 +01:00
Dmitry Vasilets
3b91515bd8 Merge branch 'master' into pci_network 2018-02-02 17:48:00 +01:00
Dmitry Vasilets
ebea5d4a72 Merge pull request #852 from chulup/cpu_topology
Add option to specify CPU topology
2018-02-02 17:46:51 +01:00
Dmitry Vasilets
50f68cc018 Merge pull request #857 from bashims/forward_ports-keys_only
enable IdentitiesOnly when config.ssh.keys_only is specified.
2018-02-02 17:45:09 +01:00
Nicholas Brown
dea85d7cbc Don't silently ignore udp port forwarding option
Currently it ignores the option and turns it into a tcp port.
Instead warn about the UDP option and skip it.
2018-02-02 13:03:23 +00:00
Tomasz Madycki
ea7c01fec0 Specify PCI bus and slot for management net iface
Signed-off-by: Tomasz Madycki <tomasz.madycki@gmail.com>
2018-01-24 18:18:35 +01:00
Tomasz Madycki
c01ddb8dd4 Specify PCI bus and slot for net iface
Signed-off-by: Tomasz Madycki <tomasz.madycki@gmail.com>
2018-01-24 18:18:30 +01:00
Benjamin Ash
7812ad2be5 enable IdentitiesOnly when config.ssh.keys_only is specified. 2018-01-18 10:52:01 -05:00
Michael Shulbaev
060a33ec49 Add CPU topology configuration 2018-01-12 19:47:49 +07:00
Hugo Stijns
6d0468d3e4 Check for box updates when starting 2018-01-12 12:18:53 +01:00
Dmitry Vasilets
6fdbf4b818 Merge pull request #827 from petracvv/memoryBacking
Add memory backing configuration
2017-12-11 17:04:47 +01:00
Christian
9deac08775 Convert mtu to integer
This will obviously raise an exception if the data is not
convertable. Seems to be the best option, since to_i converts
'non-integer' strings to zero, which would lead to unpredicable
behaviour.
2017-12-09 11:36:52 +01:00
Christian
a97a6d2347 Add mtu option for private networks and interfaces
In order to create virtual networks with different MTU sizes
than the libvirt default of 1500, this patch adds a
libvirt__mtu option. This will add an mtu option to the libvirt
network definition and to the domain interface definition as well.
2017-12-08 12:42:06 +01:00
Gerben Meijer
0af2568475 Merge pull request #838 from ableischwitz/master
Fix for #831
2017-11-29 11:44:32 +01:00
Andreas Bleischwitz
a64c538f7f made <source>...</source> and it's sub-elements conditional 2017-11-28 18:22:40 +01:00
Gerben Meijer
57db358a58 Merge pull request #833 from hugoboos/domain-name
Add network domain name feature
2017-11-28 10:51:38 +01:00
Gerben Meijer
5efc0b2b38 Merge pull request #824 from skamithi/vagrant_guest_halt_capability
add Vagrant Guest Halt capability to vagrant-libvirt
2017-11-26 07:37:50 +01:00
Hugo Stijns
f59a99c684 Possible to define domain name for networks 2017-11-24 15:52:49 +01:00
Gerben Meijer
05771432df Merge pull request #794 from heil/master
Use dynamic vnc port allocation
2017-11-23 12:45:59 +01:00
Gerben Meijer
e55c927728 Merge pull request #814 from ntff/20170914_issue796
update to the recent changes of default behavior in netcat.openbsd (fixes #796)
2017-11-23 12:43:16 +01:00
Gerben Meijer
0c46bcd182 Merge pull request #815 from dmeloni-radarservices/ssh-terminate
Use exec to avoid leaving ssh lingering around
2017-11-23 12:42:38 +01:00
Gerben Meijer
0254c18153 Merge pull request #822 from Flowm/ask-before-destroy
Ask for confirmation before destroying vms
2017-11-23 12:38:21 +01:00
Hugo Stijns
b00816680a Add option to configure the network address when using DHCP 2017-11-23 10:21:25 +01:00
Mihai Petracovici
77358b63ea Add memory backing configuration 2017-11-12 16:25:13 -06:00
stanley karunditu
d3af858425 add Vagrant Guest Halt capability to vagrant-libvirt. Reference
[Builtin Guest Halt
capability](https://github.com/hashicorp/vagrant/blob/master/lib/vagrant/action/builtin/graceful_halt.rb#L50)
2017-11-03 11:23:06 -04:00
Florian Mauracher
89d2f0250f Ask for confirmation before destroying vms
Unify behavior across providers by asking for confirmation before
deleting virtual machines with potentially valuable data.

Before destroying a vm the following message is presented:
`demo: Are you sure you want to destroy the 'demo' VM? [y/N]`
An additional --force flag provided by upstream vagrant allows skipping
the `vagrant destroy demo -f`

Practically all other providers available ask the user for confirmation
before deleting the vm.

Vagrant official providers:
https://github.com/hashicorp/vagrant/blob/master/plugins/providers/docker/action.rb#L156
https://github.com/hashicorp/vagrant/blob/master/plugins/providers/hyperv/action.rb#L34
https://github.com/hashicorp/vagrant/blob/master/plugins/providers/virtualbox/action.rb#L100

Third party providers:
https://github.com/mitchellh/vagrant-aws/blob/master/lib/vagrant-aws/action.rb#L45
https://github.com/Azure/vagrant-azure/blob/v2.0/lib/vagrant-azure/action.rb#L34
https://github.com/jesa7955/vagrant-bhyve/blob/master/lib/vagrant-bhyve/action.rb#L156
https://github.com/NeilW/vagrant-brightbox/blob/master/lib/vagrant-brightbox/action.rb#L44
https://github.com/devopsgroup-io/vagrant-digitalocean/blob/master/lib/vagrant-digitalocean/actions.rb#L27
https://github.com/fgrehm/vagrant-lxc/blob/master/lib/vagrant-lxc/action.rb#L148
https://github.com/Parallels/vagrant-parallels/blob/master/lib/vagrant-parallels/action.rb#L48
2017-10-29 00:20:28 +02:00
Dario Meloni
2b37f931b5 Use exec to avoid leaving ssh lingering around 2017-09-15 09:47:47 +02:00
ntff@github
c902b2da7c update to the recent changes of default behavior in netcat.openbsd
netcat.openbsd, mostly used on libvirt servers (libvirt debian daemon
depends on netcat.openbsd) has changed (revision 1.111)
it's default behavior - it no more closes connection when stdin closes
by default. They suggest using "-N" flag for turning on former
behavior, but looks like "-q0", which is common with earlier versions
and netcat.traditional, will also work.
2017-09-14 14:19:26 +00:00
Darragh Bailey
c8a2ed8f34 Merge pull request #800 from homeski/feature/numa_nodes
Feature/numa nodes
2017-08-17 21:24:20 +01:00
Homero Pawlowski
ebd2cb48d0 refactored to only iterate numa_nodes array once 2017-08-17 15:43:46 -04:00
Homero Pawlowski
26b3e3c8fe automatically insert numa_cpus[:id] based on array index, and remove user's ability to edit 2017-08-16 11:50:29 -04:00
Homero Pawlowski
8bf16ba34f added some validation around @numa_nodes[:cpus] values 2017-08-15 17:02:06 -04:00
Homero Pawlowski
10ed9fbc7e added back block to remove nested cpu elements if host-passthrough is set, UNLESS numa_nodes is set 2017-08-11 16:27:28 -04:00
Gerben Meijer
4a69c58e3c Merge pull request #787 from mkhon/fix-start
Do not destroy domain when starting existing domain
2017-08-03 16:56:21 +02:00
Homero Pawlowski
f11abb8b74 refactored and fixed numa_nodes domain specific option 2017-08-02 01:07:23 -04:00
Thomas Heil
5d3da34dc8 vagrant-libvrt:
FIX hard coded vnc port
 - better use graphics_port = -1 so libvirt auto assign it
   and its possible to use more that one vm

Signed-off-by: Thomas Heil <heil@terminal-consulting.de>
2017-07-03 20:15:51 +02:00
Max Khon
8c753a93b6 WaitTillUp is re-used in action_start but failures (and interruptions)
during action_start are not expected to cause domain destruction:
do halt instead of destroy in WaitTillUp if called from action_start
2017-06-13 15:36:24 +06:00
Alec Istomin
9b591ec4e8 netwrok -> network 2017-06-07 22:43:40 -07:00
Darragh Bailey
6929c7a9b6 Merge pull request #779 from ericpulvino/int-exhaustion-error
Reverts PR#777 and adds a new error message for a different case
2017-05-29 14:19:59 +01:00
Dominic Cleal
404c428036 Accept network interface MAC addresses without colon delimiters
Commonly found in other Vagrant providers, a MAC address format without
colon delimiters is now accepted for better cross-compatibility of
Vagrantfiles.
2017-05-16 14:20:44 +01:00
Eric Pulvino
92e3e88d7c Reverts PR#777 and adds a new error message for a discretely different case. 2017-05-13 22:57:28 -04:00
dima
dc77250e33 0.0.40 2017-04-29 15:08:54 +02:00