[hwsim/vm Error] Cannot open root device "root" or unknown-block(0,0): error -19

Rahul Jain rahul.jain
Fri Jun 19 02:39:52 PDT 2015


Thanks  Johannes & Jouni for your inputs.
I used kernel_config under vm directory and it works smoothly.

grep VIRTIO .config.WPAS | grep -v ^#
CONFIG_NET_9P_VIRTIO=y
CONFIG_VIRTIO=y
CONFIG_VIRTIO_PCI=y

(CONFIG_VIRTIO_PCI_LEGACY is missing in default kernel_config under vm)


------- Original Message -------
Sender : Johannes Berg<johannes at sipsolutions.net>
Date : Jun 18, 2015 23:08 (GMT+05:30)
Title : Re: [hwsim/vm Error] Cannot open root device "root" or unknown-block(0,0): error -19

On Thu, 2015-06-18 at 19:54 +0300, Jouni Malinen wrote:
> On Thu, Jun 18, 2015 at 03:49:07PM +0200, Johannes Berg wrote:
> > On Thu, 2015-06-18 at 15:48 +0200, Johannes Berg wrote:
> > > On Thu, 2015-06-18 at 13:28 +0000, Rahul Jain wrote:
> > > > In my guest kernel config, CONFIG_VIRTIO & CONFIG_VIRTIO_PCI are enabled
> > > 
> > > You need CONFIG_VIRTIO_BLK=y for sure. Probably _NET and _CONSOLE too.
> > 
> > Oh and surely CONFIG_NET_9P_VIRTIO=y
> 
> This works for me:
> 
> grep VIRTIO .config | grep -v ^#
> CONFIG_NET_9P_VIRTIO=y
> CONFIG_VIRTIO=y
> CONFIG_VIRTIO_PCI=y
> CONFIG_VIRTIO_PCI_LEGACY=y
> 
> (i.e., no CONFIG_VIRTIO_BLK or _NET or _CONSOLE)

Yeah you're right, we don't have the root filesystem as a block device,
so you really just need 9P (and probably 9P_VIRTIO)

johannes



More information about the Hostap mailing list