From a061cf1ba2fd90a17884c132280c86c081c47b25 Mon Sep 17 00:00:00 2001 From: Oskar Manhart <52569953+oskardotglobal@users.noreply.github.com> Date: Thu, 28 Nov 2024 15:02:24 +0100 Subject: [PATCH] doc: workaround for setting LIBVIRT_DEFAULT_URI See #310 --- docs/libvirt.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/libvirt.md b/docs/libvirt.md index 65869131..4b882502 100644 --- a/docs/libvirt.md +++ b/docs/libvirt.md @@ -28,9 +28,17 @@ Together, these components form a powerful and flexible virtualization stack, wi 3. Configure `libvirt` to use the 'system' URI by adding the line `LIBVIRT_DEFAULT_URI="qemu:///system"` to your preferred shell profile file (e.g., `.bashrc`, `.zshrc`, etc.). ```bash - echo "export LIBVIRT_DEFAULT_URI=\"qemu:///system\"" >> ~/.bashrc + echo 'export LIBVIRT_DEFAULT_URI="qemu:///system"' >> ~/.bashrc ``` +> [!NOTE] +> WinApps may not read your shell's configuration. If you're having issues getting the installer to detect your VM, try adding +> `LIBVIRT_DEFAULT_URI="qemu:///system"` to your `/etc/environment` like: +> ```bash +> echo 'LIBVIRT_DEFAULT_URI="qemu:///system"' | sudo tee -a /etc/environment +> ``` +> Thanks to imoize for pointing this out: https://github.com/winapps-org/winapps/issues/310#issuecomment-2505348088 + 4. Install `QEMU Guest Agent`. ```bash sudo apt install qemu-guest-agent # Debian/Ubuntu