virsh VMI deploy data serial xml

<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
        <name>one-116</name>
        <vcpu>1</vcpu>
        <cputune>
                <shares>1024</shares>
        </cputune>
        <memory>524288</memory>
        <os>
                <type arch='x86_64'>hvm</type>
                <bootloader>pygrub</bootloader>
                <boot dev='hd'/>
        </os>
        <devices>
                <emulator>/usr/bin/kvm</emulator>
                <disk type='file' device='disk'>
                        <source file='/srv/cloud/eucalyptus/var//datastores/0/116/disk.0'/>
                        <target dev='hda'/>
                        <driver name='qemu' type='qcow2' cache='none'/>
                </disk>
                <disk type='file' device='cdrom'>
                        <source file='/srv/cloud/eucalyptus/var//datastores/0/116/disk.1'/>
                        <target dev='hdb'/>
                        <readonly/>
                        <driver name='qemu' type='raw'/>
                </disk>
                <interface type='bridge'>
                        <source bridge='br0'/>
                        <mac address='02:00:c0:a8:01:a8'/>
                </interface>
                <graphics type='vnc' listen='0.0.0.0' port='6016'/>
        </devices>
        <features>
                <acpi/>
        </features>
</domain>

原文地址:https://www.cnblogs.com/ruiy/p/4149334.html