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

[Xen-users] Kernel panic while starting my guest domain


  • To: xen-users <Xen-users@xxxxxxxxxxxxxxxxxxx>
  • From: "Rajiv Rajaian" <rajiv.grid@xxxxxxxxx>
  • Date: Mon, 23 Jun 2008 13:06:45 +0000
  • Delivery-date: Mon, 23 Jun 2008 06:07:20 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=qrWQdfpGxpchZBAvtFrcE7SVm++iAHBzuwKd3hteesdeGtyLT3D1gUyGBy3bmEqpcU TutV+ftQNL0pGg51cfJqToCfiKkAFGn2vFCkuOMea5JtRN8YZt6MD91xMprDdbGEPPlY EfOxWL6LJvpPP73ROfFD52i0gux3WpNBxq5dY=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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@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®.