Qemu how to get a port for VNC and stop the terminal?
Solution 1:
for the cli configuration of a VNC you need to configure the display that way.
To do that drop "nographic" and instead add something like -display none -vnc :0
.
Of these options -display none
makes it not put output somewhere immediately, but in comparison to nographic
it will leave a virtual gpu present to the guest. Then -vnc
controls where/how to open a port. There are many suboptions, and I'd recommend to restrict accessibility and authentication. You can aslo combine it with spice, so I'd recommend to have a look for "vnc" in the man page
-display none
of the above will already have done that for you, for full background execution consider also adding-daemonize