Commit Graph

990 Commits

Author SHA1 Message Date
Dmitry Vasilets
27cf8d657d Merge pull request #782 from domcleal/accept-non-delimited-macs
Accept network interface MAC addresses without colon delimiters
2017-05-16 15:42:03 +02: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
Dominic Cleal
7b968c7a72
Fix assert_invalid in configuration spec
assert_invalid was previously only raising an error if there was a
validation error logged, rather than if there wasn't an error. Tests
that expected validation failures were passing without any validation
errors being logged.
2017-05-16 14:15:42 +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
Eric Pulvino
ccb6a17b2a Enhancing portion of the README pertaining to Port Forwards to add specific examples, also fixing a typo. 2017-05-11 23:04:23 -04:00
Dmitry Vasilets
772c38a2b3 Merge pull request #777 from ericpulvino/adapter-error-msg
Making adapter exhaustion error message more helpful.
2017-05-11 22:13:58 +02:00
Eric Pulvino
c4063c3613 Making adapter exhaustion error message more helpful. 2017-05-11 16:05:06 -04:00
Dmitry Vasilets
a1158df90a Merge pull request #775 from norpol/patch-1
Explain `cmd_line` little further
2017-05-08 14:01:17 +02:00
Phi|eas |ebada
86476ecc2a Explain cmd_line little further 2017-05-08 13:57:07 +02:00
dima
dc77250e33 0.0.40 2017-04-29 15:08:54 +02:00
dima
5696ac8da6 fix for qemuargs which broke standart behaviour 2017-04-29 15:08:26 +02:00
dima
b222da780d 0.0.39 2017-04-29 12:46:16 +02:00
Dmitry Vasilets
88836fabb1 Merge pull request #771 from zdw/remove_xmlrpc_dep
fog-core 1.44.0 depends on xmlrpc, which depends on Vagrant-incompatible ruby version
2017-04-29 11:43:00 +02:00
Zack Williams
a963b9f40f require older version of fog-core, without xmlrpc dep 2017-04-28 14:27:17 -07:00
Darragh Bailey
ba9d228b9d Merge pull request #741 from azat-archive/qemu-commandline
Introduce qemu:commandline (for osx quirks)
2017-04-28 19:17:07 +01:00
dima
5530d0f233 0.0.38 2017-04-28 13:12:53 +02:00
Dmitry Vasilets
c584733b94 Merge pull request #766 from reidrac/include-and-vagranfile-package-support
Support for --include and --vagrantfile in package action
2017-04-25 15:19:38 +02:00
Azat Khuzhin
9e7e76b509 Introduce qemuargs (for osx quirks)
v2:
- s/commandline/qemuargs/ (as suggested by @mxl)
- update xmls for testing
- fix merging
2017-04-25 15:06:21 +03:00
Juan J. Martinez
9c9169ad94 Support for --include and --vagrantfile in package action
This provides the same behaviour seen in other providers (e.g.
virtualbox).

Files are placed into a "_include" subdirectory and the user provided
Vagrantfile (if any) will be loaded from the main Vagranfile in the box.

Also fixed a typo in the `assemble_box` method.
2017-04-21 16:58:38 +01:00
Dmitry Vasilets
f2199e8b24 Merge pull request #762 from booxter/issue-761
Bring up management network if it's not started yet
2017-04-13 22:44:39 +02:00
Ihar Hrachyshka
b56b97fd92 Bring up management network if it's not started yet
If I suspend using managedsave suspend_mode, then reboot the hypervisor,
and try to resume the box, then it fails because the management network
is not started (of course unless it's configured to autostart, which is
not the default behaviour).

This patch makes vagrant to start (and even recreate) the management
network if it's down.

Fixes vagrant-libvirt/vagrant-libvirt#761
2017-04-13 13:32:38 -07:00
Dmitry Vasilets
6ddf16d24d Merge pull request #752 from infernix/features
Support configurable hypervisor features
2017-03-23 15:52:17 +01:00
Gerben Meijer
ea8e48bc5f Support configurable hypervisor features 2017-03-23 15:20:15 +01:00
dima
43bd92670d Merge branch 'master' of github.com:vagrant-libvirt/vagrant-libvirt 2017-03-21 10:41:31 +01:00
dima
bd9333dff3 temp fix 2017-03-21 10:41:16 +01:00
Dmitry Vasilets
17b6c763e4 Merge pull request #750 from electrofelix/fix-box-package
Use json format when calling qemu-img
2017-03-20 21:18:27 +01:00
Darragh Bailey
1633ec25f1 Use json format when calling qemu-img
Switch from using the default human readable format to request the json
format from qemu-img as this will provide disk sizes in bytes.

This avoids assuming that the returned size is in GigaBytes.

Fixes #743
2017-03-20 13:27:02 +00:00
Dmitry Vasilets
29cb626506 Merge pull request #742 from electrofelix/fix-up-with-provision
Always call provisioners logic for booted machines
2017-03-20 13:25:27 +01:00
Dmitry Vasilets
ea99e07ac1 Merge pull request #749 from waldirio/master
Adding the flag -S in tar command
2017-03-20 08:38:08 +01:00
Waldirio M Pinheiro
80313a2225 Adding the flag -S in tar command 2017-03-20 04:26:52 -03:00
dima
a6d6fb58f3 fix arguments order for nokogiri 2017-03-20 00:41:39 +01:00
dima
1b8e96251f fix for new ruby parser restrictions 2017-03-19 22:14:21 +01:00
Dmitry Vasilets
a43942fb75 Merge pull request #747 from QuintenJohnson/disk-serial
Allow additional disk serial specification
2017-03-16 17:11:56 +01:00
Quinten Johnson
59edda8623 Allow additional disk serial specification
libvirt uses <serial></serial> to expose a disk serial to the VM.
2017-03-16 10:44:07 -05:00
Darragh Bailey
e3354245f6 Always call provisioners logic for booted machines
Allows `vagrant up` command to handle whether or not to run the
provisioners should the machine already be up. This allows re-running
certain provisioners in parallel using:

  vagrant up --provision --provision-with puppet_server

Which in turn allows for certain scripts that are bootstrap related
only to be skipped.

In general however it is better to let the middleware from vagrant
decided whether provisioners should run or not, as enhancements to that
functionality will then be automatically picked up.

With this change if a user runs `vagrant up` on already running
machines, without the `--provision` option they will be greeted with a
message from vagrant stating "Machine already provisioned. Run ...",
basically letting them know what to do next.

Without this change you simply see a message about "Bringing machine
'<name>' up with 'libvirt' provider..." and then nothing further.

Change-Id: I73ca4262abaa6431a838e4cf6468c06223643dea
2017-03-01 13:54:38 +00:00
dima
a1e06dda0a use nokogiri for snapshot xml 2017-02-11 20:02:20 +01:00
dima
e5635f2da2 fixes #734 fixed logic for set nic model type 2017-02-11 14:07:49 +01:00
dima
fe694b4ad2 dry code 2017-02-11 13:02:32 +01:00
dima
f650843246 Merge branch 'master' of github.com:vagrant-libvirt/vagrant-libvirt 2017-02-11 12:52:10 +01:00
dima
fe5938ce26 simplify templates by nokogiri 2017-02-11 12:52:04 +01:00
Dmitry Vasilets
5ed93bd908 Merge pull request #730 from jarrpa/patch-1
Use slot number to report MAC address
2017-02-09 10:30:34 +01:00
dima
d2f4cf5708 xml by nokogiri instead of xml template 2017-02-09 00:07:56 +01:00
Dmitry Vasilets
ff79d5b1f1 Merge pull request #732 from galkindmitrii/master
Allow to specify libvirt NIC driver and number of queues for it.
2017-02-08 20:44:55 +01:00
Dmitry Galkin
6fa527c977 Allow to specify libvirt NIC driver and number of queues for it. 2017-02-08 20:19:49 +01:00
Jose A. Rivera
cd8573777a Allow multiple MACs per network. 2017-02-06 15:13:43 +01:00
Jose A. Rivera
da87d06bfb Cleanup some public network MAC code. 2017-02-06 15:13:43 +01:00
Dmitry Vasilets
9cc0ff906c Merge pull request #728 from msylw/master
Minimum support for xen
2017-02-02 21:17:49 +01:00
Michal Sylwester
07dbb907bd Allow custom name for disk device
This is needed for example for xen in full virtualisation mode
as it won't allow the default vda
2017-02-02 10:02:03 +01:00
Michal Sylwester
ecea549e7f Be tolerant about drivers not supporting listing snapshots 2017-01-30 17:04:46 +01:00
Dmitry Vasilets
c065c1e6e5 test1 2017-01-16 16:40:23 +01:00