1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
<domain type="kvm">
<name>tester</name>
<memory>1048576</memory>
<currentMemory>1048576</currentMemory>
<uuid>%s</uuid>
<clock offset="utc"/>
<vcpu>1</vcpu>
<features>
<acpi/>
<apic/>
<pae/>
</features>
<os>
<type>hvm</type>
<boot dev="hd"/>
<kernel>kernel option</kernel>
<initrd>initrd option</initrd>
<cmdline>command line</cmdline>
</os>
<on_poweroff>destroy</on_poweroff>
<on_reboot>destroy</on_reboot>
<on_crash>destroy</on_crash>
<devices>
<graphics port="-1" type="vnc"/>
<interface type="bridge">
<source bridge="%s"/>
<mac address="52:54:00:04:cc:a6"/>
<model type="virtio"/>
</interface>
<input bus="ps2" type="mouse"/>
<serial type="pty">
<target port="0"/>
</serial>
<serial type="tcp">
<source mode="bind" host="127.0.0.1" service="%s"/>
<protocol type="raw"/>
<target port="1"/>
</serial>
<disk device="disk" type="file">
<target dev="vda" bus="virtio"/>
<source file="%s"/>
<driver name="qemu" type="raw"/>
</disk>
<disk type="file" device="blue">
<source file="/var/bin/foo"/>
<target dev="muni"/>
</disk>
</devices>
</domain>
|