Commit Graph

662 Commits

Author SHA1 Message Date
Maxym Kutsevol
233133b54c Merge pull request #3 from pradels/master
Update base
2015-10-06 11:10:03 +03:00
Dmitry Vasilets
ec7d32ebb5 Merge pull request #476 from infernix/no_box_handling_error
Use env[:machine].config.vm.box variable, not .box
2015-10-06 06:01:11 +02:00
Dmitry Vasilets
75e5ab69dd Merge pull request #474 from jcsmith/master
If the disk size is specified as a decimal number the generated metad…
2015-10-06 06:00:34 +02:00
Gerben Meijer
3bbba3240b Use env[:machine].config.vm.box variable, not .box
In some cases env[:machine].box is 'nil' when a box is
not already locally present. Combined with the box_optional
flag this causes the box definition in the Vagrantfile to be
ignored completely, yielding unexpected results. All references
are changed to ensure it does not cause other issues.
2015-10-06 01:07:25 +02:00
Josh Smith
163896aceb Added comment to describe cahanges as requested 2015-10-05 13:43:38 -04:00
Josh Smith
b59c007f85 No need to use both grep and awk here - just grep will do. 2015-10-05 12:41:49 -04:00
Josh Smith
0aea938dea If the disk size is specified as a decimil number the generated metadat.json file is invalid resulting in a broken vagrant box. Wraped this in the awk int() function to only print the integer part of the disk size. 2015-10-05 12:31:37 -04:00
Maxym Kutsevol
994b096854 Merge pull request #2 from pradels/master
Update base
2015-09-30 18:11:34 +03:00
Dmitry Vasilets
15d12d1053 Merge pull request #470 from mkutsevol/issue_411
Issue 411
2015-09-29 20:32:20 +02:00
Dmitry Vasilets
62dfca0842 Merge pull request #469 from mkutsevol/issue_418
Issue 418
2015-09-29 20:31:46 +02:00
Max Kutsevol
0345bc3bd0 suspend to disk? #411
* Error handler in case of error when saving domain state with a hint
how to handle the problem. 
* Managed saves are deleted prior to undefining a domain.

Task-Url: https://github.com/pradels/vagrant-libvirt/issues/411
Signed-off-by: Max Kutsevol <max@coolvds.com>
2015-09-27 15:13:22 +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
45e293748a Customising libvirt settings can only be done when creating a box #418
* Changed logging level on error when changing xml description from info
to error.

Task-Url: https://github.com/pradels/vagrant-libvirt/issues/418
Signed-off-by: Max Kutsevol <max@coolvds.com>
2015-09-27 12:40:08 +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
Maxym Kutsevol
329725740b Merge pull request #1 from pradels/master
I hope this will go to my fork.
2015-09-26 16:23:38 +03:00
dima
2a880b8e76 0.0.31 2015-09-25 20:16:38 +02:00
Dmitry Vasilets
8489077089 Merge pull request #468 from Paulche/table_of_content
Add Table of Contents
2015-09-25 15:55:08 +02: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
Dmitry Vasilets
5144659367 Merge pull request #466 from mkutsevol/master
Issue with emulated CPU types.
2015-09-25 13:33:29 +02: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
Dmitry Vasilets
307f95e891 Merge pull request #464 from mandre/dhcp-symbol
Accept both symbol and string for network type
2015-09-24 08:23:39 +02:00
Martin André
795124eac9 Accept both symbol and string for network type
Previously, following Vagrant documentation to setup private DHCP
network failed with:

  config.vm.network "private_network", type: "dhcp"

Now libvirt provider accepts both "dhcp" and :dhcp
2015-09-24 14:40:18 +09:00
Dmitry Vasilets
91fa94c62b typo 2015-09-24 04:57:31 +02:00
Dmitry Vasilets
b20c99ffd8 Merge pull request #462 from mandre/private-network-dhcp
Handle private networks with type DHCP
2015-09-24 04:56:20 +02:00
Dmitry Vasilets
8565655640 Merge pull request #463 from swizzley/master
This works on CentOS 7.1
2015-09-24 04:55:55 +02:00
root
2ba8aae9df helps 2015-09-23 20:38:39 -06:00
root
2525be90bf works 2015-09-23 20:37:24 -06:00
Martin André
3f29a98a4e Refactoring
Reduce code duplication and make things more clear
2015-09-24 11:22:06 +09:00
Dustin Morgan
5b1c34ecf5 prepare and halt, no gems 2015-09-23 18:27:28 -06:00
Dmitry Vasilets
e126180f91 Merge pull request #460 from mandre/fix-management-network-address
Fix undefined method scan issue
2015-09-23 17:06:17 +02:00
Dmitry Vasilets
6eb7ff7c28 Merge pull request #461 from mandre/fix-destroy-network-error
Fix uninitialized constant DestroyNetworkError
2015-09-23 17:02:16 +02:00
Martin André
41f16c9b59 Handle private networks with type DHCP
Closes #427
2015-09-23 22:24:44 +09:00
Martin André
0e88594967 Fix uninitialized constant DestroyNetworkError
This was caused by a typo in the class name.
2015-09-23 22:17:40 +09:00
Martin André
d60da562a5 Fix undefined method scan issue
management_network_address was defaulting to UNSET_VALUE which is of
type Object, thus management_network_address was always truthy.

This fixes issue introduced in
e904fd8941.
2015-09-23 22:09:05 +09:00
Dmitry Vasilets
d2f96f56f6 Merge pull request #457 from timhughes/management_network_mac
Enables setting of MAC address on management interface as per #426
2015-09-18 08:26:25 +02:00
Tim Hughes
e904fd8941 Enables setting of MAC address on management interface as per #426 2015-09-14 17:37:19 +01:00
Dmitry Vasilets
4a8b88fc87 Merge pull request #455 from skamithi/mcast_and_tcp_tunnel_support
UDP/TCP/Mcast tunnel support for point-2-point VM connections
2015-09-09 08:52:03 +02: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
Dmitry Vasilets
8985fbd494 Merge pull request #446 from dustymabe/master
A few spelling/wording enhancements.
2015-08-25 16:52:56 +02:00
Dusty Mabe
6bbb16fc34 A few spelling/wording enhancements. 2015-08-25 10:44:16 -04:00
Dmitry Vasilets
454bc78688 Merge pull request #442 from infernix/box_optional
Make boxes optional and move boot ordering into a separate class
2015-08-15 01:01:04 +02: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
Gerben Meijer
262e8eed59 Revert "Use per device boot order when boot_order is set"
This reverts commit dc2f5cb4aa.
2015-08-10 17:07:20 +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
f634f4370b Merge branch 'master' of https://github.com/gbriones1/vagrant-libvirt 2015-08-06 11:01:09 -05: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