<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    On 11/16/11 06:16, Preethi Ramesh wrote:<br>
    <br>
    <br>
    <blockquote
cite="mid:CAKeZmz+-QQewUie9q3kDsewtHYZP8C-3pKHr5dObUMFfL_+_Eg@mail.gmail.com"
      type="cite">I'm a Libvirt newbie and I'd really appreciate it if
      someone could answer my doubts. I'm using Libvirt's Java API.<br>
      My doubts:<br>
      <br>
      1.Currently, I'm able to create a VM on Ubuntu 11.04 using Libvirt
      functions domainCreateLinux() and domainDefineXML(). Apart fromt
      the boolean return status of these operations and running the
      virsh list command, is there any way to SSH in (login) to the
      newly created VMs  and run applications on them? I tried running
      virsh console but nothing comes up. Also I tried fixing the XML
      file to accommodate the console operation(<a
        moz-do-not-send="true"
        href="http://ubuntuforums.org/showthread.php?t=1159220">link</a>)
      but that was unsuccessful too.<br>
    </blockquote>
    <br>
    <br>
    The route command on the host will show the newly added routes for
    the VM. Also, tail your syslog file & you will see messages
    about every 15 min. from dnsmasq w/ the IP adder. of the VM.<br>
    <br>
    <br>
    Hand editing the XML file is not recommended, usually won't work,
    try the 'virsh edit' command, that will make sure that the edited
    stuff gets saved properly & gets communicated to the VM's.<br>
    <br>
    <br>
    <blockquote
cite="mid:CAKeZmz+-QQewUie9q3kDsewtHYZP8C-3pKHr5dObUMFfL_+_Eg@mail.gmail.com"
      type="cite">
      <br>
      2. If yes, how can I get the IP of the VM created? <br>
      <br>
      3. Is there any function to create image files(in any format qcow
      or qcow2) using Libvirt API? Right now, I'm using a shell script
      which creates the image from it's iso.<br>
      <br>
      Thanks in advance<br>
      P Ramesh<br>
       <br>
      <br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
libvirt-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:libvirt-users@redhat.com">libvirt-users@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/libvirt-users">https://www.redhat.com/mailman/listinfo/libvirt-users</a></pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 

        William A. Mahaffey III

 ----------------------------------------------------------------------

        "The M1 Garand is without doubt the finest implement of war
         ever devised by man."
                           -- Gen. George S. Patton Jr.
</pre>
  </body>
</html>