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] Bug or PEBCAK ? Rebooting DomU with PCI-Device fails in Xen

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Bug or PEBCAK ? Rebooting DomU with PCI-Device fails in Xen 3
From: Sebastian Himberger <sebastian.himberger@xxxxxx>
Date: Thu, 22 Jun 2006 20:19:59 +0200
Delivery-date: Thu, 22 Jun 2006 11:20:47 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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: Thunderbird 1.5.0.4 (X11/20060615)
Hi List,

i have the Xen-kernel from backports.org running on my debian stable
machine. It works quite well but as i reboot a DomU with a physical NIC
assigned to it (using the "pci="-option) it won't restart. I did a
little googling and came across the following error:

http://lists.xensource.com/archives/html/xen-users/2006-05/msg00107.html

But this don't seem to be my exact problem since the error message in
xend.log is different. Is this a bug in xen or am i missing something.
Any hint's or help would be greatly appreciated. Maybe i'm just too dumb
to get it right. I've attached my config file and a stacktrace to this mail.

Thanks very much in advance

Sebastian

------------- config file -------------

kernel = "/boot/vmlinuz-2.6.16-2-xen-686"
ramdisk="/boot/initrd.img-2.6.16-2-xen-686"
memory = 64
name = "wwwserver"
#vif = [ '' ]
pci = ['0000:02:05.0']
disk = [
'phy:/dev/vg0/wwwserver,hda1,w','phy:/dev/vg0/wwwdata,hda2,w','phy:/dev/vg0/wwwswap,hda5,w'
]
root = "/dev/hda1 ro"
extra = "4"

--------------- /config file -----------


-------------- stacktrace ------------

[2006-06-21 19:15:45 xend.XendDomainInfo] INFO (XendDomainInfo:836)
Domain has shutdown: name=wwwserver id=1 reason=reboot.
[2006-06-21 19:15:45 xend.XendDomainInfo] DEBUG (XendDomainInfo:1335)
XendDomainInfo.destroyDomain(1)
[2006-06-21 19:15:45 xend.XendDomainInfo] DEBUG (XendDomainInfo:178)
XendDomainInfo.create(['domain', ['domid', 1], ['uuid',
'd252a115-a29a-6a47-8bb0-62820eca17db'], ['ssidref', 0
], ['vcpus', 1], ['vcpu_avail', 1], ['cpu_weight', 1.0], ['memory', 64],
['maxmem', 64], ['name', 'wwwserver'], ['on_poweroff', 'destroy'],
['on_reboot', 'restart'], ['on_crash',
'restart'], ['image', ['linux', ['kernel',
'/boot/vmlinuz-2.6.16-2-xen-686'], ['ramdisk',
'/boot/initrd.img-2.6.16-2-xen-686'], ['root', '/dev/hda1 ro'], ['args',
'4']]], ['device
', ['vbd', ['backend', 0], ['dev', 'hda1'], ['uname',
'phy:/dev/vg0/wwwserver'], ['mode', 'w']]], ['device', ['vbd',
['backend', 0], ['dev', 'hda2'], ['uname', 'phy:/dev/vg0/wwwda
ta'], ['mode', 'w']]], ['device', ['vbd', ['backend', 0], ['dev',
'hda5'], ['uname', 'phy:/dev/vg0/wwwswap'], ['mode', 'w']]], ['device',
['pci', ['backend', 0]]], ['state', '---s
--'], ['shutdown_reason', 'reboot'], ['cpu_time', 9.1634053200000007],
['online_vcpus', 1], ['up_time', '53.5487999916'], ['start_time',
'1150910092.39'], ['store_mfn', 69747], ['
console_mfn', 69746]])
[2006-06-21 19:15:45 xend.XendDomainInfo] DEBUG (XendDomainInfo:284)
parseConfig: config is ['domain', ['domid', 1], ['uuid',
'd252a115-a29a-6a47-8bb0-62820eca17db'], ['ssidref',
0], ['vcpus', 1], ['vcpu_avail', 1], ['cpu_weight', 1.0], ['memory',
64], ['maxmem', 64], ['name', 'wwwserver'], ['on_poweroff', 'destroy'],
['on_reboot', 'restart'], ['on_crash',
'restart'], ['image', ['linux', ['kernel',
'/boot/vmlinuz-2.6.16-2-xen-686'], ['ramdisk',
'/boot/initrd.img-2.6.16-2-xen-686'], ['root', '/dev/hda1 ro'], ['args',
'4']]], ['devic
e', ['vbd', ['backend', 0], ['dev', 'hda1'], ['uname',
'phy:/dev/vg0/wwwserver'], ['mode', 'w']]], ['device', ['vbd',
['backend', 0], ['dev', 'hda2'], ['uname', 'phy:/dev/vg0/wwwd
ata'], ['mode', 'w']]], ['device', ['vbd', ['backend', 0], ['dev',
'hda5'], ['uname', 'phy:/dev/vg0/wwwswap'], ['mode', 'w']]], ['device',
['pci', ['backend', 0]]], ['state', '---
s--'], ['shutdown_reason', 'reboot'], ['cpu_time', 9.1634053200000007],
['online_vcpus', 1], ['up_time', '53.5487999916'], ['start_time',
'1150910092.39'], ['store_mfn', 69747], [
'console_mfn', 69746]]
[2006-06-21 19:15:45 xend.XendDomainInfo] DEBUG (XendDomainInfo:380)
parseConfig: result is {'ssidref': 0, 'uuid':
'd252a115-a29a-6a47-8bb0-62820eca17db', 'on_crash': 'restart', '
on_reboot': 'restart', 'image': ['linux', ['kernel',
'/boot/vmlinuz-2.6.16-2-xen-686'], ['ramdisk',
'/boot/initrd.img-2.6.16-2-xen-686'], ['root', '/dev/hda1 ro'], ['args',
'4']],
'on_poweroff': 'destroy', 'cpus': None, 'name': 'wwwserver', 'backend':
[], 'vcpus': 1, 'cpu_weight': 1.0, 'vcpu_avail': 1, 'memory': 64,
'device': [('vbd', ['vbd', ['backend', 0
], ['dev', 'hda1'], ['uname', 'phy:/dev/vg0/wwwserver'], ['mode',
'w']]), ('vbd', ['vbd', ['backend', 0], ['dev', 'hda2'], ['uname',
'phy:/dev/vg0/wwwdata'], ['mode', 'w']]), ('vb
d', ['vbd', ['backend', 0], ['dev', 'hda5'], ['uname',
'phy:/dev/vg0/wwwswap'], ['mode', 'w']]), ('pci', ['pci', ['backend',
0]])], 'bootloader': None, 'cpu': None, 'maxmem': 64}
[2006-06-21 19:15:45 xend.XendDomainInfo] DEBUG (XendDomainInfo:1164)
XendDomainInfo.construct: None 0
[2006-06-21 19:15:45 xend.XendDomainInfo] DEBUG (XendDomainInfo:1196)
XendDomainInfo.initDomain: 2 1.0
[2006-06-21 19:15:46 xend] DEBUG (balloon:130) Balloon: free 6; need 65.
[2006-06-21 19:15:46 xend] DEBUG (balloon:139) Balloon: setting dom0
target to 337.
[2006-06-21 19:15:46 xend.XendDomainInfo] DEBUG (XendDomainInfo:945)
Setting memory target of domain Domain-0 (0) to 337 MiB.
[2006-06-21 19:15:46 xend] DEBUG (balloon:126) Balloon: free 87; need
65; done.
[2006-06-21 19:15:46 xend] INFO (image:135) buildDomain os=linux dom=2
vcpus=1
[2006-06-21 19:15:46 xend] DEBUG (image:173) dom            = 2
[2006-06-21 19:15:46 xend] DEBUG (image:174) image          =
/boot/vmlinuz-2.6.16-2-xen-686
[2006-06-21 19:15:46 xend] DEBUG (image:175) store_evtchn   = 1
[2006-06-21 19:15:46 xend] DEBUG (image:176) console_evtchn = 2
[2006-06-21 19:15:46 xend] DEBUG (image:177) cmdline        =
root=/dev/hda1 ro 4
[2006-06-21 19:15:46 xend] DEBUG (image:178) ramdisk        =
/boot/initrd.img-2.6.16-2-xen-686
[2006-06-21 19:15:46 xend] DEBUG (image:179) vcpus          = 1
[2006-06-21 19:15:46 xend] DEBUG (image:180) features       =
[2006-06-21 19:15:46 xend] DEBUG (DevController:103) DevController:
writing {'virtual-device': '769', 'backend-id': '0', 'state': '1',
'backend': '/local/domain/0/backend/vbd/2/76
9'} to /local/domain/2/device/vbd/769.
[2006-06-21 19:15:46 xend] DEBUG (DevController:105) DevController:
writing {'domain': 'wwwserver', 'frontend':
'/local/domain/2/device/vbd/769', 'dev': 'hda1', 'state': '1', 'par
ams': '/dev/vg0/wwwserver', 'mode': 'w', 'frontend-id': '2', 'type':
'phy'} to /local/domain/0/backend/vbd/2/769.
[2006-06-21 19:15:46 xend] DEBUG (DevController:103) DevController:
writing {'virtual-device': '770', 'backend-id': '0', 'state': '1',
'backend': '/local/domain/0/backend/vbd/2/77
0'} to /local/domain/2/device/vbd/770.
[2006-06-21 19:15:46 xend] DEBUG (DevController:105) DevController:
writing {'domain': 'wwwserver', 'frontend':
'/local/domain/2/device/vbd/770', 'dev': 'hda2', 'state': '1', 'par
ams': '/dev/vg0/wwwdata', 'mode': 'w', 'frontend-id': '2', 'type':
'phy'} to /local/domain/0/backend/vbd/2/770.
[2006-06-21 19:15:46 xend] DEBUG (DevController:103) DevController:
writing {'virtual-device': '770', 'backend-id': '0', 'state': '1',
'backend': '/local/domain/0/backend/vbd/2/77
0'} to /local/domain/2/device/vbd/770.
[2006-06-21 19:15:46 xend] DEBUG (DevController:105) DevController:
writing {'domain': 'wwwserver', 'frontend':
'/local/domain/2/device/vbd/770', 'dev': 'hda2', 'state': '1', 'par
ams': '/dev/vg0/wwwdata', 'mode': 'w', 'frontend-id': '2', 'type':
'phy'} to /local/domain/0/backend/vbd/2/770.
[2006-06-21 19:15:46 xend] DEBUG (DevController:103) DevController:
writing {'virtual-device': '773', 'backend-id': '0', 'state': '1',
'backend': '/local/domain/0/backend/vbd/2/77
3'} to /local/domain/2/device/vbd/773.
[2006-06-21 19:15:46 xend] DEBUG (DevController:105) DevController:
writing {'domain': 'wwwserver', 'frontend':
'/local/domain/2/device/vbd/773', 'dev': 'hda5', 'state': '1', 'par
ams': '/dev/vg0/wwwswap', 'mode': 'w', 'frontend-id': '2', 'type':
'phy'} to /local/domain/0/backend/vbd/2/773.
[2006-06-21 19:15:46 xend.XendDomainInfo] ERROR (XendDomainInfo:190)
Domain construction failed
Traceback (most recent call last):
 File "/usr/lib/python2.3/site-packages/xen/xend/XendDomainInfo.py",
line 183, in create
   vm.initDomain()
 File "/usr/lib/python2.3/site-packages/xen/xend/XendDomainInfo.py",
line 1233, in initDomain
   self.createDevices()
 File "/usr/lib/python2.3/site-packages/xen/xend/XendDomainInfo.py",
line 1393, in createDevices
   self.createDevice(n, c)
 File "/usr/lib/python2.3/site-packages/xen/xend/XendDomainInfo.py",
line 1009, in createDevice
   return self.getDeviceController(deviceClass).createDevice(devconfig)
 File
"/usr/lib/python2.3/site-packages/xen/xend/server/DevController.py",
line 80, in createDevice
   (devid, back, front) = self.getDeviceDetails(config)
 File "/usr/lib/python2.3/site-packages/xen/xend/server/pciif.py", line
98, in getDeviceDetails
   bus  = get_param(config, 'bus')
 File "/usr/lib/python2.3/site-packages/xen/xend/server/pciif.py", line
71, in get_param
   raise VmError('pci: Invalid config setting %s: %s' %
VmError: pci: Invalid config setting bus: None
[2006-06-21 19:15:47 xend.XendDomainInfo] DEBUG (XendDomainInfo:1327)
XendDomainInfo.destroy: domid=2
[2006-06-21 19:15:47 xend.XendDomainInfo] DEBUG (XendDomainInfo:1335)
XendDomainInfo.destroyDomain(2)
[2006-06-21 19:15:47 xend.XendDomainInfo] ERROR (XendDomainInfo:1499)
Failed to restart domain 1.
Traceback (most recent call last):
 File "/usr/lib/python2.3/site-packages/xen/xend/XendDomainInfo.py",
line 1488, in restart
   new_dom = XendDomain.instance().domain_create(config)
 File "/usr/lib/python2.3/site-packages/xen/xend/XendDomain.py", line
227, in domain_create
   dominfo = XendDomainInfo.create(config)
 File "/usr/lib/python2.3/site-packages/xen/xend/XendDomainInfo.py",
line 183, in create
   vm.initDomain()
 File "/usr/lib/python2.3/site-packages/xen/xend/XendDomainInfo.py",
line 1233, in initDomain
   self.createDevices()
 File "/usr/lib/python2.3/site-packages/xen/xend/XendDomainInfo.py",
line 1393, in createDevices
   self.createDevice(n, c)
 File "/usr/lib/python2.3/site-packages/xen/xend/XendDomainInfo.py",
line 1009, in createDevice
   return self.getDeviceController(deviceClass).createDevice(devconfig)
 File
"/usr/lib/python2.3/site-packages/xen/xend/server/DevController.py",
line 80, in createDevice
   (devid, back, front) = self.getDeviceDetails(config)
 File "/usr/lib/python2.3/site-packages/xen/xend/server/pciif.py", line
98, in getDeviceDetails
   bus  = get_param(config, 'bus')
 File "/usr/lib/python2.3/site-packages/xen/xend/server/pciif.py", line
71, in get_param
   raise VmError('pci: Invalid config setting %s: %s' %
VmError: pci: Invalid config setting bus: None
[2006-06-21 22:09:44 xend] INFO (SrvDaemon:185) Xend stopped due to
signal 15.

-------------- /stacktrace ------------




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

<Prev in Thread] Current Thread [Next in Thread>