From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail1.windriver.com (mail1.windriver.com [147.11.146.13]) by mail.openembedded.org (Postfix) with ESMTP id CE32776DBB for ; Thu, 25 Feb 2016 10:36:23 +0000 (UTC) Received: from ALA-HCB.corp.ad.wrs.com (ala-hcb.corp.ad.wrs.com [147.11.189.41]) by mail1.windriver.com (8.15.2/8.15.1) with ESMTPS id u1PAaNvk007140 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Thu, 25 Feb 2016 02:36:23 -0800 (PST) Received: from [128.224.162.155] (128.224.162.155) by ALA-HCB.corp.ad.wrs.com (147.11.189.41) with Microsoft SMTP Server id 14.3.248.2; Thu, 25 Feb 2016 02:36:22 -0800 To: Bruce Ashfield , Darren Hart From: Robert Yang Message-ID: <56CED925.5090700@windriver.com> Date: Thu, 25 Feb 2016 18:36:21 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 Cc: Patches and discussions about the oe-core layer Subject: qemu needs target kernel sets CONFIG_SCSI_VIRTIO=y to boot vmdk qcow2 and vdi X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Feb 2016 10:36:25 -0000 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit 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