Brendan Jiang
2009-Nov-18 22:00 UTC
[Xen-users] Compiled DomU doesn''t boot on CentOS 5.4 Dom0 -- (kernel panic - not syncing: Attempted to kill init!)
Hi, I installed CentOS 5.4 with virtualization enabled, and Dom0 boots up perfectly. However, when I tried to boot a DomU that I compiled based on xen-unstable and CentOS'' config, it makes no success on booting. I highly appreciate if anyone could help me on this. In summary, the booting process of DomU hangs with the following as the last lines: "SCSI subsystem initialized Initializing USB Mass Storage driver... usbcore: registered new driver usb-storage USB Mass Storage support registered. Adaptec aacraid driver (1.1-5[2409]-mh2) Kernel panic - not syncing: Attempted to kill init!" Below are my compiling and booting details, and related config/log files are also attached. 1) CentOS 5.4 -- DVD image downloaded from centos.org, installed from hard drive, installed onto /dev/sda7. Dom0 works perfectly. 2) compile DomU -- In some other threads, someone said that refreshing the py scripts under /usr/lib/python2.4/ may cause kernel panic because of version mismatch. Therefore I compiled DomU in a separate partition (other than /dev/sda7) in order to keep /dev/sda7 clean (as freshly installed). Then the kernel images of DomU were copied to /dev/sda7 for test. a) downloaded with "hg clone http://xenbits.xen.org/xen-unstable.hg" and "hg clone http://xenbits.xen.org/linux-2.6.18-xen.hg" b) cd xen-unstable.hg cp /boot/config-2.6.18-164.el5xen .config (config file attached) vi buildconfigs/mk.linux-2.6-common to add "XEN_LINUX_CONFIG ?$(XEN_ROOT)/.config" make KERNELS="linux-2.6-xenU" world make install depmod 2.6.18.8-xenU mkinitrd -v -f --with=aacraid --with=sd_mod --with=scsi_mod initrd-2.6.18.8-xenU.img 2.6.18.8-xenU 3) boot DomU a) create a file-backed VBD with dd if=/dev/zero of=vm1disk bs=1k seek=2048k count=0 make sure the image has the correct security context following the instructions on http://wiki.centos.org/HowTos/Xen/InstallingCentOSDomU mkfs -t ext3 vm1disk mount -o loop vm1disk /media/vm1disk cp -ax /{root,dev,var,etc,usr,bin,sbin,lib,boot} /media/vm1disk mkdir /media/vm1disk/{proc,sys,home,tmp} vi /media/vm1disk/boot/grub/grub.conf to change sda7 to sda1, and modify the kernel image name as appropriate. umount /media/vm1disk b) config file /etc/xen/mysinglevm: kernel = "/boot/vmlinuz-2.6.18.8-xenU" ramdisk = "/boot/initrd-2.6.18.8-xenU.img" builder=''linux'' memory = 64 name = "myFirstDomU" cpus = "" # leave to Xen to pick vcpus = 1 vif = [ ''mac=00:16:3e:00:00:11, bridge=xenbr0'' ] disk = [ ''tap:aio:/home/bjiang/domUdisks/vm1disk,sda1,w'' ] dhcp="dhcp" root = "/dev/sda1 ro" extra = "4" on_poweroff = ''destroy'' on_reboot = ''restart'' on_crash = ''restart'' (P.S. I''m not sure whether here root should be set as sda1 or sda7, but neither solves the problem.) c) xm create -c mysinglevm vmid=1, then kernel panic After kernel panic during DomU''s booting, I catched the log files as the attached files, and xm list shows that DomU is blocked: [root@localhost xen]# xm list Name ID Mem(MiB) VCPUs State Time(s) Domain-0 0 3599 2 r----- 102.5 myFirstDomU 21 64 1 -b---- 0.2 I found each time I run the xm create command, the vmid will increase by 1 regardless of the parameter "vmid=1". Any comments or advice are highly welcome! Thank you very much! Best regards, Brendan _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Bo Jiang
2009-Nov-19 00:16 UTC
[Xen-users] Compiled DomU doesn''t boot on CentOS 5.4 Dom0 -- (kernel panic - not syncing: Attempted to kill init!)
Hi, I installed CentOS 5.4 with virtualization enabled, and Dom0 boots up perfectly. However, when I tried to boot a DomU that I compiled based on xen-unstable and CentOS'' config, it makes no success on booting. I highly appreciate if anyone could help me on this. In summary, the booting process of DomU hangs with the following as the last lines: "SCSI subsystem initialized Initializing USB Mass Storage driver... usbcore: registered new driver usb-storage USB Mass Storage support registered. Adaptec aacraid driver (1.1-5[2409]-mh2) Kernel panic - not syncing: Attempted to kill init!" Below are my compiling and booting details, and related config/log files are also attached. 1) CentOS 5.4 -- DVD image downloaded from centos.org, installed from hard drive, installed onto /dev/sda7. Dom0 works perfectly. 2) compile DomU -- In some other threads, someone said that refreshing the py scripts under /usr/lib/python2.4/ may cause kernel panic because of version mismatch. Therefore I compiled DomU in a separate partition (other than /dev/sda7) in order to keep /dev/sda7 clean (as freshly installed). Then the kernel images of DomU were copied to /dev/sda7 for test. a) downloaded with "hg clone http://xenbits.xen.org/xen-unstable.hg" and "hg clone http://xenbits.xen.org/linux-2.6.18-xen.hg" b) cd xen-unstable.hg cp /boot/config-2.6.18-164.el5xen .config (config file attached) vi buildconfigs/mk.linux-2.6-common to add "XEN_LINUX_CONFIG ?$(XEN_ROOT)/.config" make KERNELS="linux-2.6-xenU" world make install depmod 2.6.18.8-xenU mkinitrd -v -f --with=aacraid --with=sd_mod --with=scsi_mod initrd-2.6.18.8-xenU.img 2.6.18.8-xenU 3) boot DomU a) create a file-backed VBD with dd if=/dev/zero of=vm1disk bs=1k seek=2048k count=0 make sure the image has the correct security context following the instructions on http://wiki.centos.org/HowTos/Xen/InstallingCentOSDomU mkfs -t ext3 vm1disk mount -o loop vm1disk /media/vm1disk cp -ax /{root,dev,var,etc,usr,bin,sbin,lib,boot} /media/vm1disk mkdir /media/vm1disk/{proc,sys,home,tmp} vi /media/vm1disk/boot/grub/grub.conf to change sda7 to sda1, and modify the kernel image name as appropriate. umount /media/vm1disk b) config file /etc/xen/mysinglevm: kernel = "/boot/vmlinuz-2.6.18.8-xenU" ramdisk = "/boot/initrd-2.6.18.8-xenU.img" builder=''linux'' memory = 64 name = "myFirstDomU" cpus = "" # leave to Xen to pick vcpus = 1 vif = [ ''mac=00:16:3e:00:00:11, bridge=xenbr0'' ] disk = [ ''tap:aio:/home/bjiang/domUdisks/vm1disk,sda1,w'' ] dhcp="dhcp" root = "/dev/sda1 ro" extra = "4" on_poweroff = ''destroy'' on_reboot = ''restart'' on_crash = ''restart'' (P.S. I''m not sure whether here root should be set as sda1 or sda7, but neither solves the problem.) c) xm create -c mysinglevm vmid=1, then kernel panic After kernel panic during DomU''s booting, I catched the log files as the attached files, and xm list shows that DomU is blocked: [root@localhost xen]# xm list Name ID Mem(MiB) VCPUs State Time(s) Domain-0 0 3599 2 r----- 102.5 myFirstDomU 21 64 1 -b---- 0.2 I found each time I run the xm create command, the vmid will increase by 1 regardless of the parameter "vmid=1". Any comments or advice are highly welcome! Thank you very much! Best regards, Brendan _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Brendan Jiang
2009-Nov-19 03:28 UTC
Re: [Xen-users] Compiled DomU doesn''t boot on CentOS 5.4 Dom0 -- (kernel panic - not syncing: Attempted to kill init!)
Forgot to include the /media/vm1disk/etc/fstab file: [root@localhost ~]# cat /media/vm1disk/etc/fstab /dev/sda1 / ext3 defaults 1 1 tmpfs /dev/shm tmpfs defaults 0 0 devpts /dev/pts devpts gid=5,mode=620 0 0 sysfs /sys sysfs defaults 0 0 proc /proc proc defaults 0 0 LABEL=SWAP-sda4 swap swap defaults 0 0 This file was copied from the default installation of CentOS 5.4 and modified "LABEL=/" to "/dev/sda1". I didn''t make change to the swap partition setting. Does that matter? Thanks! Best regards, Brendan Quoting Bo Jiang <bjiang@vt.edu>:> Hi, > > I installed CentOS 5.4 with virtualization enabled, and Dom0 boots up > perfectly. However, when I tried to boot a DomU that I compiled based on > xen-unstable and CentOS'' config, it makes no success on booting. I highly > appreciate if anyone could help me on this. > > In summary, the booting process of DomU hangs with the following as the last > lines: > "SCSI subsystem initialized > Initializing USB Mass Storage driver... > usbcore: registered new driver usb-storage USB Mass Storage support > registered. > Adaptec aacraid driver (1.1-5[2409]-mh2) Kernel panic - not syncing: > Attempted to kill init!" > > Below are my compiling and booting details, and related config/log files are > also attached. > > 1) CentOS 5.4 -- DVD image downloaded from centos.org, installed from hard > drive, installed onto /dev/sda7. Dom0 works perfectly. > > 2) compile DomU -- In some other threads, someone said that refreshing the > py scripts under /usr/lib/python2.4/ may cause kernel panic because of > version mismatch. Therefore I compiled DomU in a separate partition (other > than /dev/sda7) in order to keep /dev/sda7 clean (as freshly installed). > Then the kernel images of DomU were copied to /dev/sda7 for test. > > a) downloaded with "hg clone http://xenbits.xen.org/xen-unstable.hg" and "hg > clone http://xenbits.xen.org/linux-2.6.18-xen.hg" > b) cd xen-unstable.hg > cp /boot/config-2.6.18-164.el5xen .config (config file attached) > vi buildconfigs/mk.linux-2.6-common to add "XEN_LINUX_CONFIG ?> $(XEN_ROOT)/.config" > make KERNELS="linux-2.6-xenU" world > make install > depmod 2.6.18.8-xenU > mkinitrd -v -f --with=aacraid --with=sd_mod --with=scsi_mod > initrd-2.6.18.8-xenU.img 2.6.18.8-xenU > > 3) boot DomU > > a) create a file-backed VBD with > > dd if=/dev/zero of=vm1disk bs=1k seek=2048k count=0 make sure the image has > the correct security context following the instructions on > http://wiki.centos.org/HowTos/Xen/InstallingCentOSDomU > mkfs -t ext3 vm1disk > mount -o loop vm1disk /media/vm1disk > cp -ax /{root,dev,var,etc,usr,bin,sbin,lib,boot} /media/vm1disk mkdir > /media/vm1disk/{proc,sys,home,tmp} > vi /media/vm1disk/boot/grub/grub.conf to change sda7 to sda1, and modify the > kernel image name as appropriate. > umount /media/vm1disk > > b) config file /etc/xen/mysinglevm: > > kernel = "/boot/vmlinuz-2.6.18.8-xenU" > ramdisk = "/boot/initrd-2.6.18.8-xenU.img" > builder=''linux'' > memory = 64 > name = "myFirstDomU" > cpus = "" # leave to Xen to pick > vcpus = 1 > vif = [ ''mac=00:16:3e:00:00:11, bridge=xenbr0'' ] disk = [ > ''tap:aio:/home/bjiang/domUdisks/vm1disk,sda1,w'' ] dhcp="dhcp" > root = "/dev/sda1 ro" > extra = "4" > on_poweroff = ''destroy'' > on_reboot = ''restart'' > on_crash = ''restart'' > > (P.S. I''m not sure whether here root should be set as sda1 or sda7, but > neither solves the problem.) > > c) xm create -c mysinglevm vmid=1, then kernel panic > > After kernel panic during DomU''s booting, I catched the log files as the > attached files, and xm list shows that DomU is blocked: > [root@localhost xen]# xm list > Name ID Mem(MiB) VCPUs State Time(s) > Domain-0 0 3599 2 r----- 102.5 > myFirstDomU 21 64 1 -b---- 0.2 > > I found each time I run the xm create command, the vmid will increase by 1 > regardless of the parameter "vmid=1". > > Any comments or advice are highly welcome! Thank you very much! > > Best regards, > Brendan > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Bo Jiang
2009-Nov-19 03:35 UTC
RE: [Xen-users] Compiled DomU doesn''t boot on CentOS 5.4 Dom0 -- (kernel panic - not syncing: Attempted to kill init!)
Forgot to include the /media/vm1disk/etc/fstab file: [root@localhost ~]# cat /media/vm1disk/etc/fstab /dev/sda1 / ext3 defaults 1 1 tmpfs /dev/shm tmpfs defaults 0 0 devpts /dev/pts devpts gid=5,mode=620 0 0 sysfs /sys sysfs defaults 0 0 proc /proc proc defaults 0 0 LABEL=SWAP-sda4 swap swap defaults 0 0 This file was copied from the default installation of CentOS 5.4 and modified "LABEL=/" to "/dev/sda1". I didn''t make change to the swap partition setting. Does that matter? Thanks! Best regards, Brendan -----Original Message----- From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Bo Jiang Sent: Wednesday, November 18, 2009 7:16 PM To: xen-users@lists.xensource.com Subject: [Xen-users] Compiled DomU doesn''t boot on CentOS 5.4 Dom0 -- (kernel panic - not syncing: Attempted to kill init!) Hi, I installed CentOS 5.4 with virtualization enabled, and Dom0 boots up perfectly. However, when I tried to boot a DomU that I compiled based on xen-unstable and CentOS'' config, it makes no success on booting. I highly appreciate if anyone could help me on this. In summary, the booting process of DomU hangs with the following as the last lines: "SCSI subsystem initialized Initializing USB Mass Storage driver... usbcore: registered new driver usb-storage USB Mass Storage support registered. Adaptec aacraid driver (1.1-5[2409]-mh2) Kernel panic - not syncing: Attempted to kill init!" Below are my compiling and booting details, and related config/log files are also attached. 1) CentOS 5.4 -- DVD image downloaded from centos.org, installed from hard drive, installed onto /dev/sda7. Dom0 works perfectly. 2) compile DomU -- In some other threads, someone said that refreshing the py scripts under /usr/lib/python2.4/ may cause kernel panic because of version mismatch. Therefore I compiled DomU in a separate partition (other than /dev/sda7) in order to keep /dev/sda7 clean (as freshly installed). Then the kernel images of DomU were copied to /dev/sda7 for test. a) downloaded with "hg clone http://xenbits.xen.org/xen-unstable.hg" and "hg clone http://xenbits.xen.org/linux-2.6.18-xen.hg" b) cd xen-unstable.hg cp /boot/config-2.6.18-164.el5xen .config (config file attached) vi buildconfigs/mk.linux-2.6-common to add "XEN_LINUX_CONFIG ?$(XEN_ROOT)/.config" make KERNELS="linux-2.6-xenU" world make install depmod 2.6.18.8-xenU mkinitrd -v -f --with=aacraid --with=sd_mod --with=scsi_mod initrd-2.6.18.8-xenU.img 2.6.18.8-xenU 3) boot DomU a) create a file-backed VBD with dd if=/dev/zero of=vm1disk bs=1k seek=2048k count=0 make sure the image has the correct security context following the instructions on http://wiki.centos.org/HowTos/Xen/InstallingCentOSDomU mkfs -t ext3 vm1disk mount -o loop vm1disk /media/vm1disk cp -ax /{root,dev,var,etc,usr,bin,sbin,lib,boot} /media/vm1disk mkdir /media/vm1disk/{proc,sys,home,tmp} vi /media/vm1disk/boot/grub/grub.conf to change sda7 to sda1, and modify the kernel image name as appropriate. umount /media/vm1disk b) config file /etc/xen/mysinglevm: kernel = "/boot/vmlinuz-2.6.18.8-xenU" ramdisk = "/boot/initrd-2.6.18.8-xenU.img" builder=''linux'' memory = 64 name = "myFirstDomU" cpus = "" # leave to Xen to pick vcpus = 1 vif = [ ''mac=00:16:3e:00:00:11, bridge=xenbr0'' ] disk = [ ''tap:aio:/home/bjiang/domUdisks/vm1disk,sda1,w'' ] dhcp="dhcp" root = "/dev/sda1 ro" extra = "4" on_poweroff = ''destroy'' on_reboot = ''restart'' on_crash = ''restart'' (P.S. I''m not sure whether here root should be set as sda1 or sda7, but neither solves the problem.) c) xm create -c mysinglevm vmid=1, then kernel panic After kernel panic during DomU''s booting, I catched the log files as the attached files, and xm list shows that DomU is blocked: [root@localhost xen]# xm list Name ID Mem(MiB) VCPUs State Time(s) Domain-0 0 3599 2 r----- 102.5 myFirstDomU 21 64 1 -b---- 0.2 I found each time I run the xm create command, the vmid will increase by 1 regardless of the parameter "vmid=1". Any comments or advice are highly welcome! Thank you very much! Best regards, Brendan _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2009-Nov-19 03:55 UTC
Re: [Xen-users] Compiled DomU doesn''t boot on CentOS 5.4 Dom0 -- (kernel panic - not syncing: Attempted to kill init!)
On Thu, Nov 19, 2009 at 7:16 AM, Bo Jiang <bjiang@vt.edu> wrote:> In summary, the booting process of DomU hangs with the following as the last > lines: > "SCSI subsystem initialized > Initializing USB Mass Storage driver... > usbcore: registered new driver usb-storage USB Mass Storage support > registered. > Adaptec aacraid driver (1.1-5[2409]-mh2) Kernel panic - not syncing: > Attempted to kill init!"Short story: I find that newer kernels (pv_ops or forward-ported suse kernel) is somewhat tricky. Like when you choose a wrong config option it can refuse to boot with no apparent cause. So I suggest you try with a known good .config first. Attached is my config, for use with http://x17.eu/xen/linux-2.6.29.6-xen.aka.suse-xenified-2.6.29-62.1-rebased.patches.by.andrew.lyon.tar.gz This config is domU-specific, 64bit kernel, with drivers for physical devices (including aacraid) NOT built, and most drivers required for domU to boot (like xen vbd, ext3, etc.) built in. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2009-Nov-19 03:56 UTC
Re: [Xen-users] Compiled DomU doesn''t boot on CentOS 5.4 Dom0 -- (kernel panic - not syncing: Attempted to kill init!)
On Thu, Nov 19, 2009 at 10:35 AM, Bo Jiang <bjiang@vt.edu> wrote:> Forgot to include the /media/vm1disk/etc/fstab file: > [root@localhost ~]# cat /media/vm1disk/etc/fstab > /dev/sda1 / ext3 defaults 1you might want to change it to xvda1 on fstab, grub.conf, and domU config. If I''m not mistaken newer kernels will silently change [hs]da to xvda. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2009-Nov-19 03:57 UTC
Re: [Xen-users] Compiled DomU doesn''t boot on CentOS 5.4 Dom0 -- (kernel panic - not syncing: Attempted to kill init!)
On Thu, Nov 19, 2009 at 10:55 AM, Fajar A. Nugraha <fajar@fajar.net> wrote:> Attached is my config, for use with > http://x17.eu/xen/linux-2.6.29.6-xen.aka.suse-xenified-2.6.29-62.1-rebased.patches.by.andrew.lyon.tar.gzForgot the attachment :D _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Bo Jiang
2009-Nov-20 21:06 UTC
RE: [Xen-users] Compiled DomU doesn''t boot on CentOS 5.4 Dom0 -- (kernel panic - not syncing: Attempted to kill init!)
Hi Fajar, Thank you very much for your help! I didn''t try your config, but made it following your instructions from another thread (http://article.gmane.org/gmane.comp.emulators.xen.user/45172). I found that I made a stupid mistake by making useless efforts -- actually I don''t have to use a "compiled" domU. The virt-install tool that you suggested in the link above makes everything easy. Thanks again! Best, Brendan -----Original Message----- From: Fajar A. Nugraha [mailto:fajar@fajar.net] Sent: Wednesday, November 18, 2009 10:57 PM To: Bo Jiang Cc: xen-users@lists.xensource.com Subject: Re: [Xen-users] Compiled DomU doesn''t boot on CentOS 5.4 Dom0 -- (kernel panic - not syncing: Attempted to kill init!) On Thu, Nov 19, 2009 at 10:55 AM, Fajar A. Nugraha <fajar@fajar.net> wrote:> Attached is my config, for use with >http://x17.eu/xen/linux-2.6.29.6-xen.aka.suse-xenified-2.6.29-62.1-rebased.p atches.by.andrew.lyon.tar.gz Forgot the attachment :D _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users