[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] CentOS 5.1 and Xen - mount: could not find filesystem '/dev/root'



Hi Erich,

Make sure that your LVM is active.
I have seen an issue like yours before when trying to boot a VM from a
physical partition with a Logical Volume that was not active.

try running lvscan and make sure that "tcga1vg/tcga1root" is active.

You should output something like this...

[xenuser@XEN-Host-1 ~]# lvscan
  ACTIVE   Original '/dev/Share2/Web2' [8.00 GB] inherit
  ACTIVE   Snapshot '/dev/Share2/new_snapshot' [82.43 GB] inherit
  ACTIVE            '/dev/Share3/Spam1' [8.00 GB] inherit
  ACTIVE            '/dev/Share3/Spam2' [8.00 GB] inherit
  ACTIVE            '/dev/Share3/Spam3' [8.00 GB] inherit
  ACTIVE            '/dev/Share3/Spam4' [8.00 GB] inherit
  ACTIVE            '/dev/Share3/Spam5' [8.00 GB] inherit
  ACTIVE            '/dev/VolGroup00/LogVol00' [66.28 GB] inherit
  ACTIVE            '/dev/VolGroup00/LogVol01' [1.94 GB] inherit
  ACTIVE            '/dev/Share1/XenOS' [90.44 GB] inherit

As far as whether it is para or fully virtualized that depends on how it
is installed. I just work with para-virtualized systems so I do not know
what to look for in the config for a fully virtualized VM.


Jeff

On Fri, 2007-12-14 at 06:28 -0800, Erich Weiler wrote:
> Hi all-
> 
> I'm hoping someone can help me with this problem with Xen under CentOS 
> 5.1 (RHEL 5.1) I'm having... This is the Xen package that comes stock 
> with the distribution, I didn't compile it from source.  I can boot 
> Domain0 and the hypervisor just fine.  I'm trying to bring up a Xen 
> guest VM and it crashes on boot, with this error:
> 
> # xm create -c tcga1 vmid=1
> 
> ...
> 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!
> 
> I can't for the life of me figure this out... Here is my domain config 
> file info:
> 
> kernel = "/boot/vmlinuz-2.6.18-53.1.4.el5xen"
> ramdisk = "/boot/initrd-2.6.18-53.1.4.el5xen.img"
> memory = 4096
> name = "tcga1"
> cpus = "" # leave to Xen to pick
> vcpus = 2
> vif = [ '' ]
> disk = [ 'phy:tcga1vg/tcga1root,sda1,w' ]
> disk = [ 'phy:tcga1vg/tcga1data,sda2,w' ]
> disk = [ 'phy:tcga1vg/tcga1swap,sda3,w' ]
> root = "/dev/sda1 ro"
> extra = "selinux=0 3"
> 
> I tried making a custom initrd file with --preload=xennet 
> --preload=xenblk and that didn't seem to help...  Also I'm using LVM for 
> my disk devices but I don't think that should make a difference?
> 
> I have the guest domain VM configured in fstab to reference sda1, sda2 
> and sda3 as noted in the above config... Does anyone have guidance for me?
> 
> Also, one other question... Given my above config, is this VM running in 
> para-virtualized mode or full-virtualized mode? I think it's para but 
> hard to know for sure...
> 
> Thanks much in advance!
> 
> -some_guy
> 
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users


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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.