kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / 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 --]

[-- 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 --]

[-- 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 --]

[-- 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, other threads:[~2019-06-20  6:44 UTC | newest]

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).