Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to open qemu console in headless image? #753

Open
recsater opened this issue Mar 15, 2024 · 4 comments
Open

How to open qemu console in headless image? #753

recsater opened this issue Mar 15, 2024 · 4 comments

Comments

@recsater
Copy link

after docker run

(qemu) vnc change password
# password setting...
# at this point, I could connect with VNC viewer.
(qemu) q # exit qemu console

container stopped.

docker start <headless container>

container started.

and.. how can I access the qemu console? It seems that the VNC password gets reset upon exiting the qemu console.

@recsater
Copy link
Author

recsater commented Mar 15, 2024

Ah, I meant to kill the container, not exit the qemu console.

But even if the container is killed, how do I return to the qemu console?

@recsater
Copy link
Author

I tried docker exec -i <contianer name> qemu-system-x86_64 -monitor stdio

But

image

@recsater
Copy link
Author

recsater commented Mar 15, 2024

Solved 👍

docker start <container name>
docker attach <container name>

@sickcodes
Copy link
Owner

Awesome, you can also do docker start -ai which attaches to the container upon starting it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants