33 lines
1.1 KiB
Plaintext
33 lines
1.1 KiB
Plaintext
|
# A VM's disks can be stored in a variety of ways.
|
||
|
# Here are some examples:
|
||
|
disk = [
|
||
|
# Block device
|
||
|
'phy:/dev/hdb,xvda,w',
|
||
|
# Raw format, accessed via loopback
|
||
|
'file:/var/lib/xen/images/disk-example/disk0,xvdb,w',
|
||
|
# Raw format, accessed via blocktap
|
||
|
'tap:aio:/var/lib/xen/images/disk-example/disk0,xvdc,w',
|
||
|
# QCOW format, accessed via blocktap
|
||
|
'tap:qcow:/var/lib/xen/images/disk-example/disk0.qcow,xvdd,w',
|
||
|
# NBD (network block device): IP and port are separated by space
|
||
|
'nbd:192.168.0.1 20004,xvde,w',
|
||
|
# iSCSI: The usual colon is replaced with '@'
|
||
|
'iscsi:iqn.2006-09.de.suse@0ac47ee2-216e-452a-a341-a12624cd0225,xvdf,w',
|
||
|
# Fibre Channel N_Port ID Virtualization
|
||
|
'npiv:210400e08b80c40f,xvdg,w' ]
|
||
|
|
||
|
|
||
|
# Remaining settings for the example VM:
|
||
|
name="disk-example"
|
||
|
memory=512
|
||
|
vcpus=1
|
||
|
on_crash="destroy"
|
||
|
on_poweroff="destroy"
|
||
|
on_reboot="restart"
|
||
|
localtime=0
|
||
|
builder="linux"
|
||
|
bootloader="/usr/lib/xen/boot/domUloader.py"
|
||
|
bootargs="--entry=xvda2:/boot/vmlinuz-xen,/boot/initrd-xen"
|
||
|
vif=[ 'mac=00:16:3e:00:01:02,bridge=xenbr0' ]
|
||
|
vfb=['type=vnc,vncunused=1']
|