Add qcow-disk example
This commit is contained in:
@@ -43,18 +43,29 @@ File `/etc/libvirt/qemu/vm71.xml`
|
|||||||
</pm>
|
</pm>
|
||||||
<devices>
|
<devices>
|
||||||
<emulator>/usr/bin/qemu-kvm</emulator>
|
<emulator>/usr/bin/qemu-kvm</emulator>
|
||||||
|
<disk type="block" device="disk">
|
||||||
|
<driver name="qemu" type="raw" cache="none"/>
|
||||||
|
<source dev="/dev/fdr/vm71"/>
|
||||||
|
<target dev="sdb" bus="scsi"/>
|
||||||
|
<address type="drive" controller="0" bus="0" target="1" unit="0"/>
|
||||||
|
</disk>
|
||||||
|
<!--
|
||||||
<disk type="file" device="disk">
|
<disk type="file" device="disk">
|
||||||
<driver name="qemu" type="raw" cache="none"/>
|
<driver name="qemu" type="raw" cache="none"/>
|
||||||
<source file="/mnt/dmp/3/sda.img"/>
|
<source file="/mnt/dmp/3/sda.img"/>
|
||||||
<target dev="sda" bus="scsi"/>
|
<target dev="sda" bus="scsi"/>
|
||||||
<address type="drive" controller="0" bus="0" target="0" unit="0"/>
|
<address type="drive" controller="0" bus="0" target="0" unit="0"/>
|
||||||
</disk>
|
</disk>
|
||||||
<disk type="block" device="disk">
|
<disk type='file' device='disk'>
|
||||||
<driver name="qemu" type="raw" cache="none"/>
|
<driver name='qemu' type='qcow2' />
|
||||||
<source dev="/dev/sdc"/>
|
<source file='/mnt/data/domain.qcow2' comment='Create: qemu-img create -F raw -f qcow2 -o backing_file=/dev/fdr/vm71 /mnt/data/domain.qcow2'/>
|
||||||
<target dev="sdb" bus="scsi"/>
|
<backingStore type='block'>
|
||||||
<address type="drive" controller="0" bus="0" target="1" unit="0"/>
|
<format type='raw'/>
|
||||||
|
<source dev='/dev/fdr/vm71'/>
|
||||||
|
</backingStore>
|
||||||
|
<target dev='sda' bus='scsi'/>
|
||||||
</disk>
|
</disk>
|
||||||
|
-->
|
||||||
<disk type="file" device="cdrom">
|
<disk type="file" device="cdrom">
|
||||||
<driver name="qemu" type="raw"/>
|
<driver name="qemu" type="raw"/>
|
||||||
<source file="/mnt/data/systemrescue-11.00-amd64.iso"/>
|
<source file="/mnt/data/systemrescue-11.00-amd64.iso"/>
|
||||||
|
Reference in New Issue
Block a user