Hi All
I have a problem with unprivileged kernel domains not restarting correctly
after a reboot command is issued in the domain itself. A manual start of the
domain using "xm create -c <path-to-config>" works perfectly...
Here is some debug logs:
[2006-09-08 15:16:07 xend.XendDomainInfo] DEBUG (XendDomainInfo:178)
XendDomainInfo.create([''vm'', [''nam
e'', ''sterope''], [''memory'', 128],
[''vcpus'', 1], [''image'',
[''linux'',
[''kernel'', ''/boot/vmlinuz-2.6-xenU'']
, [''root'', ''/dev/hda1 ro'']]],
[''device'', [''vbd'',
[''uname'',
''phy:/dev/mapper/xen_base-cust3_root''], [''de
v'', ''hda1''], [''mode'',
''w'']]], [''device'', [''vbd'',
[''uname'',
''phy:/dev/mapper/xen_base-cust3_swap''], [''de
v'', ''hda2''], [''mode'',
''w'']]], [''device'',
[''vif'']]])
[2006-09-08 15:16:07 xend.XendDomainInfo] DEBUG (XendDomainInfo:284)
parseConfig: config is [''vm'', [''na
me'', ''sterope''], [''memory'', 128],
[''vcpus'', 1], [''image'',
[''linux'',
[''kernel'', ''/boot/vmlinuz-2.6-xenU''
], [''root'', ''/dev/hda1 ro'']]],
[''device'', [''vbd'',
[''uname'',
''phy:/dev/mapper/xen_base-cust3_root''], [''d
ev'', ''hda1''], [''mode'',
''w'']]], [''device'', [''vbd'',
[''uname'',
''phy:/dev/mapper/xen_base-cust3_swap''], [''d
[2006-09-08 15:16:07 xend] DEBUG (balloon:126) Balloon: free 232; need 129;
done.
[2006-09-08 15:16:07 xend] INFO (image:135) buildDomain os=linux dom=55
vcpus=1
[2006-09-08 15:16:07 xend] DEBUG (image:173) dom = 55
[2006-09-08 15:16:07 xend] DEBUG (image:174) image = /boot/vmlinuz-
2.6-xenU
[2006-09-08 15:16:07 xend] DEBUG (image:175) store_evtchn = 1
[2006-09-08 15:16:07 xend] DEBUG (image:176) console_evtchn = 2
[2006-09-08 15:16:07 xend] DEBUG (image:177) cmdline root=/dev/hda1 ro
[2006-09-08 15:16:07 xend] DEBUG (image:178) ramdisk [2006-09-08 15:16:07
xend] DEBUG (image:179) vcpus = 1
[2006-09-08 15:16:07 xend] DEBUG (image:180) features [2006-09-08 15:16:07
xend] DEBUG (blkif:24) exception looking up device
number for hda1: [Errno 2] No such file or directory:
''/dev/hda1''
[2006-09-08 15:16:07 xend] DEBUG (DevController:103) DevController: writing
{''virtual-device'': ''769'',
''backend-id'': ''0'',
''state'': ''1'', ''backend'':
''/local/domain/0/backend/vbd/55/769''} to
/local/domain/55/device/vbd/769.
[2006-09-08 15:16:07 xend] DEBUG (DevController:105) DevController: writing
{''domain'': ''sterope'',
''frontend'':
''/local/domain/55/device/vbd/769'', ''dev'':
''hda1'', ''state'': ''1'',
''params'': ''/dev/mapper/xen_base-cust3_root'',
''mode'':
''w'', ''frontend-id'': ''55'',
''type'': ''phy''} to
/local/domain/0/backend/vbd/55/769.
[2006-09-08 15:16:07 xend] DEBUG (blkif:24) exception looking up device
number for hda2: [Errno 2] No such file or directory:
''/dev/hda2''
[2006-09-08 15:16:07 xend] DEBUG (DevController:103) DevController: writing
{''virtual-device'': ''770'', ''
backend-id'': ''0'', ''state'':
''1'', ''backend'':
''/local/domain/0/backend/vbd/55/770''} to /local/domain/55/de
vice/vbd/770.
[2006-09-08 15:16:07 xend] DEBUG (DevController:105) DevController: writing
{''domain'': ''sterope'', ''fron
tend'': ''/local/domain/55/device/vbd/770'',
''dev'': ''hda2'', ''state'':
''1'',
''params'': ''/dev/mapper/xen_base-
cust3_swap'', ''mode'': ''w'',
''frontend-id'': ''55'',
''type'': ''phy''} to
/local/domain/0/backend/vbd/55/770.
[2006-09-08 15:16:07 xend] DEBUG (DevController:103) DevController: writing
{''backend-id'': ''0'', ''mac'':
''00:16:3e:08:16:f8'', ''handle'':
''0'', ''state'': ''1'',
''backend'':
''/local/domain/0/backend/vif/55/0''} to /lo
cal/domain/55/device/vif/0.
[2006-09-08 15:16:07 xend] DEBUG (DevController:105) DevController: writing
{''mac'': ''00:16:3e:08:16:f8''
, ''state'': ''1'', ''handle'':
''0'', ''script'':
''/etc/xen/scripts/vif-bridge'',
''frontend-id'': ''55'',
''domain'':
''sterope'', ''frontend'':
''/local/domain/55/device/vif/0''} to
/local/domain/0/backend/vif/55/0.
[2006-09-08 15:16:07 xend.XendDomainInfo] DEBUG (XendDomainInfo:671) Storing
VM details: {''ssidref'': ''0
'', ''uuid'':
''65c983f3-ccee-d510-51bc-55253cf36987'',
''on_reboot'': ''restart'',
''start_time'': ''1157692567.85
'', ''on_poweroff'': ''destroy'',
''name'': ''sterope'',
''vcpus'': ''1'',
''vcpu_avail'':
''1'', ''memory'': ''128'',
''on_c
rash'': ''restart'', ''image'':
"(linux (kernel /boot/vmlinuz-2.6-xenU) (root
''/dev/hda1 ro''))", ''maxmem'': ''
128''}
The thing that worries me are these two lines:
[2006-09-08 15:16:07 xend] DEBUG (blkif:24) exception looking up device
number for hda1: [Errno 2] No such file or directory:
''/dev/hda1''
[2006-09-08 15:16:07 xend] DEBUG (blkif:24) exception looking up device
number for hda2: [Errno 2] No such file or directory:
''/dev/hda2''
Which inidicate that the domain failed to find it disks. These are defined
as follows in the config:
disk = [ ''phy:/dev/mapper/xen_base-cust3_root,hda1,w'',
''phy:/dev/mapper/xen_base-cust3_swap,hda2,w'' ]
About the server:
OS: Xen 3.0.2 + linux 2.6.16.13 built from source with debian as host amd
guest distro.
All guest domains run the same xenU kernel (explicitely built xen0 and xenU
kernels)
Disks are laid out on a LVM2 volume, on top of hardware scsii raid
SMP server (dual xeon 2.4 Ghz with 1.5GB ram)
Can anyone enlighten me as to what the cause of this issue might be and hot
to fix it?
anu help is most appreceated.
--
GPG key fingerprint: 3883 B308 8256 2246 D3ED A1FF 3A1D 0EAD 41C4 C2F0
GPG public key availabe on pgp.mit .edu keyserver
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users