How to open qemu console in headless image? #574

Open
opened 2025-12-29 01:22:23 +01:00 by adam · 4 comments
Owner

Originally created by @recsater on GitHub (Mar 15, 2024).

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.

Originally created by @recsater on GitHub (Mar 15, 2024). after docker run ```bash (qemu) vnc change password # password setting... # at this point, I could connect with VNC viewer. (qemu) q # exit qemu console ``` container stopped. ```bash 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.
Author
Owner

@recsater commented on GitHub (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 commented on GitHub (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?
Author
Owner

@recsater commented on GitHub (Mar 15, 2024):

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

But

image

@recsater commented on GitHub (Mar 15, 2024): I tried `docker exec -i <contianer name> qemu-system-x86_64 -monitor stdio` But ![image](https://github.com/sickcodes/Docker-OSX/assets/16009827/050fe1d1-9648-4998-b28a-76690fb66c56)
Author
Owner

@recsater commented on GitHub (Mar 15, 2024):

Solved 👍

docker start <container name>
docker attach <container name>
@recsater commented on GitHub (Mar 15, 2024): Solved :+1: ```bash docker start <container name> docker attach <container name> ```
Author
Owner

@sickcodes commented on GitHub (Apr 8, 2024):

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

@sickcodes commented on GitHub (Apr 8, 2024): Awesome, you can also do `docker start -ai` which attaches to the container upon starting it
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Docker-OSX#574