How To Use Virtual Machines on Linux

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 พ.ย. 2024

ความคิดเห็น •

  • @Scranny
    @Scranny ปีที่แล้ว +44

    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"

  • @walter_lesaulnier
    @walter_lesaulnier ปีที่แล้ว +83

    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 ปีที่แล้ว +7

      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.

    • @engchoontan8483
      @engchoontan8483 3 หลายเดือนก่อน +1

      @@walter_lesaulnier so i guess... wine and virtual-box needs KVM layer for less headaches.?

    • @walter_lesaulnier
      @walter_lesaulnier 3 หลายเดือนก่อน

      @@engchoontan8483 That could be a good Idea- I wish I knew more about programming.

    • @Big_Deb
      @Big_Deb 2 หลายเดือนก่อน

      @@engchoontan8483 VirtualBox's VM wouldn't run i don't think they have access to the kernel, and i couldn't find a fix. Using this method of "bypassing" the kernel is useful

  • @johnmckown1267
    @johnmckown1267 ปีที่แล้ว +9

    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.

  • @sunnisun36
    @sunnisun36 ปีที่แล้ว +25

    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 ปีที่แล้ว +10

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

  • @daveys
    @daveys 4 หลายเดือนก่อน +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!

  • @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.

  • @bertnijhof5413
    @bertnijhof5413 ปีที่แล้ว +26

    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 4 หลายเดือนก่อน +1

      "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 4 หลายเดือนก่อน +1

      @@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 ปีที่แล้ว +14

    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 ปีที่แล้ว +2

      @@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.

  • @speedytruck
    @speedytruck ปีที่แล้ว +2

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

  • @sherrilltechnology
    @sherrilltechnology 4 หลายเดือนก่อน +1

    Oh my goodness Michael I loved this video! I am doing a series on my channel now, and I am working towards learning Docker. I am looking for a way to run a Linux Distro and do a type 2 hypervisor this video is going to help me do that, thanks so much for the video!

  • @thomasfx3190
    @thomasfx3190 6 หลายเดือนก่อน +1

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

  • @lawrencedoliveiro9104
    @lawrencedoliveiro9104 ปีที่แล้ว +22

    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.

  • @SuperDavidBrothers
    @SuperDavidBrothers 8 หลายเดือนก่อน +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!

  • @JHSaxa
    @JHSaxa 6 หลายเดือนก่อน +1

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

    • @MichaelNROH
      @MichaelNROH  6 หลายเดือนก่อน +1

      Glad it was helpful

  • @toniferic-tech8733
    @toniferic-tech8733 ปีที่แล้ว +3

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

  • @asunavk69
    @asunavk69 ปีที่แล้ว +3

    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?

  • @FakeMichau
    @FakeMichau ปีที่แล้ว +5

    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

  • @maviniii
    @maviniii ปีที่แล้ว +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.

  • @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!

  • @Shrek5when
    @Shrek5when ปีที่แล้ว +3

    Thanks! How vms work is really cool!

  • @Eimantasks
    @Eimantasks ปีที่แล้ว +3

    Super useful, thank you!

  • @agooglygooglr
    @agooglygooglr ปีที่แล้ว +3

    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).

  • @ecw0647
    @ecw0647 3 หลายเดือนก่อน

    I have Linux on all of my machines as the primary OS, but keep a VM of Windows 10 on each system for the very rare occasion when I need to demonstrate something about Windows or some bizarre little Windows only program.

  • @christiansamuelsson3444
    @christiansamuelsson3444 ปีที่แล้ว +2

    Awesome vid good work keep it up :)

  • @beneficialhistory
    @beneficialhistory 4 หลายเดือนก่อน +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  4 หลายเดือนก่อน

      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

  • @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.

  • @ubitubee
    @ubitubee 2 หลายเดือนก่อน

    So far so good, thanks a lot for this. Any idea how to make the devices on the local network available to the VM?

  • @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

  • @1234minecraft5678
    @1234minecraft5678 4 หลายเดือนก่อน +1

    As far as i can judge the extended xml is not needed anymore and an installation without setting tpm and secboot was just fine

  • @creepergd4884
    @creepergd4884 ปีที่แล้ว

    9:51 laughs in single gpu passthrough vm

  • @malek6129
    @malek6129 ปีที่แล้ว

    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  ปีที่แล้ว

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

  • @bobsmith-gn7ly
    @bobsmith-gn7ly 2 หลายเดือนก่อน

    you had me at "boxes works great for anything not windows 11" :D

  • @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.

  • @alittax
    @alittax 5 หลายเดือนก่อน +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  5 หลายเดือนก่อน +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 5 หลายเดือนก่อน

      @@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?

  • @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.

  • @theseabass
    @theseabass 6 หลายเดือนก่อน +1

    9:55 AYO

  • @sergiomc
    @sergiomc 4 หลายเดือนก่อน

    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  4 หลายเดือนก่อน

      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

  • @Pikaloid778
    @Pikaloid778 ปีที่แล้ว +1

    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 ปีที่แล้ว

      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 ปีที่แล้ว

      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.

  • @TakudzwaHumbe
    @TakudzwaHumbe 7 หลายเดือนก่อน

    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 🥶

  • @fabricio4794
    @fabricio4794 ปีที่แล้ว

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

  • @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.

  • @kvelez
    @kvelez ปีที่แล้ว +1

    Great video.

  • @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.

  • @tomoghnosen
    @tomoghnosen ปีที่แล้ว +1

    i use QEMU on Linux and Hyper-V on Windows

  • @dj__grizzly
    @dj__grizzly 2 หลายเดือนก่อน

    When i try to load any iso in Boxes it says 'No KVM' and when i try to install VMM it says i am not allowed.
    i already forgot how many tutorials i watched and tried to do it. How hard can it be to have windows in a vm so i don't have to dual boot every day to windows to have usb devices work on my pc (the software works in Bottles but the usb device is not installed)

    • @MichaelNROH
      @MichaelNROH  2 หลายเดือนก่อน

      This honestly sounds very much like you use a more advanced distro which doesn't enable KVM out of the box. Not being allowed to do something also sounds a bit like missing permissions.
      Which distro are you using?

  • @mrhyperbit4882
    @mrhyperbit4882 ปีที่แล้ว +1

    thanks

  • @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.

  • @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.

  • @CasparZialor
    @CasparZialor 11 หลายเดือนก่อน

    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  11 หลายเดือนก่อน

      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.

    • @CasparZialor
      @CasparZialor 11 หลายเดือนก่อน

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

  • @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.

  • @bennguyen1313
    @bennguyen1313 ปีที่แล้ว

    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  ปีที่แล้ว

      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

  • @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 ปีที่แล้ว

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

  • @Cyberbrickmaster1986
    @Cyberbrickmaster1986 ปีที่แล้ว

    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.

  • @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 👍🏻

  • @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

  • @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.

  • @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

  • @igorgiuseppe1862
    @igorgiuseppe1862 ปีที่แล้ว

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

  • @khlua4590
    @khlua4590 2 หลายเดือนก่อน

    Hi Michael, if i have integrated gpu and dedicated gpu, can i passthrough the dedicated GPU and still keep the host session?

    • @MichaelNROH
      @MichaelNROH  2 หลายเดือนก่อน +1

      Yes, but both GPUs need to be running. Some UEFI configurations disable the integrated one if a dedicated GPU is detected

    • @khlua4590
      @khlua4590 2 หลายเดือนก่อน

      @@MichaelNROH I see, its encouraging to know that its possible. I'll do some reading to find out how to do it. Thank you!

  • @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?

  • @buildyear86
    @buildyear86 หลายเดือนก่อน

    Could you do a step by step tutorial using linux mint os with cinnamon on how to and make a virtual machine where you install windows 11 and then use it? I dont underatand what the single steps are -- thanks, beginner

  • @NotPhly
    @NotPhly 2 หลายเดือนก่อน

    What linux distro are you using?

    • @MichaelNROH
      @MichaelNROH  2 หลายเดือนก่อน

      Fedora

    • @NotPhly
      @NotPhly 2 หลายเดือนก่อน

      @@MichaelNROH Thank you

  • @convextlc9767
    @convextlc9767 11 หลายเดือนก่อน

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

    • @Xmarquise
      @Xmarquise 10 หลายเดือนก่อน

      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.

  • @wolfisraging
    @wolfisraging 5 หลายเดือนก่อน

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

  • @chucklebeats
    @chucklebeats ปีที่แล้ว

    GPU passthrough guide when?

  • @abqarenotutorials9391
    @abqarenotutorials9391 ปีที่แล้ว

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

  • @Hero-hx6on
    @Hero-hx6on หลายเดือนก่อน

    thanks

  • @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".

    • @mateusraitz1803
      @mateusraitz1803 ปีที่แล้ว

      me too, are you using an Nvidia GPU?

    • @sascha1461
      @sascha1461 ปีที่แล้ว

      @@mateusraitz1803 yes

  • @LoorHenz
    @LoorHenz ปีที่แล้ว

    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  ปีที่แล้ว

      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 9 หลายเดือนก่อน

      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 9 หลายเดือนก่อน

      @@Xmarquise intel F processors come without iGPU

    • @Xmarquise
      @Xmarquise 9 หลายเดือนก่อน

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

    • @LoorHenz
      @LoorHenz 9 หลายเดือนก่อน

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

  • @megamodspc6436
    @megamodspc6436 ปีที่แล้ว

    3d acceleration nevers works for me so I use VMware

  • @ernestoditerribile
    @ernestoditerribile ปีที่แล้ว +1

    Are you Dutch. You really sound Dutch.

  • @convextlc9767
    @convextlc9767 11 หลายเดือนก่อน

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

  • @RBN64
    @RBN64 ปีที่แล้ว

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

    • @MichaelNROH
      @MichaelNROH  ปีที่แล้ว +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

  • @ernestoditerribile
    @ernestoditerribile ปีที่แล้ว

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

  • @NKG416
    @NKG416 ปีที่แล้ว

    hey but how about the license for windows?

    • @MichaelNROH
      @MichaelNROH  ปีที่แล้ว

      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 ปีที่แล้ว

      @@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  ปีที่แล้ว

      @@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 ปีที่แล้ว

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

    • @MichaelNROH
      @MichaelNROH  ปีที่แล้ว

      @@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

  • @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.

  • @SteavenGamerYT1
    @SteavenGamerYT1 ปีที่แล้ว

    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.

  • @JAISURIYAPK-92
    @JAISURIYAPK-92 11 หลายเดือนก่อน

    GPU passthrough plz in linux

    • @MichaelNROH
      @MichaelNROH  11 หลายเดือนก่อน +1

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

  • @trava4156
    @trava4156 2 หลายเดือนก่อน

    Ok….but how do you use and download virtual machine manager? 😂

  • @Mantikal
    @Mantikal ปีที่แล้ว

    and then there's Qubes OS

  • @JAISURIYAPK-92
    @JAISURIYAPK-92 11 หลายเดือนก่อน

    can we play RDR2 using this vm ?

    • @MichaelNROH
      @MichaelNROH  11 หลายเดือนก่อน +1

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

  • @ElevateShope.
    @ElevateShope. ปีที่แล้ว

    Hello

  • @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 8 หลายเดือนก่อน

    waste of time