Sorry, me again. I think I know why this is happening. The image file
I'm using as a disk has two partitions on it (I'm guessing one for
boot loader and one for is the main partition?)
[root@localhost xen]# fdisk -lu /home/xen/image
Device Boot Start End Blocks Id System
imagep1 * 63 208844 104391 83 Linux
imagep2 208845 20466809 10128982+ 8e Linux LVM
Partition 2 has different physical/logical endings:
phys=(1023, 254, 63) logical=(1273, 254, 63)
And its not booting because I'm trying to put the entire file on
domU's sda1 rather than just that second partition. I tried making it
/dev/sda instead of sda1 (even though I'm pretty sure thats not the
right way to do it) and now a new error happens during boot:
EXT3-fs: mounted filesystem with ordered data mode.
Kernel panic - not syncing: Attempted to kill init!
Slow progress, but I'm getting closer :-). Anyone know how I can set
up the partitions correctly from an image file and boot from it?
On Wed, Jul 8, 2009 at 12:06 PM, Peter Mellon <knascent@xxxxxxxxx> wrote:
> Hello again,
> I just realized what the problem was. I didn't specify a 'ramdisk' option in
> my config file. I told it to use the same initrd as the dom0 and I got a
> little further in the domU boot, but now I have this error message:
> VFS: Can't find ext3 filesystem on dev sda1
> Kernel panc - not syncing: Attempted to kill init!
> Anyone know how I can fix this?
> Thanks a lot
> On Wed, Jul 8, 2009 at 11:51 AM, Peter Mellon <knascent@xxxxxxxxx> wrote:
>> I've finally been able to install Xen (version 3.4 with kernel 2.6.18) and
>> booted the xen kernel. Now I'm trying to create a VM that uses an image file
>> as its disk, but a few seconds after I boot the VM it stops with this
>> [root@localhost xen]# xm create -c xmexample1 vmid=1
>> No filesystem could mount root, tried: ext2
>> Kernel panic - not syncing: VFS: Unable to mount root fs on
>> Here is the config file:
>> kernel = "/boot/vmlinuz-184.108.40.206-xen"
>> memory = 400
>> name = "ExampleDomain"
>> vcpus = 4
>> vif = [ 'mac=00:16:3e:00:01:01, bridge=br0' ]
>> disk = [ 'file:/home/xen/image,sda1,w' ]
>> root = "/dev/sda1 ro"
>> extra = "4"
>> That image, /home/xen/image, was created by a previous Xen installation (it
>> came with my Fedora 7 distro with virt-manager, so I did not have to manage
>> config files. I want to boot from it again using the newest Xen)
Xen-users mailing list