I’m having the hardest tine setting up a shared folder between a Linux host and Win11guest. I want to get rid of dual boot, but there are a few programs that I use which are Win only. I have set up a VB VM, but I want a fine tuned KVM VM. On VB sharing is trivial, but I can’t get it to work in KVM. I have the host sharing the folder with Samba, and can see it from another Linux VM, but not from windows. Any clues?

  • d3Xt3r@lemmy.nzM
    link
    fedilink
    arrow-up
    12
    ·
    edit-2
    6 months ago

    First of all, forget all the Spice-based viewers - by far the best solution for interacting with a Windows guest is using freeRDP. It’s extremely smooth and lightweight, and feels like you’re interacting with Windows natively - unlike Spice viewers which feel very clunky. With freeRDP, you don’t need to configure Samba etc, clipboard sharing works, dynamic resolution works, and you can even use seamless windows (RemoteApps) to make it look like you’re natively running a Windows app in Linux!

    Just enable Remote Desktop in Windows, and then from your host machine, you can run the following command to connect to your VM:

    xfreerdp /v:192.168.122.xxx /u:dexter /p:password /drive:/home/dexter/Downloads,Downloads /cert:ignore /dynamic-resolution +clipboard /scale:180 /f

    • Obviously, change the above parameters according to your system.
    • Setting a static IP inside Windows would also make it easier, so you can just create a shortcut/script with the above command.
    • In my above command, I’ve shared my Downloads folder. This will appear in Windows as the share \\tsclient\Downloads. You can then map this share to a drive inside Windows to make it easier to access.
    • I’m on a HiDPI monitor so I’ve enabled scaling with the /scale:180 parameter.

    Alternatively, you could use a GUI tool like Remmina, which uses freeRDP in the backend.

    I also highly recommend using freeRDP v3.x if possible - this is available in Arch (AUR) and Flatpak. The reason being, freeRDP has made numerous improvements since v3.0 (released December last year), which make it 100% worth the upgrade - but most distros seem to be stuck on 2.xx for some reason.

    Let me know if you have any questions. I use Win11 guests on KVM almost daily for testing various things as part of my job, and I access it via freeRDP without any issues.

    • flashgnash@lemm.ee
      link
      fedilink
      arrow-up
      1
      ·
      6 months ago

      I had thought spice was supposed to be really good for VMs, it’s it just over hyped?