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@lists.xensource.com http://lists.xensource.com/xen-users
> -----Original Message----- > From: xen-users-bounces@lists.xensource.com > [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of > andrea15@tin.it > Sent: 13 June 2007 11:10 > To: xen-users@lists.xensource.com > Subject: [Xen-users] kernel panic when creating domainU > > 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 = [ '''' ]You probably DON''T want to use the initrd for Dom0 as a initrd for your guest(s). You''ll need to set up a separate initrd according to the recipies published in many places on the web. -- Mats> > 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@lists.xensource.com > http://lists.xensource.com/xen-users > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> You probably DON''T want to use the initrd for Dom0 as a initrd for your > guest(s). > > You''ll need to set up a separate initrd according to the recipies > published in many places on the web.I never did and never had a problem. Are you talking about drivers in dom0 initrd you do not need in domU or is there a "real" problem in using dom0 initrd in domU? Regards Dominik _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> -----Original Message----- > From: xen-users-bounces@lists.xensource.com > [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of > Dominik Klein > Sent: 13 June 2007 11:22 > To: xen-users@lists.xensource.com > Subject: Re: [Xen-users] kernel panic when creating domainU > > > You probably DON''T want to use the initrd for Dom0 as a > initrd for your > > guest(s). > > > > You''ll need to set up a separate initrd according to the recipies > > published in many places on the web. > > I never did and never had a problem. > > Are you talking about drivers in dom0 initrd you do not need > in domU or > is there a "real" problem in using dom0 initrd in domU?Well, in this particular case it looks like the Dom0 initrd is trying to set up LVM, which is (from how the log appears) isn''t available to DomU. If you have an "uncomplicated" system, it''s quite possible to have a "merged" Dom0/DomU initrd, but as soon as you have something a bit more complex (e.g. using LVM), it starts to be complicated to make the initrd work on both DomU and Dom0 at the same time. Of course, there''s also the drawback that you load drivers that aren''t needed for "the other side", but that''s a smaller issue than the fact that the initrd just plain doesn''t work right for the two domains if they are not "similar enough". -- Mats> > Regards > Dominik > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Wednesday 13 June 2007, andrea15@tin.it wrote:> 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 = [ '''' ]You don''t have a disk = line in there - you need one or it won''t see any disks to boot off. Also, you should be aware that kernel= and ramdisk= fetch the kernel and ramdisk from Domain 0''s filesystem, not from the guest''s. If you want to boot from a kernel in the guest''s filesystem, take away the kernel= and ramdisk= options and you should get a bootloader coming up... Probably best to tackle that problem after you''ve got the domain booting though - one problem to solve at a time.> and this is the > etc/fstab in my vm(perhaps I made some mistakes in it!?!): > /home/sibilia/dominio1 / ext3 defaults^ That''s probably wrong. I guess that''s the path to the domain''s virtual disk on dom0, right? The virtual machine can''t see the dom0 filesystem just it''s virtual disks.> 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?OK, change the GUEST fstab''s first line to look like this: /dev/sda1 / ext3 defaults 1 1 sda1 will be the virtual disk the guest sees. Now, to your domain config file (in domain 0), you should add: disk = [''tap:aio:/home/sibilia/dominio1,sda1,w''] Now try booting the domain, does this work better? Cheers, Mark -- Dave: Just a question. What use is a unicyle with no seat? And no pedals! Mark: To answer a question with a question: What use is a skateboard? Dave: Skateboards have wheels. Mark: My wheel has a wheel! _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
I''ve modified my etc/fstab in the guest as you said. I had already the disk= line in my guestdomain config (I had only dropped it when pasting here). I didn''t consider for now yuor useful advice about boot loader in the guest. However, something seems still to be wrong! My final output, before kernel panic, is the same: ..... Making device-mapper control node 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! Do you think It''s only because of the kind of kernel I used (that is that one of domain0)? ----Messaggio originale---- Da: mark. williamson@cl.cam.ac.uk Data: 13-giu-2007 7.36 PM A: <xen-users@lists. xensource.com>, "andrea15@tin.it"<andrea15@tin.it> Ogg: Re: [Xen-users] kernel panic when creating domainU On Wednesday 13 June 2007, andrea15@tin.it wrote:> I used a file-backed VBD for the virtual diskof my VM.> I formatted it > as ext3, I mounted it in a directory and Icopied directories from my> linux-domain0 installation as a test. > Iused 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 = [ '''' ]You don''t have a disk = line in there - you need one or it won''t see any disks to boot off. Also, you should be aware that kernel= and ramdisk= fetch the kernel and ramdisk from Domain 0''s filesystem, not from the guest''s. If you want to boot from a kernel in the guest''s filesystem, take away the kernel= and ramdisk= options and you should get a bootloader coming up... Probably best to tackle that problem after you''ve got the domain booting though - one problem to solve at a time.> and this is the >etc/fstab in my vm(perhaps I made some mistakes in it!?!):>/home/sibilia/dominio1 / ext3 defaults ^ That''s probably wrong. I guess that''s the path to the domain''s virtual disk on dom0, right? The virtual machine can''t see the dom0 filesystem just it''s virtual disks.> 1 1 > proc/proc proc> defaults 0 0 >sysfs /sys> sysfs defaults 0 0 > I''ve onlycut some lines from the original> /etc/fstab. > > Do you think It''s aproblem whit config files? OK, change the GUEST fstab''s first line to look like this: /dev/sda1 / ext3 defaults 1 1 sda1 will be the virtual disk the guest sees. Now, to your domain config file (in domain 0), you should add: disk = [''tap:aio:/home/sibilia/dominio1, sda1,w''] Now try booting the domain, does this work better? Cheers, Mark -- Dave: Just a question. What use is a unicyle with no seat? And no pedals! Mark: To answer a question with a question: What use is a skateboard? Dave: Skateboards have wheels. Mark: My wheel has a wheel! _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users