Commit Graph

1320 Commits

Author SHA1 Message Date
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
petRUShka
42c29ae17e [Documentation] Add links for understanding 9p
There is lack of documentation on 9p so it could be useful to extend that part of docs with some links.
2017-10-14 12:59:36 +03: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
Gerben Meijer
32dca0a259 Merge pull request #805 from infernix/travisupdate
Fix travis and update rspec-core
2017-08-16 14:57:38 +02:00
Gerben Meijer
c2b6c54df6 Bump rspec-core to 3.5.0 2017-08-16 14:28:46 +02:00
Gerben Meijer
4be8799a90 Use trusty for Travis 2017-08-16 12:49:11 +02: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
a3e7e33103 Merge pull request #802 from infernix/travisupdate
Bring travis up to speed with latest vagrant
2017-08-03 18:41:53 +02:00
Gerben Meijer
16a2a20388 Bring travis up to speed with latest vagrant
- Fix gemfile sourced twice issue: https://github.com/bundler/bundler/issues/5263
- Use latest vagrant-spec
- Fix travis gem issue "no implicit conversion of nil into String"
2017-08-03 18:31:31 +02:00
Gerben Meijer
46eddc9f2c Merge pull request #801 from infernix/master
Since it's never updated, remove changelog
2017-08-03 17:25:06 +02:00
Gerben Meijer
50c918c195 Since it's never updated, remove changelog
Git log is the new changelog.
2017-08-03 17:18:36 +02:00
Gerben Meijer
8b33e14338 Merge pull request #778 from ericpulvino/port-fwd-readme-fix
Enhancing portion of the README pertaining to Port Forwards
2017-08-03 17:00:23 +02: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
Gerben Meijer
a72f2571fb Merge pull request #793 from paravz/syntax-fix
syntax fix for dev name type: netwrok -> network
2017-08-03 16:44:08 +02:00
Homero Pawlowski
45e41e2e10 README change 2017-08-02 01:16:40 -04:00
Homero Pawlowski
4f5351ab1d README change 2017-08-02 01:11:13 -04:00
Homero Pawlowski
cd4d9739b4 fixed README typo 2017-08-02 01:09:59 -04: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
Dmitry Vasilets
55b258521a Merge pull request #783 from electrofelix/fix-domain-tests
Fix failing domain tests due to missing property
2017-05-29 15:19:34 +02:00
Darragh Bailey
fcaed64df9 Fix failing domain tests due to missing property
Changes in names of data being passed through from the config object to
the CreateDomain action means that to test the domain xml template,
need to add an additional variable of qargs when testing.
2017-05-29 14:03:35 +01:00
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