Monday 15 September 2014

linux: running self compiled kernel in qemu: VFS: Unable to mount root fs on unknown wn-block(0,0) -


I try to run it and do not know what I'm doing wrong. I've created Debian with the Debian .img (Virtual Device Manager with Disk in Raw format - I think the GUI for libvirt) and has no trouble with Debian installed. Now I want to run it with the self compiled kernel. I copied the .config-file to my work (virtual) Debian and did not make any other changes.

  qemu-system- x86_64 -m 1024M -kernel / path / to / bzImage -hda /var/lib/libvirt/images/Debian.img -append "Root: What I'm doing = / Dev / sda1 console = ttyS0 "-enable-kvm -nographic   

But I always get this error message during boot. [0.195285] Getting Started Network Drop Monitor Service [0.196177] List of All Partitions: [0.196641] No Filesystem Could Root, Try: [0.197292] Kernel Terror - Not Syncing: VFS: unable to mount route fs at unknown block (0,0) [0.198355] PID: 1, com: Swapper / 0 Not Stained 3.2.46 # 7 [0.19 9 55] Call Trace: [0.199386] [& lt ; Ffffffff81318c30 & gt;] Terror + 0x95 / 0x19e [0.200049] [& lt; Ffffffff81680f7d & gt;] Mount_block_root + 0x245 / 0x271 [0.200834] [& lt; Ffffffff8168112f & gt;] Prepare_namespace + 0x133 / 0x169 [0.2015 9] [& lt; Ffffffff81680c94 & gt;] Kernel_init + 0x14c / 0x151 [0.202273] [& lt; Ffffffff81325a34 & gt;] Kernel_thread_helper + 0x4 / 0x10 [0.203022] [& lt; Ffffffff81680b48 & gt;] Start_kernel + 0x3c1 / 0x3c1 [0.203716] [& lt; Ffffffff81325a30 & gt;] Gs_change + 0x13 / 0x13

What am I doing wrong? Any help please do i have to pass the iThird option? I tried it already but there was no luck yet.

Some time has passed, but as I remember it was to provide an initial RAM disk. This is how I got it working with hardware acceleration

compilation
  defconfig CONFIG_EXT4_FS = y CONFIG_IA32_EMULATION create = y CONFIG_VIRTIO_PCI = y (virtualization -> Virtio device CONFIG_VIRTIO_BALLOON = y (Virtualization -> Valio Balloon Driver) CONFIG_VIRTIO_BLK = y (Device Drivers - & gt; Block -> Virtio Block Driver) CONFIG_VIRTIO_NET = y (Device Drivers - & gt; Network Device Support -> Virtio Network Driver) CONFIG_VIRTIO = Y (auto selected) CONFIG_VIRTIO_RING = y (auto selected)   

--- & gt; See

Enable Parachart in the Config

Disable NMI videogon on HOST to use display counters on GUEST You can ignore it.

  cat / proc / sys / kernel / nmi_watchdog   

--- & gt;

Start in QEMU
  view sudo qemu-system- x86_64 -m 1024M -hda /var/lib/libvirt/images/DEbian.img -view KVM -initrd /home/username/compiled_kernel/initrd.img-3.2.46-kernel/home/username/combed_kernel/bzImage-append "root = / dev / sda1 console = ttyS0" -nographic -redir TCP: 2222 :: 22 -cpu Host-smp core = 2   

start at KVM

Kernal Path: / home / username / compiled_kernel / bzImage initrd path
: / home / username / Compiled_kernel / Initrd.img-3.2.46
kernel logic: root = / dev / sda1

Hope there is only one problem.

No comments:

Post a Comment