mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
updated the README to reflect changes in pradels/vagrant-libvirt#333
This commit is contained in:
20
README.md
20
README.md
@@ -313,6 +313,26 @@ Vagrant.configure("2") do |config|
|
|||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## CDROMs
|
||||||
|
|
||||||
|
You can attach up to four (4) CDROMs to a VM via `libvirt.storage :file, device: cdrom`. Available options are:
|
||||||
|
|
||||||
|
* `path` - The path to the iso to be used for the CDROM drive.
|
||||||
|
* `dev` - The device to use (`hda`, `hdb`, `hdc`, or `hdd`). This will be automatically determined if unspecified.
|
||||||
|
* `bus` - The bus to use for the CDROM drive. Defaults to `ide`
|
||||||
|
|
||||||
|
The following example creates three CDROM drives in the VM:
|
||||||
|
|
||||||
|
```ruby
|
||||||
|
Vagrant.configure("2") do |config|
|
||||||
|
config.vm.provider :libvirt do |libvirt|
|
||||||
|
libvirt.storage :file, :device => :cdrom, :path => '/path/to/iso1.iso'
|
||||||
|
libvirt.storage :file, :device => :cdrom, :path => '/path/to/iso2.iso'
|
||||||
|
libvirt.storage :file, :device => :cdrom, :path => '/path/to/iso3.iso'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
```
|
||||||
|
|
||||||
## SSH Access To VM
|
## SSH Access To VM
|
||||||
|
|
||||||
vagrant-libvirt supports vagrant's [standard ssh settings](https://docs.vagrantup.com/v2/vagrantfile/ssh_settings.html).
|
vagrant-libvirt supports vagrant's [standard ssh settings](https://docs.vagrantup.com/v2/vagrantfile/ssh_settings.html).
|
||||||
|
|||||||
Reference in New Issue
Block a user