title: linux: running self compiled kernel in qemu: VFS: Unable to mount root fs on unknown wn-block(0,0)
body: <p>I try to get this running and don't know what I'm doing wrong. I have created an Debian.img (disk in raw format with virtual device manager - gui to libvirt I guess) and installed debian with no troubles. Now I want to get this running with a self compiled kernel. I copied the .config-file from my working (virtual) debian and made no more changes at all. This is what I do:</p>
  
  <pre><code>    qemu-system-x86_64 -m 1024M -kernel /path/to/bzImage -hda /var/lib/libvirt/images/Debian.img -append "root=/dev/sda1 console=ttyS0" -enable-kvm -nographic
  </code></pre>
  
  <p>But during boot I always get this error message.</p>
  
  <pre><code>    [    0.195285] Initializing network drop monitor service
      [    0.196177] List of all partitions:
      [    0.196641] No filesystem could mount root, tried: 
      [    0.197292] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
      [    0.198355] Pid: 1, comm: swapper/0 Not tainted 3.2.46 #7
      [    0.199055] Call Trace:
      [    0.199386]  [&lt;ffffffff81318c30&gt;] ? panic+0x95/0x19e
      [    0.200049]  [&lt;ffffffff81680f7d&gt;] ? mount_block_root+0x245/0x271
      [    0.200834]  [&lt;ffffffff8168112f&gt;] ? prepare_namespace+0x133/0x169
      [    0.201590]  [&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
  </code></pre>
  
  <p>What I'm doing wrong? Please someone help. Do I need to pass the -initrd option? I tried this already but had no luck yet.</p>