Skip to contentSkip to conversation

kvmtool: README: kernel config to support virtio-blk devices

PATCH In review Xingyou Chen 2 participants 3 messages Nov 8, 2016 – Nov 9, 2016 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kvmtool: README: kernel config to support virtio-blk devices

Kernel complains as:
VFS: Cannot open root device "vda" or unknown-block(0,0): error -6 when configured with CONFIG_VIRTIO_BLK=y according to README. CONFIG_SCSI_VIRTIO=y is also needed to bring guest into disk fs.

README +0 -0
index 5501f05..a24b451 100644
@@ -56,6 +56,7 @@ linux-0.2.img.bz2


  - For virtio-blk devices (--disk, -d):
        CONFIG_VIRTIO_BLK=y
+       CONFIG_SCSI_VIRTIO=y

  - For virtio-net devices ([--network, -n] virtio):
        CONFIG_VIRTIO_NET=y

#1 lore raw
Quoted 12 lines · Xingyou Chen

Kernel complains as:
VFS: Cannot open root device "vda" or unknown-block(0,0): error -6 when configured with CONFIG_VIRTIO_BLK=y according to README. CONFIG_SCSI_VIRTIO=y is also needed to bring guest into disk fs.

README +0 -0
index 5501f05..a24b451 100644
@@ -56,6 +56,7 @@ linux-0.2.img.bz2
Quoted 7 lines


  - For virtio-blk devices (--disk, -d):
        CONFIG_VIRTIO_BLK=y
+       CONFIG_SCSI_VIRTIO=y

  - For virtio-net devices ([--network, -n] virtio):
        CONFIG_VIRTIO_NET=y

I don't know how you generated this, but please use git. It's missing a cut between the commit log and the diff, as well as a diffstat.

Will

#2 lore raw

Kernel complains as:
VFS: Cannot open root device "vda" or unknown- block(0,0): error -6
when configured with CONFIG_VIRTIO_BLK=y according to README.
CONFIG_SCSI_VIRTIO=y is also needed to bring guest into disk fs.

---
 README | 1 +

 1 file changed, 1 insertion(+)
README +0 -0
index 5501f05..a24b451 100644
@@ -56,6 +56,7 @@ linux-0.2.img.bz2


  - For virtio-blk devices (--disk, -d):
        CONFIG_VIRTIO_BLK=y
+       CONFIG_SCSI_VIRTIO=y

  - For virtio-net devices ([--network, -n] virtio):
        CONFIG_VIRTIO_NET=y
--
2.10.2