[libvirt-users] the error for define the xml

Timon Wang timonwst at gmail.com
Fri Aug 23 03:04:36 UTC 2013


Use virsh capabilities to verify if your host support guest
    <os_type>hvm</os_type>
    <arch name='x86_64'>

On Fri, Aug 23, 2013 at 10:10 AM, Qian Feng <qianfeng04161001 at gmail.com> wrote:
> Hi, everyone, I have already install libvirt. I want to use it on qemu. I
> have set up qemu too. I do not know how to let libvirt manage the vms for
> qemu. What i did ist that:
>
> 1) create the xml under /etc/libvirt/qemu/demo.xml
> 2) # virsh define /etc/libvirt/qemu/demo.xml
> There is error as following:
>
> error: Failed to define domain from /etc/libvirt/qemu/demo.xml
> error: internal error No guest options available for arch 'x86_64'
>
> Could everyone help me? Thank you very much.
>
>
> The demo.xml is following:
>
> <domain type='kvm'>
>             <name>test</name> //\u865a\u62df\u673a\u540d\u79f0
>             <memory>1048576</memory>
> //\u6700\u5927\u5185\u5b58\uff0c\u5355\u4f4dk
>             <currentMemory>1048576</currentMemory>
> //\u53ef\u7528\u5185\u5b58\uff0c\u5355\u4f4dk
>             <vcpu>8</vcpu> //\u865a\u62dfcpu\u4e2a\u6570
>             <os>
>               <type arch='x86_64' machine='pc'>hvm</type>
>               <boot dev='cdrom'/> //\u5149\u76d8\u542f\u52a8
>            </os>
>            <features>
>              <acpi/>
>              <apic/>
>              <pae/>
>            </features>
>            <clock offset='localtime'/>
>            <on_poweroff>destroy</on_poweroff>
>            <on_reboot>restart</on_reboot>
>            <on_crash>destroy</on_crash>
>            <devices>
>              <emulator>/usr/libexec/qemu-kvm</emulator>
>              <disk type='file' device='disk'>
>               <driver name='qemu' type='qcow2'/>
>                <source
> file='/var/lib/libvirt/images/winxpsp3-regression.qcow2'/>
> //\u76ee\u7684\u955c\u50cf\u8def\u5f84
>                <target dev='hda' bus='ide'/>
>              </disk>
>              <disk type='file' device='cdrom'>
>                <source file='/var/lib/libvirt/images/ubuntu.iso'/>
> //\u5149\u76d8\u955c\u50cf\u8def\u5f84
>                <target dev='hdb' bus='ide'/>
>              </disk>
>             <interface type='bridge'>
> //\u865a\u62df\u673a\u7f51\u7edc\u8fde\u63a5\u65b9\u5f0f
>               <source bridge='kvmbr0'/>
> //\u5f53\u524d\u4e3b\u673a\u7f51\u6865\u7684\u540d\u79f0
>               <mac address="00:16:3e:5d:aa:a8"/>
> //\u4e3a\u865a\u62df\u673a\u5206\u914dmac\u5730\u5740\uff0c\u52a1\u5fc5\u552f\u4e00\uff0c\u5426\u5219dhcp\u83b7\u5f97\u540c\u6837ip,\u5f15\u8d77\u51b2\u7a81
>             </interface>
>             <input type='mouse' bus='ps2'/>
>              <graphics type='vnc' port='-1' autoport='yes' listen =
> '0.0.0.0'
> keymap='en-us'/>//vnc\u65b9\u5f0f\u767b\u5f55\uff0c\u7aef\u53e3\u53f7\u81ea\u52a8\u5206\u914d\uff0c\u81ea\u52a8\u52a01\uff0c\u53ef\u4ee5\u901a\u8fc7virsh
> vncdisplay\u6765\u67e5\u8be2
>            </devices>
>          </domain>
>
> --
> Have a nice day!
>
> Qian
>
> _______________________________________________
> libvirt-users mailing list
> libvirt-users at redhat.com
> https://www.redhat.com/mailman/listinfo/libvirt-users



-- 
Focus on: Server Vitualization, Network security,Scanner,NodeJS,JAVA,WWW
Blog: http://www.nohouse.net




More information about the libvirt-users mailing list