kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] kvmtool: README: kernel config to support virtio-blk devices
@ 2016-11-08  6:08 Xingyou Chen
  2016-11-08 18:55 ` Will Deacon
  0 siblings, 1 reply; 3+ messages in thread
From: Xingyou Chen @ 2016-11-08  6:08 UTC (permalink / raw)
  To: kvm; +Cc: will.deacon

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.

Signed-off-by: Xingyou Chen <niatlantice@gmail.com>

diff --git a/README b/README
index 5501f05..a24b451 100644
--- a/README
+++ b/README
@@ -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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] kvmtool: README: kernel config to support virtio-blk devices
  2016-11-08  6:08 [PATCH] kvmtool: README: kernel config to support virtio-blk devices Xingyou Chen
@ 2016-11-08 18:55 ` Will Deacon
  2016-11-09  2:56   ` Xingyou Chen
  0 siblings, 1 reply; 3+ messages in thread
From: Will Deacon @ 2016-11-08 18:55 UTC (permalink / raw)
  To: Xingyou Chen; +Cc: kvm

On Tue, Nov 08, 2016 at 02:08:29PM +0800, Xingyou Chen wrote:
> 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.
> 
> Signed-off-by: Xingyou Chen <niatlantice@gmail.com>
> 
> diff --git a/README b/README
> index 5501f05..a24b451 100644
> --- a/README
> +++ b/README
> @@ -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

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] kvmtool: README: kernel config to support virtio-blk devices
  2016-11-08 18:55 ` Will Deacon
@ 2016-11-09  2:56   ` Xingyou Chen
  0 siblings, 0 replies; 3+ messages in thread
From: Xingyou Chen @ 2016-11-09  2:56 UTC (permalink / raw)
  To: Will Deacon; +Cc: kvm

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.

Signed-off-by: Xingyou Chen <niatlantice@gmail.com>
---
 README | 1 +
 1 file changed, 1 insertion(+)

diff --git a/README b/README
index 5501f05..a24b451 100644
--- a/README
+++ b/README
@@ -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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-11-09  2:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-08  6:08 [PATCH] kvmtool: README: kernel config to support virtio-blk devices Xingyou Chen
2016-11-08 18:55 ` Will Deacon
2016-11-09  2:56   ` Xingyou Chen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).