Kernel Newbies archive on lore.kernel.org
 help / color / Atom feed
* QEMU end Kernel panic - not sysncing: VFS: Unable to mount toor fs on unknown
@ 2019-06-19 17:47 Manuel Quintero Fonseca
  2019-06-19 22:52 ` Connor Kuehl
  0 siblings, 1 reply; 4+ messages in thread
From: Manuel Quintero Fonseca @ 2019-06-19 17:47 UTC (permalink / raw)
  To: kernelnewbies

[-- Attachment #1.1: Type: text/plain, Size: 680 bytes --]

Hello, I have been wanting to learn how to use QEMU for the development of
the linux kernel, at the kernelnewbies.org page I did not find any
information, in google I found this page:
https://www.collabora.com/news-and-blog/blog/2017/01/16/setting-up-qemu-kvm-for-kernel-development/

Following the first examples, it gives me two problems, I hope you can
guide me.

$qemu-system-x86_64 -kernel /boot/vmlinuz-`uname -r`

end Kernel panic - not sysncing: VFS: Unable to mount toor fs on
unknown-block(0,0)


aku@openSUSE:~> sudo qemu-system-x86_64 -kernel /boot/vmlinuz-`uname -r`
[sudo] password for root:
Unable to init server: Could not connect: Connection refused



Thank you

[-- Attachment #1.2: Type: text/html, Size: 1547 bytes --]

<div dir="ltr"><div><span class="gmail-tlid-translation gmail-translation" lang="en"><span title="" class="gmail-"><span class="gmail-tlid-translation gmail-translation" lang="en"><span title="" class="gmail-">Hello, I have been wanting to learn how to use QEMU for the development of the linux kernel, at the <a href="http://kernelnewbies.org">kernelnewbies.org</a> page I did not find any information, in google I found this page:</span></span> <a href="https://www.collabora.com/news-and-blog/blog/2017/01/16/setting-up-qemu-kvm-for-kernel-development/">https://www.collabora.com/news-and-blog/blog/2017/01/16/setting-up-qemu-kvm-for-kernel-development/</a></span><br></span></div><div><br></div><div><span class="gmail-tlid-translation gmail-translation" lang="en"><span title="">Following the first examples, it gives me two problems, I hope you can guide me.</span></span></div><div><br></div><div>$qemu-system-x86_64 -kernel /boot/vmlinuz-`uname -r` <br><br>end Kernel panic - not sysncing: VFS: Unable to mount toor fs on unknown-block(0,0)</div><div><br></div><div><br></div><div>aku@openSUSE:~&gt; sudo qemu-system-x86_64 -kernel /boot/vmlinuz-`uname -r` <br>[sudo] password for root: <br>Unable to init server: Could not connect: Connection refused<br><span class="gmail-tlid-translation gmail-translation" lang="en"></span></div><div><span class="gmail-tlid-translation gmail-translation" lang="en"></span></div><span class="gmail-tlid-translation gmail-translation" lang="en"><br><br><br><span title="">Thank you</span></span></div>

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: QEMU end Kernel panic - not sysncing: VFS: Unable to mount toor fs on unknown
  2019-06-19 17:47 QEMU end Kernel panic - not sysncing: VFS: Unable to mount toor fs on unknown Manuel Quintero Fonseca
@ 2019-06-19 22:52 ` Connor Kuehl
  2019-06-20  4:05   ` Manuel Quintero Fonseca
  0 siblings, 1 reply; 4+ messages in thread
From: Connor Kuehl @ 2019-06-19 22:52 UTC (permalink / raw)
  To: Manuel Quintero Fonseca; +Cc: kernelnewbies

[-- Attachment #1.1: Type: text/plain, Size: 1453 bytes --]

On Wed, Jun 19, 2019 at 10:47 AM Manuel Quintero Fonseca <manuel@uas.edu.mx>
wrote:

> Hello, I have been wanting to learn how to use QEMU for the development of
> the linux kernel, at the kernelnewbies.org page I did not find any
> information, in google I found this page:
> https://www.collabora.com/news-and-blog/blog/2017/01/16/setting-up-qemu-kvm-for-kernel-development/
>
> Following the first examples, it gives me two problems, I hope you can
> guide me.
>
> $qemu-system-x86_64 -kernel /boot/vmlinuz-`uname -r`
>
> end Kernel panic - not sysncing: VFS: Unable to mount toor fs on
> unknown-block(0,0)
>
>
> aku@openSUSE:~> sudo qemu-system-x86_64 -kernel /boot/vmlinuz-`uname -r`
> [sudo] password for root:
> Unable to init server: Could not connect: Connection refused
>

Hi Manuel,

This is because you're not supplying it with a root file system. The
article you linked goes on to describe this process, but I've found this
blog post[1] to be a bit more concise and easy to follow. It'll show you
how to use "mkinitramfs" to make a ramdisk to pass to QEMU alongside the
kernel you're trying to boot.

Good luck!

Connor

[1]
http://nickdesaulniers.github.io/blog/2018/10/24/booting-a-custom-linux-kernel-in-qemu-and-debugging-it-with-gdb/


>
>
>
> Thank you
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>

[-- Attachment #1.2: Type: text/html, Size: 3639 bytes --]

<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 19, 2019 at 10:47 AM Manuel Quintero Fonseca &lt;<a href="mailto:manuel@uas.edu.mx">manuel@uas.edu.mx</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><span class="gmail-m_2929466180556016210gmail-tlid-translation gmail-m_2929466180556016210gmail-translation" lang="en"><span title="" class="gmail-m_2929466180556016210gmail-"><span class="gmail-m_2929466180556016210gmail-tlid-translation gmail-m_2929466180556016210gmail-translation" lang="en"><span title="" class="gmail-m_2929466180556016210gmail-">Hello, I have been wanting to learn how to use QEMU for the development of the linux kernel, at the <a href="http://kernelnewbies.org" target="_blank">kernelnewbies.org</a> page I did not find any information, in google I found this page:</span></span> <a href="https://www.collabora.com/news-and-blog/blog/2017/01/16/setting-up-qemu-kvm-for-kernel-development/" target="_blank">https://www.collabora.com/news-and-blog/blog/2017/01/16/setting-up-qemu-kvm-for-kernel-development/</a></span><br></span></div><div><br></div><div><span class="gmail-m_2929466180556016210gmail-tlid-translation gmail-m_2929466180556016210gmail-translation" lang="en"><span title="">Following the first examples, it gives me two problems, I hope you can guide me.</span></span></div><div><br></div><div>$qemu-system-x86_64 -kernel /boot/vmlinuz-`uname -r` <br><br>end Kernel panic - not sysncing: VFS: Unable to mount toor fs on unknown-block(0,0)</div><div><br></div><div><br></div><div>aku@openSUSE:~&gt; sudo qemu-system-x86_64 -kernel /boot/vmlinuz-`uname -r` <br>[sudo] password for root: <br>Unable to init server: Could not connect: Connection refused<br></div></div></blockquote><div><br></div><div>Hi Manuel,</div><div><br></div><div>This is because you&#39;re not supplying it with a root file system. The article you linked goes on to describe this process, but I&#39;ve found this blog post[1] to be a bit more concise and easy to follow. It&#39;ll show you how to use &quot;mkinitramfs&quot; to make a ramdisk to pass to QEMU alongside the kernel you&#39;re trying to boot.</div><div><br></div><div>Good luck!</div><div><br></div><div>Connor</div><div><br></div><div>[1] <a href="http://nickdesaulniers.github.io/blog/2018/10/24/booting-a-custom-linux-kernel-in-qemu-and-debugging-it-with-gdb/">http://nickdesaulniers.github.io/blog/2018/10/24/booting-a-custom-linux-kernel-in-qemu-and-debugging-it-with-gdb/</a></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><span class="gmail-m_2929466180556016210gmail-tlid-translation gmail-m_2929466180556016210gmail-translation" lang="en"></span></div><div><span class="gmail-m_2929466180556016210gmail-tlid-translation gmail-m_2929466180556016210gmail-translation" lang="en"></span></div><span class="gmail-m_2929466180556016210gmail-tlid-translation gmail-m_2929466180556016210gmail-translation" lang="en"><br><br><br><span title="">Thank you</span></span></div>
_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org" target="_blank">Kernelnewbies@kernelnewbies.org</a><br>
<a href="https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" rel="noreferrer" target="_blank">https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
</blockquote></div></div>

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: QEMU end Kernel panic - not sysncing: VFS: Unable to mount toor fs on unknown
  2019-06-19 22:52 ` Connor Kuehl
@ 2019-06-20  4:05   ` Manuel Quintero Fonseca
  2019-06-20  6:43     ` Michal Rostecki
  0 siblings, 1 reply; 4+ messages in thread
From: Manuel Quintero Fonseca @ 2019-06-20  4:05 UTC (permalink / raw)
  To: Connor Kuehl; +Cc: kernelnewbies

[-- Attachment #1.1: Type: text/plain, Size: 1704 bytes --]

thank you all, I will review the information

El mié., 19 jun. 2019 a las 16:52, Connor Kuehl (<cipkuehl@gmail.com>)
escribió:

>
>
> On Wed, Jun 19, 2019 at 10:47 AM Manuel Quintero Fonseca <
> manuel@uas.edu.mx> wrote:
>
>> Hello, I have been wanting to learn how to use QEMU for the development
>> of the linux kernel, at the kernelnewbies.org page I did not find any
>> information, in google I found this page:
>> https://www.collabora.com/news-and-blog/blog/2017/01/16/setting-up-qemu-kvm-for-kernel-development/
>>
>> Following the first examples, it gives me two problems, I hope you can
>> guide me.
>>
>> $qemu-system-x86_64 -kernel /boot/vmlinuz-`uname -r`
>>
>> end Kernel panic - not sysncing: VFS: Unable to mount toor fs on
>> unknown-block(0,0)
>>
>>
>> aku@openSUSE:~> sudo qemu-system-x86_64 -kernel /boot/vmlinuz-`uname -r`
>> [sudo] password for root:
>> Unable to init server: Could not connect: Connection refused
>>
>
> Hi Manuel,
>
> This is because you're not supplying it with a root file system. The
> article you linked goes on to describe this process, but I've found this
> blog post[1] to be a bit more concise and easy to follow. It'll show you
> how to use "mkinitramfs" to make a ramdisk to pass to QEMU alongside the
> kernel you're trying to boot.
>
> Good luck!
>
> Connor
>
> [1]
> http://nickdesaulniers.github.io/blog/2018/10/24/booting-a-custom-linux-kernel-in-qemu-and-debugging-it-with-gdb/
>
>
>>
>>
>>
>> Thank you
>> _______________________________________________
>> Kernelnewbies mailing list
>> Kernelnewbies@kernelnewbies.org
>> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>
>

[-- Attachment #1.2: Type: text/html, Size: 4566 bytes --]

<div dir="ltr"><span class="gmail-tlid-translation gmail-translation" lang="en"><span title="" class="gmail-">thank you all, I will review the information</span></span></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El mié., 19 jun. 2019 a las 16:52, Connor Kuehl (&lt;<a href="mailto:cipkuehl@gmail.com">cipkuehl@gmail.com</a>&gt;) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 19, 2019 at 10:47 AM Manuel Quintero Fonseca &lt;<a href="mailto:manuel@uas.edu.mx" target="_blank">manuel@uas.edu.mx</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><span class="gmail-m_1258966388555191427gmail-m_2929466180556016210gmail-tlid-translation gmail-m_1258966388555191427gmail-m_2929466180556016210gmail-translation" lang="en"><span title="" class="gmail-m_1258966388555191427gmail-m_2929466180556016210gmail-"><span class="gmail-m_1258966388555191427gmail-m_2929466180556016210gmail-tlid-translation gmail-m_1258966388555191427gmail-m_2929466180556016210gmail-translation" lang="en"><span title="" class="gmail-m_1258966388555191427gmail-m_2929466180556016210gmail-">Hello, I have been wanting to learn how to use QEMU for the development of the linux kernel, at the <a href="http://kernelnewbies.org" target="_blank">kernelnewbies.org</a> page I did not find any information, in google I found this page:</span></span> <a href="https://www.collabora.com/news-and-blog/blog/2017/01/16/setting-up-qemu-kvm-for-kernel-development/" target="_blank">https://www.collabora.com/news-and-blog/blog/2017/01/16/setting-up-qemu-kvm-for-kernel-development/</a></span><br></span></div><div><br></div><div><span class="gmail-m_1258966388555191427gmail-m_2929466180556016210gmail-tlid-translation gmail-m_1258966388555191427gmail-m_2929466180556016210gmail-translation" lang="en"><span title="">Following the first examples, it gives me two problems, I hope you can guide me.</span></span></div><div><br></div><div>$qemu-system-x86_64 -kernel /boot/vmlinuz-`uname -r` <br><br>end Kernel panic - not sysncing: VFS: Unable to mount toor fs on unknown-block(0,0)</div><div><br></div><div><br></div><div>aku@openSUSE:~&gt; sudo qemu-system-x86_64 -kernel /boot/vmlinuz-`uname -r` <br>[sudo] password for root: <br>Unable to init server: Could not connect: Connection refused<br></div></div></blockquote><div><br></div><div>Hi Manuel,</div><div><br></div><div>This is because you&#39;re not supplying it with a root file system. The article you linked goes on to describe this process, but I&#39;ve found this blog post[1] to be a bit more concise and easy to follow. It&#39;ll show you how to use &quot;mkinitramfs&quot; to make a ramdisk to pass to QEMU alongside the kernel you&#39;re trying to boot.</div><div><br></div><div>Good luck!</div><div><br></div><div>Connor</div><div><br></div><div>[1] <a href="http://nickdesaulniers.github.io/blog/2018/10/24/booting-a-custom-linux-kernel-in-qemu-and-debugging-it-with-gdb/" target="_blank">http://nickdesaulniers.github.io/blog/2018/10/24/booting-a-custom-linux-kernel-in-qemu-and-debugging-it-with-gdb/</a></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><span class="gmail-m_1258966388555191427gmail-m_2929466180556016210gmail-tlid-translation gmail-m_1258966388555191427gmail-m_2929466180556016210gmail-translation" lang="en"></span></div><div><span class="gmail-m_1258966388555191427gmail-m_2929466180556016210gmail-tlid-translation gmail-m_1258966388555191427gmail-m_2929466180556016210gmail-translation" lang="en"></span></div><span class="gmail-m_1258966388555191427gmail-m_2929466180556016210gmail-tlid-translation gmail-m_1258966388555191427gmail-m_2929466180556016210gmail-translation" lang="en"><br><br><br><span title="">Thank you</span></span></div>
_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org" target="_blank">Kernelnewbies@kernelnewbies.org</a><br>
<a href="https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" rel="noreferrer" target="_blank">https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
</blockquote></div></div>
</blockquote></div>

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: QEMU end Kernel panic - not sysncing: VFS: Unable to mount toor fs on unknown
  2019-06-20  4:05   ` Manuel Quintero Fonseca
@ 2019-06-20  6:43     ` Michal Rostecki
  0 siblings, 0 replies; 4+ messages in thread
From: Michal Rostecki @ 2019-06-20  6:43 UTC (permalink / raw)
  To: kernelnewbies

On Wed, Jun 19, 2019 at 10:05:54PM -0600, Manuel Quintero Fonseca wrote:
> thank you all, I will review the information

There is also a nice tool which makes it easy to run a QEMU virtual
machine with locally built kernel:

https://git.kernel.org/pub/scm/utils/kernel/virtme/virtme.git/

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, back to index

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-19 17:47 QEMU end Kernel panic - not sysncing: VFS: Unable to mount toor fs on unknown Manuel Quintero Fonseca
2019-06-19 22:52 ` Connor Kuehl
2019-06-20  4:05   ` Manuel Quintero Fonseca
2019-06-20  6:43     ` Michal Rostecki

Kernel Newbies archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/kernelnewbies/0 kernelnewbies/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 kernelnewbies kernelnewbies/ https://lore.kernel.org/kernelnewbies \
		kernelnewbies@kernelnewbies.org kernelnewbies@archiver.kernel.org
	public-inbox-index kernelnewbies


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernelnewbies.kernelnewbies


AGPL code for this site: git clone https://public-inbox.org/ public-inbox