* 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
* Re: qemu needs target kernel sets CONFIG_SCSI_VIRTIO=y to boot vmdk qcow2 and vdi 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-25 12:42 ` Bruce Ashfield 1 sibling, 1 reply; 7+ messages in thread From: Burton, Ross @ 2016-02-25 12:10 UTC (permalink / raw) To: Robert Yang Cc: Bruce Ashfield, Darren Hart, Patches and discussions about the oe-core layer [-- Attachment #1: Type: text/plain, Size: 554 bytes --] On 25 February 2016 at 10:36, Robert Yang <liezhi.yang@windriver.com> wrote: > 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. > Are there any other virtio drivers that we really should be enabling in the qemu kernels? Ross [-- Attachment #2: Type: text/html, Size: 985 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: qemu needs target kernel sets CONFIG_SCSI_VIRTIO=y to boot vmdk qcow2 and vdi 2016-02-25 12:10 ` Burton, Ross @ 2016-02-25 12:42 ` Bruce Ashfield 2016-02-26 1:27 ` Robert Yang 0 siblings, 1 reply; 7+ messages in thread From: Bruce Ashfield @ 2016-02-25 12:42 UTC (permalink / raw) To: Burton, Ross; +Cc: Darren Hart, Patches and discussions about the oe-core layer [-- Attachment #1: Type: text/plain, Size: 1115 bytes --] On Thu, Feb 25, 2016 at 7:10 AM, Burton, Ross <ross.burton@intel.com> wrote: > > On 25 February 2016 at 10:36, Robert Yang <liezhi.yang@windriver.com> > wrote: > >> 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. >> > > Are there any other virtio drivers that we really should be enabling in > the qemu kernels? > We already have a fragment for this, and a set of virtio drivers enabled .. which is why I find this entire thread confusing :) Bruce > > Ross > > -- > _______________________________________________ > Openembedded-core mailing list > Openembedded-core@lists.openembedded.org > http://lists.openembedded.org/mailman/listinfo/openembedded-core > > -- "Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end" [-- Attachment #2: Type: text/html, Size: 2330 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: qemu needs target kernel sets CONFIG_SCSI_VIRTIO=y to boot vmdk qcow2 and vdi 2016-02-25 12:42 ` Bruce Ashfield @ 2016-02-26 1:27 ` Robert Yang 0 siblings, 0 replies; 7+ messages in thread From: Robert Yang @ 2016-02-26 1:27 UTC (permalink / raw) To: Bruce Ashfield, Burton, Ross Cc: Darren Hart, Patches and discussions about the oe-core layer On 02/25/2016 08:42 PM, Bruce Ashfield wrote: > > > On Thu, Feb 25, 2016 at 7:10 AM, Burton, Ross <ross.burton@intel.com > <mailto:ross.burton@intel.com>> wrote: > > > On 25 February 2016 at 10:36, Robert Yang <liezhi.yang@windriver.com > <mailto:liezhi.yang@windriver.com>> wrote: > > 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. > > > Are there any other virtio drivers that we really should be enabling in the > qemu kernels? > > > We already have a fragment for this, and a set of virtio drivers enabled .. which Yes, others are fine AFAIK. // Robert > is why I find this entire thread confusing :) > > Bruce > > > Ross > > -- > _______________________________________________ > Openembedded-core mailing list > Openembedded-core@lists.openembedded.org > <mailto:Openembedded-core@lists.openembedded.org> > http://lists.openembedded.org/mailman/listinfo/openembedded-core > > > > > -- > "Thou shalt not follow the NULL pointer, for chaos and madness await thee at its > end" ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: qemu needs target kernel sets CONFIG_SCSI_VIRTIO=y to boot vmdk qcow2 and vdi 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-25 18:50 ` Bruce Ashfield 2016-02-26 1:01 ` Robert Yang 1 sibling, 2 replies; 7+ messages in thread From: Bruce Ashfield @ 2016-02-25 12:42 UTC (permalink / raw) To: Robert Yang; +Cc: Darren Hart, Patches and discussions about the oe-core layer [-- Attachment #1: Type: text/plain, Size: 1949 bytes --] On Thu, Feb 25, 2016 at 5:36 AM, Robert Yang <liezhi.yang@windriver.com> wrote: > 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. > The IDE fragment was on for compatibility reasons, but we dropped that compatibility about a year ago. I was under the impression that we had fully dropped all the IDE fragments. > > I've tried to enable it by menuconfig, it works well, would you please > enable it by default ? > Send a patch to the linux-yocto mailing list to change the virtio configuration fragment. You are already set up to test it out, so it is much easier. I don't see why this shouldn't follow the normal patch flow for configuration frag changes. Cheers, Bruce > > > $ 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 > -- > _______________________________________________ > Openembedded-core mailing list > Openembedded-core@lists.openembedded.org > http://lists.openembedded.org/mailman/listinfo/openembedded-core > -- "Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end" [-- Attachment #2: Type: text/html, Size: 3119 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: qemu needs target kernel sets CONFIG_SCSI_VIRTIO=y to boot vmdk qcow2 and vdi 2016-02-25 12:42 ` Bruce Ashfield @ 2016-02-25 18:50 ` Bruce Ashfield 2016-02-26 1:01 ` Robert Yang 1 sibling, 0 replies; 7+ messages in thread From: Bruce Ashfield @ 2016-02-25 18:50 UTC (permalink / raw) To: Robert Yang Cc: Darren Hart, Saul Wold, California Sullivan, Patches and discussions about the oe-core layer [-- Attachment #1: Type: text/plain, Size: 2911 bytes --] On Thu, Feb 25, 2016 at 7:42 AM, Bruce Ashfield <bruce.ashfield@gmail.com> wrote: > > > On Thu, Feb 25, 2016 at 5:36 AM, Robert Yang <liezhi.yang@windriver.com> > wrote: > >> 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. >> > > The IDE fragment was on for compatibility reasons, but we dropped that > compatibility about a year ago. I was under the impression that we had > fully dropped all the IDE fragments. > Adding Cal and Saul, since we are working through all these configs in another effort, so I wanted to get their thoughts as well. I had a chance to go back and look at the configs, and even though I can find the email where it has been proposed, and I've agreed, to shoot CONFIG_IDE in the head, and use generic SCSI instead .. config IDE is still in common-pc-drivers.cfg which means that x86 board, and the x86 kvm guest are picking it up. Cal/Saul: does this match what you are seeing ? > >> >> I've tried to enable it by menuconfig, it works well, would you please >> enable it by default ? >> > > > Send a patch to the linux-yocto mailing list to change the virtio > configuration > fragment. > > You are already set up to test it out, so it is much easier. > > I don't see why this shouldn't follow the normal patch flow for > configuration > frag changes. > Back to this. We just need a patch to the linux-yocto list, for the configuration change, and we can evaluate it like any other patch! Cheers, Bruce > > Cheers, > > Bruce > > >> >> >> $ 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 >> -- >> _______________________________________________ >> Openembedded-core mailing list >> Openembedded-core@lists.openembedded.org >> http://lists.openembedded.org/mailman/listinfo/openembedded-core >> > > > > -- > "Thou shalt not follow the NULL pointer, for chaos and madness await thee > at its end" > -- "Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end" [-- Attachment #2: Type: text/html, Size: 5390 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: qemu needs target kernel sets CONFIG_SCSI_VIRTIO=y to boot vmdk qcow2 and vdi 2016-02-25 12:42 ` Bruce Ashfield 2016-02-25 18:50 ` Bruce Ashfield @ 2016-02-26 1:01 ` Robert Yang 1 sibling, 0 replies; 7+ messages in thread From: Robert Yang @ 2016-02-26 1:01 UTC (permalink / raw) To: Bruce Ashfield Cc: Darren Hart, Patches and discussions about the oe-core layer On 02/25/2016 08:42 PM, Bruce Ashfield wrote: > > > On Thu, Feb 25, 2016 at 5:36 AM, Robert Yang <liezhi.yang@windriver.com > <mailto:liezhi.yang@windriver.com>> wrote: > > 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. > > > The IDE fragment was on for compatibility reasons, but we dropped that > compatibility about a year ago. I was under the impression that we had > fully dropped all the IDE fragments. > > > I've tried to enable it by menuconfig, it works well, would you please > enable it by default ? > > > > Send a patch to the linux-yocto mailing list to change the virtio configuration > fragment. > > You are already set up to test it out, so it is much easier. > > I don't see why this shouldn't follow the normal patch flow for configuration > frag changes. Sorry, the problem was that I didn't know how to send patch for yocto kernel:-). I will send the patch to linux-yocto. // Robert > > Cheers, > > Bruce > > > > $ 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 > -- > _______________________________________________ > Openembedded-core mailing list > Openembedded-core@lists.openembedded.org > <mailto:Openembedded-core@lists.openembedded.org> > http://lists.openembedded.org/mailman/listinfo/openembedded-core > > > > > -- > "Thou shalt not follow the NULL pointer, for chaos and madness await thee at its > end" ^ 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