Openembedded Core Discussions
 help / color / mirror / Atom feed
* qemu needs target kernel sets CONFIG_SCSI_VIRTIO=y to boot vmdk qcow2 and vdi
@ 2016-02-25 10:36 Robert Yang
  2016-02-25 12:10 ` Burton, Ross
  2016-02-25 12:42 ` Bruce Ashfield
  0 siblings, 2 replies; 7+ messages in thread
From: Robert Yang @ 2016-02-25 10:36 UTC (permalink / raw)
  To: Bruce Ashfield, Darren Hart
  Cc: Patches and discussions about the oe-core layer

Hi Bruce and Darren,

We need enable target kernel's CONFIG_SCSI_VIRTIO=y to make native qemu
can boot hdddirect, vmdk, qcow2 and vdi, otherwise, the scsi drive can't
work in qemu since our vm image's root default to /dev/sda2, or we can
change it default to /dev/hda2, then we don't have to make any changes
on kernel, but I prefer scsi since ide is going to be out of date.

I've tried to enable it by menuconfig, it works well, would you please
enable it by default ?


$ diff .config.old .config -Nur
--- .config.old 2016-02-25 01:04:25.816381913 -0800
+++ .config     2016-02-25 01:16:31.332232759 -0800
@@ -1479,7 +1479,7 @@
  # CONFIG_SCSI_DEBUG is not set
  # CONFIG_SCSI_PMCRAID is not set
  # CONFIG_SCSI_PM8001 is not set
-# CONFIG_SCSI_VIRTIO is not set
+CONFIG_SCSI_VIRTIO=y
  # CONFIG_SCSI_DH is not set
  # CONFIG_SCSI_OSD_INITIATOR is not set
  CONFIG_ATA=y

$ du bzImage bzImage_new
6752    bzImage
6756    bzImage_new

It nearly has no impact on the size.

-- 
Thanks

Robert


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

end of thread, other threads:[~2016-02-26  1:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-25 10:36 qemu needs target kernel sets CONFIG_SCSI_VIRTIO=y to boot vmdk qcow2 and vdi Robert Yang
2016-02-25 12:10 ` Burton, Ross
2016-02-25 12:42   ` Bruce Ashfield
2016-02-26  1:27     ` Robert Yang
2016-02-25 12:42 ` Bruce Ashfield
2016-02-25 18:50   ` Bruce Ashfield
2016-02-26  1:01   ` Robert Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox