Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Is qemu-system-x86_64 or qemu-lite-system-x86_64 in kata-containers configuration.toml #293

Closed
gnodli opened this issue May 9, 2018 · 10 comments

Comments

@gnodli
Copy link

gnodli commented May 9, 2018

Description of problem

I follow Developer-Guide.md

conditions:

  • initrd image and hyperstart kernel
    -default runtime is kata-runtime

when I use below command to start a container, which return an error
sudo docker run -ti busybox sh

Expected result

start a busybox container

Actual result

output:

docker: Error response from daemon: OCI runtime create failed: /usr/share/defaults/kata-containers/configuration.toml: file /usr/bin/qemu-system-x86_64 does not exist: unknown.

Finally, I found the QEMU version should be qemu-lite, and the dir of /usr/bin/ only have qemu-lite-system-x86_64。 Then, I change the qemu-system-x86_64 to qemu-lite-system-x86_64, it works.

@jodh-intel
Copy link
Contributor

Thanks for raising this. I'm slightly confused though - the error states that you do not have qemu installed.

The developer guide does state that you need to install qemu-lite here:

That said, we do need to update the dev guide now that we also support vanilla qemu (see #119). I've raised kata-containers/documentation#67 to deal with this.

@gnodli
Copy link
Author

gnodli commented May 9, 2018

Thank you for your answer. I did not install qemu, just install qemu-lite package according to above guide. That said, qemu-lite can also work , but it has been dropped.

@jodh-intel
Copy link
Contributor

Oh sorry, I see what you mean now. I'll try to update the dev guide today to avoid this confusion...

@jodh-intel
Copy link
Contributor

Hi @gnodli - are you happy for this issue to be closed when kata-containers/documentation#68 lands?

@gnodli
Copy link
Author

gnodli commented May 9, 2018

Now I understand,thank you very much

egernst pushed a commit that referenced this issue May 16, 2018
Update the runtime to use qemu-lite by default. After a
build this will be observed as the default in configuration.toml.

Fixes: #293

Signed-off-by: Eric Ernst <[email protected]>
egernst pushed a commit that referenced this issue May 16, 2018
Update the runtime to use qemu-lite by default. After a
build this will be observed as the default in configuration.toml.

Fixes: #293

Signed-off-by: Eric Ernst <[email protected]>
egernst pushed a commit that referenced this issue May 16, 2018
Update the runtime to use qemu-lite by default. After a
build this will be observed as the default in configuration.toml.

Fixes: #293
Depends-on: github.com/kata-containers/tests#308

Signed-off-by: Eric Ernst <[email protected]>
egernst pushed a commit that referenced this issue May 17, 2018
Update the runtime to use qemu-lite by default. After a
build this will be observed as the default in configuration.toml

Fixes: #293
Depends-on: github.com/kata-containers/tests#308

Signed-off-by: Eric Ernst <[email protected]>
egernst pushed a commit that referenced this issue May 17, 2018
Update the runtime to use qemu-lite by default. After a
build this will be observed as the default in configuration.toml

Fixes: #293
Depends-on: github.com/kata-containers/tests#308

Signed-off-by: Eric Ernst <[email protected]>
egernst pushed a commit that referenced this issue May 17, 2018
Update the runtime to use qemu-lite by default. After a
build this will be observed as the default in configuration.toml

Fixes: #293
Depends-on: github.com/kata-containers/tests#308

Signed-off-by: Eric Ernst <[email protected]>
@urbandroid
Copy link

Configuration looks for qemu-lite but snap package has qemu bin and bam! you can't change conf file because snaps are read only that's why i love snap, reveals the lazy, pain in the ass software at early stage. Issue is still there but issue is closed what should i do? i know $sudo snap remove kata-containers --never-look-back

@caoruidong
Copy link
Member

cc @jcvenegas @jodh-intel

@bergwolf
Copy link
Member

I think we should provide qemu-lite snap package as well cc @devimc .

@elimisteve
Copy link

elimisteve commented Jan 2, 2019

@urbandroid is right: the kata-containers snap package we installed installs

/snap/kata-containers/current/usr/bin/qemu-system-x86_64

but, strangely, this doesn't do us any good, because kata is looking for

/snap/kata-containers/current/usr/bin/qemu-lite-system-x86_64 --

$ sudo docker run -ti --runtime kata-runtime busybox uname -a
docker: Error response from daemon: oci runtime error: /snap/kata-containers/18/usr/share/defaults/kata-containers/configuration.toml: file /snap/kata-containers/current/usr/bin/qemu-lite-system-x86_64 does not exist.

@elimisteve
Copy link

elimisteve commented Jan 2, 2019

@bergwolf Or just use qemu-system-x86_64.

Either way, if kata-runtime is going to install some version of qemu, it should be one that it's compatible with, and that it looks for and uses...

zklei pushed a commit to zklei/runtime that referenced this issue Jun 13, 2019
agent: Add sandbox level reference counter for sandbox storage
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants