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>
This commit is contained in:
Max Kutsevol
2015-10-06 11:59:36 +03:00
parent 233133b54c
commit 1fd789534d
2 changed files with 22 additions and 2 deletions

View File

@@ -25,6 +25,7 @@ welcome and can help a lot :-)
- [Public Network Options](#public-network-options)
- [Management Network](#management-network)
- [Additional Disks](#additional-disks)
- [Reload behavior](#reload-behavior-1)
- [CDROMs](#cdroms)
- [Input](#input)
- [No box and PXE boot](#no-box-and-pxe-boot)
@@ -455,6 +456,12 @@ Vagrant.configure("2") do |config|
end
```
### Reload behavior
On vagrant reload the following additional disk attributes are updated in defined domain:
* `bus` - Updated. Uses `device` as a search marker. It is not required to define `device`, but it's recommended. If `device` is defined then the order of addtitional disk definition becomes irrelevant.
## CDROMs
You can attach up to four (4) CDROMs to a VM via `libvirt.storage :file, :device => :cdrom`. Available options are: