Hi,<br><br>I am not so sure about the /dev/hvc0 console that you are talking about.<br><br>/dev/vda you wont find in the host. This is the mount point inside the guest. I wonder why lguest requires you to even pass that as a parameter. You dont have to create a /dev/vda. This will exist inside the guest when it boots up, and this is where the root disk will be mounted. <br>
<br>I guess the /dev/vda is basically in the initramdisk. I am only guessing and stating in case you can make better sense out of my guess. The initramdisk is a pseudo filesystem that remains in the RAM, which is why "RAMDISK". It has these mount points where the root filesystem, devices node, procfs, and tempfs are mounted on. /dev/vda is a mount point in the ramdisk where the virtual root disk for the guest OS will be mounted.<br>
<br>I am no angel, neither an expert... I have done a project on Lguest once.<br><br>Regards,<br><br><div class="gmail_quote">2010/11/8 Eugene Kov <span dir="ltr"><<a href="mailto:mshina@hotmail.com">mshina@hotmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">



<div>
Thanks!!!<br>I changed the command line. The problem is that I don't have /dev/vda in my system. Creating it using:"mknod /dev/vda b 112 0" is causing the same problem. How can I create it? Could it be ralated to that I don't have /dev/hvc0 console?<br>
<br>Thanks you are probably an angel<br><br>Eviatar<br><br><hr>Date: Mon, 8 Nov 2010 11:21:16 +0530<div><div></div><div class="h5"><br>Subject: Re: [Lguest] /dev/vda<br>From: <a href="mailto:mailme.gaurav@gmail.com" target="_blank">mailme.gaurav@gmail.com</a><br>
To: <a href="mailto:mshina@hotmail.com" target="_blank">mshina@hotmail.com</a><br><br>Hey,<br><pre>./lguest 64 ../../vmlinux --block=disk_image root=/dev/vda</pre><br>This should solve your problem.<br><br>block is the pseudo block device. In your case, <b>disk_image</b>.<br>
<br>root is where this bock device will be mounted inside the guest. For Lguest, <b>/dev/vda</b>.<br>
<br>Happy to help.<br><br>Regards,<br><br><div>2010/11/7 Eugene Kov <span dir="ltr"><<a href="mailto:mshina@hotmail.com" target="_blank">mshina@hotmail.com</a>></span><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">





<div>
<br>Ok, so I tried to do what you said with some web help, and this is what I did:<br><br><pre>$ dd if=/dev/zero of=disk-image count=4194304<br>$ mkfs -t ext3 -q disk-image<br>$ mkdir fs<br>$ mount -o loop=/dev/loop0 disk-image fs0<br>
<br>$ mount -o loop=/dev/loop1 initrd-1.1-i386.img  fs1<br>$ cp -R fs1 fs0<br>$ ./lguest 64 ../../vmlinux --block=initrd-1.1-i386.img root=/home/uname/fs0/<br><br>But I still get the same kernel panic:<br>VFS: Cannot open root device "/home/uname/fs0/" or unknown-block(0,0)<br>
<br><br>I'm really embarrassed to ask you again, but I don't have any other option, so again THANK YOU SO MUCH!<br><font color="#888888"><br>Eugene<br><br><br><br></font></pre><div> <hr>Date: Sun, 7 Nov 2010 16:06:23 +0530<br>

Subject: Re: [Lguest] /dev/vda<br>From: <a href="mailto:mailme.gaurav@gmail.com" target="_blank">mailme.gaurav@gmail.com</a><br>To: <a href="mailto:mshina@hotmail.com" target="_blank">mshina@hotmail.com</a><br>CC: <a href="mailto:lguest@lists.ozlabs.org" target="_blank">lguest@lists.ozlabs.org</a><br>

<br></div><div><div></div><div>Hi Eugene,<div><br></div><div>So basically what you are looking for is how to create a root disk.</div><div><br></div><div>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.</div>


<div><br></div><div>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.</div>


<div><br></div><div>Pass this pseudo disk as the rootdisk while booting the guest with lguest.</div><div><br></div><div>Inside the guest, /dev/vda is where this disk is going to be mounted.</div><div><br></div><div>Have fun with Lguest. I hope I have helped.</div>


<div><br></div><div>Regards,</div><div><br></div><div><div>2010/11/7 Eugene Kov <span dir="ltr"><<a href="mailto:mshina@hotmail.com" target="_blank">mshina@hotmail.com</a>></span><br><blockquote style="padding-left: 1ex;">






<div>
Hi all,<br><br>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...<br>


Sorry if the question is stupid but I'm new to the virtualization world.<br><br>Thank you very much<br><br>Eugene<br>                                           </div>
<br>_______________________________________________<br>
Lguest mailing list<br>
<a href="mailto:Lguest@lists.ozlabs.org" target="_blank">Lguest@lists.ozlabs.org</a><br>
<a href="https://lists.ozlabs.org/listinfo/lguest" target="_blank">https://lists.ozlabs.org/listinfo/lguest</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Gaurav Kukreja<br><br>+91 997 030 1257<br><br>
</div>                                      </div></div></div>
</blockquote></div><br><br clear="all"><br>-- <br>Gaurav Kukreja<br><br>+91 997 030 1257<br><br>                                    </div></div></div>
</blockquote></div><br><br clear="all"><br>-- <br>Gaurav Kukreja<br><br>+91 997 030 1257<br><br>