Fedora 40 Looking Glass Demo

Поділитися
Вставка
  • Опубліковано 3 жов 2024
  • Was finally able to make the switch to Linux! Simultaneous native Windows and Linux experience using Fedora 40, looking glass and moonlight/sunshine streaming. Will use the windows VM for gaming and for Visual Studio (I’m a dotnet dev). And Linux for everything else! This is so fun! ‪@ChrisTitusTech‬ thanks for the inspiration with your videos!
    VM Bridge setup:
    When creating the NIC for your vm, set it up to use the bridge you create from the link, and replace the first 3 numbers of the mac address from your a real hardware NIC to assist with bypassing anti-cheat.
    www.server-wor...
    Looking Glass Setup:
    looking-glass....
    I set mine up using the Standard shared memory file. Because of this, when I startup my pc, my vm cannot start due to permissions on the shared memory file. This can be fixed with the following commands:
    sudo rm /dev/shm/looking-glass # remove the file so that the vm can start
    sudo virsh start win11 # start the vm
    sudo chmod 777 /dev/shm/looking-glass # allow the LG client (you) to access the file
    I turned mine into a shell script to save me some time on startup, Will figure out how to automate this
    Looking Glass Config
    Create a .looking-glass-config file in your home directory. This will be loaded when you start looking glass without any command line args. You can map a keyboard shortcut such as Super+W that calls looking-glass-client in your System Keyboard settings.
    Here is the reference page for setting up your file:
    looking-glass....
    Screen Solutions (Dummy Plug alternatives).
    You don't need a dummy plug. Probably.
    If your screen has multiple inputs, and you can access a free port on the VM's Card, This is your simplest Solution. For looking glass, I plugged a DisplayPort Cable into my left monitor, Linux is using HDMI 1 on that monitor. This depends on how your monitor treats displayport connections on StandBy. In my case, The displayport connection stays active when the monitor is set to HDMI 1, Even when the HDMI is unplugged and the monitor is on Standby. (Fun fact, GSync is enabled in windows on this screen, and looking glass seems to be able to pass it along to Freesync/GSync in Linux)
    If you do not have access to any ports, then you can install IddSampleDriver in the VM as a virtual monitor for the VM to use. This is what I am doing for the left Windows screen. Ensure to edit options.txt and add any specific resolutions that you need, install the driver and set it as the Primary display. Some graphics options are unavailable though as the "display" is not connected to the gpu directly, GSync is not available in this mode. The Non HDR Driver appears to be more Stable right now.
    If you want to display your second monitor with Sunshine/Moonlight then you just need to configure sunshine to use the correct display.
    And finally! Ifigure out that I could use Sunshine/Moonlight to use my tablet as a dsiplay for Linux. Connect an extra HDMI cable to an unused port on your Linux host's GPU, then configure Sunshine to share that display

КОМЕНТАРІ • 40

  • @IMakeStuff92
    @IMakeStuff92 3 місяці тому

    Everything here is just super. Thanks for asking!

  • @egokhanturk
    @egokhanturk 3 місяці тому +1

    Nice setup. Good job

  • @mohxiie
    @mohxiie 3 місяці тому +4

    That is fucking impressive, I have been looking for something like this for a VERY long time. What's your PC specs?

    • @DavidScott51
      @DavidScott51  3 місяці тому +2

      5800x, with 6 cores passed to the VM with AMD RX580 for Linux and a 4070Ti for Windows. 32GB RAM halfway split

  • @kunjorox171
    @kunjorox171 3 місяці тому

    Ty sir

  • @klementineQt
    @klementineQt 3 місяці тому

    This looks like such a nice setup. I've got an iGPU and an RX 5700 XT, and I'd rather just use Proton for gaming myself, but sadly, I think I'm out of luck even with a passthrough setup because the reason I'd want to do so would be for anti-cheat purposes, and I'm not sure how reliably I could hide the VM and whether it's worth the risk of getting banned.
    I really wish Ubisoft would just flip the switch on Battleye for Proton for R6 Siege :/
    I haven't daily driven in 6 years and I miss Linux so bad. I do have an old chromebook running ubuntu server for discord bots and other little things but I want Arch on my main rig

    • @DavidScott51
      @DavidScott51  3 місяці тому +1

      Anti cheat is laughably easy to bypass with QEMU. The only thing you need to do that isn’t already in the looking glass installation guide is to setup a network bridge and modify the vm’s MAC address start with the same first 3 numbers as a real NIC, as then it will be considered whatever brand the one you copied it from. I have only tested with halo infinite and master chief collection. Which uses easy anti cheat

  • @whyunlux
    @whyunlux 3 місяці тому +1

    tutorial please, i got everything working properly but i have a Asus Tuf A17 laptop and no second monitor, i can passthrough properly and use looking glass but i am unable to get 144hz on it, and thoughts on how to fix that?, also my looking-glass doesnt work without using a video driver in the vm hardware. would love your input on this

    • @DavidScott51
      @DavidScott51  3 місяці тому

      Install IddSampleDriver from its Mike the tech. Make sure to edit the options.txt to make sure resolution/refresh you want is there, before you install it. Then make it the primary monitor. I would recommend the non hdr one

  • @carloslegrutier
    @carloslegrutier 3 місяці тому

    How practical is to dynamically share RAM with guest from Linux (host). I have 32gb but I kinda need those for Linux (with a 16c).
    Also, are you using dedicated partition (or disk) for the desk or an image, do you know if there is a NTFS performance overhead (back in the days, with VMware sector/cluster missalignment was a thing)

    • @DavidScott51
      @DavidScott51  3 місяці тому +1

      I used a virtual disk stored on my linux nvme drive to get the vm configured, then once it was ready I switched it over to a dedicated nvme drive, performance was about the same. The qemu system can do memory ballooning and windows can actually handle that, but it's not recommended for my use case.

  • @NOBLE21-t9k
    @NOBLE21-t9k 3 місяці тому +1

    Can u make a tutorial

    • @DavidScott51
      @DavidScott51  3 місяці тому

      I have added a bunch of resources to the description, I hope that helps! I might get around to making a tutorial, We'll see.

  • @megamodspc6436
    @megamodspc6436 2 місяці тому

    pc spects ?

  • @leadfarmer5563
    @leadfarmer5563 2 місяці тому

    What keyboard are you using?

    • @DavidScott51
      @DavidScott51  2 місяці тому

      @@leadfarmer5563 hyperx origins alloy 60

    • @DavidScott51
      @DavidScott51  2 місяці тому

      Configured in windows with the profile saved to the keyboard

  • @goodtimeschan
    @goodtimeschan 3 місяці тому

    Hi David, you've got a really nice setup there. Could you please tell me if it would be possible to implement such a system on a laptop with an Intel iGPU and an NVIDIA dedicated GPU?

    • @DavidScott51
      @DavidScott51  3 місяці тому

      In theory it should be possible. You would have to use idd sample driver to simulate a proper display. If the laptops display is wired to the discrete gpu, you might have a problem as the display would effectively be connected to the vm with no display out to Linux. Others have the display connected to the igpu and the discrete is for render jobs which would be better for this use case.

    • @goodtimeschan
      @goodtimeschan 3 місяці тому +1

      @@DavidScott51 That is my case, the discrete GPU works through the iGPU which is wired to the display. So, in theory it should be possible then, right? Btw, I can change the GPU on-the-fly on Linux using PRIME, I actually use EnvyControl.

  • @FUSSSEL
    @FUSSSEL 3 місяці тому

    You need two gpus right? E.g. an igpu for linux and a regular gpu...

    • @DavidScott51
      @DavidScott51  3 місяці тому

      Correct! I have a Rx580 for Linux, and a 4070ti for the vm. My cpu is a 5800x

  • @RovelStars
    @RovelStars 3 місяці тому

    links, docs?

    • @DavidScott51
      @DavidScott51  3 місяці тому

      I have added a bunch of resources to the description, I hope that helps!

  • @is-ig4ny
    @is-ig4ny 3 місяці тому

    Hi! Would something like this be possible with an AMD CPU and GPU? I would love to migrate to Linux, but I still need Fusion360, which currently doesn't even work with Wine. Your setup looks really clean btw 👏

    • @DavidScott51
      @DavidScott51  3 місяці тому

      It requires 2 gpus. If your amd cpu has onboard graphics. That counts. If you just have the one GPU you can setup Single passthrough, but that’s even more complicated. You have to setup virsh start stop hooks to handle the switch between the 2 OS’s loading and unloading drivers and whatever display manager you’re using. And only 1 can use it at a time

    • @is-ig4ny
      @is-ig4ny 3 місяці тому

      @@DavidScott51 Fortunately, CPU does actually have onboard graphics. Is there a tutorial out there on something similar to what you have in the video? It look so fricking smooth.

    • @DavidScott51
      @DavidScott51  3 місяці тому

      @@is-ig4ny I followed Chris Titus's "Ultimate system" streams, the official looking glass instructions and some of my own research. I'll put some links in the description when I get the chance.

    • @is-ig4ny
      @is-ig4ny 3 місяці тому

      I also have an older 1650 Super card that I believe might be suitable for this. How was your experience with reducing the RAM by half? I currently have 32GB, but I'm starting to realize that might be overkill for single-player games.

    • @DavidScott51
      @DavidScott51  3 місяці тому

      @@is-ig4ny So far, so good. 16Gb each is plenty for a workstation.

  • @NUDELMOB
    @NUDELMOB 3 місяці тому

    Is the sunshine server only for that little tablet like screen in the middle? I didn't quite catch the point of it in the video

    • @DavidScott51
      @DavidScott51  3 місяці тому +1

      Looking Glass is running the right windows screen which is the primary display, Sunshine is driving the driving the left screen and is configured to display only the secondary monitor. SuperDisplay is running the tablet. I may try to have a sunshine stream from my host to the vm so that I can display gnome on the tablet

    • @NUDELMOB
      @NUDELMOB 3 місяці тому

      @@DavidScott51 Ah I get it now, thank you. Of course that seems to make it much more easy to control the switching instead of having to change inputs on the monitors.
      I think a proper full video, going over the configuration and such would be appreciated by some :)

  • @Rednunzio
    @Rednunzio 3 місяці тому

    4k monitor with gnome ?

  • @mrblack7348
    @mrblack7348 3 місяці тому

    I don't understand what is he doing?

    • @DavidScott51
      @DavidScott51  3 місяці тому

      I wanted to give Linux a proper try. So I setup dual boot. But my favourite game is a pain to run in Linux, so I would always have to restart my computer to boot into Windows to play my game. There are other programs that I use that have the same problem.
      So I used a bunch of free open source software to give myself a gaming virtual machine with Windows installed on it, that lets me access Windows at the same time as Linux, with Looking Glass being the key software that lets me game on the VM from my Linux Desktop without adding any video/audio/input latency

    • @TheReacher24
      @TheReacher24 3 місяці тому

      @@DavidScott51do you play any games with anticheat that have a problem with gaming on a vm? I know specifically easy anticheat has a vm toggle in it where you can’t play any games using it under a vm.

    • @DavidScott51
      @DavidScott51  3 місяці тому

      @@TheReacher24 halo infinite actually uses the vm check. I had to figure out how to bypass it when I setup my first gaming vm on my Proxmox server (player 2!). Basically all you need to do is have the vm be given “real” hardware ids. In qemu it’s just a host passthrough checkbox for the cpu, an xml tweak for the motherboard/system and finally replace the first 3 values in the virtual Nic’s MAC address with the values from a real NIC. I just copied the first 3 from my motherboard nic