[meta-virtualization] [PATCH v2 2/2] Created new target:kvm-image-minimal

Prica, Mihai mihai.prica at intel.com
Wed Jan 16 05:58:30 PST 2013


> -----Original Message-----
> From: lei yang [mailto:lei.yang at windriver.com]
> Sent: Wednesday, January 16, 2013 5:28 AM
> To: Prica, Mihai
> Cc: meta-virtualization at yoctoproject.org
> Subject: Re: [meta-virtualization] [PATCH v2 2/2] Created new target:kvm-image-
> minimal
> 
> On 01/15/2013 06:44 PM, Prica, Mihai wrote:
> >> -----Original Message-----
> >> From: Lei Yang [mailto:lei.yang at windriver.com]
> >> Sent: Friday, January 11, 2013 7:17 PM
> >> To: Prica, Mihai
> >> Cc: meta-virtualization at yoctoproject.org
> >> Subject: Re: [meta-virtualization] [PATCH v2 2/2] Created new
> >> target:kvm-image- minimal
> >>
> >> On 01/12/2013 12:27 AM, Mihai Prica wrote:
> >>> Signed-off-by: Mihai Prica<mihai.prica at intel.com>
> >>> ---
> >>>    recipes-extended/images/kvm-image-minimal.bb |   28
> >> ++++++++++++++++++++++++++
> >>>    1 file changed, 28 insertions(+)
> >>>    create mode 100644 recipes-extended/images/kvm-image-minimal.bb
> >>>
> >>> diff --git a/recipes-extended/images/kvm-image-minimal.bb
> >>> b/recipes-extended/images/kvm-image-minimal.bb
> >>> new file mode 100644
> >>> index 0000000..275c43b
> >>> --- /dev/null
> >>> +++ b/recipes-extended/images/kvm-image-minimal.bb
> >>> @@ -0,0 +1,28 @@
> >>> +DESCRIPTION = "A minimal kvm image"
> >>> +
> >>> +IMAGE_INSTALL = " \
> >>> +    packagegroup-core-boot \
> >>> +    ${ROOTFS_PKGMANAGE_BOOTSTRAP} \
> >>> +    qemu \
> >>> +    libvirt \
> >>> +    libvirt-libvirtd \
> >>> +    libvirt-virsh \
> >>> +    "
> >>> +
> >>> +IMAGE_FEATURES += "ssh-server-openssh"
> >>> +
> >>> +IMAGE_LINGUAS = " "
> >>> +
> >>> +LICENSE = "MIT"
> >>> +
> >>> +inherit core-image
> >>> +
> >>> +IMAGE_ROOTFS_SIZE = "8192"
> >>> +
> >>> +ROOTFS_POSTPROCESS_COMMAND += "remove_packaging_data_files ; "
> >>> +
> >>> +PACKAGE_INSTALL_ATTEMPTONLY = "\
> >> Hi Mibai
> >>
> >> can you explain "PACKAGE_INSTALL_ATTEMPTONLY " to me, I just see this
> >> variable first time
> > In an image recipe you can't use RRECOMMENDS to specify a list of packages
> that extend the usability of the image being built.  In this type of recipe you can
> use PACKAGE_INSTALL_ATTEMPTONLY that has the same functionality.
> 
> and I think both can be used, from below, it tells me, they can perform the same
> function, do you try RRECOMEEDS and meet an error?

I tried using RRECOMMENDS. I didn't get any errors but the kernel modules were not loaded onto the image. I tried a number of times to be sure it's because of the shared state, but with the same result. With PACAKAGE_INSTALL_ATTEMPTONLY it worked.

> 
> lyang001 at lyang0-9010:~/intel-xeon-core/layers/oe-core/meta/classes$ cat
> image.bbclass |grep -E "^RRECOM|^PACKAGE_INSTALL_ATTEMPTONLY"
> RRECOMMENDS += "${NORMAL_FEATURE_INSTALL_OPTIONAL}"
> PACKAGE_INSTALL_ATTEMPTONLY ?= "${FEATURE_INSTALL_OPTIONAL}"
> 
> 
>   Lei
> 
> 
> 
> > Thanks,
> > Mihai
> >> Lei
> >> :-)
> >>
> >>> +    kernel-module-kvm \
> >>> +    kernel-module-kvm-intel \
> >>> +    kernel-module-kvm-amd \
> >>> +    "




More information about the meta-virtualization mailing list