mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
fixed indent and added example
This commit is contained in:
parent
0b2ebc102b
commit
56818642e5
19
README.md
19
README.md
@ -170,7 +170,7 @@ end
|
||||
* `video_vram` - Used by some graphics card types to vary the amount of RAM dedicated to video. Defaults to 9216.
|
||||
* `machine` - Sets machine type. Equivalent to qemu `-machine`. Use `qemu-system-x86_64 -machine help` to get a list of supported machines.
|
||||
* `machine_arch` - Sets machine architecture. This helps libvirt to determine the correct emulator type. Possible values depend on your version of qemu. For possible values, see which emulator executable `qemu-system-*` your system provides. Common examples are `aarch64`, `alpha`, `arm`, `cris`, `i386`, `lm32`, `m68k`, `microblaze`, `microblazeel`, `mips`, `mips64`, `mips64el`, `mipsel`, `moxie`, `or32`, `ppc`, `ppc64`, `ppcemb`, `s390x`, `sh4`, `sh4eb`, `sparc`, `sparc64`, `tricore`, `unicore32`, `x86_64`, `xtensa`, `xtensaeb`.
|
||||
* `boot` - Change the boot order and enables the boot menu. Defaults to 'hd' with boot menu disabled.
|
||||
* `boot` - Change the boot order and enables the boot menu. Possible options are "hd" or "network. Defaults to "hd" with boot menu disabled.
|
||||
|
||||
|
||||
Specific domain settings can be set for each domain separately in multi-VM
|
||||
@ -192,6 +192,23 @@ Vagrant.configure("2") do |config|
|
||||
# ...
|
||||
```
|
||||
|
||||
The following example shows part of a Vagrantfile that enables the VM to
|
||||
boot from a network interface first and a hard disk second. This could be
|
||||
used to run VMs that are meant to be a PXE booted machines.
|
||||
|
||||
```ruby
|
||||
Vagrant.configure("2") do |config|
|
||||
config.vm.define :pxeclient do |pxeclient|
|
||||
pxeclient.vm.box = "centos64"
|
||||
pxeclient.vm.provider :libvirt do |domain|
|
||||
domain.boot 'network'
|
||||
domain.boot 'hd'
|
||||
end
|
||||
end
|
||||
|
||||
# ...
|
||||
```
|
||||
|
||||
## Networks
|
||||
|
||||
Networking features in the form of `config.vm.network` support private networks
|
||||
|
@ -29,11 +29,11 @@
|
||||
<% end %>
|
||||
<% if @boot_order.count >= 1 %>
|
||||
<% @boot_order.each do |b| %>
|
||||
<boot dev='<%= b %>'/>
|
||||
<boot dev='<%= b %>'/>
|
||||
<% end %>
|
||||
<bootmenu enable='yes'/>
|
||||
<bootmenu enable='yes'/>
|
||||
<% else %>
|
||||
<boot dev='hd' />
|
||||
<boot dev='hd' />
|
||||
<% end %>
|
||||
<kernel><%= @kernel %></kernel>
|
||||
<initrd><%= @initrd %></initrd>
|
||||
|
Loading…
Reference in New Issue
Block a user