nemu: build nemu for CI#522
Conversation
virtio-fs is now available in 1.7 release and needs hugepages enabled. NEMU's machine_type `virt` has issues getting network access when hugepages is enabled. Temporarily changing type to `pc` to fix this issue. Accompanying changes to runtime and tests are underway. Fixes: kata-containers#1709 Depends-on: kata-containers/tests#1595 Depends-on: kata-containers/packaging#522 Signed-off-by: Ganesh Maharaj Mahalingam <ganesh.mahalingam@intel.com>
virtio-fs is now available in 1.7 release and needs hugepages enabled. NEMU's machine_type `virt` has issues getting network access when hugepages is enabled. Temporarily changing type to `pc` to fix this issue. Accompanying changes to runtime and tests are underway. Fixes: kata-containers#1709 Depends-on: github.com/kata-containers/tests#1595 Depends-on: github.com/kata-containers/packaging#522 Signed-off-by: Ganesh Maharaj Mahalingam <ganesh.mahalingam@intel.com>
jodh-intel
left a comment
There was a problem hiding this comment.
Hi @ganeshmaharaj - thanks for raising.
NEMU needs to be built statically as the current default release will
not work for all distros.
Please can you explain in the commit why this is?
| RUN mv /tmp/nemu-static/opt/kata/bin/qemu-system-x86_64 /tmp/nemu-static/opt/kata/bin/nemu-system-x86_64 | ||
| RUN wget "${VIRTIOFSD_RELEASE}/${VIRTIOFSD}" && chmod +x ${VIRTIOFSD} && mv ${VIRTIOFSD} /tmp/nemu-static/opt/kata/bin/ | ||
| RUN wget "${NEMU_OVMF}" && mv OVMF.fd /tmp/nemu-static/"${PREFIX}"/share/kata-nemu/ | ||
| RUN mv /tmp/nemu-static/"${PREFIX}"/bin/qemu-system-x86_64 /tmp/nemu-static/"${PREFIX}"/bin/nemu-system-x86_64 |
There was a problem hiding this comment.
I appreciate you're changing what was already there, but this is a bug: NEMU is supported on arm64 too:
Any chance you could add a commit before this one to set the architecture here from a variable defined at the top?
There was a problem hiding this comment.
Currently building static packages of arm64 is not working on my tests. That is definitely in the to-do list of things as a follow on just to unblock this build and make sure we test nemu + virtiofs the same way we ship. I will have a bug opened for it and work on that right after this.
|
Quick answer to why won't a dynamically linked |
|
Sure. What I meant was, I think we need to explain why we cannot build it dynamically for each distro, as we do for |
virtio-fs is now available in 1.7 release and needs hugepages enabled. NEMU's machine_type `virt` has issues getting network access when hugepages is enabled. Temporarily changing type to `pc` to fix this issue. Accompanying changes to runtime and tests are underway. Fixes: kata-containers#1709 Depends-on: github.com/kata-containers/tests#1595 Depends-on: github.com/kata-containers/packaging#522 Signed-off-by: Ganesh Maharaj Mahalingam <ganesh.mahalingam@intel.com>
|
@ganeshmaharaj Can you address @jodh-intel's comment? |
|
@amshinde @jodh-intel think i got the comments addressed. |
jodh-intel
left a comment
There was a problem hiding this comment.
Based on the assumption that the architecture-specifics are removed by #524...
lgtm
|
/test |
Build NEMU statically for every CI run to make sure we test a setup similar to the one we are shipping with Kata. Fixes: kata-containers#1536 Depends-on: github.com/kata-containers/packaging#522 Signed-off-by: Ganesh Maharaj Mahalingam <ganesh.mahalingam@intel.com>
virtio-fs is now available in 1.7 release and needs hugepages enabled. Updating version of NEMU that ships with kata by default which contains the fixes for hugepages, machine_type=virt and network access. Fixes: kata-containers#1709 Depends-on: github.com/kata-containers/tests#1595 Depends-on: github.com/kata-containers/packaging#522 Signed-off-by: Ganesh Maharaj Mahalingam <ganesh.mahalingam@intel.com>
NEMU releases are build dynamically on a xenial platform and there aren't any plans on providing packaging for various versions and distros today. NEMU needs to be built statically as the current default release to be consumable by Kata. Given we are doing that, it would be nice to test it in our CI also the same way. This change is to aid with that. Fixes: kata-containers#521 Signed-off-by: Ganesh Maharaj Mahalingam <ganesh.mahalingam@intel.com>
virtio-fs is now available in 1.7 release and needs hugepages enabled. Updating version of NEMU that ships with kata by default which contains the fixes for hugepages, machine_type=virt and network access. Fixes: kata-containers#1709 Depends-on: github.com/kata-containers/tests#1595 Depends-on: github.com/kata-containers/packaging#522 Signed-off-by: Ganesh Maharaj Mahalingam <ganesh.mahalingam@intel.com>
|
/test |
Build NEMU statically for every CI run to make sure we test a setup similar to the one we are shipping with Kata. Fixes: kata-containers#1536 Depends-on: github.com/kata-containers/packaging#522 Signed-off-by: Ganesh Maharaj Mahalingam <ganesh.mahalingam@intel.com>
virtio-fs is now available in 1.7 release and needs hugepages enabled. Updating version of NEMU that ships with kata by default which contains the fixes for hugepages, machine_type=virt and network access. Fixes: kata-containers#1709 Depends-on: github.com/kata-containers/tests#1595 Depends-on: github.com/kata-containers/packaging#522 Signed-off-by: Ganesh Maharaj Mahalingam <ganesh.mahalingam@intel.com> (cherry picked from commit 722ac5a) Signed-off-by: Ganesh Maharaj Mahalingam <ganesh.mahalingam@intel.com>
virtio-fs is now available in 1.7 release and needs hugepages enabled. Updating version of NEMU that ships with kata by default which contains the fixes for hugepages, machine_type=virt and network access. Fixes: kata-containers#1709 Depends-on: github.com/kata-containers/tests#1595 Depends-on: github.com/kata-containers/packaging#522 Signed-off-by: Ganesh Maharaj Mahalingam <ganesh.mahalingam@intel.com> (cherry picked from commit 722ac5a) Signed-off-by: Ganesh Maharaj Mahalingam <ganesh.mahalingam@intel.com>
NEMU needs to be built statically as the current default release will
not work for all distros. Given we are doing that, it would be nice to
test it in our CI also the same way. This change is to aid with that.
Fixes: #521
Signed-off-by: Ganesh Maharaj Mahalingam ganesh.mahalingam@intel.com