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

Jouni Malinen j at w1.fi
Thu Jun 18 12:54:35 EDT 2015


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)

The example config in hostap.git should work as well:

<in kernel source code root directiory>
cp <hostap-root>/tests/hwsim/vm/kernel-config .config
make oldconfig   # and enter for defaults to all
make -j8


At least with wireless-testing.git, that resulted with a kernel image
that works fine with hwsim VM.

-- 
Jouni Malinen                                            PGP id EFC895FA


More information about the HostAP mailing list