quickemu-project / quickemu

Quickly create and run optimised Windows, macOS and Linux virtual machines
MIT License
10.89k stars 478 forks source link

feat: Connect to a detached running vm #1370

Open sudoAlphaX opened 4 months ago

sudoAlphaX commented 4 months ago

I confirm this feature has not been previously requested

Is your feature request related to a problem? Please describe. It is difficult to connect to a running vm (started by qemu), when the window is terminated in cases like a compositor crash. In that case, the vm is still running. Trying to start the vm reports:

virtual-machine
 - Process:  Already running ./virtual-machine.conf as virtual-machine (<a pid of qemu-system-x86_64>)

Describe the solution you'd like It will be helpful to connect to a detached virtual machine using a flag or just by running the connect command.

lj3954 commented 4 months ago

Can you demonstrate this being possible with SDL and/or GTK displays? For SPICE displays, this is definitely possible and should be the default behaviour.

flexiondotorg commented 4 months ago

As far as I am aware, it is not possible to reattach QEMU to a running VM that was started using the SDL or GTK backends.

I have been considering changing quickemu to start VMs using SPICE by default, which would be one way to address this issue. There are other benefits to using SPICE, such as clipboard and USB sharing.

medanisjbara commented 2 months ago

Can you demonstrate this being possible with SDL and/or GTK displays? For SPICE displays, this is definitely possible and should be the default behaviour.

By "shoud be the default behaviour." do you mean that it is supposed to reattach if using spice ? cuz it's definitively not doing so for me.

lj3954 commented 2 months ago

No, that feature is not currently implemented.