Docker-OSX icon indicating copy to clipboard operation
Docker-OSX copied to clipboard

How to open qemu console in headless image?

Open recsater opened this issue 3 months ago • 4 comments

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 avatar Mar 15 '24 08:03 recsater

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 avatar Mar 15 '24 08:03 recsater

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

But

image

recsater avatar Mar 15 '24 08:03 recsater

Solved :+1:

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

recsater avatar Mar 15 '24 08:03 recsater

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

sickcodes avatar Apr 08 '24 13:04 sickcodes