<div dir="ltr"><div>Hi all,</div><div>I have the following issue, and I hope someone know a way to handle it.</div><div><br></div><div>I need to grammatically  need to create/install a guest OS using the libvirt API.</div><div>Currently what I do:</div><div> 1. create a xml with the vm configuration (this will include a path to the iso image)</div><div> 2. connection.defineXML(<my_config>)</div><div> 3. vm = connection.lookupByName(<domain_name>)</div><div> 4. vm.create()</div><div><br></div><div>This will create a new guest and boot the iso to install the OS. But after installation, when I restart, It again boots from the cdrom. So obviously I need remove the cdrom somehow.</div><div><br></div><div>I could edit the xml and manually remove the cdrom, but the problem here is how do I know when to do that - i.e. how do I know if the OS has been installed or not?</div><div><br></div><div>If I use virsh-install to create a guest with the same configuration, after the OS is installed, the cdrom is automatically removed form the guest configuration.</div><div> </div><div><br></div><div>Any help is greatly appreciated.</div><br clear="all"><div><div class="gmail_signature"><div><font color="#666666" face="verdana, sans-serif">Andrei</font></div></div></div>
</div>

<br>

        
        
        


<p><img src="http://www.klasonline.com/klas_telecom_email_sig_1_01.jpg"></p><p><span style="font-family:Arial;font-size:x-small">The information
transmitted is intended only for the person or entity to which it is
addressed and may contain confidential and/or privileged material.
Any review, retransmission, dissemination or other use of or taking
of any action in reliance upon this information by persons or
entities other than the intended recipient is prohibited. If you
receive this in error please contact the sender and delete the
material from any computer immediately. It is the policy of Klas
 Limited to disavow the sending of offensive material and should
you consider that the material contained in the message is offensive
you should contact the sender immediately and also your I.T. Manager.</span></p><p><span style="font-family:Arial;font-size:x-small">Klas Telecom
Inc., a Virginia Corporation with offices at 1101 30th St. NW,
Washington, DC 20007.</span></p>
<p>
<font color="#000000"><font face="Arial"><font size="1">Klas Limited
(Company Number 163303) trading as Klas Telecom, an Irish Limited
Liability Company, with its registered office at Fourth Floor, One
Kilmainham Square, Inchicore Road, Kilmainham, Dublin 8, Ireland.</font></font></font></p>