fixed indent and added example

This commit is contained in:
Brad Wadsworth 2015-06-02 20:31:21 -05:00
parent 0b2ebc102b
commit 56818642e5
2 changed files with 21 additions and 4 deletions

View File

@ -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

View File

@ -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>