Commit Graph

947 Commits

Author SHA1 Message Date
Gerben Meijer
7ee53e5968 Merge pull request #628 from ericpulvino/nic_boot_ordering
Add UDP type NICs to boot order
2016-07-06 16:39:13 +02:00
Eric Pulvino
cf4bdbb4a4 Fix for issue #627, catch both type='network' and type='udp' at the same time. 2016-07-05 17:16:06 -04:00
Gerben Meijer
e6759a65de Stop building older versions in travis 2016-07-05 22:36:04 +02:00
Gerben Meijer
7955d43730 Document workaround for Vagrant bug (see #312) 2016-07-01 16:37:51 +02:00
Gerben Meijer
aaab5ab373 Update Atlas link to point to libvirt boxes directly 2016-06-29 17:57:22 +02:00
Gerben Meijer
22e7a449e2 Clarify the use of disk_bus. Fixes #621 2016-06-23 18:10:37 +02:00
Gerben Meijer
c86a6f4527 Merge pull request #606 from shawnlower/shawnlower_add-guest-agent-support
Add support for libvirt channels:
2016-06-20 22:03:43 +02:00
Gerben Meijer
6f3b4c6358 Merge pull request #616 from infernix/vagrant-1.8.4
Use Vagrant 1.8.4 with travis
2016-06-16 16:20:09 +02:00
Gerben Meijer
a839b6f940 Fixup for travis bundler version 2016-06-16 15:03:55 +02:00
Gerben Meijer
7fc5ae7e0f Set bundler in travis to match Vagrants (1.12.5) 2016-06-16 15:01:50 +02:00
Gerben Meijer
ffe92cede3 Use latest Vagrant release with travis 2016-06-16 14:57:53 +02:00
Shawn Lower
cf610f5104 Document steps for using the channels parameters 2016-06-10 10:00:09 +07:00
Shawn Lower
3dea208720 Add accessor for channel 2016-06-10 08:39:28 +07:00
Shawn Lower
74b1846a1c Default to not configuring any channel for guests 2016-06-10 08:18:30 +07:00
Shawn Lower
c6fbfb7e88 Add support for libvirt channels:
Example:

    config.vm.provider :libvirt do |libvirt|
        # Create a virtio channel for use by the qemu-guest agent (time sync, snapshotting, etc)
        libvirt.channel :type => 'unix', :target_name => 'org.qemu.guest_agent.0', :target_type => 'virtio'

        # Forward traffic to 1.2.3.4 from the guest, to the specified socket on the host
        libvirt.channel :type => 'unix', :target_type => 'guestfwd', :target_address => '1.2.3.4', :target_port => '9999',
                        :source_path => '/tmp/foo'
    end

- https://libvirt.org/formatdomain.html#elementCharChannel
- http://wiki.libvirt.org/page/Qemu_guest_agent
2016-05-31 06:41:54 +07:00
Gerben Meijer
6bb9a984fc Merge pull request #601 from theoden9014/master
Allow network gateway attr (fix)
2016-05-18 13:22:37 +02:00
kaneko
7c027f02b2 Allow network gateway attr 2016-05-18 18:29:55 +09:00
Gerben Meijer
7d2e1e9b8e Clarify installation steps
Explain that user should have qemu and libvirt installed and should
ensure libvirt works before starting with vagrant-libvirt.
2016-05-12 15:37:18 +02:00
Gerben Meijer
288238d077 Merge pull request #596 from infernix/master
Add Github issue template
2016-04-29 01:28:54 +02:00
Gerben Meijer
77af061aaa Minor adjustments to issue template 2016-04-28 22:47:16 +02:00
Gerben Meijer
b78b846344 Add issue reporting template 2016-04-28 22:35:16 +02:00
Gerben Meijer
493a2f6713 Merge pull request #594 from electrofelix/skip-delete-cdrom
Skip delete cdrom
2016-04-28 00:15:33 +02:00
Michael Kerrin
22acaebf61 Use explicit removal of disk volumes if CDROM attached
Use the more conservative path if either disks or cdroms present for
the domain configuration.

Domain destroy including volumes will attempt to delete any attached
CDROM images as they are registered as volumes. Resulting in the
following error message:

    fog-libvirt-0.0.3/lib/fog/libvirt/requests/compute/volume_action.rb:6:in
    `delete': Call to virStorageVol Delete failed: cannot unlink file
    '<path-to-iso>': Success (Libvirt::Error)

Co-Authored-By: Darragh Bailey <dbailey@hpe.com>
Change-Id: Ia497aef0e871de88e65c46afe071b2618fda5588
2016-04-27 16:44:51 +01:00
Darragh Bailey
bdadfe7339 Rudimentary tests for destroy domain
Some simple tests for destroy domain

Change-Id: I94c85b362f20c69c4ba75d879d20eedb4a934bcf
2016-04-27 16:43:59 +01:00
Gerben Meijer
8b7c8a895f Merge pull request #592 from lpenz/timeoutfix
Fix "Object#timeout is deprecated" ruby 2.3 warning
2016-04-27 16:37:11 +02:00
Gerben Meijer
81ea0f3a95 Merge pull request #593 from infernix/travis-improvements
Travis improvements
2016-04-27 16:36:56 +02:00
Gerben Meijer
d7bcc2c8e0 Add master to travis builds 2016-04-27 16:29:19 +02:00
Gerben Meijer
163f732949 Update travis 2016-04-27 16:19:38 +02:00
penz
32b9e675c0 Fix "Object#timeout is deprecated" ruby 2.3 warning 2016-04-27 10:58:31 -03:00
Gerben Meijer
86a2ba5250 Change github reference to the new organization 2016-04-27 14:08:25 +02:00
Gerben Meijer
6b687efa6d Merge pull request #587 from infernix/fix-version-test
Move version sanity check to vagrant-libvirt.rb
2016-04-26 11:20:07 +02:00
Gerben Meijer
f8241645fc Must load vagrant before checking version 2016-04-11 16:02:42 +02:00
Gerben Meijer
4536218d33 Move version sanity check to vagrant-libvirt.rb
If this check is executed in plugin.rb, the message is not displayed on
older versions of vagrant, which defeats the purpose of the test.
2016-04-09 20:29:37 +02:00
Dmitry Vasilets
177913ce0e Merge pull request #584 from skamithi/tcp_source_ip
fix #492 - tcp tunnel source ip not configurable
2016-03-31 18:18:05 +02:00
stanley karunditu
ebbf35cc18 fix #492 - tcp tunnel source ip not configurable 2016-03-31 11:31:18 -04:00
dima
25c1662213 0.0.33 2016-03-29 12:32:22 +02:00
Dmitry Vasilets
9d0e195035 Merge pull request #581 from infernix/improved-arm-support
Improved arm support
2016-03-28 14:37:55 +02:00
Gerben Meijer
9fe4d4c68d Update README on dtb support 2016-03-23 11:16:43 +01:00
Gerben Meijer
64af328879 Make sure we update xml on dtb addition 2016-03-23 11:02:18 +01:00
Gerben Meijer
dd7133fdc0 Add dynamic kernel and initrd startup checks
Allows for changing kernel or initrd at 'vagrant up'
2016-03-23 11:01:14 +01:00
Gerben Meijer
0016f34851 Support graphics_type = none
Devices which do not support any default vga device (e.g. ARM boards)
can't be started when a video device is present. Libvirt automatically
adds a <video> device whenever a <graphics> element is defined.

Using 'none' was already documented as supported but did not work.
2016-03-17 03:19:50 +01:00
Gerben Meijer
dc1a8d421f Add device tree binary image support
This is required for correct emulation of ARM devices
2016-03-14 16:03:32 +01:00
Gerben Meijer
98f2eaed5e Add cpu_model and cpu_fallback.
This allows for specific CPU selection and enforcement when cpu_mode =
custom, which is important when emulating CPUs of different architecture
than the host.
2016-03-14 16:03:27 +01:00
Dmitry Vasilets
a963ff4c70 Merge pull request #573 from alirizakeles/patch-1
ruby-dev package into missing libraries
2016-03-10 08:26:06 +01:00
Dmitry Vasilets
c458a5fc90 Merge pull request #558 from fred-a-kemp/feature/emulator_path
Make it possible to set the path to the device model emulator.
2016-03-10 08:25:43 +01:00
anonym
59ab65523a Fixup on emulator_path configuration.
Thanks to Gerben Meijer for the fix!
2016-03-10 03:19:24 +01:00
Ali Riza Keles
98461f4655 ruby-dev package into missing libraries
i tried to install on a fresh ubuntu 14.04, installation did not work unless adding ruby-dev. it failed with error below:

```bash
# vagrant plugin install vagrant-libvirt
Installing the 'vagrant-libvirt' plugin. This can take a few minutes...
/usr/lib/ruby/1.9.1/rubygems/installer.rb:562:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)

        /usr/bin/ruby1.9.1 extconf.rb
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError)
	from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
	from extconf.rb:4:in `<main>'


Gem files will remain installed in /root/.vagrant.d/gems/gems/nokogiri-1.6.7.2 for inspection.
Results logged to /root/.vagrant.d/gems/gems/nokogiri-1.6.7.2/ext/nokogiri/gem_make.out
	from /usr/lib/ruby/1.9.1/rubygems/installer.rb:540:in `block in build_extensions'
	from /usr/lib/ruby/1.9.1/rubygems/installer.rb:515:in `each'
	from /usr/lib/ruby/1.9.1/rubygems/installer.rb:515:in `build_extensions'
	from /usr/lib/ruby/1.9.1/rubygems/installer.rb:180:in `install'
	from /usr/lib/ruby/1.9.1/rubygems/dependency_installer.rb:297:in `block in install'
	from /usr/lib/ruby/1.9.1/rubygems/dependency_installer.rb:270:in `each'
	from /usr/lib/ruby/1.9.1/rubygems/dependency_installer.rb:270:in `each_with_index'
	from /usr/lib/ruby/1.9.1/rubygems/dependency_installer.rb:270:in `install'
	from /usr/share/vagrant/plugins/commands/plugin/action/install_gem.rb:65:in `block in call'
	from /usr/share/vagrant/plugins/commands/plugin/gem_helper.rb:42:in `block in with_environment'
	from /usr/lib/ruby/1.9.1/rubygems/user_interaction.rb:40:in `use_ui'
	from /usr/share/vagrant/plugins/commands/plugin/gem_helper.rb:41:in `with_environment'
	from /usr/share/vagrant/plugins/commands/plugin/action/install_gem.rb:52:in `call'
	from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:34:in `call'
	from /usr/share/vagrant/plugins/commands/plugin/action/bundler_check.rb:20:in `call'
	from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:34:in `call'
	from /usr/lib/ruby/vendor_ruby/vagrant/action/builder.rb:116:in `call'
	from /usr/lib/ruby/vendor_ruby/vagrant/action/runner.rb:69:in `block in run'
	from /usr/lib/ruby/vendor_ruby/vagrant/util/busy.rb:19:in `busy'
	from /usr/lib/ruby/vendor_ruby/vagrant/action/runner.rb:69:in `run'
	from /usr/share/vagrant/plugins/commands/plugin/command/base.rb:17:in `action'
	from /usr/share/vagrant/plugins/commands/plugin/command/install.rb:27:in `execute'
	from /usr/share/vagrant/plugins/commands/plugin/command/root.rb:56:in `execute'
	from /usr/lib/ruby/vendor_ruby/vagrant/cli.rb:38:in `execute'
	from /usr/lib/ruby/vendor_ruby/vagrant/environment.rb:484:in `cli'
	from /usr/bin/vagrant:127:in `<main>'
```
2016-03-09 17:50:40 +02:00
Dmitry Vasilets
a4427a0d31 Merge pull request #571 from jim-minter/uniq-ip-addresses-patch
don't barf if VM has multiple identical IP addresses
2016-03-07 17:11:45 +01:00
Jim Minter
b6fa93e643 simplify as preferred 2016-03-07 14:19:03 +00:00
Jim Minter
2fc38f6067 don't barf if VM has multiple identical IP addresses 2016-03-07 13:57:50 +00:00