windows apps through vm RDP

anyone gotten https://github.com/casualsnek/cassowary or https://github.com/Fmstrat/winapps/tree/main working on bazzite? can't get either to see the windows VM for some reason i named both the windows system and the virtual machine as RDPWindows but i get
bin/winapps check
RDPWindows is not running, run:
virsh start RDPWindows
zany130@bazzite:~/Documents/GitHub/winapps$ virsh start RDPWindows
error: failed to get domain 'RDPWindows'
bin/winapps check
RDPWindows is not running, run:
virsh start RDPWindows
zany130@bazzite:~/Documents/GitHub/winapps$ virsh start RDPWindows
error: failed to get domain 'RDPWindows'
when trying to run winapps tried
virsh list --all
Id Name State
--------------------
virsh list --all
Id Name State
--------------------
so it seems like virsh is not seeing the vm? i can boot it fine though in virt-manager for cassowary it seems to be failing with a freerdp error
[ 2024-08-02 20:51:56,629 ] | [ DEBUG ] : [ __init__ -> main ] --> guest-run with commandline: xfreerdp /d:"RDPWINDOWS" /u:"*******" /p:"******" /v:192.168.122.229 +clipboard /a:drive,root,/ +decorations /cert-ignore /sound /scale:100 /dynamic-resolution /span /wm-class:"cassowaryApp-Wireshark.exe" /app:"C:\Program Files\Wireshark\Wireshark.exe" /app-icon:"/home/zany130/.local/lib/python3.12/site-packages/cassowary/base/../gui/extrares/cassowary_app.png"
[20:51:56:463] [682645:000a6a95] [ERROR][com.freerdp.client.common.cmdline] - [freerdp_client_command_line_post_filter_int]: Command line parsing failed at 'a' value 'drive,root,/' [1]
[20:51:56:463] [682645:000a6a95] [ERROR][com.winpr.commandline] - [log_error]: Failed at index 8 [/cert-ignore]: Unexpected keyword
[ 2024-08-02 20:51:56,629 ] | [ DEBUG ] : [ __init__ -> main ] --> guest-run with commandline: xfreerdp /d:"RDPWINDOWS" /u:"*******" /p:"******" /v:192.168.122.229 +clipboard /a:drive,root,/ +decorations /cert-ignore /sound /scale:100 /dynamic-resolution /span /wm-class:"cassowaryApp-Wireshark.exe" /app:"C:\Program Files\Wireshark\Wireshark.exe" /app-icon:"/home/zany130/.local/lib/python3.12/site-packages/cassowary/base/../gui/extrares/cassowary_app.png"
[20:51:56:463] [682645:000a6a95] [ERROR][com.freerdp.client.common.cmdline] - [freerdp_client_command_line_post_filter_int]: Command line parsing failed at 'a' value 'drive,root,/' [1]
[20:51:56:463] [682645:000a6a95] [ERROR][com.winpr.commandline] - [log_error]: Failed at index 8 [/cert-ignore]: Unexpected keyword
GitHub
GitHub - casualsnek/cassowary: Run Windows Applications on Linux as...
Run Windows Applications on Linux as if they are native, Use linux applications to launch files files located in windows vm without needing to install applications on vm. With easy to use configura...
GitHub
GitHub - Fmstrat/winapps: Run Windows apps such as Microsoft Office...
Run Windows apps such as Microsoft Office/Adobe in Linux (Ubuntu/Fedora) and GNOME/KDE as if they were a part of the native OS, including Nautilus integration. - Fmstrat/winapps
Solution:
got it to work with out root just needed to
export LIBVIRT_DEFAULT_URI="qemu:///system"
export LIBVIRT_DEFAULT_URI="qemu:///system"
...
Jump to solution
11 Replies
Trippz
Trippz4mo ago
You should be able to install applications through Lutris which is already preinstalled. You would just need to create your own image. After doing the install, you'll need to point it to the exe in the install path on the nvme or sd card. Depending where it is.
zany130
zany130OP4mo ago
this is for windows apps that I cant run through lutris/wine such as game controller updaters for example i have a flydigi apex 4 controller and its software doesn't work on wine. You have to use a VM. casswary and winapps make apps running in a vm intergate with your desktop
zany130
zany130OP4mo ago
GitHub
Can't use the /app arguments on Fedora 40 · Issue #10249 · FreeRD...
So I installed a brain new Fedora 40 and played around with freerdp. Whatever I use xfreerpd wlfredrdp I can't use the /app arguments I tried many way. I don't get a error about connection ...
zany130
zany130OP4mo ago
also apperently winapps moved to https://github.com/winapps-org/winapps so I was using the wrong version
zany130
zany130OP4mo ago
welp that fails with
./installer.sh ─╯
################################################################################
# #
# WinApps Install Wizard #
# #
################################################################################

Q) Install or uninstall WinApps? --> Installncies are installed...
Q) Configure WinApps for the current user 'zany130' or the whole system? --> Current User
Q) Automatically install supported applications or choose manually? --> Automatic

Installing WinApps.
Checking for existing conflicting WinApps installations... Done!
Attempting to load WinApps configuration file... Done!
Checking whether dependencies are installed... Done!
Checking whether the user 'zany130' is part of the required groups... Failed!

ERROR: GROUP MEMBERSHIP CHECK ERROR.
The current user 'zany130' is not part of group 'libvirt' and/or group 'kvm'.
--------------------------------------------------------------------------------
Please run the below commands, followed by a system reboot:
sudo usermod -a -G libvirt zany130
sudo usermod -a -G kvm zany130
--------------------------------------------------------------------------------
Exiting with status '7'.
./installer.sh ─╯
################################################################################
# #
# WinApps Install Wizard #
# #
################################################################################

Q) Install or uninstall WinApps? --> Installncies are installed...
Q) Configure WinApps for the current user 'zany130' or the whole system? --> Current User
Q) Automatically install supported applications or choose manually? --> Automatic

Installing WinApps.
Checking for existing conflicting WinApps installations... Done!
Attempting to load WinApps configuration file... Done!
Checking whether dependencies are installed... Done!
Checking whether the user 'zany130' is part of the required groups... Failed!

ERROR: GROUP MEMBERSHIP CHECK ERROR.
The current user 'zany130' is not part of group 'libvirt' and/or group 'kvm'.
--------------------------------------------------------------------------------
Please run the below commands, followed by a system reboot:
sudo usermod -a -G libvirt zany130
sudo usermod -a -G kvm zany130
--------------------------------------------------------------------------------
Exiting with status '7'.
even though I already run
sudo usermod -a -G libvirt zany130
sudo usermod -a -G kvm zany130
sudo usermod -a -G libvirt zany130
sudo usermod -a -G kvm zany130
asen23
asen234mo ago
Fedora Docs
Troubleshooting
Learn more about Fedora Linux, the Fedora Project & the Fedora Community.
asen23
asen234mo ago
check your group entries or /etc/group before trying
zany130
zany130OP4mo ago
yup thanks although now I ts failing to find the vm
./installer.sh ─╯
################################################################################
# #
# WinApps Install Wizard #
# #
################################################################################

Q) Install or uninstall WinApps? --> Installncies are installed...
Q) Configure WinApps for the current user 'zany130' or the whole system? --> Current User
Q) Automatically install supported applications or choose manually? --> Automatic

Installing WinApps.
Checking for existing conflicting WinApps installations... Done!
Attempting to load WinApps configuration file... Done!
Checking whether dependencies are installed... Done!
Checking whether the user 'zany130' is part of the required groups... Done!
Checking the status of the Windows VM... Exiting with status '1'.
./installer.sh ─╯
################################################################################
# #
# WinApps Install Wizard #
# #
################################################################################

Q) Install or uninstall WinApps? --> Installncies are installed...
Q) Configure WinApps for the current user 'zany130' or the whole system? --> Current User
Q) Automatically install supported applications or choose manually? --> Automatic

Installing WinApps.
Checking for existing conflicting WinApps installations... Done!
Attempting to load WinApps configuration file... Done!
Checking whether dependencies are installed... Done!
Checking whether the user 'zany130' is part of the required groups... Done!
Checking the status of the Windows VM... Exiting with status '1'.
so back to square one like the other apps. the strange thing is I checked the code https://github.com/winapps-org/winapps/blob/d93bea983d1dad8108e0397952640dd4428086bc/installer.sh#L956 there using the fedora syntax of /app:program so that shouldn't be an issue anymore....
zany130
zany130OP4mo ago
made a issue https://github.com/winapps-org/winapps/issues/188 saw there were already some issues with bazzite with winapps but they were supposed to have been resolved ....
GitHub
Not working on bazzite (libvirt) · Issue #188 · winapps-org/winapps
After following all the setup instructions for libvirt, the installer fails with ./installer.sh ─╯ ################################################################################ # # # WinApps Ins...
zany130
zany130OP4mo ago
so figured it out the installer needs to run as root because libvirt is running as root on bazzite you also need to overlay dialog for the installer to work. I was using brew when I was running as a user but that dosn't work for root with
sudo rpm-ostree install dialog
sudo rpm-ostree install dialog
and you also need to symlink your ~/.config/winapps/winapps.conf to /root/.config/winapps/winapps.conf like this
ln -s /var/home/USERNAME/.config/winapps/ /var/roothome/.config/
ln -s /var/home/USERNAME/.config/winapps/ /var/roothome/.config/
and then finally you need to add the root user to the kvm and libvirt group like this
usermod -a -G libvirt root
usermod -a -G kvm root
usermod -a -G libvirt root
usermod -a -G kvm root
@HikariKnight @Kyle Gospo not sure if this would be helpful to other bazzite users in ujust? or if i am dumb and it would be better to setup libvirt to run as user? (I saw its possible but don't know if there are any security implications)
Solution
zany130
zany1304mo ago
got it to work with out root just needed to
export LIBVIRT_DEFAULT_URI="qemu:///system"
export LIBVIRT_DEFAULT_URI="qemu:///system"
so no need to run as root just clone repo setup ~/.config/winapps/winapps.conf export LIBVIRT_DEFAULT_URI="qemu:///system" and then run the script
Want results from more Discord servers?
Add your server