<!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 06/12/2012 06:57 PM, Pankaj Rawat wrote:
    <blockquote
cite="mid:1CBE44849FCEE343832C9730C18CA6BD1F33502B@NECHCLMB02.nechclst.in"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
      <div style="direction: ltr; font-family: Tahoma; color: rgb(0, 0,
        0); font-size: 10pt;">
        <pre style="margin: 0em;">
<span style="font-weight: bold;">#qemu-img info /var/lib/libvirt/images/g2</span>
image: /var/lib/libvirt/images/g2
file format: qcow2
virtual size: 8.0G (8589934592 bytes)
disk size: 136K
cluster_size: 65536
</pre>
      </div>
    </blockquote>
    The image file is manually created by you? I haven't see any 'size' 
    and 'format' parameters in virt-install cmdline, if you haven't<br>
    explicitly specify 'format=qcow2' the guest image will default is
    'raw' format, but your image is 'qcow2', in addition, you also <br>
    missed 'size' parameter, however, if you're using an existing guest
    image file, it's also okay without specifying 'size' parameter,<br>
    With libvirt 0.8.3 and later, if reusing an existing qcow2 image,
    you need to specify 'format=qcow2'.<br>
    <br>
    I want to know what files are put under the /mnt directory? BTW, I
    append 'size' parameter then change local installation to<br>
    network installation, you cmdline works well for me.<br>
    <br>
    #/usr/bin/python -tt /usr/sbin/virt-install --accelerate --hvm
    --connect qemu:///system --name g3 --vcpu=1 --ram 1024
    --os-type=linux --os-variant=rhel6 --network bridge:virbr0 --disk
    /var/lib/libvirt/images/g2,size=8
    --disk=/mnt/boot.iso,device=cdrom,perms=ro
    --location=<a class="moz-txt-link-freetext" href="http://XXXX/x86_64/os/">http://XXXX/x86_64/os/</a> --nographics --serial pty
    --extra-args=console=ttyS0,115200n8 --keymap=en --force<br>
    <br>
     # rpm -q libvirt python-virtinst<br>
    libvirt-0.9.10-21.el6.x86_64<br>
    python-virtinst-0.600.0-8.el6.noarch<br>
    <blockquote
cite="mid:1CBE44849FCEE343832C9730C18CA6BD1F33502B@NECHCLMB02.nechclst.in"
      type="cite">
      <div style="direction: ltr; font-family: Tahoma; color: rgb(0, 0,
        0); font-size: 10pt;">
        <pre style="margin: 0em;">
<span style="font-weight: bold;">[root@localhost libvirt-0.9.11]# ifconfig | grep br0</span>
br0       Link encap:Ethernet  HWaddr 00:1A:4B:B9:E2:50  
virbr0    Link encap:Ethernet  HWaddr C6:F4:2E:7A:4C:25  

<span style="font-weight: bold;">I tried prompt option but it does'nt work</span>

<span style="font-weight: bold;"># /usr/sbin/virt-install --accelerate --hvm --connect qemu:///system --name g3 --vcpu=1 --ram 1024  --os-type=linux --os-variant=rhel6  --network  bridge:br0 --disk /var/lib/libvirt/images/g2 --disk=/opt/SL-62-x86_64-2012-02-06-Install-DVD.iso,device=cdrom,perms=ro  --location=/mnt/ --nographics --serial pty --extra-args=console=ttyS0,115200n8 --keymap=en --force --prompt</span>

Starting install...
Retrieving file .treeinfo...                                                                                                          |  768 B     00:00 ... 
Retrieving file vmlinuz...                                                                                                            | 7.5 MB     00:00 ... 
Retrieving file initrd.img...                                                                                                         |  59 MB     00:00 ... 
ERROR    internal error Process exited while reading console log output: 
Domain installation does not appear to have been successful.
If it was, you can restart your domain by running:
  virsh --connect qemu:///system start g3
otherwise, please restart your installation.


On 06/12/2012 05:55 PM, Pankaj Rawat wrote:
</pre>
        <blockquote style="border-left: 0.2em solid rgb(85, 85, 238);
          margin: 0em; padding-left: 0.85em;">
          <pre style="margin: 0em;">Ok I am attaching the file.

</pre>
        </blockquote>
        <tt>Please check your guest image size by qemu-img info or ll
          -h, for </tt><tt>example: qemu-img info
          /var/lib/libvirt/images/g2,
        </tt>
        <pre style="margin: 0em;">and run 'ifconfig | grep br0' then paste output in here, thanks.

</pre>
        <tt>In addition, you may also use interactive virt-install to
          install a </tt><tt>guest with --prompt option then step by
          step.
        </tt>
        <pre style="margin: 0em;">Regards
Pankaj Rawat


-----Original Message-----
From: Alex Jia [<a moz-do-not-send="true" rel="nofollow" href="mailto:a...@redhat.com">mailto:a...@redhat.com</a>]
Sent: Tuesday, June 12, 2012 11:38 AM
To: Pankaj Rawat
Cc: <a class="moz-txt-link-abbreviated" href="mailto:libvir-list@redhat.com">libvir-list@redhat.com</a>
Subject: Re: [libvirt] Error while installing a guest

Hi Pankaj,
Could you attach your virt-install.log as an attachment?
it locals in ~/.virtinst/virt-install.log.

Or Is it okay if you also upgrade your python-virtinst?

Thanks,
Alex


----- Original Message -----
From: "Pankaj Rawat" <a class="moz-txt-link-rfc2396E" href="mailto:pankaj.ra...@nechclst.in"><pankaj.ra...@nechclst.in></a>
To: <a class="moz-txt-link-abbreviated" href="mailto:libvir-list@redhat.com">libvir-list@redhat.com</a>
Sent: Tuesday, June 12, 2012 1:56:05 PM
Subject: [libvirt] Error while installing a guest





Hi all ,

I have SL6.2 x86_64 Installed on my system

</pre>
        <tt>I updated libvirt version from 0.9.4 to 0.9.11, I had
          removed previous </tt><tt>libvirt via yum
        </tt>
        <pre style="margin: 0em;">I done this by compiling the source.



I started libvirt daemon created by compiling source :

# ./root/libvirt_0.9.11/build/daomen/libvirtd



Now I tried to create a guest:-

</pre>
        <tt>[root@localhost libvirt-0.9.11]# /usr/sbin/virt-install
          --accelerate </tt><tt>--hvm --connect qemu:///system --name
          g3 --vcpu=1 --ram 1024
        </tt><tt>--os-type=linux --os-variant=rhel6 --network bridge:br0
          --disk </tt><tt>/var/lib/libvirt/images/g2
        </tt><tt>--disk=/opt/SL-62-x86_64-2012-02-06-Install-DVD.iso,device=cdrom,perms=ro
        </tt><tt>--location=/mnt/ --nographics --serial pty </tt><tt>--extra-args=console=ttyS0,115200n8
          --keymap=en --force
        </tt>
        <pre style="margin: 0em;">
</pre>
        <tt>The command line above normally works fine (I have created
          many vm by </tt><tt>using same above command)
        </tt>
        <pre style="margin: 0em;">
But here Following error comes

Starting install...
Retrieving file .treeinfo... | 768 B 00:00 ...
Retrieving file vmlinuz... | 7.5 MB 00:00 ...
</pre>
        <tt>Retrieving file initrd.img... 100% </tt><tt>[=====================================================]
          11 MB/s | 29
        </tt><tt>MB --:-- ETA </tt>
        <pre style="margin: 0em;">Retrieving file initrd.img... | 59 MB 00:09 ...
ERROR internal error Process exited while reading console log output:
Domain installation does not appear to have been successful.
If it was, you can restart your domain by running:
virsh --connect qemu:///system start g3
otherwise, please restart your installation.

at libvirtd console following output comes:
</pre>
        <tt>2012-06-12 13:58:55.239+0000: 17800: error : </tt><tt>qemuProcessReadLogOutput:1298
          : internal error Process exited while
        </tt><tt>reading console log output: </tt><tt>2012-06-12
          14:04:12.120+0000: 17802: warning : qemuDomainObjTaint:1227
        </tt><tt>: Domain id=3 name='g3'
          uuid=fec6cb5a-d4ea-d2c9-505c-611227fb4f4c is </tt>
        <tt>tainted: high-privileges </tt><tt>2012-06-12
          13:58:55.239+0000: 17800: error :
        </tt><tt>qemuProcessReadLogOutput:1298 : internal error Process
          exited while </tt>
        <tt>reading console lo </tt>
        <pre style="margin: 0em;">
I dont know how to resolve this .

Regards

Pankaj Rawat

DISCLAIMER:

</pre>
        <tt>-----------------------------------------------------------------------------------------------------------------------
        </tt>
        <pre style="margin: 0em;">The contents of this e-mail and any attachment(s) are confidential and
intended

for the named recipient(s) only.

It shall not attach any liability on the originator or NECHCL or its

affiliates. Any views or opinions presented in

</pre>
        <tt>this email are solely those of the author and may not
          necessarily </tt><tt>reflect the
        </tt>
        <pre style="margin: 0em;">opinions of NECHCL or its affiliates.

</pre>
        <tt>Any form of reproduction, dissemination, copying,
          disclosure, </tt><tt>modification,
        </tt>
        <pre style="margin: 0em;">distribution and / or publication of

</pre>
        <tt>this message without the prior written consent of the author
          of this </tt><tt>e-mail is
        </tt>
        <pre style="margin: 0em;">strictly prohibited. If you have

received this email in error please delete it and notify the sender

immediately. .

</pre>
        <tt>-----------------------------------------------------------------------------------------------------------------------
        </tt>
        <pre style="margin: 0em;">--
libvir-list mailing list
<a class="moz-txt-link-abbreviated" href="mailto:libvir-list@redhat.com">libvir-list@redhat.com</a>
<a moz-do-not-send="true" rel="nofollow" href="https://www.redhat.com/mailman/listinfo/libvir-list">https://www.redhat.com/mailman/listinfo/libvir-list</a>
DISCLAIMER:

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

The contents of this e-mail and any attachment(s) are confidential and
intended

for the named recipient(s) only.

It shall not attach any liability on the originator or NECHCL or its

affiliates. Any views or opinions presented in

this email are solely those of the author and may not necessarily reflect the

opinions of NECHCL or its affiliates.

Any form of reproduction, dissemination, copying, disclosure, modification,

distribution and / or publication of

this message without the prior written consent of the author of this e-mail is

strictly prohibited. If you have

received this email in error please delete it and notify the sender

immediately. .
</pre>
      </div>
      <pre>
DISCLAIMER:

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

The contents of this e-mail and any attachment(s) are confidential and
intended

for the named recipient(s) only. 

It shall not attach any liability on the originator or NECHCL or its

affiliates. Any views or opinions presented in 

this email are solely those of the author and may not necessarily reflect the

opinions of NECHCL or its affiliates. 

Any form of reproduction, dissemination, copying, disclosure, modification,

distribution and / or publication of 

this message without the prior written consent of the author of this e-mail is

strictly prohibited. If you have 

received this email in error please delete it and notify the sender

immediately. .

-----------------------------------------------------------------------------------------------------------------------</pre>
    </blockquote>
    <br>
  </body>
</html>