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

Re: [Xen-users] Virt-install not working


  • To: amazab@xxxxxxxx, Alain Barthe <ab266061@xxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
  • From: Boris Derzhavets <bderzhavets@xxxxxxxxx>
  • Date: Thu, 29 May 2008 10:56:52 -0700 (PDT)
  • Delivery-date: Thu, 29 May 2008 10:57:32 -0700
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=4+pSNypGIHH7S34lxXHZA7UHOggFbbS2WekZukTlfYjFuPRRo8l/zuvhSLeG2Qp+ON+G3tmAFBdLUhmLfv4+HnaGqWuirdxYq3vtLLQYSWsHIKK0LM3onhnceslVlKv2lCZgLeilEJirnyvpUnLyMhC8QTKyPCbutBjzKCQaxaA=;
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

*************************************************
Trying to reproduce on Xen 3.2.1 F8 Dom0 (64-bit)
**************************************************

Before follow Alain:-

[root@serverf8xen32 ~]# yum install python-virtinst
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package python-virtinst.noarch 0:0.300.2-4.fc8 set to be updated
--> Processing Dependency: libvirt-python >= 0.2.1 for package: python-virtinst
--> Running transaction check
---> Package libvirt-python.x86_64 0:0.4.2-1.fc8 set to be updated
--> Processing Dependency: libvirt = 0.4.2 for package: libvirt-python
--> Processing Dependency: libxenstore.so.3.0()(64bit) for package: libvirt-python
--> Processing Dependency: libvirt.so.0()(64bit) for package: libvirt-python
--> Running transaction check
---> Package libvirt.x86_64 0:0.4.2-1.fc8 set to be updated
--> Processing Dependency: /usr/bin/qemu-img for package: libvirt
--> Processing Dependency: iscsi-initiator-utils for package: libvirt
---> Package xen-libs.x86_64 0:3.1.2-2.fc8 set to be updated
--> Running transaction check
---> Package iscsi-initiator-utils.x86_64 0:6.2.0.865-0.2.fc8 set to be updated
---> Package qemu.x86_64 0:0.9.0-7.fc8 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 python-virtinst         noarch     0.300.2-4.fc8    updates           157 k
Installing for dependencies:
 iscsi-initiator-utils   x86_64     6.2.0.865-0.2.fc8  fedora            531 k
 libvirt                 x86_64     0.4.2-1.fc8      updates           1.1 M
 libvirt-python          x86_64     0.4.2-1.fc8      updates            84 k
 qemu                    x86_64     0.9.0-7.fc8      updates           4.4 M
 xen-libs                x86_64     3.1.2-2.fc8      updates           144 k

Transaction Summary
=============================================================================
Install      6 Package(s)        
Update       0 Package(s)        
Remove       0 Package(s)        

Total download size: 6.4 M
Is this ok [y/N]: y
Downloading Packages:
(1/6): qemu-0.9.0-7.fc8.x 100% |=========================| 4.4 MB    02:38    
(2/6): xen-libs-3.1.2-2.f 100% |=========================| 144 kB    00:04    
(3/6): iscsi-initiator-ut 100% |=========================| 531 kB    00:17    
(4/6): python-virtinst-0. 100% |=========================| 157 kB    00:05    
(5/6): libvirt-python-0.4 100% |=========================|  84 kB    00:02    
(6/6): libvirt-0.4.2-1.fc 100% |=========================| 1.1 MB    00:37    
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: xen-libs                     ######################### [1/6]
  Installing: qemu                         ######################### [2/6]
  Installing: iscsi-initiator-utils        ######################### [3/6]
  Installing: libvirt                      ######################### [4/6]
  Installing: libvirt-python               ######################### [5/6]
  Installing: python-virtinst              ######################### [6/6]

Installed: python-virtinst.noarch 0:0.300.2-4.fc8
Dependency Installed: iscsi-initiator-utils.x86_64 0:6.2.0.865-0.2.fc8 libvirt.x86_64 0:0.4.2-1.fc8 libvirt-python.x86_64 0:0.4.2-1.fc8 qemu.x86_64 0:0.9.0-7.fc8 xen-libs.x86_64 0:3.1.2-2.fc8
Complete!
[root@serverf8xen32 ~]# ls -l /usr/bin/virt-install
-rwxr-xr-x 1 root root 21079 2008-03-19 15:05 /usr/bin/virt-install

Next:-
bridge name     bridge id               STP enabled     interfaces
eth2            8000.001e8c25cca5       no              peth2
virbr0          8000.000000000000       yes

Make changes to /etc/xen/xend-conf.sxp

# service xend restart
# service libvitd restart

Known picture for F8.

Next:-
Mount loop RHEL51.iso on /mnt/tmp
and make it a share folder - add to /etc/exports , nfsd restart

Next:-

[root@serverf8xen32 isos]# virt-install
Would you like a fully virtualized guest (yes or no)?  This will allow you to run unmodified operating systems. no
 What is the name of your virtual machine? RHL51
 How much RAM should be allocated (in megabytes)? 1024
 What would you like to use as the disk (file path)? /dev/sdb11
 Would you like to enable graphics support? (yes or no) yes
 What is the install location? nfs:192.168.1.34:/mnt/tmp
 

Starting install...
libvir: Xen Daemon error : GET operation failed:
libvir: Xen Daemon error : GET operation failed:
libvir: Xen Daemon error : POST operation failed: (xend.err 'Device 0 (vif) could not be connected. Hotplug scripts not working.')
virDomainCreateLinux() failed POST operation failed: (xend.err 'Device 0 (vif) could not be connected. Hotplug scripts not working.')
Domain installation may not have been
 successful.  If it was, you can restart your domain
 by running 'virsh start RHL51'; otherwise, please
 restart your installation.
Thu, 29 May 2008 13:37:03 ERROR    virDomainCreateLinux() failed POST operation failed: (xend.err 'Device 0 (vif) could not be connected. Hotplug scripts not working.')
Traceback (most recent call last):
  File "/usr/sbin/virt-install", line 502, in <module>
    main()
  File "/usr/sbin/virt-install", line 462, in main
    dom = guest.start_install(conscb,progresscb)
  File "/usr/lib/python2.5/site-packages/virtinst/Guest.py", line 813, in start_install
    return self._do_install(consolecb, meter)
  File "/usr/lib/python2.5/site-packages/virtinst/Guest.py", line 834, in _do_install
    self.domain = self.conn.createLinux(install_xml, 0)
  File "/usr/lib64/python2.5/site-packages/libvirt.py", line 833, in createLinux
    if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self)
libvirtError: virDomainCreateLinux() failed POST operation failed: (xend.err 'Device 0 (vif) could not be connected. Hotplug scripts not working.')

/var/log/xend/xend.log:-

[2008-05-29 13:35:21 24964] DEBUG (XendDomainInfo:1092) XendDomainInfo.handleShutdownWatch
[2008-05-29 13:35:21 24964] DEBUG (DevController:151) Waiting for devices vif.
[2008-05-29 13:35:21 24964] DEBUG (DevController:156) Waiting for 0.
[2008-05-29 13:35:21 24964] DEBUG (DevController:595) hotplugStatusCallback /local/domain/0/backend/vif/5/0/hotplug-status.
[2008-05-29 13:36:19 24964] INFO (XendDomain:1165) Domain RHL51 (5) unpaused.
[2008-05-29 13:37:01 24964] ERROR (SrvBase:88) Request wait_for_devices failed.
Traceback (most recent call last):
  File "//usr/lib64/python/xen/web/SrvBase.py", line 85, in perform
    return op_method(op, req)
  File "//usr/lib64/python/xen/xend/server/SrvDomain.py", line 85, in op_wait_for_devices
    return self.dom.waitForDevices()
  File "//usr/lib64/python/xen/xend/XendDomainInfo.py", line 586, in waitForDevices
    self.getDeviceController(devclass).waitForDevices()
  File "//usr/lib64/python/xen/xend/server/DevController.py", line 152, in waitForDevices
    return map(self.waitForDevice, self.deviceIDs())
  File "//usr/lib64/python/xen/xend/server/DevController.py", line 167, in waitForDevice
    (devid, self.deviceClass))
VmError: Device 0 (vif) could not be connected. Hotplug scripts not working.
[2008-05-29 13:37:02 24964] DEBUG (XendDomainInfo:1897) XendDomainInfo.destroy: domid=5
[2008-05-29 13:37:02 24964] DEBUG (XendDomainInfo:1914) XendDomainInfo.destroyDomain(5)
[2008-05-29 13:37:02 24964] DEBUG (XendDomainInfo:1529) Destroying device model
[2008-05-29 13:37:02 24964] DEBUG (XendDomainInfo:1536) Releasing devices
[2008-05-29 13:37:02 24964] DEBUG (XendDomainInfo:1542) Removing vif/0
[2008-05-29 13:37:02 24964] DEBUG (XendDomainInfo:590) XendDomainInfo.destroyDevice: deviceClass = vif, device = vif/0
[2008-05-29 13:37:02 24964] DEBUG (XendDomainInfo:1542) Removing vbd/51712
[2008-05-29 13:37:02 24964] DEBUG (XendDomainInfo:590) XendDomainInfo.destroyDevice: deviceClass = vbd, device = vbd/51712
[2008-05-29 13:37:02 24964] DEBUG (XendDomainInfo:1542) Removing vkbd/0
[2008-05-29 13:37:02 24964] DEBUG (XendDomainInfo:590) XendDomainInfo.destroyDevice: deviceClass = vkbd, device = vkbd/0
[2008-05-29 13:37:02 24964] DEBUG (XendDomainInfo:1542) Removing vfb/0
[2008-05-29 13:37:02 24964] DEBUG (XendDomainInfo:590) XendDomainInfo.destroyDevice: deviceClass = vfb, device = vfb/0
[2008-05-29 13:37:02 24964] DEBUG (XendDomainInfo:1542) Removing console/0
[2008-05-29 13:37:03 24964] DEBUG (XendDomainInfo:590) XendDomainInfo.destroyDevice: deviceClass = console, device = console/
0
[2008-05-29 13:37:03 24964] DEBUG (XendDomainInfo:1534) No device model
[2008-05-29 13:37:03 24964] DEBUG (XendDomainInfo:1536) Releasing devices
[2008-05-29 13:38:25 24964] DEBUG (DevController:595) hotplugStatusCallback /local/domain/0/backend/vif/5/0/hotplug-status.
[2008-05-29 13:38:25 24964] DEBUG (DevController:595) hotplugStatusCallback /local/domain/0/backend/vif/5/0/hotplug-status.
[2008-05-29 13:38:25 24964] DEBUG (DevController:595) hotplugStatusCallback /local/domain/0/backend/vif/5/0/hotplug-status.
[2008-05-29 13:38:25 24964] DEBUG (DevController:595) hotplugStatusCallback /local/domain/0/backend/vif/5/0/hotplug-status.

----- Original Message ----
From: "amazab@xxxxxxxx" <amazab@xxxxxxxx>
To: Alain Barthe <ab266061@xxxxxxxxx>; xen-users@xxxxxxxxxxxxxxxxxxx
Sent: Thursday, May 29, 2008 12:39:59 PM
Subject: Re: [Xen-users] Virt-install not working

It worked, Thanks Alain.

However, I still have further problems:

1- I still cannot get "Virtual Machine Manager" to work, I feel it is
another configurations problem

2- I created a domain using the "xm create <domain name>" then I just shut
it down. When I do "xm start <domain name>" it says "<domain name> does
not exist". How can I get xm to recognize previously created domains.

3- How can I see the Xen logs from Dom-0. Where are they saved? Is there a
specific toold to see events that occur in the hypervisor during the real
time?

Ahmed

> With xen 3.0, the parameter "xend-unix-server" must be set to  "yes" in
> the
> /etc/xen/xend-config.sxp configuration file for virt-manager and
> virt-install to work. It is set to "no" by default. Maybe it is the same
> with xen 3.2.
>
> Hope this helps.
>
> Alain Barthe
>
> 2008/5/29 <amazab@xxxxxxxx>:
>
>> Hi all,
>>
>> I installed Xen 3.2.1 on FC8 from the source, It is working fine and I
>> even created a virtual machine, however I cannot use the "Virtual
>> Machine
>> Manager" it does not even respond and when I try to use virt-install, I
>> get the message:
>>
>> Traceback (most recent call last):
>>  File "/usr/sbin/virt-install", line 502, in <module>
>>    main()
>>  File "/usr/sbin/virt-install", line 345, in main
>>    conn = cli.getConnection(options.connect)
>>  File "/usr/lib/python2.5/site-packages/virtinst/cli.py", line 76, in
>> getConnection
>>    return libvirt.open(connect)
>>  File "/usr/lib/python2.5/site-packages/libvirt.py", line 135, in open
>>    if ret is None:raise libvirtError('virConnectOpen() failed')
>> libvirtError: virConnectOpen() failed
>>
>>
>> Thanks In Advance,
>> Ahmed
>>
>> _______________________________________________
>> Xen-users mailing list
>> Xen-users@xxxxxxxxxxxxxxxxxxx
>> http://lists.xensource.com/xen-users
>>
>


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.