linux-yocto: added kernel configuration for KVM
PATCH v2 1/2 linux-yocto: added kernel configuration for KVM
--- recipes-kernel/linux/linux-yocto_3.4.bbappend | 5 +++++ 1 file changed, 5 insertions(+)
recipes-kernel/linux/linux-yocto_3.4.bbappend +5 -0
@@ -6,3 +6,8 @@ SRC_URI += "file://xt-checksum.scc \ file://lxc.scc \ " +KERNEL_FEATURES_append = " kvm/qemu-kvm-enable" + +module_autoload_kvm = "kvm" +module_autoload_kvm-amd = "kvm-amd" +module_autoload_kvm-intel = "kvm-intel"
Signature · 1 line
1.7.9.5
PATCH v2 2/2 Created new target:kvm-image-minimal
--- recipes-extended/images/kvm-image-minimal.bb | 28 ++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 recipes-extended/images/kvm-image-minimal.bb
recipes-extended/images/kvm-image-minimal.bb new file +28 -0
@@ -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 = "\ + kernel-module-kvm \ + kernel-module-kvm-intel \ + kernel-module-kvm-amd \ + "
Signature · 1 line
1.7.9.5
Re: [PATCH v2 2/2] Created new target:kvm-image-minimal
Quoted 26 lines · Mihai Prica
Signed-off-by Mihai Prica<[email protected]>--- recipes-extended/images/kvm-image-minimal.bb | 28 ++++++++++++++++++++++++++ 1 file changed, 28 insertions(+)create mode 100644 recipes-extended/images/kvm-image-minimal.bb
recipes-extended/images/kvm-image-minimal.bb new file +14
-0@@ -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 = " "
recipes-extended/images/kvm-image-minimal.bb line 24
Quoted 10 lines
recipes-extended/images/kvm-image-minimal.bb new file +10
-0+ +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
Lei
:-)
Quoted 4 lines
recipes-extended/images/kvm-image-minimal.bb new file +4
-0+ kernel-module-kvm \ + kernel-module-kvm-intel \ + kernel-module-kvm-amd \ + "
Re: [PATCH v2 2/2] Created new target:kvm-image-minimal
Quoted 49 lines
-----Original Message-----
From: Lei Yang [mailto:[email protected]]
Sent: Friday, January 11, 2013 7:17 PM
To: Prica, Mihai
Cc: [email protected]
Subject: Re: [meta-virtualization] [PATCH v2 2/2] Created new target:kvm-image- minimalQuoted 3 lines · Mihai Prica
Signed-off-by Mihai Prica<[email protected]>--- recipes-extended/images/kvm-image-minimal.bb | 28++++++++++++++++++++++++++
Quoted 24 lines
1 file changed, 28 insertions(+)create mode 100644 recipes-extended/images/kvm-image-minimal.bb
recipes-extended/images/kvm-image-minimal.bb new file +14
-0@@ -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 = " "recipes-extended/images/kvm-image-minimal.bb line 24
Quoted 10 lines
recipes-extended/images/kvm-image-minimal.bb new file +10
-0+ +LICENSE = "MIT" + +inherit core-image + +IMAGE_ROOTFS_SIZE = "8192" + +ROOTFS_POSTPROCESS_COMMAND += "remove_packaging_data_files ; " + +PACKAGE_INSTALL_ATTEMPTONLY = "\Hi Mibai
Quoted 2 lines
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.
Thanks,
Mihai
Quoted 8 lines
Lei
:-)Quoted 4 lines
recipes-extended/images/kvm-image-minimal.bb new file +4
-0+ kernel-module-kvm \ + kernel-module-kvm-intel \ + kernel-module-kvm-amd \ + "
Re: [PATCH v2 2/2] Created new target:kvm-image-minimal
Quoted 49 lines · Mihai
Quoted 49 lines
-----Original Message-----
From: Lei Yang [mailto:[email protected]]
Sent: Friday, January 11, 2013 7:17 PM
To: Prica, Mihai
Cc: [email protected]
Subject: Re: [meta-virtualization] [PATCH v2 2/2] Created new target:kvm-image- minimalQuoted 3 lines · Mihai Prica
Signed-off-by Mihai Prica<[email protected]>--- recipes-extended/images/kvm-image-minimal.bb | 28++++++++++++++++++++++++++
Quoted 24 lines
1 file changed, 28 insertions(+)create mode 100644 recipes-extended/images/kvm-image-minimal.bb
recipes-extended/images/kvm-image-minimal.bb new file +14
-0@@ -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 = " "recipes-extended/images/kvm-image-minimal.bb line 24
Quoted 10 lines
recipes-extended/images/kvm-image-minimal.bb new file +10
-0+ +LICENSE = "MIT" + +inherit core-image + +IMAGE_ROOTFS_SIZE = "8192" + +ROOTFS_POSTPROCESS_COMMAND += "remove_packaging_data_files ; " + +PACKAGE_INSTALL_ATTEMPTONLY = "\Hi Mibai
Quoted 3 lines
Quoted 2 lines
can you explain "
PACKAGE_INSTALL_ATTEMPTONLY" to me, I just see this variable first timeIn 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_ATTEMPTONLYthat has the same functionality.
I don't know why RRECOMMENDS can't be used in image recipes, How about "IMAGE_INSTALL", this is always used
Lei
Quoted 9 lines
Thanks,
MihaiQuoted 7 lines
Lei
:-)Quoted 4 lines
recipes-extended/images/kvm-image-minimal.bb new file +4
-0+ kernel-module-kvm \ + kernel-module-kvm-intel \ + kernel-module-kvm-amd \ + "
Re: [PATCH v2 2/2] Created new target:kvm-image-minimal
In reply to Prica, MihaiQuoted 49 lines · Mihai
Quoted 49 lines
-----Original Message-----
From: Lei Yang [mailto:[email protected]]
Sent: Friday, January 11, 2013 7:17 PM
To: Prica, Mihai
Cc: [email protected]
Subject: Re: [meta-virtualization] [PATCH v2 2/2] Created new target:kvm-image- minimalQuoted 3 lines · Mihai Prica
Signed-off-by Mihai Prica<[email protected]>--- recipes-extended/images/kvm-image-minimal.bb | 28++++++++++++++++++++++++++
Quoted 24 lines
1 file changed, 28 insertions(+)create mode 100644 recipes-extended/images/kvm-image-minimal.bb
recipes-extended/images/kvm-image-minimal.bb new file +14
-0@@ -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 = " "recipes-extended/images/kvm-image-minimal.bb line 24
Quoted 10 lines
recipes-extended/images/kvm-image-minimal.bb new file +10
-0+ +LICENSE = "MIT" + +inherit core-image + +IMAGE_ROOTFS_SIZE = "8192" + +ROOTFS_POSTPROCESS_COMMAND += "remove_packaging_data_files ; " + +PACKAGE_INSTALL_ATTEMPTONLY = "\Hi Mibai
Quoted 3 lines
Quoted 2 lines
can you explain "
PACKAGE_INSTALL_ATTEMPTONLY" to me, I just see this variable first timeIn 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_ATTEMPTONLYthat 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?
lyang001@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
Quoted 9 lines
Thanks,
MihaiQuoted 7 lines
Lei
:-)Quoted 4 lines
recipes-extended/images/kvm-image-minimal.bb new file +4
-0+ kernel-module-kvm \ + kernel-module-kvm-intel \ + kernel-module-kvm-amd \ + "
Re: [PATCH v2 2/2] Created new target:kvm-image-minimal
Quoted 58 lines
-----Original Message-----
From: lei yang [mailto:[email protected]]
Sent: Wednesday, January 16, 2013 5:28 AM
To: Prica, Mihai
Cc: [email protected]
Subject: Re: [meta-virtualization] [PATCH v2 2/2] Created new target:kvm-image- minimalQuoted 49 lines · Mihai
Quoted 49 lines
-----Original Message-----
From: Lei Yang [mailto:[email protected]]
Sent: Friday, January 11, 2013 7:17 PM
To: Prica, Mihai
Cc: [email protected]
Subject: Re: [meta-virtualization] [PATCH v2 2/2] Created new target:kvm-image- minimalQuoted 3 lines · Mihai Prica
Signed-off-by Mihai Prica<[email protected]>--- recipes-extended/images/kvm-image-minimal.bb | 28++++++++++++++++++++++++++
Quoted 24 lines
1 file changed, 28 insertions(+)create mode 100644 recipes-extended/images/kvm-image-minimal.bb
recipes-extended/images/kvm-image-minimal.bb new file +14
-0@@ -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 = " "recipes-extended/images/kvm-image-minimal.bb line 24
Quoted 10 lines
recipes-extended/images/kvm-image-minimal.bb new file +10
-0+ +LICENSE = "MIT" + +inherit core-image + +IMAGE_ROOTFS_SIZE = "8192" + +ROOTFS_POSTPROCESS_COMMAND += "remove_packaging_data_files ; " + +PACKAGE_INSTALL_ATTEMPTONLY = "\Hi Mibai
Quoted 8 lines
Quoted 3 lines
Quoted 2 lines
can you explain "
PACKAGE_INSTALL_ATTEMPTONLY" to me, I just see this variable first timeIn 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_ATTEMPTONLYthat 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.
Quoted 20 lines
lyang001@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
Quoted 9 lines
Thanks,
MihaiQuoted 7 lines
Lei
:-)Quoted 4 lines
recipes-extended/images/kvm-image-minimal.bb new file +4
-0+ kernel-module-kvm \ + kernel-module-kvm-intel \ + kernel-module-kvm-amd \ + "
Re: [PATCH v2 2/2] Created new target:kvm-image-minimal
Quoted 76 lines
-----Original Message-----
From: [email protected] [mailto:meta-virtualization- [email protected]] On Behalf Of Prica, Mihai
Sent: Wednesday, January 16, 2013 3:59 PM
To: lei yang
Cc: [email protected]
Subject: Re: [meta-virtualization] [PATCH v2 2/2] Created new target:kvm-image- minimalQuoted 46 lines
-----Original Message-----
From: lei yang [mailto:[email protected]]
Sent: Wednesday, January 16, 2013 5:28 AM
To: Prica, Mihai
Cc: [email protected]
Subject: Re: [meta-virtualization] [PATCH v2 2/2] Created new target:kvm-image- minimalQuoted 37 lines · Mihai
Quoted 37 lines
-----Original Message-----
From: Lei Yang [mailto:[email protected]]
Sent: Friday, January 11, 2013 7:17 PM
To: Prica, Mihai
Cc: [email protected]
Subject: Re: [meta-virtualization] [PATCH v2 2/2] Created new target:kvm-image- minimalQuoted 3 lines · Mihai Prica
Signed-off-by Mihai Prica<[email protected]>--- recipes-extended/images/kvm-image-minimal.bb | 28++++++++++++++++++++++++++
Quoted 24 lines
1 file changed, 28 insertions(+)create mode 100644 recipes-extended/images/kvm-image-minimal.bb
recipes-extended/images/kvm-image-minimal.bb new file +14
-0@@ -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 = " "Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
recipes-extended/images/kvm-image-minimal.bb
Quoted 8 lines
recipes-extended/images/kvm-image-minimal.bb new file +8
-0+ +LICENSE = "MIT" + +inherit core-image + +IMAGE_ROOTFS_SIZE = "8192" + +ROOTFS_POSTPROCESS_COMMAND += "remove_packaging_data_files ;"
Quoted 10 lines
Quoted 8 lines
Quoted 6 lines
recipes-extended/images/kvm-image-minimal.bb line 24
Quoted 2 lines
recipes-extended/images/kvm-image-minimal.bb new file +2
-0+ +PACKAGE_INSTALL_ATTEMPTONLY = "\Hi Mibai
can you explain "
PACKAGE_INSTALL_ATTEMPTONLY" to me, I just see this variable first timeIn 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_ATTEMPTONLYthat has the samefunctionality.
Quoted 1 line
Quoted 7 lines
Quoted 2 lines
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_ATTEMPTONLYit worked.
I see this hasn't been merged to master yet. Is there a specific reason for this ? Maybe it's something I'm missing.
Mihai
Quoted 26 lines
Quoted 21 lines
lyang001@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
Quoted 9 lines
Thanks,
MihaiQuoted 7 lines
Lei
:-)Quoted 4 lines
recipes-extended/images/kvm-image-minimal.bb new file +4
-0+ kernel-module-kvm \ + kernel-module-kvm-intel \ + kernel-module-kvm-amd \ + "_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization
Re: [PATCH v2 2/2] Created new target:kvm-image-minimal
Quoted 82 lines · Mihai
Quoted 2 lines
-----Original Message-----
From: [email protected] [mailto:meta-virtualization-
Quoted 5 lines
[email protected]] On Behalf Of Prica, Mihai
Sent: Wednesday, January 16, 2013 3:59 PM
To: lei yang
Cc: [email protected]
Subject: Re: [meta-virtualization] [PATCH v2 2/2] Created newtarget:kvm-image-
Quoted 65 lines
minimal
Quoted 46 lines
-----Original Message-----
From: lei yang [mailto:[email protected]]
Sent: Wednesday, January 16, 2013 5:28 AM
To: Prica, Mihai
Cc: [email protected]
Subject: Re: [meta-virtualization] [PATCH v2 2/2] Created new target:kvm-image- minimalQuoted 37 lines · Mihai
Quoted 37 lines
-----Original Message-----
From: Lei Yang [mailto:[email protected]]
Sent: Friday, January 11, 2013 7:17 PM
To: Prica, Mihai
Cc: [email protected]
Subject: Re: [meta-virtualization] [PATCH v2 2/2] Created new target:kvm-image- minimalQuoted 3 lines · Mihai Prica
Signed-off-by Mihai Prica<[email protected]>--- recipes-extended/images/kvm-image-minimal.bb | 28++++++++++++++++++++++++++
Quoted 24 lines
1 file changed, 28 insertions(+)create mode 100644 recipes-extended/images/kvm-image-minimal.bb
recipes-extended/images/kvm-image-minimal.bb new file +14
-0@@ -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 = " "Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
recipes-extended/images/kvm-image-minimal.bb
Quoted 8 lines
recipes-extended/images/kvm-image-minimal.bb new file +8
-0+ +LICENSE = "MIT" + +inherit core-image + +IMAGE_ROOTFS_SIZE = "8192" + +ROOTFS_POSTPROCESS_COMMAND += "remove_packaging_data_files ;"
Quoted 8 lines
Quoted 8 lines
Quoted 6 lines
recipes-extended/images/kvm-image-minimal.bb line 24
Quoted 2 lines
recipes-extended/images/kvm-image-minimal.bb new file +2
-0+ +PACKAGE_INSTALL_ATTEMPTONLY = "\Hi Mibai
can you explain "
PACKAGE_INSTALL_ATTEMPTONLY" to me, I just see this variable first timeIn an image recipe you can't use RRECOMMENDS to specify a list of packages
Quoted 8 lines
Quoted 2 lines
that extend the usability of the image being built. In this type of recipe you can use
PACKAGE_INSTALL_ATTEMPTONLYthat has the samefunctionality.
Quoted 3 lines
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
Quoted 10 lines
modules were
Quoted 1 line
not loaded onto the image. I tried a number of times to be sure it's
because of
Quoted 2 lines
the shared state, but with the same result. With
PACAKAGE_INSTALL_ATTEMPTONLYit worked.I see this hasn't been merged to master yet. Is there a specific reason for this ? Maybe it's something I'm missing.
No reason, except I had mentally tied it to the other patch you just ping'd about.
Resend both (with the minor tweak to the enable .scc) and it should be good for merge.
Bruce
Quoted 33 lines
Mihai
Quoted 22 lines
Quoted 21 lines
lyang001@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
Quoted 9 lines
Thanks,
MihaiQuoted 7 lines
Lei
:-)Quoted 4 lines
recipes-extended/images/kvm-image-minimal.bb new file +4
-0+ kernel-module-kvm \ + kernel-module-kvm-intel \ + kernel-module-kvm-amd \ + "Quoted 4 lines
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization
Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"
Re: [PATCH v2 2/2] Created new target:kvm-image-minimal
In reply to Prica, MihaiQuoted 74 lines · Mihai
Quoted 74 lines
-----Original Message-----
From: [email protected] [mailto:meta-virtualization- [email protected]] On Behalf Of Prica, Mihai
Sent: Wednesday, January 16, 2013 3:59 PM
To: lei yang
Cc: [email protected]
Subject: Re: [meta-virtualization] [PATCH v2 2/2] Created new target:kvm-image- minimalQuoted 46 lines
-----Original Message-----
From: lei yang [mailto:[email protected]]
Sent: Wednesday, January 16, 2013 5:28 AM
To: Prica, Mihai
Cc: [email protected]
Subject: Re: [meta-virtualization] [PATCH v2 2/2] Created new target:kvm-image- minimalQuoted 37 lines · Mihai
Quoted 37 lines
-----Original Message-----
From: Lei Yang [mailto:[email protected]]
Sent: Friday, January 11, 2013 7:17 PM
To: Prica, Mihai
Cc: [email protected]
Subject: Re: [meta-virtualization] [PATCH v2 2/2] Created new target:kvm-image- minimalQuoted 3 lines · Mihai Prica
Signed-off-by Mihai Prica<[email protected]>--- recipes-extended/images/kvm-image-minimal.bb | 28++++++++++++++++++++++++++
Quoted 24 lines
1 file changed, 28 insertions(+)create mode 100644 recipes-extended/images/kvm-image-minimal.bb
recipes-extended/images/kvm-image-minimal.bb new file +14
-0@@ -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 = " "Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
recipes-extended/images/kvm-image-minimal.bb
Quoted 8 lines
recipes-extended/images/kvm-image-minimal.bb new file +8
-0+ +LICENSE = "MIT" + +inherit core-image + +IMAGE_ROOTFS_SIZE = "8192" + +ROOTFS_POSTPROCESS_COMMAND += "remove_packaging_data_files ;"
Quoted 10 lines
Quoted 8 lines
Quoted 6 lines
recipes-extended/images/kvm-image-minimal.bb line 24
Quoted 2 lines
recipes-extended/images/kvm-image-minimal.bb new file +2
-0+ +PACKAGE_INSTALL_ATTEMPTONLY = "\Hi Mibai
can you explain "
PACKAGE_INSTALL_ATTEMPTONLY" to me, I just see this variable first timeIn 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_ATTEMPTONLYthat has the same
Quoted 7 lines
Quoted 7 lines
functionality.
Quoted 2 lines
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_ATTEMPTONLYit worked.
if you want to install those kernel-modules, I like IMAGE_INSTALL , this is more popular used in practice
Lei
Quoted 27 lines
I see this hasn't been merged to master yet. Is there a specific reason for this ? Maybe it's something I'm missing.
Mihai
Quoted 23 lines
Quoted 6 lines
lyang001@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}"Quoted 13 lines
Lei
Quoted 9 lines
Thanks,
MihaiQuoted 7 lines
Lei
:-)Quoted 4 lines
recipes-extended/images/kvm-image-minimal.bb new file +4
-0+ kernel-module-kvm \ + kernel-module-kvm-intel \ + kernel-module-kvm-amd \ + "_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization
Quoted 12 lines · Mihai Prica
Signed-off-by Mihai Prica <[email protected]>--- recipes-kernel/linux/linux-yocto_3.4.bbappend | 5 +++++ 1 file changed, 5 insertions(+)recipes-kernel/linux/linux-yocto_3.4.bbappend +0
-0
recipes-kernel/linux/linux-yocto_3.4.bbappend SRC_URI += "file://xt-checksum.scc \ · line 9
Quoted 4 lines
recipes-kernel/linux/linux-yocto_3.4.bbappend +1
-0@@ -6,3 +6,8 @@ SRC_URI += "file://xt-checksum.scc \ file://lxc.scc \ " +KERNEL_FEATURES_append = " kvm/qemu-kvm-enable"
Have you confirmed that this is adding the option you want ? I would have expected this to be:
KERNEL_FEATURES_append = " features/kvm/qemu-kvm-enable.scc"
recipes-kernel/linux/linux-yocto_3.4.bbappend SRC_URI += "file://xt-checksum.scc \ · line 13
Quoted 5 lines
recipes-kernel/linux/linux-yocto_3.4.bbappend +4
-0+ +module_autoload_kvm = "kvm" +module_autoload_kvm-amd = "kvm-amd" +module_autoload_kvm-intel = "kvm-intel"
This part looks fine though.
Cheers,
Bruce
Quoted 8 lines
--
1.7.9.5_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization
Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"
Quoted 16 lines · Bruce Ashfield
Quoted 15 lines · Mihai Prica
Signed-off-by Mihai Prica <[email protected]>--- recipes-kernel/linux/linux-yocto_3.4.bbappend | 5 +++++ 1 file changed, 5 insertions(+)recipes-kernel/linux/linux-yocto_3.4.bbappend +0
-0@@ -6,3 +6,8 @@ SRC_URI += "file://xt-checksum.scc \ file://lxc.scc \ "
Quoted 9 lines
recipes-kernel/linux/linux-yocto_3.4.bbappend SRC_URI += "file://xt-checksum.scc \ · line 9
Quoted 1 line
recipes-kernel/linux/linux-yocto_3.4.bbappend +1
-0+KERNEL_FEATURES_append = " kvm/qemu-kvm-enable"Have you confirmed that this is adding the option you want ? I would have expected this to be:
KERNEL_FEATURES_append= " features/kvm/qemu-kvm-enable.scc"
Hi Bruce,
I also notice this, I did a serch in internal layer just found below in wr-kernel use the same way
templates/feature/libhugetlbfs/template.conf:KERNEL_FEATURES_append += "features/hugetlb"
I don't know if there is defect for this, both work or not,or we like .scc is there(coding style)
I'm glad to do a test later.
Lei
Quoted 34 lines
recipes-kernel/linux/linux-yocto_3.4.bbappend SRC_URI += "file://xt-checksum.scc \ · line 13
Quoted 5 lines
recipes-kernel/linux/linux-yocto_3.4.bbappend +4
-0+ +module_autoload_kvm = "kvm" +module_autoload_kvm-amd = "kvm-amd" +module_autoload_kvm-intel = "kvm-intel"This part looks fine though.
Cheers,
Bruce
Quoted 8 lines
--
1.7.9.5_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization
Quoted 31 lines · lei yang
Quoted 1 line · Bruce Ashfield
On Fri, Jan 11, 2013 at 11:27 AM, Mihai Prica <[email protected]>
Quoted 15 lines · wrote:
Quoted 15 lines
Signed-off-by Mihai Prica <[email protected]>--- recipes-kernel/linux/linux-yocto_3.4.bbappend | 5 +++++ 1 file changed, 5 insertions(+)recipes-kernel/linux/linux-yocto_3.4.bbappend +0
-0@@ -6,3 +6,8 @@ SRC_URI += "file://xt-checksum.scc \ file://lxc.scc \ "Quoted 9 lines
recipes-kernel/linux/linux-yocto_3.4.bbappend SRC_URI += "file://xt-checksum.scc \ · line 9
Quoted 1 line
recipes-kernel/linux/linux-yocto_3.4.bbappend +1
-0+KERNEL_FEATURES_append = " kvm/qemu-kvm-enable"Have you confirmed that this is adding the option you want ? I would have expected this to be:
KERNEL_FEATURES_append= " features/kvm/qemu-kvm-enable.scc"Hi Bruce,
Quoted 9 lines
I also notice this, I did a serch in internal layer just found below in wr-kernel use the same way
templates/feature/libhugetlbfs/template.conf:KERNEL_FEATURES_append += "features/hugetlb"
I don't know if there is defect for this, both work or not,or we like .scc is there(coding style)
They style is an older way of doing things. I have a yocto 1.4 bugzilla entry to convert
all cases of features that do not end with ".scc" to the more explicit format that includes
the extension.
So no need to do anything special, but just keep in mind to use ".scc" when possible,
and eventually existing features will be converted.
Cheers,
Bruce
Quoted 42 lines
I'm glad to do a test later.
Lei
Quoted 25 lines
recipes-kernel/linux/linux-yocto_3.4.bbappend SRC_URI += "file://xt-checksum.scc \ · line 13
Quoted 5 lines
recipes-kernel/linux/linux-yocto_3.4.bbappend +4
-0+ +module_autoload_kvm = "kvm" +module_autoload_kvm-amd = "kvm-amd" +module_autoload_kvm-intel = "kvm-intel"This part looks fine though.
Cheers,
Bruce
Quoted 8 lines
--
1.7.9.5_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualizationQuoted 2 lines
--
"Thou shalt not follow the NULL pointer, for chaos and madness awaitthee at
Quoted 7 lines
its end"
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization
Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"
Quoted 53 lines
From: Bruce Ashfield [mailto:[email protected]]
Sent: Sunday, January 13, 2013 4:49 PM
To: lei yang
Cc: Prica, Mihai; [email protected]
Subject: Re: [meta-virtualization] [PATCH v2 1/2] linux-yocto: added kernel configuration for KVMOn Sat, Jan 12, 2013 at 1:08 AM, lei yang <[email protected]> wrote:
Quoted 16 lines · Bruce Ashfield
Quoted 1 line · Mihai Prica
Signed-off-by Mihai Prica <[email protected]>---
recipes-kernel/linux/linux-yocto_3.4.bbappend | 5 +++++1 file changed, 5 insertions(+)recipes-kernel/linux/linux-yocto_3.4.bbappend +0
-0@@ -6,3 +6,8 @@ SRC_URI += "file://xt-checksum.scc \ file://lxc.scc \"
Quoted 1 line
+KERNEL_FEATURES_append = " kvm/qemu-kvm-enable"
Have you confirmed that this is adding the option you want ? I would have expected this to be:
KERNEL_FEATURES_append= " features/kvm/qemu-kvm-enable.scc"Hi Bruce,
I also notice this, I did a serch in internal layer just found below in wr-kernel use the same way
templates/feature/libhugetlbfs/template.conf:KERNEL_FEATURES_append += "features/hugetlb"
I don't know if there is defect for this, both work or not,or we like .scc is there(coding style)
They style is an older way of doing things. I have a yocto 1.4 bugzilla entry to convert all cases of features that do not end with ".scc" to the more explicit format that includes the extension.
Quoted 6 lines
So no need to do anything special, but just keep in mind to use ".scc" when possible, and eventually existing features will be converted.
Cheers,
Bruce
I see that this hasn't been merged to master. Do I have to redo this with "features/kvm/qemu-kvm-enable.scc" ?
Mihai
Quoted 39 lines
I'm glad to do a test later.
Lei
recipes-kernel/linux/linux-yocto_3.4.bbappend SRC_URI += "file://xt-checksum.scc \ · line 13
Quoted 5 lines
recipes-kernel/linux/linux-yocto_3.4.bbappend +4
-0+ +module_autoload_kvm = "kvm" +module_autoload_kvm-amd = "kvm-amd" +module_autoload_kvm-intel = "kvm-intel"This part looks fine though.
Cheers,
Bruce
Quoted 8 lines
--
1.7.9.5_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization
Signature · 1 line
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"
Quoted 60 lines · Mihai
Quoted 7 lines
From: Bruce Ashfield [mailto:[email protected]]
Sent: Sunday, January 13, 2013 4:49 PM
To: lei yang
Cc: Prica, Mihai; [email protected]
Subject: Re: [meta-virtualization] [PATCH v2 1/2] linux-yocto: addedkernel configuration for KVM
Quoted 4 lines
On Sat, Jan 12, 2013 at 1:08 AM, lei yang <[email protected]>
Quoted 3 lines · wrote:
Quoted 1 line · Bruce Ashfield
On Fri, Jan 11, 2013 at 11:27 AM, Mihai Prica <[email protected]>
Quoted 29 lines · wrote:
Quoted 12 lines
Quoted 1 line
Signed-off-by Mihai Prica <[email protected]>--- recipes-kernel/linux/linux-yocto_3.4.bbappend | 5 +++++ 1 file changed, 5 insertions(+)recipes-kernel/linux/linux-yocto_3.4.bbappend +0
-0recipes-kernel/linux/linux-yocto_3.4.bbappend SRC_URI += "file://xt-checksum.scc \ · line 9
Quoted 4 lines
recipes-kernel/linux/linux-yocto_3.4.bbappend +1
-0@@ -6,3 +6,8 @@ SRC_URI += "file://xt-checksum.scc \ file://lxc.scc \ " +KERNEL_FEATURES_append = " kvm/qemu-kvm-enable"Have you confirmed that this is adding the option you want ? I would have expected this to be:
KERNEL_FEATURES_append= " features/kvm/qemu-kvm-enable.scc"Hi Bruce,
I also notice this, I did a serch in internal layer just found below in wr-kernel use the same way
Quoted 7 lines
templates/feature/libhugetlbfs/template.conf:KERNEL_FEATURES_append += "features/hugetlb"
I don't know if there is defect for this, both work or not,or we like .scc is there(coding style)
They style is an older way of doing things. I have a yocto 1.4 bugzilla
entry to convert
Quoted 1 line
all cases of features that do not end with ".scc" to the more explicit
format that includes
Quoted 3 lines
the extension.
So no need to do anything special, but just keep in mind to use ".scc"
when possible,
Quoted 10 lines
Quoted 5 lines
and eventually existing features will be converted.
Cheers,
Bruce
I see that this hasn't been merged to master. Do I have to redo this with "features/kvm/qemu-kvm-enable.scc" ?
Hmm. Sorry for letting this sit idle. Yes, let's make that change and I'll do the
merge. I've recently converted all includes to be explicit, so having this in the
same format is important.
Cheers,
Bruce
Quoted 50 lines
Mihai
Quoted 30 lines
I'm glad to do a test later.
Lei
recipes-kernel/linux/linux-yocto_3.4.bbappend SRC_URI += "file://xt-checksum.scc \ · line 13
Quoted 5 lines
recipes-kernel/linux/linux-yocto_3.4.bbappend +4
-0+ +module_autoload_kvm = "kvm" +module_autoload_kvm-amd = "kvm-amd" +module_autoload_kvm-intel = "kvm-intel"This part looks fine though.
Cheers,
Bruce
Quoted 8 lines
--
1.7.9.5_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualizationQuoted 2 lines
--
"Thou shalt not follow the NULL pointer, for chaos and madness awaitthee at
Quoted 7 lines
its end"
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"
Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"