Commit Graph

1168 Commits

Author SHA1 Message Date
Dmitry Vasilets
f28cf2f63b fix numa_nodes value 2016-09-14 16:41:00 +02:00
Gerben Meijer
cf7592d908 Merge pull request #653 from stephenfin/feat/handle-invalid-numa-mem
Handle invalid NUMA nodes-memory combinations
2016-09-13 12:31:48 +02:00
Stephen Finucane
4d201e5d7e Handle invalid NUMA nodes-memory combinations
Raise an exception if the user specifies a memory allowance that cannot
be divided cleanly between available NUMA nodes.
2016-09-13 11:02:03 +01:00
Dmitry Vasilets
64caee7aad Merge pull request #652 from toanju/trustGuestRxFilters
add trustGuestRxFilters attribute to public interface
2016-09-13 09:28:55 +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
7d034c93c5 Merge pull request #632 from matt8754/fix631
fix a regression introduced in 546c98c
2016-09-13 08:27:28 +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
Dmitry Vasilets
312289fca2 Merge pull request #649 from epienbroek/master
Add disk property 'shareable'
2016-09-13 08:23:14 +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
Gerben Meijer
802e666b41 Merge pull request #647 from stephenfin/feat/cleanup
Cleanup some files
2016-09-07 18:11:30 +04: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
dima
945e84f9a4 0.0.35 2016-08-18 22:34:09 +02:00
Dmitry Vasilets
9e9811de8a Merge pull request #642 from borisroman/add/portgroup_public
Add libvirt portgroup support.
2016-08-18 22:14:31 +02:00
Boris Schrijver
63e347a923 Add libvirt portgroup support. 2016-08-18 22:10:40 +02:00
Dmitry Vasilets
31c62ea52d Merge pull request #639 from artworklv/mac-address-validation
Validator for network MAC configuration options.
2016-08-09 07:52:16 +02:00
Arturs Meinarts
34dca0550c Downcases MAC 2016-08-08 23:55:49 +02:00
Arturs Meinarts
0a36d64c88 Validator for network MAC configuration options. 2016-08-08 23:21:14 +02:00
Matt Jia
9967ad6943 fix a regression introduced in 546c98c 2016-07-22 14:43:55 +10:00
Gerben Meijer
ddbf654bec Update supported versions. Fixes #629 2016-07-16 22:22:45 +02:00
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