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] kernel panic when creating domainU

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] kernel panic when creating domainU
From: "andrea15@xxxxxx" <andrea15@xxxxxx>
Date: Wed, 13 Jun 2007 11:09:31 +0100 (GMT+01:00)
Delivery-date: Wed, 13 Jun 2007 03:07:42 -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>
Reply-to: "andrea15@xxxxxx" <andrea15@xxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
I used a file-backed VBD for the virtual disk of my VM.
I formatted it 
as ext3, I mounted it in a directory and I copied directories from my 
linux-domain0 installation as a test.
I used this configuration file:
kernel = "/boot/vmlinuz-2.6.16.29-xen_3.0.3.0"
ramdisk = "/boot/initrd-
2.6.16.29-xen_3.0.3.0.img"
memory = 256
name = "dominio1"
vif = [ '' ]

kernel's and ramdisk's paths are referred to the relative path to the 
files in my VM.

I gave: xm create -c myconfig vmid=1
but the creation 
of a new domain crashes.
last output lines are:
Scanning logical 
volumes
  Reading all physical volumes.  This may take a while...
  No 
volume groups found
Activating logical volumes
  Unable to find volume 
group "VolGroup00"
Creating root device.
Mounting root filesystem.
mount: could not find filesystem '/dev/root'
Setting up other 
filesystems.
Setting up new root fs
setuproot: moving /dev failed: No 
such file or directory
no fstab.sys, mounting internal defaults
setuproot: error mounting /proc: No such file or directory
setuproot: 
error mounting /sys: No such file or directory
Switching to new root 
and running init.
unmounting old /dev
unmounting old /proc
unmounting 
old /sys
switchroot: mount failed: No such file or directory
Kernel 
panic - not syncing: Attempted to kill init!

now I post the xend.log 
too:

[2007-06-13 10:42:45 xend.XendDomainInfo 3355] DEBUG 
(XendDomainInfo:190) XendDomainInfo.create(['vm', ['name', 'dominio1'], 
['memory', 256], ['vcpus', 1], ['image', ['linux', ['kernel', 
'/boot/vmlinuz-2.6.16.29-xen_3.0.3.0'], ['ramdisk', '/boot/initrd-
2.6.16.29-xen_3.0.3.0.img'], ['root', '/home/sibilia/dominio1/ ro'], 
['args', '4'], ['vncunused', 1], ['xauthority', '/root/.Xauthority']]], 
['device', ['tap', ['uname', 'tap:aio:/home/sibilia/vm1disk1'], ['dev', 
'hda1'], ['mode', 'w']]], ['device', ['vif']]])[2007-06-13 10:42:45 
xend.XendDomainInfo 3355] DEBUG (XendDomainInfo:296) parseConfig: 
config is ['vm', ['name', 'dominio1'], ['memory', 256], ['vcpus', 1], 
['image', ['linux', ['kernel', '/boot/vmlinuz-2.6.16.29-xen_3.0.3.0'], 
['ramdisk', '/boot/initrd-2.6.16.29-xen_3.0.3.0.img'], ['root', 
'/home/sibilia/dominio1/ ro'], ['args', '4'], ['vncunused', 1], 
['xauthority', '/root/.Xauthority']]], ['device', ['tap', ['uname', 
'tap:aio:/home/sibilia/vm1disk1'], ['dev', 'hda1'], ['mode', 'w']]], 
['device', ['vif']]][2007-06-13 10:42:45 xend.XendDomainInfo 3355] 
DEBUG (XendDomainInfo:395) parseConfig: result is {'shadow_memory': 
None, 'uuid': None, 'on_crash': None, 'on_reboot': None, 'localtime': 
None, 'image': ['linux', ['kernel', '/boot/vmlinuz-2.6.16.29-xen_3.
0.3.0'], ['ramdisk', '/boot/initrd-2.6.16.29-xen_3.0.3.0.img'], 
['root', '/home/sibilia/dominio1/ ro'], ['args', '4'], ['vncunused', 
1], ['xauthority', '/root/.Xauthority']], 'on_poweroff': None, 
'bootloader_args': None, 'cpus': None, 'name': 'dominio1', 'backend': 
[], 'vcpus': 1, 'cpu_weight': None, 'features': None, 'vcpu_avail': 
None, 'memory': 256, 'device': [('tap', ['tap', ['uname', 'tap:aio:
/home/sibilia/vm1disk1'], ['dev', 'hda1'], ['mode', 'w']]), ('vif', 
['vif'])], 'bootloader': None, 'cpu': None, 'maxmem': None}
[2007-06-13 
10:42:45 xend.XendDomainInfo 3355] DEBUG (XendDomainInfo:1253) 
XendDomainInfo.construct: None
[2007-06-13 10:42:45 xend.XendDomainInfo 
3355] DEBUG (XendDomainInfo:1285) XendDomainInfo.initDomain: 9 1.0
[2007-06-13 10:42:45 xend 3355] INFO (image:214) configuring linux 
guest
[2007-06-13 10:42:45 xend 3355] DEBUG (balloon:127) Balloon: 
262864 KiB free; need 262144; done.
[2007-06-13 10:42:45 xend 3355] 
INFO (image:138) buildDomain os=linux dom=9 vcpus=1
[2007-06-13 10:42:
45 xend 3355] DEBUG (image:193) dom            = 9
[2007-06-13 10:42:45 
xend 3355] DEBUG (image:194) image          = /boot/vmlinuz-2.6.16.29-
xen_3.0.3.0
[2007-06-13 10:42:45 xend 3355] DEBUG (image:195) 
store_evtchn   = 1[2007-06-13 10:42:45 xend 3355] DEBUG (image:196) 
console_evtchn = 2
[2007-06-13 10:42:45 xend 3355] DEBUG (image:197) 
cmdline        =  root=/home/sibilia/dominio1/ ro 4[2007-06-13 10:42:45 
xend 3355] DEBUG (image:198) ramdisk        = /boot/initrd-2.6.16.29-
xen_3.0.3.0.img
[2007-06-13 10:42:45 xend 3355] DEBUG (image:199) 
vcpus          = 1
[2007-06-13 10:42:45 xend 3355] DEBUG (image:200) 
features       =[2007-06-13 10:42:45 xend 3355] DEBUG (blkif:24) 
exception looking up device number for hda1: [Errno 2] No such file or 
directory: '/dev/hda1'[2007-06-13 10:42:45 xend 3355] DEBUG 
(DevController:110) DevController: writing {'backend-id': '0', 'virtual-
device': '769', 'device-type': 'disk', 'state': '1', 'backend': 
'/local/domain/0/backend/tap/9/769'} to /local/domain/9/device/vbd/769.
[2007-06-13 10:42:45 xend 3355] DEBUG (DevController:112) 
DevController: writing {'domain': 'dominio1', 'frontend': 
'/local/domain/9/device/vbd/769', 'dev': 'hda1', 'state': '1', 
'params': 'aio:/home/sibilia/vm1disk1', 'mode': 'w', 'online': '1', 
'frontend-id': '9', 'type': 'tap'} to /local/domain/0/backend/tap/9/769.
[2007-06-13 10:42:45 xend 3355] DEBUG (DevController:110) 
DevController: writing {'backend-id': '0', 'mac': '00:16:3e:67:47:b9', 
'handle': '0', 'state': '1', 'backend': 
'/local/domain/0/backend/vif/9/0'} to /local/domain/9/device/vif/0.
[2007-06-13 10:42:45 xend 3355] DEBUG (DevController:112) 
DevController: writing {'domain': 'dominio1', 'handle': '0', 'script': 
'/etc/xen/scripts/vif-bridge', 'state': '1', 'frontend': 
'/local/domain/9/device/vif/0', 'mac': '00:16:3e:67:47:b9', 'online': 
'1', 'frontend-id': '9'} to /local/domain/0/backend/vif/9/0.
[2007-06-
13 10:42:45 xend.XendDomainInfo 3355] DEBUG (XendDomainInfo:712) 
Storing VM details: {'shadow_memory': '0', 'uuid': '4d379edc-ba65-44df-
340a-b6957cc515a8', 'on_reboot': 'restart', 'start_time': 
'1181724165.4', 'on_poweroff': 'destroy', 'name': 'dominio1', 
'xend/restart_count': '0', 'vcpus': '1', 'vcpu_avail': '1', 'memory': 
'256', 'on_crash': 'restart', 'image': "(linux (kernel /boot/vmlinuz-
2.6.16.29-xen_3.0.3.0) (ramdisk /boot/initrd-2.6.16.29-xen_3.0.3.0.img) 
(root '/home/sibilia/dominio1/ ro') (args 4) (vncunused 1) (xauthority 
/root/.Xauthority))", 'maxmem': '256'}[2007-06-13 10:42:45 xend.
XendDomainInfo 3355] DEBUG (XendDomainInfo:747) Storing domain details: 
{'console/ring-ref': '279608', 'console/port': '2', 'name': 'dominio1', 
'console/limit': '1048576', 'vm': '/vm/4d379edc-ba65-44df-340a-
b6957cc515a8', 'domid': '9', 'cpu/0/availability': 'online', 
'memory/target': '262144', 'store/ring-ref': '279609', 'store/port': 
'1'}
[2007-06-13 10:42:45 xend.XendDomainInfo 3355] DEBUG 
(XendDomainInfo:933) XendDomainInfo.handleShutdownWatch[2007-06-13 10:
42:45 xend 3355] DEBUG (DevController:143) Waiting for devices vif.
[2007-06-13 10:42:45 xend 3355] DEBUG (DevController:149) Waiting for 
0.
[2007-06-13 10:42:45 xend 3355] DEBUG (DevController:464) 
hotplugStatusCallback /local/domain/0/backend/vif/9/0/hotplug-status.
[2007-06-13 10:42:45 xend 3355] DEBUG (DevController:464) 
hotplugStatusCallback /local/domain/0/backend/vif/9/0/hotplug-status.
[2007-06-13 10:42:45 xend 3355] DEBUG (DevController:478) 
hotplugStatusCallback 1.
[2007-06-13 10:42:45 xend 3355] DEBUG 
(DevController:143) Waiting for devices usb.[2007-06-13 10:42:45 xend 
3355] DEBUG (DevController:143) Waiting for devices vbd.[2007-06-13 10:
42:45 xend 3355] DEBUG (DevController:143) Waiting for devices irq.
[2007-06-13 10:42:45 xend 3355] DEBUG (DevController:143) Waiting for 
devices pci.[2007-06-13 10:42:45 xend 3355] DEBUG (DevController:143) 
Waiting for devices ioports.
[2007-06-13 10:42:45 xend 3355] DEBUG 
(DevController:143) Waiting for devices tap.
[2007-06-13 10:42:45 xend 
3355] DEBUG (DevController:149) Waiting for 769.
[2007-06-13 10:42:45 
xend 3355] DEBUG (DevController:464) hotplugStatusCallback 
/local/domain/0/backend/tap/9/769/hotplug-status.
[2007-06-13 10:42:45 
xend 3355] DEBUG (DevController:478) hotplugStatusCallback 1.
[2007-06-
13 10:42:45 xend 3355] DEBUG (DevController:143) Waiting for devices 
vtpm.
[2007-06-13 10:42:45 xend 3355] INFO (XendDomain:370) Domain 
dominio1 (9) unpaused.
[2007-06-13 10:42:54 xend.XendDomainInfo 3355] 
WARNING (XendDomainInfo:875) Domain has crashed: name=dominio1 id=9.
[2007-06-13 10:42:54 xend.XendDomainInfo 3355] DEBUG (XendDomainInfo:
1457) XendDomainInfo.destroyDomain(9)[2007-06-13 10:42:54 xend.
XendDomainInfo 3355] DEBUG (XendDomainInfo:190) XendDomainInfo.create
(['domain', ['domid', 9], ['uuid', '4d379edc-ba65-44df-340a-
b6957cc515a8'], ['vcpus', 1], ['vcpu_avail', 1], ['cpu_weight', 1.0], 
['memory', 256], ['shadow_memory', 0], ['maxmem', 256], ['features', 
''], ['name', 'dominio1'], ['on_poweroff', 'destroy'], ['on_reboot', 
'restart'], ['on_crash', 'restart'], ['image', ['linux', ['kernel', 
'/boot/vmlinuz-2.6.16.29-xen_3.0.3.0'], ['ramdisk', '/boot/initrd-
2.6.16.29-xen_3.0.3.0.img'], ['root', '/home/sibilia/dominio1/ ro'], 
['args', '4'], ['vncunused', 1], ['xauthority', '/root/.Xauthority']]], 
['device', ['vif', ['backend', 0], ['script', 'vif-bridge'], ['mac', 
'00:16:3e:67:47:b9']]], ['device', ['tap', ['backend', 0], ['dev', 
'hda1:disk'], ['uname', 'tap:aio:/home/sibilia/vm1disk1'], ['mode', 
'w']]], ['state', '----c-'], ['shutdown_reason', 'crash'], ['cpu_time', 
5.4805342440000002], ['online_vcpus', 1], ['up_time', '9.13109207153'], 
['start_time', '1181724165.4'], ['store_mfn', 279609], ['console_mfn', 
279608]])[2007-06-13 10:42:54 xend.XendDomainInfo 3355] DEBUG 
(XendDomainInfo:296) parseConfig: config is ['domain', ['domid', 9], 
['uuid', '4d379edc-ba65-44df-340a-b6957cc515a8'], ['vcpus', 1], 
['vcpu_avail', 1], ['cpu_weight', 1.0], ['memory', 256], 
['shadow_memory', 0], ['maxmem', 256], ['features', ''], ['name', 
'dominio1'], ['on_poweroff', 'destroy'], ['on_reboot', 'restart'], 
['on_crash', 'restart'], ['image', ['linux', ['kernel', '/boot/vmlinuz-
2.6.16.29-xen_3.0.3.0'], ['ramdisk', '/boot/initrd-2.6.16.29-xen_3.
0.3.0.img'], ['root', '/home/sibilia/dominio1/ ro'], ['args', '4'], 
['vncunused', 1], ['xauthority', '/root/.Xauthority']]], ['device', 
['vif', ['backend', 0], ['script', 'vif-bridge'], ['mac', '00:16:3e:67:
47:b9']]], ['device', ['tap', ['backend', 0], ['dev', 'hda1:disk'], 
['uname', 'tap:aio:/home/sibilia/vm1disk1'], ['mode', 'w']]], ['state', 
'----c-'], ['shutdown_reason', 'crash'], ['cpu_time', 
5.4805342440000002], ['online_vcpus', 1], ['up_time', '9.13109207153'], 
['start_time', '1181724165.4'], ['store_mfn', 279609], ['console_mfn', 
279608]][2007-06-13 10:42:54 xend.XendDomainInfo 3355] DEBUG 
(XendDomainInfo:395) parseConfig: result is {'shadow_memory': 0, 
'uuid': '4d379edc-ba65-44df-340a-b6957cc515a8', 'on_crash': 'restart', 
'on_reboot': 'restart', 'localtime': None, 'image': ['linux', 
['kernel', '/boot/vmlinuz-2.6.16.29-xen_3.0.3.0'], ['ramdisk', 
'/boot/initrd-2.6.16.29-xen_3.0.3.0.img'], ['root', 
'/home/sibilia/dominio1/ ro'], ['args', '4'], ['vncunused', 1], 
['xauthority', '/root/.Xauthority']], 'on_poweroff': 'destroy', 
'bootloader_args': None, 'cpus': None, 'name': 'dominio1', 'backend': 
[], 'vcpus': 1, 'cpu_weight': 1.0, 'features': '', 'vcpu_avail': 1, 
'memory': 256, 'device': [('vif', ['vif', ['backend', 0], ['script', 
'vif-bridge'], ['mac', '00:16:3e:67:47:b9']]), ('tap', ['tap', 
['backend', 0], ['dev', 'hda1:disk'], ['uname', 'tap:aio:
/home/sibilia/vm1disk1'], ['mode', 'w']])], 'bootloader': None, 'cpu': 
None, 'maxmem': 256}
[2007-06-13 10:42:54 xend.XendDomainInfo 3355] 
DEBUG (XendDomainInfo:1253) XendDomainInfo.construct: None[2007-06-13 
10:42:54 xend.XendDomainInfo 3355] DEBUG (XendDomainInfo:1285) 
XendDomainInfo.initDomain: 10 1.0[2007-06-13 10:42:54 xend 3355] INFO 
(image:214) configuring linux guest
[2007-06-13 10:42:54 xend 3355] 
DEBUG (balloon:133) Balloon: 116064 KiB free; 146712 to scrub; need 
262144; retries: 20.
[2007-06-13 10:42:54 xend 3355] DEBUG (balloon:
141) Balloon: waiting on scrubbing
[2007-06-13 10:42:55 xend 3355] 
DEBUG (balloon:127) Balloon: 262776 KiB free; need 262144; done.
[2007-
06-13 10:42:55 xend 3355] INFO (image:138) buildDomain os=linux dom=10 
vcpus=1
[2007-06-13 10:42:55 xend 3355] DEBUG (image:193) 
dom            = 10
[2007-06-13 10:42:55 xend 3355] DEBUG (image:194) 
image          = /boot/vmlinuz-2.6.16.29-xen_3.0.3.0
[2007-06-13 10:42:
55 xend 3355] DEBUG (image:195) store_evtchn   = 1
[2007-06-13 10:42:55 
xend 3355] DEBUG (image:196) console_evtchn = 2
[2007-06-13 10:42:55 
xend 3355] DEBUG (image:197) cmdline        =  
root=/home/sibilia/dominio1/ ro 4
[2007-06-13 10:42:55 xend 3355] DEBUG 
(image:198) ramdisk        = /boot/initrd-2.6.16.29-xen_3.0.3.0.img
[2007-06-13 10:42:55 xend 3355] DEBUG (image:199) vcpus          = 1
[2007-06-13 10:42:55 xend 3355] DEBUG (image:200) features       =[2007-
06-13 10:42:55 xend 3355] DEBUG (DevController:110) DevController: 
writing {'backend-id': '0', 'mac': '00:16:3e:67:47:b9', 'handle': '0', 
'state': '1', 'backend': '/local/domain/0/backend/vif/10/0'} to 
/local/domain/10/device/vif/0.[2007-06-13 10:42:55 xend 3355] DEBUG 
(DevController:112) DevController: writing {'domain': 'dominio1', 
'handle': '0', 'script': '/etc/xen/scripts/vif-bridge', 'state': '1', 
'frontend': '/local/domain/10/device/vif/0', 'mac': '00:16:3e:67:47:
b9', 'online': '1', 'frontend-id': '10'} to 
/local/domain/0/backend/vif/10/0.
[2007-06-13 10:42:55 xend 3355] DEBUG 
(blkif:24) exception looking up device number for hda1: [Errno 2] No 
such file or directory: '/dev/hda1'[2007-06-13 10:42:55 xend 3355] 
DEBUG (DevController:110) DevController: writing {'backend-id': '0', 
'virtual-device': '769', 'device-type': 'disk', 'state': '1', 
'backend': '/local/domain/0/backend/tap/10/769'} to 
/local/domain/10/device/vbd/769.[2007-06-13 10:42:55 xend 3355] DEBUG 
(DevController:112) DevController: writing {'domain': 'dominio1', 
'frontend': '/local/domain/10/device/vbd/769', 'dev': 'hda1', 'state': 
'1', 'params': 'aio:/home/sibilia/vm1disk1', 'mode': 'w', 'online': 
'1', 'frontend-id': '10', 'type': 'tap'} to 
/local/domain/0/backend/tap/10/769.[2007-06-13 10:42:55 xend.
XendDomainInfo 3355] DEBUG (XendDomainInfo:712) Storing VM details: 
{'shadow_memory': '0', 'uuid': '4d379edc-ba65-44df-340a-b6957cc515a8', 
'on_reboot': 'restart', 'start_time': '1181724175.44', 'on_poweroff': 
'destroy', 'name': 'dominio1', 'vcpus': '1', 'vcpu_avail': '1', 
'memory': '256', 'on_crash': 'restart', 'image': "(linux (kernel 
/boot/vmlinuz-2.6.16.29-xen_3.0.3.0) (ramdisk /boot/initrd-2.6.16.29-
xen_3.0.3.0.img) (root '/home/sibilia/dominio1/ ro') (args 4) 
(vncunused 1) (xauthority /root/.Xauthority))", 'maxmem': '256'}[2007-
06-13 10:42:55 xend.XendDomainInfo 3355] DEBUG (XendDomainInfo:747) 
Storing domain details: {'console/ring-ref': '361090', 'console/port': 
'2', 'name': 'dominio1', 'console/limit': '1048576', 'vm': 
'/vm/4d379edc-ba65-44df-340a-b6957cc515a8', 'domid': '10', 
'cpu/0/availability': 'online', 'memory/target': '262144', 'store/ring-
ref': '361091', 'store/port': '1'}[2007-06-13 10:42:55 xend.
XendDomainInfo 3355] DEBUG (XendDomainInfo:933) XendDomainInfo.
handleShutdownWatch[2007-06-13 10:43:04 xend.XendDomainInfo 3355] 
WARNING (XendDomainInfo:875) Domain has crashed: name=dominio1 id=10.
[2007-06-13 10:43:04 xend.XendDomainInfo 3355] ERROR (XendDomainInfo:
1661) VM dominio1 restarting too fast (9.981364 seconds since the last 
restart).  Refusing to restart to avoid loops.[2007-06-13 10:43:04 xend.
XendDomainInfo 3355] DEBUG (XendDomainInfo:1449) XendDomainInfo.
destroy: domid=10[2007-06-13 10:43:04 xend.XendDomainInfo 3355] DEBUG 
(XendDomainInfo:1457) XendDomainInfo.destroyDomain(10)

and this is the 
etc/fstab in my vm(perhaps I made some mistakes in it!?!):
/home/sibilia/dominio1  /                       ext3    defaults        
1 1
proc                    /proc                   proc    
defaults        0 0
sysfs                   /sys                    
sysfs   defaults        0 0
I've only cut some lines from the original 
/etc/fstab.

Do you think It's a problem whit config files?

Andrea


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

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