I saw from a post that you can basically host your own mini windows inside of linux to play games with, and you can choose what to share with that little windows so microsoft can’t track you in any way. Does anyone have a tutorual/guide for that? Also what Distro would be best for it?

  • Solar Bear@slrpnk.net
    link
    fedilink
    English
    arrow-up
    6
    ·
    1 year ago

    What you’re probably referring to is running a virtual machine with VFIO passthrough. I hate to be that guy, but this is one of those “if you have to ask for help, you probably shouldn’t do it” kind of situations. It’s complicated and easy to mess up, requires a decent amount of knowledge of both Linux and Windows, and every situation is unique. There’s no cookie-cutter way to set it all up.

    But if you’re willing to buckle down and learn anyways, the best way would be to do it from scratch. This is the best documentation I’m aware of on the subject, but it’s tailored heavily for Arch Linux, a rather advanced distro to use.

    https://wiki.archlinux.org/title/PCI_passthrough_via_OVMF

    • Yoru@lemmy.mlOP
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      alright, thanks. After I’ve read other comments I’ll pass on it because it seems I need an extra GPU anyways.

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

        Not necessarily, if your processor has an igpu which many do you can use that for Linux and the discrete GPU for the VM

        though like others have said if you don’t know about this technology already it’s not going to be an easy plug and play job

  • merthyr1831@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    It’s pretty advanced. You’ll need 2 GPUs (so gaming laptop or gaming PC with at least 2 graphics adapters) and some more advanced Linux stuff like editing kernel/boot configs, messing with drivers, and BIOS settings.

    Look at BlandManStudios on Youtube, he has a bunch of tutorials on this. But make sure you back up your system because, like I said, it’s not a simple setup.

  • garrett@beehaw.org
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    There are a few ways…

    The easiest is using Steam, which handles everything for you (once you flip a switch in settings). The second easiest is using Bottles or Heroic, both of which lets you run Windows games and apps on Linux via Wine. The third is VMs, but that’s just Windows itself running virtualized (in its own virtual machine) in Linux. The fourth way to use the same computer for Linux and games is to dual boot (reboot from one OS into the other) and stick with Linux except for particular games that might not work with other methods — which is thankfully very rare these days (as most games work in Linux via Proton or in Wine via Bottles or Heroic).

    1. Steam on Linux has a switch in the settings to enable Proton for all games. Flip that on, and it’s basically transparent. For setting up Steam, the easiest way is to install it from Flathub.org. Depending on your distribution, it’s most likely set up for you. If not, then follow the setup guide @ https://flathub.org/setup. Once Flathub is set up on your system, you can install the flatpak of Steam from your app store (GNOME Software, KDE Discover, etc.)

    2. An alternate method is to set up Wine outside of Steam. There are a few ways to do that; Bottles is the most straightforward and super easy way, letting you have different Wine environments for different apps or games (or just one for everything, if you’d rather)… Bottles is easy to use and has installers for a lot of common apps and launcher. Additionally, Heroic is also a good way to run GOG, Epic, and Amazon games on Linux. Both are on Flathub too.

    3. There’s a third major way, and that’s installing Windows as a virtual machine on Linux. You’d probably want to use GNOME Boxes or virt-manager for that. Boxes is easier (and on Flathub) and will give you adequate GPU performance for a lot of things (however, isn’t ideal for high performance gaming), but if you have two GPUs (often one integrated and one discrete), then you can use GPU passthrough with virt-manager, but that’s way outside the scope of this comment. 😉 Perhaps having a Windows install in a VM just for some games that don’t work on Linux is what that person meant? But that would still get you tracked by Microsoft whenever you’re using Windows in that VM. (So I’m guessing they’re talking about Wine instead, which is option 1 and 2.)

    4. Dual boot is basically reusing the same hardware for two different operating systems, but only one at a time. When you’re in Linux, Microsoft doesn’t track you (unless you’re using Edge on Linux or specifically using a Microsoft service). You’d want to minimize your time in Windows.

    You could use any of the above or a combination (perhaps even all of the above), depending on what you want. I only use 1 and 2 myself. While I do play a lot of games, all on Linux, I don’t play any that require Windows.

    (There are only a few these days that don’t work on Linux. The notable ones I’m aware of are Fortnite, Destiny 2, Genshin Impact, and a few others that rely on lootboxes where the maker didn’t flip the switch to enable “anti-cheat” on Linux. Most everything else works these days, even a lot of other lootbox/pay-to-win games.)

  • PotatoesFall@discuss.tchncs.de
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    Not sure what you mean. You can virtualize a whole windows machine but that will NOT be good for performance.

    What you really want is a compatibility layer than maps syscalls to your linux kernel and emulates a windows filesystem. I’m fairly sure that’s what Wine and Proton do, but am no expert.

    If you install steam (on most distros) it should also install Proton to play games with (check ProtonDB for which games work well). Again no expert but maybe this helps a little.

    • wildbus8979@sh.itjust.works
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      You can virtualize a whole windows machine but that will NOT be good for performance.

      Sorry but that is totally not true, if you have a second graphics card to passthrough to the virtual machine.

      • cujo@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        0
        ·
        edit-2
        1 year ago

        It will still be subpar performance, bottlenecked by the CPU resources you can allocate to the VM as well as your original hardware’s capabilities to power the VM among many other variables. Running a VM to game will always produce subpar results. Using GPU passthrough will increase performance, but it’s almost always preferable to play on real hardware.

        The real answer will always be: if you want to game on Linux, utilize Wine/Proton and Steam/Lutris/Bottles/Heroic/some other launcher that lets you fine tune Wine/Proton to cater to the specific game.

        • dragnet@kbin.social
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          Super late reply here, but I was searching the Linux sub for vfio because I love this topic, lol. I’m happy to report that as others are saying, a vfio setup can be very performant! The GPU is near native, and with the proper CPU configuration, you won’t be dealing with much overhead there either. The biggest factor is the overall load on your machine from running a host OS with the guest layered on top. I use my PC host OS primarily as a QEMU/KVM hypervisor, so when I need maximum gaming performance I simply turn off or suspend operation on all other VMs to free the resources for Windows. The only game I’ve had trouble with recently at 3440x1440 is Starfield, and unfortunately I think that is more a sign that an upgrade is finally due. I’ve used this setup for all kinds of games with no problem, including demanding virtual reality titles.

          The biggest problem I’ve run into? Some anticheats truly despise any kind of virtualization. I’ve only run into issues with 2 games I like to play, but that is a real caveat. I consider it 100% an issue with the companies implementing these policies, who as I see it don’t deserve my money in the first place. But other than the initial configuration headache and extra hardware required (if you don’t have an iGPU anyway), this is the main drawback in my eyes.