[Lguest] Fwd: /dev/vda

Gaurav Kukreja mailme.gaurav at gmail.com
Mon Nov 8 16:51:47 EST 2010


---------- Forwarded message ----------
From: Gaurav Kukreja <mailme.gaurav at gmail.com>
Date: Mon, Nov 8, 2010 at 11:21 AM
Subject: Re: [Lguest] /dev/vda
To: Eugene Kov <mshina at hotmail.com>


Hey,

./lguest 64 ../../vmlinux --block=disk_image root=/dev/vda


This should solve your problem.

block is the pseudo block device. In your case, *disk_image*.

root is where this bock device will be mounted inside the guest. For Lguest,
*/dev/vda*.

Happy to help.


Regards,

2010/11/7 Eugene Kov <mshina at hotmail.com>

>
> Ok, so I tried to do what you said with some web help, and this is what I
> did:
>
> $ dd if=/dev/zero of=disk-image count=4194304
> $ mkfs -t ext3 -q disk-image
> $ mkdir fs
> $ mount -o loop=/dev/loop0 disk-image fs0
>
> $ mount -o loop=/dev/loop1 initrd-1.1-i386.img  fs1
> $ cp -R fs1 fs0
> $ ./lguest 64 ../../vmlinux --block=initrd-1.1-i386.img root=/home/uname/fs0/
>
> But I still get the same kernel panic:
> VFS: Cannot open root device "/home/uname/fs0/" or unknown-block(0,0)
>
> I'm really embarrassed to ask you again, but I don't have any other option, so again THANK YOU SO MUCH!
>
> Eugene
>
>
>
>
> ------------------------------
> Date: Sun, 7 Nov 2010 16:06:23 +0530
> Subject: Re: [Lguest] /dev/vda
> From: mailme.gaurav at gmail.com
> To: mshina at hotmail.com
> CC: lguest at lists.ozlabs.org
>
> Hi Eugene,
>
> So basically what you are looking for is how to create a root disk.
>
> AFAIK /dev/vda is where the guest is supposed to look for the root disk.
> This is where the rootdisk created by you will be mounted. Someone please
> clarify.
>
> Now for creating a rootdisk, this is the method I used. Create a pseudo
> block device of size 2 GB or how much you need. Format this disk with ext3
> filesystem. Download a root disk from the link mentioned in lguest.txt.
> Mount the two pseudo disks. Copy the contents from the downloaded root disk
> to the pseudo disk created by you. This will contain most importantly the
> console.
>
> Pass this pseudo disk as the rootdisk while booting the guest with lguest.
>
> Inside the guest, /dev/vda is where this disk is going to be mounted.
>
> Have fun with Lguest. I hope I have helped.
>
> Regards,
>
> 2010/11/7 Eugene Kov <mshina at hotmail.com>
>
>  Hi all,
>
> I'm new to lguest and I'm trying to launch a guest for the first time. I
> followed the instructions on "lguest.txt" but it is not mentioned there how
> to create /dev/vda.  I want my disk image to be a file because I don't have
> an available primary partition. A search on the web haven't help me...
> Sorry if the question is stupid but I'm new to the virtualization world.
>
> Thank you very much
>
> Eugene
>
> _______________________________________________
> Lguest mailing list
> Lguest at lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/lguest
>
>
>
>
> --
> Gaurav Kukreja
>
> +91 997 030 1257
>
>


-- 
Gaurav Kukreja

+91 997 030 1257




-- 
Gaurav Kukreja

+91 997 030 1257
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/lguest/attachments/20101108/7d620dd7/attachment.html>


More information about the Lguest mailing list