Hi, I have installed the centos 5.3 (of course with xen) and try to run the image of centos 5.2 and debian 3.1 (provided from jailtime.org). When I boot the VM, the status is blocked, and i have this from the console : ............... md: Autodetecting RAID arrays. md: autorun ... md: ... autorun DONE. VFS: Cannot open root device "sda1" or unknown-block(0,0) Please append a correct "root=" boot option Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) config file for the centos 5.2 vm kernel = "/boot/vmlinuz-2.6.18-128.1.14.el5xen" initrd = "/boot/initrd-2.6.18-128.1.14.el5xen.img" memory = 512 name = "centos5.2" vif = [ '''' ] #dhcp = "dhcp" disk = [''file:/xen/centos5.2/centos.5-2.img,sda1,w'', ''file:/xen/centos5.2/swap.img,sda2,w''] root = "/dev/sda1 ro" /etc/fstab on the vm /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 /dev/sda2 swap swap defaults 0 0 If anyone have an idea ... -- Cordialement, Fabien Murgues Service Commun Documentation Saint Etienne Informatique 23 rue Docteur Paul Michelon 42023 Saint Etienne Cedex 2 tél : 04 77 48 15 92 fax : 04 77 48 15 91 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Thu, Jun 25, 2009 at 7:31 PM, Fabien Murgues<fabien.murgues@univ-st-etienne.fr> wrote:> VFS: Cannot open root device "sda1" or unknown-block(0,0) > Please append a correct "root=" boot option > Kernel panic - not syncing: VFS: Unable to mount root fs on > unknown-block(0,0) > > > config file for the centos 5.2 vm > kernel = "/boot/vmlinuz-2.6.18-128.1.14.el5xen" > initrd = "/boot/initrd-2.6.18-128.1.14.el5xen.img"Are you using dom0''s kernel and initrd for domU? If yes, then my guess is it''s missing xenblk module. It''s not needed on dom0 (which is why it''s not normally included), but critical for domU. One way to make jailtime.org images is by adjusting its kernel and initrd like this: http://lists.xensource.com/archives/html/xen-users/2009-03/msg00372.html -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha wrote:> On Thu, Jun 25, 2009 at 7:31 PM, Fabien > Murgues<fabien.murgues@univ-st-etienne.fr> wrote: > >> VFS: Cannot open root device "sda1" or unknown-block(0,0) >> Please append a correct "root=" boot option >> Kernel panic - not syncing: VFS: Unable to mount root fs on >> unknown-block(0,0) >> >> >> config file for the centos 5.2 vm >> kernel = "/boot/vmlinuz-2.6.18-128.1.14.el5xen" >> initrd = "/boot/initrd-2.6.18-128.1.14.el5xen.img" > > Are you using dom0''s kernel and initrd for domU?I use the same kernel and initrd for domU and dom0 (located in the config file), maybe i have to cp -pR /lib/modules and /boot/kernel on the dom U ?... If yes, then my guess> is it''s missing xenblk module. It''s not needed on dom0 (which is why > it''s not normally included), but critical for domU. One way to make > jailtime.org images is by adjusting its kernel and initrd like this: > http://lists.xensource.com/archives/html/xen-users/2009-03/msg00372.html >I try your link but I have problems at the beginning, the vi command is not installed and for the yum I have this : bash-3.2# yum -y install kernel-xen vim-enhanced grub Traceback (most recent call last): File "/usr/bin/yum", line 4, in ? import yum File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 37, in ? import rpmsack File "/usr/lib/python2.4/site-packages/yum/rpmsack.py", line 24, in ? from packages import YumInstalledPackage File "/usr/lib/python2.4/site-packages/yum/packages.py", line 31, in ? import rpmUtils.arch File "/usr/lib/python2.4/site-packages/rpmUtils/arch.py", line 273, in ? canonArch = getCanonArch() File "/usr/lib/python2.4/site-packages/rpmUtils/arch.py", line 262, in getCanonArch return getCanonX86Arch(arch) File "/usr/lib/python2.4/site-packages/rpmUtils/arch.py", line 170, in getCanonX86Arch f = open("/proc/cpuinfo", "r") IOError: [Errno 2] No such file or directory: ''/proc/cpuinfo'' -- Cordialement, Fabien Murgues Service Commun Documentation Saint Etienne Informatique 23 rue Docteur Paul Michelon 42023 Saint Etienne Cedex 2 tél : 04 77 48 15 92 fax : 04 77 48 15 91 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Mon, Jun 29, 2009 at 2:51 PM, Fabien Murgues<fabien.murgues@univ-st-etienne.fr> wrote:>> One way to make >> jailtime.org images is by adjusting its kernel and initrd like this: >> http://lists.xensource.com/archives/html/xen-users/2009-03/msg00372.html >> > I try your link but I have problems at the beginning, the vi command is > not installed and for the yum I have this : > > bash-3.2# yum -y install kernel-xen vim-enhanced grub> IOError: [Errno 2] No such file or directory: ''/proc/cpuinfo''Assuming the domU is mounted on /mnt, you could simply run this before chrooting cp /proc/cpuinfo /mnt/proc -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha wrote:> On Mon, Jun 29, 2009 at 2:51 PM, Fabien > Murgues<fabien.murgues@univ-st-etienne.fr> wrote: >>> One way to make >>> jailtime.org images is by adjusting its kernel and initrd like this: >>> http://lists.xensource.com/archives/html/xen-users/2009-03/msg00372.html >>> >> I try your link but I have problems at the beginning, the vi command is >> not installed and for the yum I have this : >> >> bash-3.2# yum -y install kernel-xen vim-enhanced grub > >> IOError: [Errno 2] No such file or directory: ''/proc/cpuinfo'' > > Assuming the domU is mounted on /mnt, you could simply run this before chrooting > cp /proc/cpuinfo /mnt/proc >yes it works for the yum update/. I follow the steps of http://lists.xensource.com/archives/html/xen-users/2009-03/msg00372.html , when i launched everything seems ok but i have this, like it can''t mount the root file system : 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! my domU fstab for the root : /dev/sda1 / ext3 defaults 1 1 -- Cordialement, Fabien Murgues Service Commun Documentation Saint Etienne Informatique 23 rue Docteur Paul Michelon 42023 Saint Etienne Cedex 2 tél : 04 77 48 15 92 fax : 04 77 48 15 91 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
It was a initrd problem I solve my problem with this http://www.virtuatopia.com/index.php/A_Xen_Guest_OS_fails_to_boot_with_a_%22switchroot:_mount_failed:_No_such_file_or_directory_error_message%22_error_message. but unfortunately i have still the blocked state ... Fabien Murgues wrote:> Fajar A. Nugraha wrote: >> On Mon, Jun 29, 2009 at 2:51 PM, Fabien >> Murgues<fabien.murgues@univ-st-etienne.fr> wrote: >>>> One way to make >>>> jailtime.org images is by adjusting its kernel and initrd like this: >>>> http://lists.xensource.com/archives/html/xen-users/2009-03/msg00372.html >>>> >>> I try your link but I have problems at the beginning, the vi command is >>> not installed and for the yum I have this : >>> >>> bash-3.2# yum -y install kernel-xen vim-enhanced grub >>> IOError: [Errno 2] No such file or directory: ''/proc/cpuinfo'' >> Assuming the domU is mounted on /mnt, you could simply run this before chrooting >> cp /proc/cpuinfo /mnt/proc >> > yes it works for the yum update/. > I follow the steps of > http://lists.xensource.com/archives/html/xen-users/2009-03/msg00372.html > , when i launched everything seems ok but i have this, like it can''t > mount the root file system : > > 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! > > my domU fstab for the root : > /dev/sda1 / ext3 defaults 1 1 >-- Cordialement, Fabien Murgues Service Commun Documentation Saint Etienne Informatique 23 rue Docteur Paul Michelon 42023 Saint Etienne Cedex 2 tél : 04 77 48 15 92 fax : 04 77 48 15 91 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users