[Lguest] Creating distro root disk image
Jason Yeh
jasonyeh0908 at gmail.com
Fri Aug 17 11:55:51 EST 2007
Rusty Russell wrote:
> On Thu, 2007-08-16 at 19:01 -0500, Jason Yeh wrote:
>> hi all,
>>
>> I tried to follow the instructions given in lguest.txt on creating root
>> image from distro iso. However, the instructions shed no light on how
>> the rootfile should be partitioned during distro installation. My
>> several attempts to create root image all failed with guest kernel
>> failing to mount root with error message:
>>
>> No filesystem could mount root, tried: ext3 ext2
>> .Kernel panic - not syncing: VFS: Unable to mount root fs ...
>>
>> I tried with and without bootloader and with and without swap. All
>> attemps were done with one huge root partition under QEMU.
>>
>> My question is that how should the rootfile be partitioned during distro
>> install running QEMU so it will be useable by lguest guest? Thanks.
>
> Hi Jason,
>
> What does "file rootfile" give, and what was your lguest command line?
>
This is the only image left on the hard disk:
jyeh at socrates:~/vmware/Ubuntu$ file guestos.img
guestos.img: x86 boot sector; partition 1: ID=0x83, active, starthead 1,
startsector 63, 40098177 sectors; partition 2: ID=0x5, starthead 254,
startsector 40098240, 1831410 sectors, code offset 0x48
The lguest command is:
sudo /home/jyeh/Dev/linux-2.6-git/Documentation/lguest/lguest 64m
/home/jyeh/Dev/linux-2.6-git/vmlinux --tunnet=192.168.19.1
--block=/home/jyeh/vmware/Ubuntu/guestos.img root=/dev/lgba
The img file is converted from VMWare vmdk file and verified to work
with QEMU.
Jason
More information about the Lguest
mailing list