Re: Error while installing a guest

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06/12/2012 06:57 PM, Pankaj Rawat wrote:
#qemu-img info /var/lib/libvirt/images/g2
image: /var/lib/libvirt/images/g2
file format: qcow2
virtual size: 8.0G (8589934592 bytes)
disk size: 136K
cluster_size: 65536
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
explicitly specify 'format=qcow2' the guest image will default is 'raw' format, but your image is 'qcow2', in addition, you also
missed 'size' parameter, however, if you're using an existing guest image file, it's also okay without specifying 'size' parameter,
With libvirt 0.8.3 and later, if reusing an existing qcow2 image, you need to specify 'format=qcow2'.

I want to know what files are put under the /mnt directory? BTW, I append 'size' parameter then change local installation to
network installation, you cmdline works well for me.

#/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=http://XXXX/x86_64/os/ --nographics --serial pty --extra-args=console=ttyS0,115200n8 --keymap=en --force

 # rpm -q libvirt python-virtinst
libvirt-0.9.10-21.el6.x86_64
python-virtinst-0.600.0-8.el6.noarch
[root@localhost libvirt-0.9.11]# ifconfig | grep br0
br0       Link encap:Ethernet  HWaddr 00:1A:4B:B9:E2:50  
virbr0    Link encap:Ethernet  HWaddr C6:F4:2E:7A:4C:25  

I tried prompt option but it does'nt work

# /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

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:
Ok I am attaching the file.

Please check your guest image size by qemu-img info or ll -h, for example: qemu-img info /var/lib/libvirt/images/g2,
and run 'ifconfig | grep br0' then paste output in here, thanks.

In addition, you may also use interactive virt-install to install a guest with --prompt option then step by step.
Regards
Pankaj Rawat


-----Original Message-----
From: Alex Jia [mailto:a...@xxxxxxxxxx]
Sent: Tuesday, June 12, 2012 11:38 AM
To: Pankaj Rawat
Cc: libvir-list@xxxxxxxxxx
Subject: Re:  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" <pankaj.ra...@xxxxxxxxxxx>
To: libvir-list@xxxxxxxxxx
Sent: Tuesday, June 12, 2012 1:56:05 PM
Subject:  Error while installing a guest





Hi all ,

I have SL6.2 x86_64 Installed on my system

I updated libvirt version from 0.9.4 to 0.9.11, I had removed previous libvirt via yum
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:-

[root@localhost libvirt-0.9.11]# /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

        The command line above normally works fine (I have created
          many vm by using same above command)
        
        
But here Following error comes

Starting install...
Retrieving file .treeinfo... | 768 B 00:00 ...
Retrieving file vmlinuz... | 7.5 MB 00:00 ...
Retrieving file initrd.img... 100% [=====================================================] 11 MB/s | 29 MB --:-- ETA
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:
2012-06-12 13:58:55.239+0000: 17800: error : qemuProcessReadLogOutput:1298 : internal error Process exited while reading console log output: 2012-06-12 14:04:12.120+0000: 17802: warning : qemuDomainObjTaint:1227 : Domain id=3 name='g3' uuid=fec6cb5a-d4ea-d2c9-505c-611227fb4f4c is tainted: high-privileges 2012-06-12 13:58:55.239+0000: 17800: error : qemuProcessReadLogOutput:1298 : internal error Process exited while reading console lo
I dont know how to resolve this .

Regards

Pankaj Rawat

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. .

-----------------------------------------------------------------------------------------------------------------------
--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list
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. .
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. .

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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]