winapps-org / winapps

The winapps main project, forked from https://github.com/Fmstrat/winapps/
544 stars 26 forks source link

Virsh session vs. system (Apps silently fails to start) #83

Closed peppergrayxyz closed 1 month ago

peppergrayxyz commented 3 months ago

Hello,

there seems to be different ways of running kvm/qemu/libvirt which lead to the VM running either in system or session pool. It is hard to grasp these concepts and harder to configure everything so that it works.

If the VM "RDPWindows" is running in the system pool, the script will fail.

Observed behavior "RDPWindows is not running, run: virsh start RDPWindows" (from shell) App fails silently to start from menu

Excpected behavour App is starting

Proposal use virsh --connect qemu:///system list or virsh --connect qemu:///session list explicitly (winapps:57) (same for net-dhcp-leases default, (winapps:62))

caleskog commented 3 months ago

I have the same problem. The check command fails because the VM is not found.

npmanos commented 2 months ago

Add export LIBVIRT_DEFAULT_URI='qemu:///system' to your shell profile (.bashrc, .zshrc, etc.) and then reboot.

oskardotglobal commented 1 month ago

We are currently working on running the VM inside Docker, see #94, which should solve most of these issues. Closing this since it seems resolved.