<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<span style="font-family:arial,sans-serif; font-size:13px; background-color:rgb(255,255,255)">hi all,</span>
<div><font face="arial, sans-serif">   I have two questions about libvirt.</font></div>
<div><font face="arial, sans-serif"><br>
</font></div>
<div><font face="arial, sans-serif">   At first, how can I write a XML file that libvirt could give me a command that include this: if=virtio.</font></div>
<div><font face="arial, sans-serif"><br>
</font></div>
<div><font face="arial, sans-serif">  -drive file=/dev/vg.vmms/lvm-v097218.sqa.cm4,if=none,id=drive-ide0-0-0,format=raw -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0<br>
</font>
<div><font face="arial, sans-serif">  </font></div>
<div><font face="arial, sans-serif">  event I have let the <target dev=vda bus=virtio>  the XML file also make the command not include virtio, it's like this:</font></div>
<div><font face="arial, sans-serif"><br>
</font></div>
<div><font face="arial, sans-serif">-drive file=/dev/vg.vmms/lvm-v097226.sqa.cm4,if=none,id=drive-virtio-disk0,format=raw,cache=none -device virtio-blk-pci,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0</font></div>
<div><font face="arial, sans-serif"><br>
</font></div>
<div><font face="arial, sans-serif"> and my question is, this is command args could enable virtio? or there is some other XML format could let the if=virtio.</font></div>
<div><font face="arial, sans-serif"><br>
</font><span style="font-family:arial,sans-serif; font-size:13px; background-color:rgb(255,255,255)">
<div>  Second when I boot the vm in the second step after use the kickstart install it. </div>
<div>Once in a while, it occurs an error that:</div>
<div><br>
</div>
<div>                    monitor socket did not show up.: No such file or ></div>
<div>                    Traceback (most recent call last):</div>
<div>                    File "/home/<a href="http://lingjiao.lc/vmms/backserv/lib/virtmgr.py" target="_blank" style="color:rgb(0,0,204)"><span style="background-color:rgb(255,255,136); color:rgb(34,34,34)">lingjiao</span>.<span style="background-color:rgb(255,255,136); color:rgb(34,34,34)">lc</span>/vmms/backserv/bin/../lib/virtmgr.py</a>",
 line 1007, in request_vm</div>
<div>                            dom.create()</div>
<div>                    File "/usr/lib64/python2.6/site-packages/libvirt.py", line 325, in create</div>
<div>                    if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)</div>
<div>                    libvirtError: monitor socket did not show up.: No such file or directory</div>
<div><br>
</div>
<div>  But if I reinstall it, it will be ok.  If I install hundreds of VMs once, I think this is a headache.</div>
<div><br>
</div>
<div><br>
</div>
<div>   Could anybody help me, how can I disable the charmonitor or solve these problem.</div>
<div><br>
</div>
<div>Thanks.</div>
</span></div>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1"><br>
This email (including any attachments) is confidential and may be legally privileged. If you received this email in error, please delete it immediately and do not copy it or use it for any purpose or disclose its contents to any other person. Thank you.<br>
<br>
本电邮(包括任何附件)可能含有机密资料并受法律保护。如您不是正确的收件人,请您立即删除本邮件。请不要将本电邮进行复制并用作任何其他用途、或透露本邮件之内容。谢谢。<br>
</font>
</body>
</html>