How To Use Virtual Machines on Linux

Поділитися
Вставка
  • Опубліковано 29 чер 2024
  • ► Follow me!
    𝕏 ►► x.com/@MichaelNROH
    📷 Instagram ►► / @michaelnroh
    🤖 Discord ►► / discord
    #️ Matrix ►► matrix.to/#/#michaelnr0h-community:matrix.org
    ▶️ Second Channel ►► / nr0hofficial
    ----------------------------------------------------------------------------------
    Links:
    Windows Fix ►► / cant_get_a_windows_101...
    Gnome Boxes
    Camera ►► amzn.to/3O8aHh2 (With Default Lens)
    Microphone ►► amzn.to/3xwznsl
    Scarlett 2i2 ►► a.co/d/gxQ2Wr4
    (* All Amazon Links are affiliated. That means that I get a small cut of revenue if you buy something, without any additional costs.)
    ----------------------------------------------------------------------------------
    🎵 Music from StreamBeats by Harris Heller.
    ----------------------------------------------------------------------------------
    Chapters:
    00:00 - Why use Virtual Machines?
    00:45 - What is Virtualization?
    02:06 - The difference between QEMU and KVM
    04:10 - How to use KVM
    04:45 - Gnome Boxes (The easy way)
    07:34 - Virtual Machine Manager (The better way)
    08:50 - OpenGL / 3D Acceleration, Secure Boot and TPM 2.0
    10:31 - Windows ISO not booting fix
    10:57 - Conclusion
    ----------------------------------------------------------------------------------
    Description Tags:
    virtual machine, virtual box, virtual machine on linux, linux virtual machine, linux virtual machine windows 11, virtual machine windows 10, virtual machine windows 11, virtual machine linux, windows 10 virtual machine on linux, logitech g hub linux, virtual machine passthrough gpu, virtualization on linux, virtualization on linux server, michael horn
    ----------------------------------------------------------------------------------
    #linux #virtualization #opensource
  • Ігри

КОМЕНТАРІ • 157

  • @walter_lesaulnier
    @walter_lesaulnier Рік тому +39

    I SUFFERED while playing around with VirtualBox and VMWare on Windows- they are slow, buggy, and bad- especially with video and scaling. Then I installed QEMU and Virt-Manager on my Fedora computer and I was in LOVE- VMs ran 95% as fast and reliably as on bare metal. Sooooooooo much better.

    • @mariocraft95
      @mariocraft95 Рік тому +4

      Same experience! I hated VMs on windows. HyperV SUUUCKS for Linux distributions if you are lucky enough to have Windows 10 pro to even try it.
      Linux is infinitely better than windows at virtual machines.

  • @Lu-Die-MilchQ
    @Lu-Die-MilchQ Рік тому +52

    Virt-Manager is really powerful and easy to use. I made a few Windows and MacOS VMs with GPU passtrough and the performance is just awesome. I can even use XCode to write IOS Apps on my MacOS VM.

    • @maviniii
      @maviniii Рік тому +5

      I’m pretty new to it, do you know a video or a tutorial where I can install MacOS GPU pass trough, using Virt-Manager? I’d to test XCode. Use Fedora and my laptop has intel 11Gen, RTX 3070, 32BG. Thanks

    • @GWFO
      @GWFO Рік тому +1

      What would you say is better virt machine manager or virtual box ?

    • @Lu-Die-MilchQ
      @Lu-Die-MilchQ Рік тому +2

      @@GWFO With virt-manager you can use kvm which is a type 1 hypervisor and thus runs very close to the hardware. Virtualbox on the otherhand is a type 2 Hypervisor which is running on top of your Operating System and is therefore slower. Also with kvm you can easily passtrough real hardware.

  • @Scranny
    @Scranny Рік тому +35

    Also worth mentioning is that if you set up your VM in the easy-to-use Boxes, you can easily edit its advanced configuration later on using Virtual Manager (but still use Boxes to use it)

    • @wadewhitman
      @wadewhitman Рік тому

      I can’t see any Boxes vm’s with virt-manager on Ubuntu LTS 22.04. I installed Boxes as a flatpak and virt-manager with apt…. Maybe it’s a sandbox issue with my Boxes flatpak?

    • @Scranny
      @Scranny Рік тому

      @@wadewhitman I searched "connect virt manager to boxes" and found: "click File > Add New Connection · Click the drop-down for Hypervisor and choose QEMU/KVM user session and click Connect · You should now see your Boxes appear in the list under the new connection"

  • @sunnisun36
    @sunnisun36 Рік тому +20

    That is the best video about how to setup and use a VM on linux. Furthermore i am stoked that you also mentioned GPU passthrough. I never imagined it to be so easy.
    Thanks !

  • @jimjam6653
    @jimjam6653 Рік тому +7

    Super Videos Michael, deine Videos helfen mir sehr komplett auf Linux umzusteigen, und ich denke auch vielen anderen.
    Danke dir

  • @daveys
    @daveys 3 дні тому +1

    Great video. I am using Gnome Boxes on Ubuntu 24 at the moment, just installed SuSe this morning and Windows 10 Pro this afternoon. The Windows 10 Pro is running better as a VM than when I had it running directly on the machine!

  • @thomasfx3190
    @thomasfx3190 Місяць тому +1

    Good Afternoon Michael! Very good stuff thanks for the introduction to some VM subjects I didn’t know about!

  • @Eimantasks
    @Eimantasks Рік тому +3

    Super useful, thank you!

  • @christiansamuelsson3444
    @christiansamuelsson3444 Рік тому +2

    Awesome vid good work keep it up :)

  • @johnmckown1267
    @johnmckown1267 Рік тому +4

    Interesting. In the past, I've used both KVM and VMM. Once I'm retired, in about 10 weeks, I plan to repurpose my PC with Linux and run Windows 11 Pro under KVM.

  • @JHSaxa
    @JHSaxa Місяць тому +1

    Wow, this was so helpful! Thank you! In 11 minutes you saved me hours and answered so many questions.

  • @bertnijhof5413
    @bertnijhof5413 Рік тому +20

    I have a Ryzen 3 2200G (4C4T) and I always give all VMs all 4 Cores. I see no reason to slow down a VM artificially, also because the Linux kernel of the Host is perfectly capable of scheduling the processes of the Host and the visible processes running on the cores of each VM. I only limit the number of CPUs for e.g Windows XP Home, because that OS only supports 1 core.

    • @keesmills2019
      @keesmills2019 23 години тому

      "Windows XP Home, because that OS only supports 1 core."
      This is incorrect, XP Home supports one CPU but that CPU may have more than one core. I had a AMD X2 CPU way back in the day, and I upgraded to Vista so FML.

    • @bertnijhof5413
      @bertnijhof5413 20 годин тому

      @@keesmills2019 Yes, you are right, I was confused by CPU vs Cores and I never knew my XP Home would support more cores. I installed the VM with one core on a 32-bits Pentium 4 desktop in 2010.
      I could change the number of cores by re-installation or by replacing some modules and settings in the windows directory. I don't need more cores playing music and I like to keep that installation date of March 2010.

  • @bertnijhof5413
    @bertnijhof5413 Рік тому +12

    QEMU is an emulator and as an emulator it can emulate different hardware architectures (instruction-sets) including x86, MIPS64 (up to Release 6), SPARC (sun4m and sun4u), ARM (Integrator/CP and Versatile/PB), SuperH, PowerPC (PReP and Power Macintosh), ETRAX CRIS, MicroBlaze, and RISC-V. Virtualbox is NO EMULATOR, because unlike QEMU it can't emulate ARM instruction on your x86-PC!
    The hypervisors of KVM and Virtualbox both consists of 3 modules that run inside the Linux kernel.

    • @anon_y_mousse
      @anon_y_mousse Рік тому +3

      For most people that won't matter and/or they won't care. If safety and security are a concern, obviously an emulator would be the best option because it mitigates attack vectors. If speed, not safety or security, is your main concern, then a hypervisor based VM would be your best bet. If you're a competitive gamer, obviously you'll want to go with a hypervisor based solution.

    • @chlorobyte_projects
      @chlorobyte_projects Рік тому +1

      @@anon_y_mousse If you're a competitive gamer, ideally you get a separate Windows machine just for gaming. Try to run them on Linux first though, you may be able to get lower display latency and better performance.

    • @bertnijhof5413
      @bertnijhof5413 Рік тому +1

      @@anon_y_mousse There are much better ways to protect your VM, while improving security and performance. Like suggested in the video, split up your work over more VMs, so only one VM gets infected. I have the next 6 main VMs and all VMs are closed for inbound traffic, except one:
      - Communication (Email; WhatsApp; etc), with a few open ports;
      - Banking, Ubuntu 16.04 ESM is encrypted by Virtualbox and used exclusively for banking, while Firefox uses the latest stable snap container;
      - Multimedia;
      - Try-outs and experiments; to concentrate the risks during experiments here and to avoid cluttering up the disks of other VMs with left-overs;
      - Windows 11 Pro, just in case I need it;
      - Windows XP to play the wma copies of my CDs and LPs with WoW and TrueBass effects. Note that I installed and activated the VM in March 2010 and it survived 3 desktops with 4 CPUs and 2 laptops :)
      Security: I run the VMs on the OpenZFS file system, so in case of any problem I rollback that VM. I had to use it once for an infection by Email.
      Performance: The VM runs from L1ARC, the ZFS memory cache, it is like running the VM from a RAM disk :)
      I used the Virtualbox encryption, because it was easy and convenient for one VM, you only have to remember one passphrase. However nowadays OpenZFS supports encryption for datasets (super folders) too.

  • @xard64
    @xard64 Рік тому +10

    Virtualization is perfect for scenarios where you have to configure a piece of hardware with very dubious software running only on Windows. I luckily haven't run into this scenario for some time now but if I were using Windows I still would use a throwaway VM like this to configure the devices avoid permanent junk shitted all over your system.

  • @asunavk69
    @asunavk69 Рік тому +2

    ohhh a virtualization video? boy i miss gpu passthrough, but on my laptop is just so hard setting a seamless configuration for gpupassthrough since i am even on 4rth gen intel..
    btw what cpu and mobo do you have? is windows 11 also working well with hypervisor option set to -disable?

  • @maviniii
    @maviniii 11 місяців тому +4

    Bro, your videos are perfect! With it, I was able to instal Wind 11 on my Fedora, it runs well and everything seems to be working perfectly. Thanks so much and keep it always up.

  • @kvelez
    @kvelez Рік тому +1

    Great video.

  • @Shrek5when
    @Shrek5when Рік тому +3

    Thanks! How vms work is really cool!

  • @mariocraft95
    @mariocraft95 Рік тому +3

    I wouldn’t attempt to use OpenGL on an Nvidia card if you have one.
    I believe it doesn’t work on purpose. Just thought I would mention it, so I hopefully save someone some headache.
    Also, I use a RDP software for my windows VMs like Remmia to just RDP directly into it. For me, it fixes a ton of stuttering in my windows vms.
    As a final note, on your windows machines, install Virtio drivers if you use virtio. Makes a handful of things either work, or work better!

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

    I really like learning about Linux even though I am a Windows person instead! It's too bad this video only has 42K views instead of way more views because Linux is pretty interesting for sure!

  • @Uchiha_Madara1224
    @Uchiha_Madara1224 Рік тому

    Saw your recent tweet about distrobox , will you be making a video about it. Including noob friendly how to would be appreciated.

  • @speedytruck
    @speedytruck Рік тому +1

    Another nice thing about GNOME Boxes is that it also comes as a Flatpak from Flathub

  • @lawrencedoliveiro9104
    @lawrencedoliveiro9104 Рік тому +20

    Linux also offers other alternatives short of full virtualization: for example, containers, in the form of LXC and Docker and systemd-nspawn.
    For example, I want to run up two versions of an application I built for a customer on their server -- one for production use, the other for testing. I put the testing version in a separate container, isolated from the production code. This way they can share some aspects of their configuration, while being isolated in other ways.

  • @FakeMichau
    @FakeMichau Рік тому +4

    9:51 Actually... That's EXACTLY what I'm doing. Nowadays don't even need scripts to unload drivers and stuff. But you probably don't want to be using rebar as it causes AMD Windows driver to freak out

    • @pialdas6835
      @pialdas6835 Рік тому +1

      If you have a guide on this, I would be very interested. I run only a single GPU (Radeon RX 6700XT) but if I can pass the GPU pretty easily then I can gain some graphical smoothness. I know those scripts basically unloads your GPU from the host and then passes it to the VM and then when you shut off the VM the GPU is passed back to the host. The problem for me is that I usually need to interact with my host while running VMs

    • @nsa3967
      @nsa3967 Рік тому

      @@pialdas6835 You can still ssh to your host but you'll have no graphics

    • @FakeMichau
      @FakeMichau Рік тому +1

      @@pialdas6835 Yea ssh is probably best you can hope for with a single GPU. It's closer to dual booting in that respect but obviously you still have the ability to emulate devices, drives and quickly dispose of OS installations.
      Another step would be two GPUs and utilizing application called looking glass. If you have an iGPU it still counts.
      It kinda is a rabbit hole

    • @pialdas6835
      @pialdas6835 Рік тому

      @FakeMichau Yeah that's what I've been doing when spinning up VMs for any dev related stuff. I just ssh, use sshfs to access any projects on my host from the VM and compile on the VM. Not the most efficient method but definitely straight forward for me. I don't have any integrated graphics since I run a Ryzen 3900X so a second graphics card is a must for me

  • @agooglygooglr
    @agooglygooglr Рік тому +2

    8:40 Not true. If you create a virtual disk in virt-manager it preoallocates the entire size of the disk. If you want to create a disk without preoallocation you have to do it manually using command: qemu-img create -f qcow2 -o preallocation=off,compression_type=zstd /var/lib/libvirt/images/mylinux.qcow2 30g
    This will create a 30G disk with preallocation disabled and compression type zstd (it normally uses zlib which is slower).

  • @theseabass
    @theseabass 2 місяці тому +1

    9:55 AYO

  • @sip182
    @sip182 Рік тому

    You can virtualize in a container your gaming setup with the project steamheadless. You then stream from container. I ve lost no performance on my rx5700xt between native linux and via a docker container. I will do a pull request soon because i improved the dockerfile for amd gpu.

  • @crismo7753
    @crismo7753 Рік тому

    I had a lot of difficulties with Boxes due to the interfaces, because only the keyboard and mouse worked properly and not the others.

  • @toniferic-tech8733
    @toniferic-tech8733 7 місяців тому +1

    It’s a pity that guest tools were not mentioned. They allow drag-and-drop between host and guest, and copy/paste.

  • @lionking10222
    @lionking10222 Рік тому

    @Michael: I just found your channel a few days ago. I'm pretty new to linux and I love your videos, really helpful, thank you!
    I have a question for the VM, because I have very little experience. Maybe you or someone else can help out: I have installed a Win11 VM like you recommended and it worked fine. I also have the openGL checkbox turned on and everything works. But the animations and mouse performance is not so great. It is not bad, but also not good. Also the screen is not that sharp. It is ok and readable, but not really sharp. I changed the resolution in the bios to 1080p. I myself using a 1440p monitor and 150% fractional scaling in KDE Plasma.
    Any advice? Is it just because of the remote connection? Should I use another tool there and when yes, which one? Is there something like RDP under windows, where performance feels like native?
    Thanks a lot for every help!

    • @MichaelNROH
      @MichaelNROH  Рік тому

      You should probably install the Virtio-Drivers in Windows, since it doesn't come with those. Windows VM's are always a bit funky whenever you use something outside of hyper-v without installing some tools.
      Link: github.com/virtio-win/kvm-guest-drivers-windows

    • @lionking10222
      @lionking10222 Рік тому

      @@MichaelNROH Thank you, great advice! Got it working and at least I can now change my resolution, performance is still not perfect, but also not bad.

  • @JordanCardona
    @JordanCardona Рік тому

    I have a problem with HP Pavilion desktop and every limit contribution that I try to reboot it doesn't boot even if I try legacy it does food but then it just doesn't work I always get a black screen and I already tried different kinds of ways to make a bootable USB even I tried different kinds of USB and it does come with an AMD graphics card

  • @Chalisque
    @Chalisque Рік тому +1

    The one thing I can't replicate from VirtualBox is bridged networking, so that a VM can get its own IP via DHCP from the router and be accessible to other machines on the network, on a machine which connects to the router via Wifi and DHCP. The tutorials I've tried so far assume e.g. ethernet with a fixed IP, and so far I've only succeeded in totally messing up my Wifi config to the point that I needed to reinstall. VirtualBox fails to load VMs on some of my Linux boxes. So my main VM host is my Windows box for now.

    • @Scranny
      @Scranny Рік тому +1

      Let us know here if you figure it out

    • @LampJustin
      @LampJustin Рік тому

      That's because you can't really bridge WiFi. There are hacks to do it. But it's not natively supported. Have a look into the debian Wiki

  • @mrhyperbit4882
    @mrhyperbit4882 Рік тому +1

    thanks

  • @ismaelfernandezmendez1664
    @ismaelfernandezmendez1664 Рік тому

    9:52 I'm curious, what happens if you pass it through? Wouldn't it be sick if you could like launch an "app" that is really a shorcut from a Windows VM that runs the app and kinda "freezes" the guest OS? It would be a brute solution to run apps that won't work in Linux like Photoshop or some AntiCheat games.
    What about gaming latops with two GPUs? (One from the CPU integrated and the dedicated NVIDIA GPU)
    If I'm not mistaken, Mac does something similar integrating VM with the desktop itself.
    When the VM is powered off, it could restore the Guest OS to the previous state before passing the only GPU, something like an snapshot.
    Of course, even if this existed, it wouldn't be a real fix to programs not running on Linux, but it could make more people making the switch. Hence, the desktop scene would grow bigger.
    I am also pretty surprised that you didn't talk about VirtualBox.

    • @MichaelNROH
      @MichaelNROH  Рік тому

      Passing through your active GPU can result in crashing the host operating system, it's Desktop Environment, or even the Guest OS, so it's best to do it before booting the Guest.
      If you have several GPUs then yeah, you could pass one through without many consequences though it should be noted that Windows VMs are still not tolerated by most Anti-Cheats. If detected, you will face a legitimate ban sadly.

  • @beneficialhistory
    @beneficialhistory 2 дні тому +1

    Nice video . My mouse's sofware was not available in Linux, but I can use it from vm. I a question. My laptop's has sofware. This includes changing the power modes and changing the keyboard lights. Is there a way to use it from vm?

    • @MichaelNROH
      @MichaelNROH  2 дні тому

      There are ways how you can get most of this stuff to work.
      Changing the keyboard configuration can be done via a program called openRGB.
      The power modes are a bit depending on the Desktop Environment, but both Gnome and KDE Plasma should have options in the quick settings (On Taskbar / Panel). If not, then there is always TLP, which is a hassle to configure, but works.
      As for the mouse, the usual brands like Logitech, Razer, and some others like Glorious are mostly supported by Piper or openRazer. Some newer ones might need their profile imported from their Github though

  • @creepergd4884
    @creepergd4884 Рік тому

    9:51 laughs in single gpu passthrough vm

  • @CocolinoFan
    @CocolinoFan Рік тому

    Will something like EAC games work on this? Can you play Rust for example on a Windows virtual machine?

    • @MichaelNROH
      @MichaelNROH  Рік тому +1

      Virtual machines are usually generally banned by most Anti-Cheats. In fact, you can't even play some of them if you just have Hyper-V enabled.

  • @bennguyen1313
    @bennguyen1313 9 місяців тому

    Will USB peripherals attached to the host Windows machine, work on the Linux VM?
    I'm interested in running linux SocketCAN in a VM , but have it talk with CAN hardware (Ixxat USB-to-CAN V2, Peak PCAN-USB, etc).

    • @MichaelNROH
      @MichaelNROH  9 місяців тому

      Windows doesn't have the a KVM hypervisor, so you'll need a different hypervisor like Hyper-V.
      Passthrough can work, however you cannot share devices for use on both devices simultaneosly.
      E.g. you can't load a driver in a VM and use the device on the host

  • @alittax
    @alittax 8 днів тому +1

    I don't think the KVM+QEMU relationship is too complicated:
    In a type 2 setup, the guest OS can NOT directly interact with the hardware, but must go through the host OS.
    But, with a KVM+QEMU setup, the guest OSs CAN (more or less) directly interact with the hardware, meaning they don't have to go through the host OS.
    Or did I misunderstand it?

    • @MichaelNROH
      @MichaelNROH  8 днів тому +1

      It is considered a bare metal or Type-1 Hypervisor yes. KVM, is a bit special since it can run a complete Operating System that is not virtualized besides it.
      This makes it a bit different from Hyper-V and VMware, since they like to virtualize the main OS as well, though the has now also moved more to the KVM approach

    • @alittax
      @alittax 7 днів тому

      @@MichaelNROH
      Thank you. So I got it right? A KVM+QEMU setup means that all of the VMs can use the hardware as if they were Type-1?

  • @igorgiuseppe1862
    @igorgiuseppe1862 Рік тому

    can you make an tutorial of how to setup and multihead linux system in 2023?

  • @Pikaloid778
    @Pikaloid778 Рік тому +2

    Once I tried VirtualBox but since I use Wi-Fi the internet didn't recognize, it looks like I needed to be connected by cable or something like that and I gave up.
    I hope this video solves me some doubts from that time.

    • @donkey7921
      @donkey7921 Рік тому +1

      unless you wanted to do something fancy, like virtual switch, that's not how that works. There was probably just something wrong with your config, or virtualbox was broken.

    • @teklife
      @teklife 7 місяців тому

      that shouldn't matter. i've been using virtualbox for over a decade, and dozens if not hundreds of OSs installed and evaluated, and internet was never really a problem. if i ever did encounter any issues, i don't recall, so try again.

  • @malek6129
    @malek6129 11 місяців тому

    Virtualisation in Linux is genuinely levels above Windows (even had way better experience on a lower spec hackintosh with Parrallels compared to a workstation grade computer running Windows). One thing I just can't seem to figure out how to do is to set up a virtual machine in Linux to boot a physical install of Windows (as it has so much stuff installed and configured on it that it would take weeks if not even an entire month to re-do from scratch on a brand new config), and I'd really be up to give up booting Windows on bare-metal fully.

    • @MichaelNROH
      @MichaelNROH  11 місяців тому

      Wouldn't that just require an unmountrd drive passthrough?
      I haven't tried it yet myself, but KVM does support it

  • @unbekannter_Nutzer
    @unbekannter_Nutzer Рік тому

    The little gear animation at the top @1:50 is misleading. First, all gears are of the same size, so all gears will run at the same speed, but you tell meanwhile, that the more programs are in between the machine and the finally running program, the slower the program will be. Then all the gears are combined in a loop, so that the last one is again driving the first one. This is without sense for the explanation of a VM environment, too.
    But I don't have a better picture to offer.

  • @abqarenotutorials9391
    @abqarenotutorials9391 10 місяців тому

    mr michael
    how to install driver from boxes instead vmware
    but complex install drivers

  • @user-pt9dv7vf6n
    @user-pt9dv7vf6n 2 місяці тому

    Hi Mr Michael,
    I extend my gratitude for the enlightening video presentation you provided; it was elucidated with commendable clarity. I seek your expertise following a recent endeavor where I have successfully orchestrated the deployment of Windows 10 within a virtualized environment, utilizing Gnome Boxes on the Zorin OS 17.1 platform. The Windows operating system exhibits near-flawless functionality thus far. However, I am encountering a conundrum with the bidirectional synchronization of directories between the virtualized Windows 10 system and the Zorin OS 17.1 host. Despite exhaustive research and the application of various recommended solutions sourced from the digital expanse, the issue persists unabated. I am at an impasse, uncertain of the missteps that may be contributing to this quandary. If you could make a video about that 🥶

  • @kaushikmitra28
    @kaushikmitra28 Рік тому +1

    Is it possible to use the integrated gpu on host and passthrough the dedicated gpu to the guest? (I only have 1 dedicated gpu )

    • @MichaelNROH
      @MichaelNROH  Рік тому +1

      Yeah, it's possible.
      But I would recommend you to set the default graphics card to your iGPU in the UEFI first, since hotswapping drivers is not always without it's flaws.

  • @tomoghnosen
    @tomoghnosen Рік тому +1

    i use QEMU on Linux and Hyper-V on Windows

  • @spacesion
    @spacesion Рік тому

    Nice Video! I have one question. Can I use my GTX 980 for GPU Passthrough on Pop!OS for Games? I am currently on Windows 11, but I want really to switch to Pop!OS. The only reason why I am on Windows are my Games. Some of my Games in my Steam/Epic Games Library are only playable on Windows. Epic Games is only for Windows.
    So can I play with virt-Manager and GPU Passthrough my games? Will I have some issues? Will I be able to use the Linux and to run the VM in the Background if I have to do quickly something on the Linux?
    PS: Sorry for my English.

    • @MichaelNROH
      @MichaelNROH  Рік тому

      The issue with Gaming VM's is, that you can get banned in Online Games. Some don't even work at all without some workarounds, so yeah.
      If you mainly play singleplayer or local multiplayer, then you are fine. Competitive stuff like Valorant or others like Destiny 2 will ban you if they detect odd behaviour of the "PC"

    • @spacesion
      @spacesion Рік тому

      @@MichaelNROH So the only Way to play Destiny 2 or Valorant is to have installed Windows and Linux at the same time? Can I get banned with "Bottles" or similar?

    • @teklife
      @teklife 7 місяців тому

      @@spacesion do these games not work on steamdeck or on steam with proton?

  • @Cyberbrickmaster1986
    @Cyberbrickmaster1986 11 місяців тому

    I can probably handle Boxes, since I don't plan to go any higher than Windows 10. In-fact, I may consider going only as high as Windows 7.

  • @chucklebeats
    @chucklebeats Рік тому

    GPU passthrough guide when?

  • @sergiomc
    @sergiomc 7 годин тому

    Hi Virt Manager is better that Gnome Boxes? I mean, Virt Manager is Hyper type 1 right? And Boxes is Hyper type 2? I'm confused.

    • @MichaelNROH
      @MichaelNROH  6 годин тому

      No, both can use KVM, which can make your system a Type-1 Hypervisor.
      There are some programs that only use QEMU, which simulates the virtual devices, but can also run as a Type-2 Hypervisor without KVM.
      Both the virt-manager and Boxes, can and try to use KVM if it's available.
      Edit: The virt-manager is more customizable, which is why it's easier for advanced setups

  • @user-bk2pt5ny9h
    @user-bk2pt5ny9h 6 місяців тому

    If Proxmox uses around 1GB of RAM and is a Type 1 Hypervisor and Lubuntu with QUEMU/KVM uses around 0.5 GB RAM and also allows the kernal / bare metal virtualization. What are the performance bottle necks and performance differences between these two options?

    • @MichaelNROH
      @MichaelNROH  6 місяців тому

      RAM usage on Proxmox is handled differently than on regular distros because it's mean for pure virtualization.
      Many default settings have been tuned to optimize speeds for virtualization (e.g. ZFS ram cache is set to 50% by default).
      If you set all these settings on Lubuntu as well, then the story will be the same. It's all about finding a sweet spot between speed and compatibility.
      ---
      Most performance bottlenecks come from RAM and storage. The last on in particular shows if you run several VMs off an HDD or an HDD pool.

    • @user-bk2pt5ny9h
      @user-bk2pt5ny9h 6 місяців тому

      @@MichaelNROH thanks for the quick reply. I think Lubuntu more accessible to beginners like me.

  • @SirRFI
    @SirRFI Рік тому +2

    Can you elaborate on GPU passthrough? I heard this allows near native performance in games within Windows VM. Setups with iGPU+dGPU like laptops might benefit from it.

    • @alexstone691
      @alexstone691 Рік тому +4

      tldr you pass the whole gpu as a pci device to the VM and your host os cant use it anymore but the VM has direct access to it so drivers in windows will work like natively for example
      Only caveat is if you use this you need to use a video output on the gpu, there is a workaround but there is a noticable latency
      Hope this answers your question

    • @pazzoeo
      @pazzoeo Рік тому +1

      Be aware, though, that some game's anticheats block VMs and force you to play on bare metal

    • @Scranny
      @Scranny Рік тому +1

      Although, if you want to play games on Linux, you may get better performance using Lutris or Bottles instead of passing the GPU through to a Windows VM

    • @alexstone691
      @alexstone691 Рік тому +1

      @@Scranny Only in best case scenario when you've got a recent enough AMD gpu, otherwise it will be much much easier to get games running in VM (not counting setting up the passthrough as that can be a pain on some motherboards too)

    • @lionking10222
      @lionking10222 Рік тому

      @@alexstone691 So I'm pretty new to this, therefore sorry for the question. But isn't it a problem, when the host can't use the gpu anymore? Because I'm running the VM on my linux desktop, so I need a gpu there? Or am I thinking wrong here?

  • @swagmuffin9000
    @swagmuffin9000 Рік тому

    How difficult is it to plug in a usb and use it on the vm in boxes and vmm? It's not immediately obvious in virtualbox, like a lot of things.

    • @MichaelNROH
      @MichaelNROH  Рік тому

      Virtual Machine manager gives you more control of what you want to exactly passthrough and has a lot more options available. You just need to find your USB device in the USB Host submenu. If it has no driver and doesn't show up with a name, then it becomes more difficult to identify, but it's still there somewhere.

    • @swagmuffin9000
      @swagmuffin9000 Рік тому

      @@MichaelNROH cool, thanks for the fast response 👍🏻

  • @TheRealFrankWizza
    @TheRealFrankWizza Рік тому

    Is it possible to pass through your igpu to virtual machine manager?

    • @MichaelNROH
      @MichaelNROH  Рік тому

      Yes you can. You might need to enable it it the UEFI though, since some mainboards deactivate it if they detect a second one.

  • @sascha1461
    @sascha1461 Рік тому

    I tried to activate 3d acceleration like shown but I always get an error saying "failed to initialize EGL render node for SPICE GL".

  • @fabricio4794
    @fabricio4794 Рік тому

    Gnome Boxes and OpenSUSE is all t hat i need....

  • @samuelperez8370
    @samuelperez8370 Рік тому

    I'm looking for build a PC with Intel CPU and a Radeon RX GPU, for experience this are a golden combination for Linux... nVidia F*** You
    Would be nice see you testing that setup

  • @convextlc9767
    @convextlc9767 6 місяців тому

    Got it to work but no way to transfer files from VM to Host which is annoying.

    • @Xmarquise
      @Xmarquise 5 місяців тому

      You don’t understand networking 101. Just create a shared folder in the host and share it to the guest under the guest os settings. Problem solved.

  • @ernestoditerribile
    @ernestoditerribile Рік тому +1

    Are you Dutch. You really sound Dutch.

  • @SteavenGamerYT1
    @SteavenGamerYT1 Рік тому +1

    i use Virtual Machines to play windows only games and use windows only software i have it with gpu passthrow

    • @SolidSt8Dj
      @SolidSt8Dj Рік тому +2

      Which windows-only games are you talking about?

    • @SteavenGamerYT1
      @SteavenGamerYT1 Рік тому

      @@SolidSt8Dj fall guys, it broke on linux i cant seem to fix it, roblox broke too, fortinte dont work even on kvm becouse the aint cheat so ignore it

    • @FakeMichau
      @FakeMichau Рік тому +1

      Yea I also recently got into Windows VMs with gpu passthrough. Cool that I don't need to dual boot for my VR games. Maybe will also look into installing photoshop on it as gimp is an utter trash

    • @donkey7921
      @donkey7921 Рік тому

      no matter what I did, my vm was slow for me, like with synthetic benchmarks and actually playing games, it was fine, but windows was generally quite slow, not to mention I didn't particularly enjoy handicapping my linux and to not be able to play games with kernel anticheat wasn't great either...

    • @alifelessrock48
      @alifelessrock48 Рік тому

      make sure to avoid getting vm banned. Suspicious hardware activity has started receiving bans as of late, so if you can make your virtualized machines look normal try to do that.

  • @wolfisraging
    @wolfisraging 24 дні тому

    I with virt-manager was as easy in Arch as its in Fedore :(

  • @megamodspc6436
    @megamodspc6436 10 місяців тому

    3d acceleration nevers works for me so I use VMware

  • @LoorHenz
    @LoorHenz 10 місяців тому

    Can i do it with only 1 gpu? I have an i7 11700F and a RTX 3070. Can i passthrough my gpu to the vm?

    • @MichaelNROH
      @MichaelNROH  10 місяців тому

      You could only do that if it isn't being used by the host, aka. without a GUI. RTX 3070 don't support splitting their resources up like the Quadro cards, so that's the only (easy) way to do it.

    • @Xmarquise
      @Xmarquise 5 місяців тому

      Technically you have 2 gpus (one for dedicated graphics and the other is thertx 3070). You can pass the rtx gpu to the guest, but leave the dedicated gpu for the host.

    • @LoorHenz
      @LoorHenz 5 місяців тому

      @@Xmarquise intel F processors come without iGPU

    • @Xmarquise
      @Xmarquise 5 місяців тому

      @@LoorHenz Really? The how do uou get display to show without a gpu?

    • @LoorHenz
      @LoorHenz 5 місяців тому

      @@Xmarquise i managed to get it to work with single gpu passthrough, i’ll send te link to the video i followed

  • @ernestoditerribile
    @ernestoditerribile Рік тому

    Wow you forgot a whole lot of hypervisors Proxmox, XCP-NG, Centos, Citrix or level 2 VirtualPC, Parallels and way more

  • @convextlc9767
    @convextlc9767 6 місяців тому

    Doesnt work for windows 10. has some Startup.nsh screen and doesnt do anything

  • @pialdas6835
    @pialdas6835 Рік тому +1

    For Virtual Machine Manager, I go a step forward and edit the CPU topology in the CPU settings for the VM. For some reason, after specifying the number of CPU cores, my VMs are configured to have the same number of CPU sockets as the number of cores I specified. I've noticed worse performance. So I always manually set the CPU topology: 1 socket, number of cores specified and 2 threads per core. I get better performance this way. Idk why this happens and I wonder if I'm even passing my CPU cores to the VM (which I'm guessing is the best yielding for performance). If someone can confirm if those cores are being passed through when setting up the topology manually would be greatly appreciated because I also see host-passthrough as an option but that option defaults to having multiple CPU sockets. Maybe I'm missing something here

    • @MyAmazingUsername
      @MyAmazingUsername Рік тому +2

      Your settings are bad. Now that I have your attention, "RFE: default VM topology to use cores instead of sockets #155" has the answers you seek. The short: Use 1 socket, X cores, 1 thread (never more than 1).

    • @pialdas6835
      @pialdas6835 Рік тому

      @@MyAmazingUsername What if I wanted the VM to think it has hyperthreading? Btw I tested it out between 1 thread and 2 and there is far less CPU usage for 2 threads, probably because of the 2 extra vcpus. I'm running a Windows VM. Performance seems to be the same so I'm guessing it is more of a limitation on graphics rather than processing power since I don't have 3D acceleration enabled

    • @MyAmazingUsername
      @MyAmazingUsername Рік тому +3

      @@pialdas6835 Read the reference I mentioned. :) But the short summary of the info you seek is: It will not use hyperthreading unless you manually pin every vCPU to real CPU cores. By default, hyperthreading is broken unless pinned to the correct physical cores, and you should therefore only use 1 thread per vCPU.

    • @pialdas6835
      @pialdas6835 Рік тому

      @Hello World Ah I see what you mean. Btw idk if I was supposed to click that #155 link but it basically points to me a bunch of youtube shorts. I tried to search up that phrase you had in quotes (although not extensively) and didn't get much useful information. I'll search up CPU core pinning and read up on it when I get the time to tinker with my VMs again Thanks for the help!

    • @MyAmazingUsername
      @MyAmazingUsername Рік тому +2

      @@pialdas6835 Try it without the quotes, it's a Bugzilla discussion. But yes if you manage to pin the vCPUs you can enable multiple threads. I haven't bothered doing it though.

  • @ElevateShope.
    @ElevateShope. Рік тому

    Hello

  • @user-sk5qc5nk2i
    @user-sk5qc5nk2i 6 місяців тому

    GPU passthrough plz in linux

    • @MichaelNROH
      @MichaelNROH  6 місяців тому +1

      I showed PCI device passthrough in my Proxmox tutorial: ua-cam.com/video/TWX3iWcka_0/v-deo.htmlsi=KaY_gp0zuzqB0kA6
      It's basically identical with the Virt-Manager in the hardware screen.

  • @NKG416
    @NKG416 11 місяців тому

    hey but how about the license for windows?

    • @MichaelNROH
      @MichaelNROH  11 місяців тому

      Either you have one connected to your Microsoft account or you need to buy one otherwise. Virtualization is not a way around that

    • @NKG416
      @NKG416 11 місяців тому

      @@MichaelNROH say, if i'm using the license that i use right now could that work..?. does this question makes sense haha. i want to jump ship to linux, but the only problem for me is the lack of powerful CAD software which i use regularly so i'm thinking about installing windows (using my own key which i'm using now) inside mint or debian

    • @MichaelNROH
      @MichaelNROH  11 місяців тому

      @@NKG416 It could happen that one of Windows instance (if both are in use with the same license), complains about it, but if you link it to your account then you can delete one.

    • @NKG416
      @NKG416 11 місяців тому

      @@MichaelNROH ah..that's the problem, i don't make any windows account

    • @MichaelNROH
      @MichaelNROH  11 місяців тому

      @@NKG416 You can also try verifying it a different way, however that most likely already includes their forums or hotlines. However it might also just work or you can trick it.
      Windows remembers the systems hardware and as long as you don't change too much, it refreshes those settings. If you passthrough a lot of your hardware you might be able to refresh it once, and afterwards once activated you start removing the passthrough devices again

  • @user-sk5qc5nk2i
    @user-sk5qc5nk2i 6 місяців тому

    can we play RDR2 using this vm ?

    • @MichaelNROH
      @MichaelNROH  6 місяців тому +1

      I would not recommend it because of the performance hit in comparison to just running it just on Linux

  • @Mantikal
    @Mantikal 10 місяців тому

    and then there's Qubes OS

  • @RBN64
    @RBN64 11 місяців тому

    VirtualBox supports Linux right , why isn't it used ?

    • @MichaelNROH
      @MichaelNROH  11 місяців тому +1

      Because QEMU utilizes KVM and Virtual Box does not. It's therefore more performant.
      Some downsides would be scalability by default, but that's not a issue for 90% of use cases

  • @bertnijhof5413
    @bertnijhof5413 Рік тому

    There is no real difference anymore between modern type 1 and type 2 hypervisors. Nowadays the type-1 hypervisor has inherited a lot of standard OS functionality to be able to offer the functionality required in "state of the art" VM Host systems. Type 2 hypervisors are integrated in the kernel of the Host OS. So both type 1 and type 2 offer sophisticated OS functions integrated with the hypervisor. There is no difference in performance other than the difference in the quality of the implementation just like between different internet browsers.

  • @TheMetaldudeX
    @TheMetaldudeX Рік тому

    Still using Fedora?

    • @elecbaguette
      @elecbaguette Рік тому

      Probably! What do you recommend?

    • @MichaelNROH
      @MichaelNROH  Рік тому +1

      Yes

    • @elecbaguette
      @elecbaguette Рік тому

      @@MichaelNROH if you ever have any issues or just want to try something new, I reccomend endeavorOS. Great community, relatively stable, and up to date packages

  • @BURAK-hu2sl
    @BURAK-hu2sl 3 місяці тому

    waste of time