Commit Graph

137 Commits

Author SHA1 Message Date
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
Max Kutsevol
837a344724 suspend to disk? #411
* Added the suspend_mode domain specific option. Now it can perform a
managed save/resume. Switching this domain specific option can be done
when the domain is supended, it will correctly resume the domain. 

Task-Url: https://github.com/pradels/vagrant-libvirt/issues/411
Signed-off-by: Max Kutsevol <max@coolvds.com>
2015-09-27 14:23:09 +03:00
Max Kutsevol
d11b0b970f Customising libvirt settings can only be done when creating a box #418
* Added support to modify domain specific options on already defined
domain, updated relevant documentation. For list of modifiable options
please see updated documentation.
* Added new domain specific option - uuid. To force domain UUID when
creating new VM.


Task-Url: https://github.com/pradels/vagrant-libvirt/issues/418
Signed-off-by: Max Kutsevol <max@coolvds.com>
2015-09-26 20:46:33 +03:00
Paul Chechetin
bb03b6bd62 Add Table of Contents
Readme file is large, so navigation may be quite compilated.
Table of contents improves navigation but adds a little work when the content is changed.

Table of Contents was generated with http://doctoc.herokuapp.com/
2015-09-25 16:52:42 +03:00
Dmitry Vasilets
4193485670 Merge pull request #467 from Paulche/master
Improve decoration
2015-09-25 14:47:04 +02:00
Paul Chechetin
334f14b6e2 Improve decoration 2015-09-25 15:36:24 +03:00
Max Kutsevol
01c2fe6276 Issue with emulated CPU types.
For better VM performance CPU type should be set not to qemu64, but to
the host cpu type. 
For example see the difference (uppercased)

flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
pat pse36 clflush mmx fxsr sse sse2 ss syscall nx rdtscp lm constant_tsc
rep_good nopl eagerfpu pni pclmulqdq vmx ssse3 cx16 pcid sse4_1 sse4_2
x2apic popcnt tsc_deadline_timer aes xsave avx hypervisor lahf_lm
tpr_shadow vnmi flexpriority ept xsaveopt

Added extensions when emulating host cpu model: 
flags		: fpu VME de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
PAT pse36 clflush mmx fxsr sse sse2 SS syscall nx RDTSCP lm CONSTANT_TSC
rep_good nopl EAGERFPU pni PCLMULQDQ vmx SSSE3 cx16 PCID SSE4_1 SSE4_2
x2apic popcnt TSC_DEADLINE_TIMER AES XSAVE AVX hypervisor lahf_lm
tpr_shadow vnmi flexpriority ept XSAVEOPT

Nested virtualization requires VMX/SVM capabilities, which are still
being added when domain.nested is set to true. 

Using the current default value for cpu_mode everyone will benefit from
the better VMs performance.

Signed-off-by: Max Kutsevol <max@kutsevol.com>
2015-09-25 13:58:08 +03:00
stanley karunditu
17254d4358 previously in PR#413 added tcp tunnel support. adding mcast tunnel support
and merging features and just calling it tunnel support.
2015-09-08 14:11:05 -04:00
Dusty Mabe
6bbb16fc34 A few spelling/wording enhancements. 2015-08-25 10:44:16 -04:00
Gerben Meijer
3b641cc5cc Update docs: no box requires vagrant 1.6.0+ 2015-08-14 14:33:01 +02:00
Gerben Meijer
aa3a6faf44 Implement boot ordering as a separate class
This is required because in current versions of libvirt, it is not
possible to specify a boot order when attaching a device; therefore we
can only parse the entire domain XML after all devices have been created
and then assign boot ordering according to the Vagrantfile
specification. This allows us to specify exact boot order for hd, cdrom
and network.
2015-08-11 00:39:53 +02:00
Gerben Meijer
bbbd804f28 Add support for VMs with no box
Vagrant already supports VMs without boxes with Docker.
We leverage this in libvirt as well. The use case for this is to PXE
oot a vagrant VM that is then installed over the network then
installed over the network; a different use case would be to test PXE
booted clients that do not use a hard drive whatsoever.
2015-08-10 17:10:23 +02:00
dima
b50b23283b Merge branch 'master' of https://github.com/gbriones1/vagrant-libvirt into gbriones1-master 2015-08-07 08:33:21 +02:00
Gabriel Briones Sayeg
3277506627 Include custom UEFI loader
Domain XML has loader tag to read specific OVMF.fd path

Signed-off-by: Gabriel Briones Sayeg <gbriones.gdl@gmail.com>
2015-08-06 11:00:15 -05:00
James Johnson
de421b1be1 readme changes 2015-08-05 10:49:12 -05:00
James Johnson
1a8e457960 merged in the upstream changes correctly (I hope) 2015-08-05 10:47:58 -05:00
James Johnson
57e2f9e77c soft tabs... 2015-08-05 10:38:35 -05:00
James Johnson
d82c1a3f95 Can now specify inputs for the VM. E.g.
```ruby
Vagrant.configure("2") do |config|
  config.vm.provider :libvirt do |libvirt|
    # very useful when having mouse issues when viewing VMs via VNC
    libvirt.input :type => "tablet", :bus => "usb"
  end
end
```
2015-08-05 10:37:19 -05:00
Gerben Meijer
f47cb7c98b Describe changes to boot process due to boot order 2015-07-29 13:31:07 +02:00
stanley karunditu
389c2d444d set nic adapter limit as a provider variable. default remains 8 like
it was hard coded before. only use case for changing this is if using
virtualized switch VMs that have support for many interfaces.
2015-07-13 06:37:51 -04:00
stanley karunditu
a5cd2024ed update README. fix mention of test_vm1. should be test_vm2 2015-07-11 10:55:21 -04:00
stanley karunditu
555470efe3 update README. should say 'test_vm2' instead of 'test_vm1' 2015-07-11 10:53:23 -04:00
stanley karunditu
789fa369c8 add libvirt interface tcp tunnel support.
Useful when configuring Virtualized Switch topologies using Switch VMs like Cumulus
Linux.

vagrant network interface auto_config is disabled in the code. This may be
re-enabled in a future update, once it is better understood how to
auto configure these types of links. All guestOS ports, for now, that are
connected to a tcp tunnel are in a link down state.

TCP tunnels allow guest OSes to exchange STP and LLDP information as
if they are directly connected to each other.

This is not possible with the default virtual switch network mode.

Reference:
https://libvirt.org/formatdomain.html#elementsNICSTCP
2015-07-11 10:49:00 -04:00
Alexis Lee
cd0322ccaf Specify units for machine_virtual_size 2015-06-29 17:14:13 +01:00
Darragh Bailey
d4c72212eb Support volume size resize configuration
Allow control of the volume size to be increased from the box default
virtual_size value so that it is possible to use a box configured with a
minimal initial disk size and create virtual guests with larger disk
sizes.

Warn the user and ignore sizes that are less than the box size, and
inform them that a manual filesystem resize will be needed to take
advantage of the additional available disk space.

fixes: #37
2015-06-28 15:50:44 +01:00
Brad Wadsworth
0851b5d804 fixed grammar 2015-06-02 20:33:37 -05:00
Brad Wadsworth
56818642e5 fixed indent and added example 2015-06-02 20:31:21 -05:00
Brad Wadsworth
23d0a5b012 changes to boot order option 2015-06-01 10:19:06 -05:00
dima
98e4b3b0be typo 2015-05-18 07:48:39 +02:00
Dmitry Vasilets
b092a5444b Merge pull request #374 from kampka/master
Add ability to specify the machine architecture via the domain arguments
2015-05-18 07:47:09 +02:00
Christian Kampka
298a45d3d8 Add ability to specify the machine architecture via the domain arguments 2015-05-18 07:30:48 +02:00
Shuanglei Tao
d4b013a66d Add note for remote nfs synced folders 2015-05-18 11:46:04 +08:00
dima
4de1560027 improve package process 2015-05-17 19:47:07 +02:00
Dmitry Vasilets
c7f37649ec example for 9p 2015-05-17 10:34:58 +02:00
Dmitry Vasilets
78c525b364 typo 2015-05-17 10:12:42 +02:00
Dmitry Vasilets
4af0163c5e update readme with example accessmode 9p 2015-05-17 10:11:40 +02:00
dima
311bdc5f23 add linker trick for installation as gem 2015-05-15 12:38:50 +02:00
Dmitry Vasilets
dbc857381b typo 2015-05-12 09:38:17 +02:00
Felix Kaiser
ae37f17de8 Add :libvirt_host_ip and :libvirt_dhcp_start/stop
This allows networks with gateways on addresses other
than .1 (.254 is a popular choice).

Resolves #357.
2015-05-06 21:03:12 +02:00
Nobuaki Sukegawa
c5a6fd08f0 Fix trivial bug where graphics_passwd could not be used with spice 2015-05-07 00:52:32 +09:00
Yang Wei
fc0a03bf0e Update README.md
I ran into a trouble, as my box(ubuntu) was *not* installed zlib1g-dev package
by default, so update README.md to hint guys to install this package for
ubuntu/debian system.

Signed-off-by: Yang Wei <w90p710@gmail.com>
2015-05-04 19:44:27 +08:00
dima
140a38350a fedora21 image 2015-04-19 11:13:09 +02:00
Jakob Aarøe Dam
46e5d7ba9d Update README.md 2015-04-17 16:47:38 +02:00
Dmitry Vasilets
bc491d8818 Merge pull request #341 from matt8754/dhcp_bootp
support dhcp bootp settings
2015-04-17 09:17:16 +02:00
Matt Jia
80f8c6b65c support dhcp bootp settings 2015-04-17 16:59:16 +10:00
dima
5ee914a2ef shared volumes creation 2015-04-16 09:27:11 +02:00
dima
a941ddc962 remove volumes logic for shared volumes 2015-04-16 09:12:19 +02:00
dima
17616c2836 Merge branch 'preexisting-disks' of github.com:aspiers/vagrant-libvirt
Conflicts:
	lib/vagrant-libvirt/action/create_domain.rb
2015-04-16 08:16:46 +02:00
Jim Salem
e8d1b94ad9 Improve doc for id_ssh_key_file. Do not prepend ~/.ssh/ if the pathname includes a directory 2015-04-15 14:26:21 -04:00