[Lguest] newbie question in lguest usage

Tiago Maluta maluta_tiago at yahoo.com.br
Tue Feb 12 14:28:16 EST 2008


Hi,

I'm trying to make a firs use of lguest.
Could I try lguest some program? I'll explain:


------------- init .c --------------------
#include <stdio.h>
main() {

         printf("Test \n");

         sleep(500);
}
----------------------------------------

#> gcc -o init init.c -static
#> echo init | cpio -o -H newc | gzip > test.cpio.gz
#> ./lguest 100 /usr/src/linux/arch/x86/boot/bzImage  --initrd test.cpio.gz


Is it the right way? If not, how can I do?

My last lines was:

Using IPI No-Shortcut mode
VFS: Cannot open root device "<NULL>" or unknown-block(0,0)
Please append a correct "root=" boot option; here are the available 
partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on 
unknown-block(0,0)
lguest: CRASH: VFS: Unable to mount root fs on unknown-block(0,0)

Must I create a img file, following all hierarchical parameters?


Best regards,

--
Tiago Maluta



More information about the Lguest mailing list