How To Use Virtual Machines on Linux

  Рет қаралды 50,886

Michael Horn

Michael Horn

Күн бұрын

► 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

Пікірлер: 145
@Lu-Die-MilchQ
@Lu-Die-MilchQ Жыл бұрын
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 Жыл бұрын
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 11 ай бұрын
What would you say is better virt machine manager or virtual box ?
@Lu-Die-MilchQ
@Lu-Die-MilchQ 11 ай бұрын
@@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 Жыл бұрын
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 10 ай бұрын
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 10 ай бұрын
@@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 Жыл бұрын
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 !
@walter_lesaulnier
@walter_lesaulnier Жыл бұрын
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 Жыл бұрын
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.
@jimjam6653
@jimjam6653 Жыл бұрын
Super Videos Michael, deine Videos helfen mir sehr komplett auf Linux umzusteigen, und ich denke auch vielen anderen. Danke dir
@bertnijhof5413
@bertnijhof5413 Жыл бұрын
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.
@JHSaxa
@JHSaxa 14 күн бұрын
Wow, this was so helpful! Thank you! In 11 minutes you saved me hours and answered so many questions.
@MichaelNROH
@MichaelNROH 13 күн бұрын
Glad it was helpful
@Eimantasks
@Eimantasks Жыл бұрын
Super useful, thank you!
@xard64
@xard64 Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
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.
@benedani9580
@benedani9580 Жыл бұрын
@@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 Жыл бұрын
@@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 11 ай бұрын
Another nice thing about GNOME Boxes is that it also comes as a Flatpak from Flathub
@christiansamuelsson3444
@christiansamuelsson3444 11 ай бұрын
Awesome vid good work keep it up :)
@johnmckown1267
@johnmckown1267 Жыл бұрын
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.
@Shrek5when
@Shrek5when Жыл бұрын
Thanks! How vms work is really cool!
@asunavk69
@asunavk69 Жыл бұрын
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?
@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.
@maviniii
@maviniii 10 ай бұрын
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.
@bennguyen1313
@bennguyen1313 8 ай бұрын
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 8 ай бұрын
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
@lawrencedoliveiro9104
@lawrencedoliveiro9104 Жыл бұрын
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.
@kvelez
@kvelez Жыл бұрын
Great video.
@mariocraft95
@mariocraft95 Жыл бұрын
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!
@bok785
@bok785 4 ай бұрын
i did not have a good morning but you made it one yes you very much will see me around👍
@crismo7753
@crismo7753 10 ай бұрын
I had a lot of difficulties with Boxes due to the interfaces, because only the keyboard and mouse worked properly and not the others.
@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.
@lionking10222
@lionking10222 11 ай бұрын
@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 11 ай бұрын
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 11 ай бұрын
@@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 18 күн бұрын
9:55 AYO
@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.
@SuperDavidBrothers
@SuperDavidBrothers Ай бұрын
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!
@FakeMichau
@FakeMichau Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
@@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
@abqarenotutorials9391
@abqarenotutorials9391 8 ай бұрын
mr michael how to install driver from boxes instead vmware but complex install drivers
@toniferic-tech8733
@toniferic-tech8733 6 ай бұрын
It’s a pity that guest tools were not mentioned. They allow drag-and-drop between host and guest, and copy/paste.
@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 6 ай бұрын
@@spacesion do these games not work on steamdeck or on steam with proton?
@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 Жыл бұрын
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 Жыл бұрын
Let us know here if you figure it out
@LampJustin
@LampJustin 11 ай бұрын
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
@CocolinoFan
@CocolinoFan 11 ай бұрын
Will something like EAC games work on this? Can you play Rust for example on a Windows virtual machine?
@MichaelNROH
@MichaelNROH 11 ай бұрын
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.
@agooglygooglr
@agooglygooglr Жыл бұрын
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).
@kaushikmitra28
@kaushikmitra28 Жыл бұрын
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 Жыл бұрын
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.
@igorgiuseppe1862
@igorgiuseppe1862 Жыл бұрын
can you make an tutorial of how to setup and multihead linux system in 2023?
@mrhyperbit4882
@mrhyperbit4882 Жыл бұрын
thanks
@creepergd4884
@creepergd4884 11 ай бұрын
9:51 laughs in single gpu passthrough vm
@Pikaloid778
@Pikaloid778 Жыл бұрын
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 6 ай бұрын
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 9 ай бұрын
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 9 ай бұрын
Wouldn't that just require an unmountrd drive passthrough? I haven't tried it yet myself, but KVM does support it
@tomoghnosen
@tomoghnosen Жыл бұрын
i use QEMU on Linux and Hyper-V on Windows
@LoorHenz
@LoorHenz 9 ай бұрын
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 9 ай бұрын
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 3 ай бұрын
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 3 ай бұрын
@@Xmarquise intel F processors come without iGPU
@Xmarquise
@Xmarquise 3 ай бұрын
@@LoorHenz Really? The how do uou get display to show without a gpu?
@LoorHenz
@LoorHenz 3 ай бұрын
@@Xmarquise i managed to get it to work with single gpu passthrough, i’ll send te link to the video i followed
@user-bk2pt5ny9h
@user-bk2pt5ny9h 4 ай бұрын
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 4 ай бұрын
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 4 ай бұрын
@@MichaelNROH thanks for the quick reply. I think Lubuntu more accessible to beginners like me.
@swagmuffin9000
@swagmuffin9000 10 ай бұрын
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 10 ай бұрын
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 10 ай бұрын
@@MichaelNROH cool, thanks for the fast response 👍🏻
@Cyberbrickmaster1986
@Cyberbrickmaster1986 10 ай бұрын
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.
@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.
@TheRealFrankWizza
@TheRealFrankWizza 11 ай бұрын
Is it possible to pass through your igpu to virtual machine manager?
@MichaelNROH
@MichaelNROH 11 ай бұрын
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".
@mateusraitz1803
@mateusraitz1803 11 ай бұрын
me too, are you using an Nvidia GPU?
@sascha1461
@sascha1461 11 ай бұрын
@@mateusraitz1803 yes
@chucklebeats
@chucklebeats Жыл бұрын
GPU passthrough guide when?
@user-pt9dv7vf6n
@user-pt9dv7vf6n 29 күн бұрын
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 🥶
@SirRFI
@SirRFI Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
Be aware, though, that some game's anticheats block VMs and force you to play on bare metal
@Scranny
@Scranny Жыл бұрын
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 Жыл бұрын
@@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 11 ай бұрын
@@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?
@megamodspc6436
@megamodspc6436 9 ай бұрын
3d acceleration nevers works for me so I use VMware
@fabricio4794
@fabricio4794 11 ай бұрын
Gnome Boxes and OpenSUSE is all t hat i need....
@convextlc9767
@convextlc9767 4 ай бұрын
Got it to work but no way to transfer files from VM to Host which is annoying.
@Xmarquise
@Xmarquise 3 ай бұрын
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.
@NKG416
@NKG416 9 ай бұрын
hey but how about the license for windows?
@MichaelNROH
@MichaelNROH 9 ай бұрын
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 9 ай бұрын
@@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 9 ай бұрын
@@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 9 ай бұрын
@@MichaelNROH ah..that's the problem, i don't make any windows account
@MichaelNROH
@MichaelNROH 9 ай бұрын
@@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
@Mantikal
@Mantikal 8 ай бұрын
and then there's Qubes OS
@convextlc9767
@convextlc9767 4 ай бұрын
Doesnt work for windows 10. has some Startup.nsh screen and doesnt do anything
@samuelperez8370
@samuelperez8370 11 ай бұрын
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
@ernestoditerribile
@ernestoditerribile Жыл бұрын
Wow you forgot a whole lot of hypervisors Proxmox, XCP-NG, Centos, Citrix or level 2 VirtualPC, Parallels and way more
@MichaelNROH
@MichaelNROH Жыл бұрын
🤫
@ernestoditerribile
@ernestoditerribile Жыл бұрын
Are you Dutch. You really sound Dutch.
@user-sk5qc5nk2i
@user-sk5qc5nk2i 5 ай бұрын
GPU passthrough plz in linux
@MichaelNROH
@MichaelNROH 5 ай бұрын
I showed PCI device passthrough in my Proxmox tutorial: kzfaq.info/get/bejne/ir2IZsyIyNHFj2Q.htmlsi=KaY_gp0zuzqB0kA6 It's basically identical with the Virt-Manager in the hardware screen.
@SteavenGamerYT1
@SteavenGamerYT1 Жыл бұрын
i use Virtual Machines to play windows only games and use windows only software i have it with gpu passthrow
@SolidSt8Dj
@SolidSt8Dj Жыл бұрын
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 Жыл бұрын
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.
@user-sk5qc5nk2i
@user-sk5qc5nk2i 5 ай бұрын
can we play RDR2 using this vm ?
@MichaelNROH
@MichaelNROH 5 ай бұрын
I would not recommend it because of the performance hit in comparison to just running it just on Linux
@pialdas6835
@pialdas6835 Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
@@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 Жыл бұрын
@@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
@RBN64
@RBN64 9 ай бұрын
VirtualBox supports Linux right , why isn't it used ?
@MichaelNROH
@MichaelNROH 9 ай бұрын
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
@TheMetaldudeX
@TheMetaldudeX Жыл бұрын
Still using Fedora?
@elecbaguette
@elecbaguette Жыл бұрын
Probably! What do you recommend?
@MichaelNROH
@MichaelNROH Жыл бұрын
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
@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.
@BURAK-hu2sl
@BURAK-hu2sl 2 ай бұрын
waste of time
How and why I switched to Linux
12:22
Thomas Midena
Рет қаралды 27 М.
Monster dropped gummy bear 👻🤣 #shorts
00:45
Yoeslan
Рет қаралды 12 МЛН
Follow @karina-kola please 🙏🥺
00:21
Andrey Grechka
Рет қаралды 13 МЛН
Normal vs Smokers !! 😱😱😱
00:12
Tibo InShape
Рет қаралды 35 МЛН
Windows Inside of Linux
21:58
Chris Titus Tech
Рет қаралды 196 М.
How to PROPERLY install KVM on Linux
32:09
SysGuides
Рет қаралды 19 М.
Ubuntu 24.04: An Excellent Linux Distro
16:52
ExplainingComputers
Рет қаралды 144 М.
The Programs I Use On Linux ...
9:31
Michael Horn
Рет қаралды 23 М.
The BEST Way to Make Virtual Machines - Virt-Manager
27:07
Trafotin
Рет қаралды 27 М.
Different Types of Virtualization
10:56
Mental Outlaw
Рет қаралды 104 М.
Where People Go When They Want to Hack You
34:40
CyberNews
Рет қаралды 154 М.
Create Virtual Machines in Virt-Manager Like a PRO!!!
46:33
SysGuides
Рет қаралды 5 М.
How To PROPERLY Install Windows 11 on KVM (2024)
31:01
SysGuides
Рет қаралды 10 М.
You Should Stop Using Windows On Your Computer...
31:09
SomeOrdinaryGamers
Рет қаралды 1,2 МЛН
Dance Stairs Race with DogDay & CatNap - Poppy Playtime  Chapter3
0:19
I Just Wanna Do Some Push Ups 👍🏻 / #minecraft
0:14
NoneSteve
Рет қаралды 13 МЛН
ВЕРИТ ЛИ ТИГРА БУЛЛИ?
0:32
Pimpochka Games
Рет қаралды 2,3 МЛН