-
[root@compute-30-02 data3]# virsh create ubuntu.xml
-
error: Failed to create domain from ubuntu.xml
- error: unknown OS type hvm
-
<domain type='kvm'>
-
<name>vm1</name>
-
<memory>1048576</memory>
-
<vcpu>4</vcpu>
-
<os>
-
<type arch='x86_64' machine='pc'>hvm</type>
-
<boot dev='cdrom'/>
-
</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/local/bin/qemu-system-x86_64</emulator> //新编译安装的qemu
-
<disk type='file' device='disk'>
-
<driver name='qemu' type='qcow2'/>
-
<source file='/data3/vm1.qcow2'/>
-
<target dev='vda' bus='virtio'/>
-
</disk>
-
<disk type='file' device='cdrom'>
-
<source file='/data3/ubuntu.iso'/>
-
<target dev='hdb' bus='ide'/>
-
</disk>
-
<interface type='network'>
-
<source network='default'/>
-
</interface>
-
<input type='mouse' bus='ps2'/>
-
<graphics type='vnc' port='-1' autoport='yes' keymap='en-us'/>
- </devices
一个非常简单的问题,可能会耗去你非常多的时间,最后发现一点技术含量没有,但是如果不跨过这道坎,再有技术含量的工作也不能进行,个人感觉每个工作都有其非常重要的作用,小细节决定大成败!
有的公司一个人做好几个项目,有的公司好几个人做一个项目,道理可能就在这吧!