Commit Graph

235 Commits

Author SHA1 Message Date
Maxim Petrunin
6ee6be2f49 [Docs] Add instructions for Arch Linux 2016-10-18 20:05:02 +03:00
Gerben Meijer
1a856ec4f1 Update install/build instructions 2016-10-08 00:02:03 +02:00
Gerben Meijer
bae6a12ed6 Document management_network_mode. Fixes #473 2016-10-07 19:25:42 +02:00
Gerben Meijer
6b2d5ef650 Update 9p docs; fixes #503 2016-10-07 18:53:29 +02:00
Dmitry Vasilets
25dfbf26ac add gcc for installation 2016-09-27 14:14:03 +02:00
Roman Mohr
1db61bc631 Add support for RNG passthrough
Allow passing through /dev/random from the host to the VM. This speeds
up pretty much everything which needs entropy inside the VM.
2016-09-15 21:39:28 +02:00
Tobias Jungel
a609f5b17d add trustGuestRxFilters attribute to public interface
set :trust_guest_rx_filters => true in the network definition to enable
trustGuestRxFilters for the public interface.

Details from http://www.libvirt.org/formatdomain.html#elementsNICSDirect:
"If the model type is set to virtio and interface's trustGuestRxFilters
attribute is set to yes, changes made to the interface mac address,
unicast/multicast receive filters, and vlan settings in the guest will
be monitored and propagated to the associated macvtap device on the host
(Since 1.2.10). If trustGuestRxFilters is not set, or is not supported
for the device model in use, an attempted change to the mac address
originating from the guest side will result in a non-working network
connection."

closes #650
2016-09-13 09:20:46 +02:00
Dmitry Vasilets
a7fc7b5499 Merge pull request #646 from stephenfin/feat/numa-nodes-param
Add NUMA topology support
2016-09-13 08:27:11 +02:00
Erik van Pienbroek
d78d896909 Add disk property 'shareable'
To simulate shared SAN storage an additional libvirt
disk property needs to be set which disables caching.

Also updated the documentation to document this new
property and added an example on how to simulate
shared SAN storage

Closes #648
2016-09-07 18:21:11 +02:00
Stephen Finucane
fec9fa4f6c Add NUMA topology support
libvirt has supported specification of a guest NUMA topology since
0.9.8. This functionality can be used for basic validation of some
NUMA-dependent features during development. Add basic configuration
support, by allowing the user to specify how many NUMA nodes the
instance may have.

The following options are added:

* numa_nodes - Defaults to none

For additional information on specifying NUMA nodes with Libvirt, see:

* https://libvirt.org/formatdomain.html#elementsCPU
2016-09-07 15:18:22 +01:00
Stephen Finucane
46cc251191 README: rework and rewrap
* Wrap to 80 characters
* Use 'Vagrant', not 'vagrant', where appropriate
* Format code as such
* Mark up code type where possible (shell, ruby, etc.)
* Don't use code fences inline
* Misc other changes
2016-09-07 14:50:47 +01:00
Stephen Finucane
b2d1cfa38b trivial: Remove tabs
Don't mix tabs and spaces. Remove tabs across the board to prevent
confusion.
2016-09-07 13:04:53 +01:00
Boris Schrijver
63e347a923 Add libvirt portgroup support. 2016-08-18 22:10:40 +02:00
Gerben Meijer
ddbf654bec Update supported versions. Fixes #629 2016-07-16 22:22:45 +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
Shawn Lower
cf610f5104 Document steps for using the channels parameters 2016-06-10 10:00:09 +07: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
86a2ba5250 Change github reference to the new organization 2016-04-27 14:08:25 +02:00
Gerben Meijer
9fe4d4c68d Update README on dtb support 2016-03-23 11:16:43 +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
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
Leandro Lisboa Penz
404f53db95 Fix "machine_type" documentation - was "machine" in README.md 2016-02-29 21:34:19 -03:00
Lalatendu Mohanty
931a5e6be4 Adding community supported versions of CentOS and Fedora boxes
https://atlas.hashicorp.com/fedora
https://atlas.hashicorp.com/centos

Signed-off-by: Lalatendu Mohanty <lmohanty@redhat.com>
2016-02-23 20:12:52 +05:30
anonym
586881aedd Document the emulator_path option. 2016-02-17 23:24:07 +01:00
Gerben Meijer
73f5b7aba4 Support libvirt autostart functionality 2016-02-12 20:28:39 +01:00
Dmitry Vasilets
c6d5c1a3a6 Merge pull request #554 from infernix/cpu-features
Enable CPU features support
2016-02-11 15:12:31 +01:00
Gerben Meijer
4554ceb6f0 Update README on CPU features 2016-02-11 14:56:08 +01:00
petRUShka
7b156cc34d Fix [REAMDE] missing in PCI device passthrough examples 2016-02-05 12:36:40 +03:00
Darragh Bailey
026c6a7395 Add Travis CI badge 2016-01-28 10:51:26 +00:00
Michal Rostecki
b4a66bb43f Allow to forward ports from a custom adapter
Before this change, vagrant-libvirt assumed that all
port forwards should be done on eth0 adapter. Now
user can provide a custom adapter via "adapter" option
when calling forwarded_port.
2016-01-12 10:37:48 +01:00
Trevor Vaughan
ecb1339312 Added TPM Device support
Added TPM device support to include switching out the TPM device on
reboot if necessary.

The following options were added:

* tpm_model - Defaults to 'tpm-tis'
* tpm_type  - Defaults to 'passthrough'
* tpm_path  - Must be specified, other options are ignored if this is
              not specified. Most users will set this to /dev/tpm0.

For additional information on using a TPM with Libvirt see the following:

* http://wiki.qemu.org/Features/TPM
* https://libvirt.org/formatdomain.html#elementsTpm
2016-01-06 09:48:20 -05:00
Simon McFarlane
f37616b6fe Add kvm_hidden option to README 2015-12-16 14:22:44 -08:00
stanley karunditu
66753d7a61 add doc for libvirt__iface_name feature 2015-12-07 12:50:33 -05:00
Dmitry Vasilets
504c867273 Merge pull request #515 from fxkr/usb-support
Add support for USB passthrough
2015-11-25 08:46:10 +01:00
Felix Kaiser
bfea80d789 Add support for USB passthrough 2015-11-25 00:46:55 +01:00
Felix Kaiser
d5e340e9db README: Fix example on PCI passthrough
Was apparently copy/pasted from Input section.
2015-11-25 00:03:11 +01:00
Mattias Lundberg
11441f8a1d Fix typo in readme. 2015-11-14 10:49:27 +01:00
Paul Bourke
9869213a4f Allow disabling guest-to-guest ipv6 comms in libvirt networks
Background
----------
The default private_network template we supply has the following tag:

    <network ipv6='yes'>

This enables ipv6 on guest interfaces for guest-to-guest communication.
This causes a problem on hosts that either do not have ipv6 enabled or
configured correctly, resulting in an error on 'vagrant up' as follows:

    Error while activating network: Call to virNetworkCreate failed: internal error: Failed to apply firewall rules /usr/sbin/ip6tables --table filter --insert FORWARD --in-interface virbr1 --jump REJECT: ip6tables v1.4.21: can't initialize ip6tables table `filter': Address family not supported by protocol
    Perhaps ip6tables or your kernel needs to be upgraded.

Reading here:
http://libvirt.org/git/?p=libvirt.git;a=commitdiff;h=705e67d40b09a905cd6a4b8b418d5cb94eaa95a8
would suggest the above option should really be off by default, however,
I don't want to break existing behaviour or setups. This patch adds two
new config items, one for the default management network, and one for
additional user defined private networks.

Usage
-----
To disable ipv6 for the managment network:

    config.vm.provider :libvirt do |libvirt|
        libvirt.management_network_guest_ipv6 = "no"
    end

To disable for a custom private network:

    config.vm.network "private_network", ip: "192.168.33.10", libvirt__guest_ipv6: "no"

Extra Notes:
------------
Also note, if you get hit by the above error and want to apply the above
fix, you will need to clear out the management network manually:

    $ sudo virsh net-list --all
    Name                 State      Autostart     Persistent
    ----------------------------------------------------------
    default              active     yes           yes
    vagrant-libvirt      inactive   no            yes

    $ sudo virsh net-undefine vagrant-libvirt
    Network vagrant-libvirt has been undefined
2015-11-09 17:45:10 +00:00
bcambl
b48d0b3e5b network interface definition example indentation
Match indentation for consistency with all other code examples
2015-10-31 17:14:14 -06:00
Dmitry Vasilets
5ed8a2a4f2 Merge pull request #491 from giacomolozito/9p_nomount
Option to disable p9 automounting at boot
2015-10-26 14:06:18 +01:00
Giacomo Lozito
bd112300c5 Add info for 9p mount: option in README 2015-10-25 19:20:30 +00:00
Dmitry Vasilets
3bac45efb6 Merge pull request #490 from petRUShka/add_pcis
Add PCI device passthrough functionality
2015-10-25 19:58:24 +01:00
Maxim Petrunin
be30311e5f Fix README.md, PCI section 2015-10-23 11:19:13 +03:00
Maxim Petrunin
b2684d310f Add PCI device passthrough functionality 2015-10-23 11:12:57 +03:00
Maxim Petrunin
f9827479c6 README: Rakefile no longer provide test run. Switch to rspec 2015-10-22 08:43:06 +03:00
Max Kutsevol
1fd789534d Customising libvirt settings can only be done when creating a box #418
* Fixed regression when using additional disks. Now disk_bus setting
applies only to main disk.
* Added ability to change additional disk bus on reload. Updated readme.

Task-Url: https://github.com/pradels/vagrant-libvirt/issues/418
Signed-off-by: Max Kutsevol <max@coolvds.com>
2015-10-06 12:39:11 +03:00