Rajiv Rajaian
2008-Jun-23 13:06 UTC
[Xen-users] Kernel panic while starting my guest domain
Hi Ive installed Fedora core 6 and enabled virtualization support. Now I tried to create guest os with scientific linux 3 image file ( slc3-root.img ) Logical volumes compnode,swap and module have been created with the following steps lvcreate -L10G -n compnode vg lvcreate -L1G -n compswap vg lvcreate -L1G -n compswap vg mkdir /mnt/tmp mount -o loop slc3-root.img /mnt/tmp Also in /mnt/tmp/etc/fstab /dev/sda6 / ext3 defaults 1 1 none /dev/pts devpts gid=5,mode=620 0 0 proc /proc proc defaults 0 0 none /dev/shm tmpfs defaults 0 0 /dev/sda8 swap swap defaults 0 0 /dev/sda6 /lib/modules ext2 defaults 0 1 My /etc/xen/xmdefconfig looks like def vmid_check(var, val): val = int(val) if val <= 0: raise ValueError return val #Define the ''vmid'' variable so that ''xm create'' knows about it. xm_vars.var(''vmid'', use="Virtual machine id. Integer greater than 0.", check=vmid_check) #Check the defined variables have valid values.. xm_vars.check() #General settings kernel = "/boot/vmlinuz-2.6.18-1.2798.fc6xen" memory = 128 gateway = "172.16.10.1" extra = "fastboot" vif = [''''] ramdisk = "/boot/initrd-2.6.18-1.2798.fc6xen.img" if vmid == 1: disk = [''phy:vg/compnode,sda7,w'',''phy:vg/compswap,sda8,w'', ''phy:vg/modules,sda6,r''] ip = "172.16.10.201" vif=[''bridge=xenbr0''] hostname = "compnode" name = "compnode" # Set root device. root = "/dev/sda7 ro" while creating the xen domain with command xm create -c vmid=1 Im getting the kernel panic error.. Is there any thing wrong with my configurations?? Here is my Error 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! _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users