WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] restarting xend error when creating DomU

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] restarting xend error when creating DomU
From: Peter.Weiss@xxxxxxxxx
Date: Tue, 03 Jan 2006 14:09:48 +0100
Delivery-date: Tue, 03 Jan 2006 13:15:07 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux)
Hello

on my opensuse 10.0 I've a problem since upgrading to xen-3.0_8259 rpms:

Each time a issue a /etc/init.d/xend stop/start I get an error when creating
a Domain:

# xm create -c xen1
Using config file "/etc/xen/xen1".
Error: Device 0 (vif) could not be connected. Hotplug scripts not working.

After rebooting Dom0 everything works.

>From the log I see:

[2006-01-03 14:03:27 xend.XendDomainInfo] DEBUG (XendDomainInfo:177) 
XendDomainInfo.create(['vm', ['name', 'xen1'], ['memory', '256'], ['image', 
['linux', ['kernel', '/boot/vmlinuz-xen'], ['ramdisk', '/boot/initrd-xen'], 
['root', '/dev/sda1'], ['args', '3'], ['vcpus', '1'], ['vcpus', '1'], ['boot', 
'c'], ['display', 'localhost:10.0'], ['nics', '1']]], ['device', ['vbd', 
['uname', 'file:/export/Xen/xenvol1'], ['dev', 'sda1'], ['mode', 'w']]], 
['device', ['vif', ['mac', '00:0b:cd:68:1c:6a'], ['bridge', 'xenbr0']]]])
[2006-01-03 14:03:27 xend.XendDomainInfo] DEBUG (XendDomainInfo:282) 
parseConfig: config is ['vm', ['name', 'xen1'], ['memory', '256'], ['image', 
['linux', ['kernel', '/boot/vmlinuz-xen'], ['ramdisk', '/boot/initrd-xen'], 
['root', '/dev/sda1'], ['args', '3'], ['vcpus', '1'], ['vcpus', '1'], ['boot', 
'c'], ['display', 'localhost:10.0'], ['nics', '1']]], ['device', ['vbd', 
['uname', 'file:/export/Xen/xenvol1'], ['dev', 'sda1'], ['mode', 'w']]], 
['device', ['vif', ['mac', '00:0b:cd:68:1c:6a'], ['bridge', 'xenbr0']]]]
[2006-01-03 14:03:27 xend.XendDomainInfo] DEBUG (XendDomainInfo:374) 
parseConfig: result is {'ssidref': None, 'uuid': None, 'on_crash': None, 
'on_reboot': None, 'image': ['linux', ['kernel', '/boot/vmlinuz-xen'], 
['ramdisk', '/boot/initrd-xen'], ['root', '/dev/sda1'], ['args', '3'], 
['vcpus', '1'], ['vcpus', '1'], ['boot', 'c'], ['display', 'localhost:10.0'], 
['nics', '1']], 'on_poweroff': None, 'cpus': None, 'name': 'xen1', 'backend': 
[], 'vcpus': 1, 'cpu_weight': None, 'vcpu_avail': None, 'memory': 256, 
'device': [('vbd', ['vbd', ['uname', 'file:/export/Xen/xenvol1'], ['dev', 
'sda1'], ['mode', 'w']]), ('vif', ['vif', ['mac', '00:0b:cd:68:1c:6a'], 
['bridge', 'xenbr0']])], 'bootloader': None, 'cpu': None, 'maxmem': None}
[2006-01-03 14:03:27 xend.XendDomainInfo] DEBUG (XendDomainInfo:1129) 
XendDomainInfo.construct: None 0
[2006-01-03 14:03:27 xend.XendDomainInfo] DEBUG (XendDomainInfo:1161) 
XendDomainInfo.initDomain: 6 1.0
[2006-01-03 14:03:27 xend] DEBUG (balloon:84) Balloon: free 1764; need 257; 
done.
[2006-01-03 14:03:27 xend] INFO (image:132) buildDomain os=linux dom=6 vcpus=1
[2006-01-03 14:03:27 xend] DEBUG (image:170) dom            = 6
[2006-01-03 14:03:27 xend] DEBUG (image:171) image          = /boot/vmlinuz-xen
[2006-01-03 14:03:27 xend] DEBUG (image:172) store_evtchn   = 1
[2006-01-03 14:03:27 xend] DEBUG (image:173) console_evtchn = 2
[2006-01-03 14:03:27 xend] DEBUG (image:174) cmdline        =  root=/dev/sda1 3
[2006-01-03 14:03:27 xend] DEBUG (image:175) ramdisk        = /boot/initrd-xen
[2006-01-03 14:03:27 xend] DEBUG (image:176) vcpus          = 1
[2006-01-03 14:03:27 xend] DEBUG (blkif:24) exception looking up device number 
for sda1: [Errno 2] No such file or directory: '/dev/sda1'
[2006-01-03 14:03:27 xend] DEBUG (DevController:104) DevController: writing 
{'virtual-device': '2049', 'backend-id': '0', 'state': '1', 'backend': 
'/local/domain/0/backend/vbd/6/2049'} to /local/domain/6/device/vbd/2049.
[2006-01-03 14:03:27 xend] DEBUG (DevController:106) DevController: writing 
{'domain': 'xen1', 'frontend': '/local/domain/6/device/vbd/2049', 'dev': 
'sda1', 'state': '1', 'params': '/export/Xen/xenvol1', 'mode': 'w', 
'frontend-id': '6', 'type': 'file'} to /local/domain/0/backend/vbd/6/2049.
[2006-01-03 14:03:27 xend] DEBUG (DevController:104) DevController: writing 
{'backend-id': '0', 'mac': '00:0b:cd:68:1c:6a', 'handle': '0', 'state': '1', 
'backend': '/local/domain/0/backend/vif/6/0'} to /local/domain/6/device/vif/0.
[2006-01-03 14:03:27 xend] DEBUG (DevController:106) DevController: writing 
{'bridge': 'xenbr0', 'domain': 'xen1', 'handle': '0', 'script': 
'/etc/xen/scripts/vif-bridge', 'state': '1', 'frontend': 
'/local/domain/6/device/vif/0', 'mac': '00:0b:cd:68:1c:6a', 'frontend-id': '6'} 
to /local/domain/0/backend/vif/6/0.
[2006-01-03 14:03:27 xend.XendDomainInfo] DEBUG (XendDomainInfo:661) Storing VM 
details: {'ssidref': '0', 'uuid': 'b7bc2438-a49f4cce-dac05593-805a313a', 
'on_reboot': 'restart', 'start_time': '1136293407.4', 'on_poweroff': 'destroy', 
'name': 'xen1', 'vcpus': '1', 'vcpu_avail': '1', 'memory': '256', 'on_crash': 
'restart', 'image': '(linux (kernel /boot/vmlinuz-xen) (ramdisk 
/boot/initrd-xen) (root /dev/sda1) (args 3) (vcpus 1) (vcpus 1) (boot c) 
(display localhost:10.0) (nics 1))', 'maxmem': '256'}
[2006-01-03 14:03:27 xend.XendDomainInfo] DEBUG (XendDomainInfo:686) Storing 
domain details: {'console/ring-ref': '459357', 'console/port': '2', 'name': 
'xen1', 'console/limit': '1048576', 'vm': 
'/vm/b7bc2438-a49f4cce-dac05593-805a313a', 'domid': '6', 'cpu/0/availability': 
'online', 'memory/target': '262144', 'store/ring-ref': '459358', 'store/port': 
'1'}
[2006-01-03 14:03:27 xend] DEBUG (DevController:133) Waiting for devices vif.
[2006-01-03 14:03:27 xend] DEBUG (DevController:139) Waiting for 0.
[2006-01-03 14:03:27 xend] DEBUG (DevController:409) hotplugStatusCallback 
/local/domain/0/backend/vif/6/0/hotplug-status.
[2006-01-03 14:03:37 xend] ERROR (SrvBase:87) Request wait_for_devices failed.
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/xen/web/SrvBase.py", line 85, in 
perform
    return op_method(op, req)
  File "/usr/lib/python2.4/site-packages/xen/xend/server/SrvDomain.py", line 
72, in op_wait_for_devices
    return self.dom.waitForDevices()
  File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 
1349, in waitForDevices
    self.waitForDevices_(c)
  File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 977, 
in waitForDevices_
    return self.getDeviceController(deviceClass).waitForDevices()
  File "/usr/lib/python2.4/site-packages/xen/xend/server/DevController.py", 
line 135, in waitForDevices
    return map(self.waitForDevice, self.deviceIDs())
  File "/usr/lib/python2.4/site-packages/xen/xend/server/DevController.py", 
line 145, in waitForDevice
    raise VmError("Device %s (%s) could not be connected. "
VmError: Device 0 (vif) could not be connected. Hotplug scripts not working.


Any ideas??

TIA -- Peter

-- 
Peter.Weiss@xxxxxxxxx                         ConSol* Software GmbH
Phone  +49 89 45841-100                       Consulting & Solutions
Mobile +49 177 6040121                        Franziskanerstr. 38
http://www.consol.de                          D-81669 München


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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] restarting xend error when creating DomU, Peter . Weiss <=