Run ANY Windows App on Linux - VMware with 3D Acceleration
Vložit
- čas přidán 4. 06. 2024
- Head to squarespace.com/techhut to save 10% off your first purchase of a website or domain using code TECHHUT
how to setup a Windows 11 guest virtual machine on our Linux host. We're going to be doing this in VMware as it provides better graphics performance for gamming and creative application. This also won't require GPU passthrough to get some decent performance.
Commands and Sources:
techhut.tv/windows-11-vmware-...
00:00 - What we're doing?
01:34 - Getting stuff.
03:12 - VM setup.
06:14 - Windows install. (+regedit)
09:10 - Windows setup and drivers.
11:55 - Fixing network.
12:40 - Fixing 3D support.
CZcams MEMBER: bit.ly/members-techhut
BECOME PATREON: bit.ly/patreon-techhut
JOIN DISCORD: bit.ly/discord-techhut
FOLLOW ME: bit.ly/twitter-techhut
INSTAGRAM: bit.ly/personal-insta
My Workstation (PAID LINKS)
ASUS ROG M16: amzn.to/3t8Xgpo
DeepCool MATREXX 40: amzn.to/3q3K8Qn
AMD 3700x: amzn.to/31AKX9N
ASRock B550M: amzn.to/3qeymTv
G.Skill Trident Z Neo: amzn.to/3JRbeSF
Radeon RX 580: amzn.to/3n7Ax9g
Sceptre 32" QHD Monitor: amzn.to/3f39KGK - Věda a technologie
I wish VMWare was open source, it's my favourite virtualization software.
Qemu/kvm with virt manager is the most capable Open Source alternative
@@thisisntmymainaccount7923 Robust 3D acceleration isn't capable without GPU passthrough
@@thisisntmymainaccount7923 It Should Be Ones Go To Choice
@@JayCeeCreatesYeah You Are Correct But If You Wanna Go FOSS, Then QEMU/KVM Is The Way To Go.
i used a software called quick emu i think and it set up virGL on qemu/kvm so it worked really well for linux vms and even android x86. haven’t tested for windows vms bc i duel boot and rarely need windows anyway
This is great if you're in a situation where you have to use the GPU on both host and guest simultaneusly. For gaming however QEMU/KVM with GPU passthrough is the best option. Great guide man.
Not really. Most motherboards now have iGPUs and anybody who wants to do anything that requires GPU power will have a dGPU anyway.
yeah, but GPU passthrough is still a complicated mess to figure out. on top of that, it doesn't work on all laptops, in which mine is a prime example of not working since it uses nvidia optimus, which has been known to not be possible to ever work evidently
Well that's the problem really, NVidia.
Would GPU passthrough using QEMU/KVM with a dedicated AMD GPU be much easier to work with, or at least not too much of a headache than with Nvidia? I'm using an AMD APU and couldn't get GPU passthrough to work, I'm wondering if it would be less of a hassle if I had a dedicated Radeon GPU instead.
Biggest thing that's holding me back from jumping ship to Linux over Windows is definitely gaming. Sure I could just get a PS5, but being able to use fan mods, transferring games to whatever device I want, and not have them locked behind a console that would have their entire servers and digital game libraries taken down 10 years after their release, is definitely why I choose PC gaming. Would love to run them on Windows VMs with near native performance since not every game runs with Proton.
AMD is always better for Linux. I got the GTX1070 and it was a chore to get working. Needed optimus manager to disable the drivers so it could GPU would be free to pass through to the VM. I imagine it's even worse on a laptop. AMD is usually much easier. Not sure about laptops.
I just tried to do this yesterday and could not get past the TPM check, you rule, thank you!
Thank you Brandon! Excellent breakdown of the vmware installation !
Currently been dual booting Linux and Windows 10 on my Ryzen 5 3600X build with 32 GB of RAM and my GTX 1660 Ti. Using a virtual Windows machine in Linux for gaming has been a long term goal so I'm definitely gonna give this a shot. Thanks for the video man!
@@rotteneldritch7037 please, link to tutorial how to do it
@@acerlmt @BlandManStudios is a pretty good channel for it.
@@Jacksaur_thank you!
Thanks for the help, I got it up and running and I appreciate it. I was never able to succeed at getting single GPU passthrough working so I gave up on that.
It would have been interesting to see you do a 3D frame rate test
I used this to make Quest 2 VR work in Linux. I just had to change the network to bridge and it sees server. Thank you so much! I've been waiting for this for about a year!!!
I'm gonna be honest here, you are the best linux channel on yt by far!
All of the apps and distros you show are amazing!
Thank you just starting out today very excited!
Hi, many thanks for this tutorial. I want to give an update here, as versions upgraded.
I'm running Linux Mint 21.1 and VMware Player 17. Right off the box, network and sound do work. I added that line for the GC preferences setup and dxdiag shows just what you presented. It clearly is not Win native, but it's working.
Your video was of great help for configuring all that. I can't wait to test some demanding softwares and see how it goes.
Holy heck I had no clue you could run a terminal on the installation cd the more you know aye? Really nice tutorial TechHut you are awesome.
For gaming, but it is tricky KVM-QEMU one GPU pass through is the way to go.
There are not good step by step how to guides or scripts to prepare a MS WOS 11 VM.
A fairly recent guide by posted by mental outlaw is pretty damn comprehensive
I plan to try the VMWare setup when I switch back but I agree with you. RisingPrism's script on gitlab made the one gpu passthrough setup VERY easy for those wanting to try that.
If anyone is wondering: czcams.com/video/KVDUs019IB8/video.html
Windows 11 easy to install on KVM.. just install swtpm on the host and then in virt-manager add a emulated TPM and from there same as windows 10
But that's way more complex and requires a second GPU (unless you disable you linux pc, but that would have no advantage over dual booting )
wow, a lot of information but well demonstrated and you wind up with a beefy windows machine. Thank you very much!
Outstanding info, thanks.
How does thsi compare to KVM stuff with virt manager or boxes, does this include those optimizations and the vidoe card passthrouhg stuff, or is this just VB with better GC integration? Is this primarilly for Windows, like would you recomend still using vert manager for your linux VMs, or is VMware just all round better?
Ty so much, great video!
With Qemu + Virtual Machine Manager installing Windows 10, I did not have to do the bypass, but I will give it a shot with Windows 11 as well. Many thanks for this tutorial.
I've been looking forward to something like this, I hope it works for me. I've been getting that message for a decade, but didn't really matter until I started gaming on PC. VM's were my solution to dual booting headaches.
hello sorry for the silly question but can it be done in reverse? I intend to install the virtual machine with ubuntu (for example) on windows install linux app in it to then have them in the menu as in your video
*_Thanks a lot! Thias was very useful to me!_*
Very cool. Thank you.
Out of curiosity: Have you tried to make a perfomance test between VMware with OpenGL versus Vulkan? With the release of 16.2, the Pro Version Supports Vulkan for Rendering.
One thing that i would make different in VM creation in Workstation Player: Deleting the Disk after creating the VM and recreate it. Because then you have the option, to allocate the full disk size.
And for the video: Thumbs up.
vulkan is just a successor of opengl
Thank you mate 💜️🤘
Hey, I'm thinking about building new system and maybe you could help me with some decisions. I'd like to use 7950x 3D for the CPU and then run 2 VM instances on it for 2 windows users. The problem is that 3D cache is somewhat new and I can't find any info regarding to how it runs under VMware. Do you have any info on this topic or if not do you know any place I could find some answers. Thanks :)
Nice tutorial. I tried to use the GPU Passthrough method on my Laptop but I can't seem to get it to work.
This method definitely works and I will try out some games within the vm and do a project work for the University within ArcGIS.
Do you know if it's possible to allocate even more VRam to the VM? My RTX 3080 has 16GB of VRam, but I can only allocate 8GB.
it actually depends on how much RAM you allocated to your vm
Excellent video.
With this method, should you install nvidia or AMD drivers? I notice Windows thinks the video card is "VMWare SVGA 3D". Does this have any negative affect in gaming? For example, do certain features like raytracing, DLSS, etc, only work if the game thinks it is on a true nvidia/amd card?
I've only played with KVM/QEMU, and have PCI passthrough performing as good as bare-metal, and of course requires you to install the nvidia/amd drivers in the guest.. However I'm on a laptop (intel iGPU + Nvidia dGPU with external monitor) so I have to reboot (or logout inconsistently works) to switch the host to the iGPU. All the single-gpu-passthrough guides are YMMV depending on your distro/etc, and most just trigger an X11 logout anyway. If performance is good, this method would be great to not have to reboot or disconnect the dGPU from my host. Trying now! Thanks!
----
UPDATE: I tried TechHut's method, and didn't get great FPS's either in the desktop or games. I would say it is definitely usable if you need some basic productivity apps. Certainly way better than without "3d acceleration", but not really close to bare metal on my 4k60 monitor for anything beyond the simplest games. FYI, I learned this only supports DirectX11 (and definitely not advanced features like ray tracing, etc), so possibly older casual games might be decent on here, but nothing like major recent AAA.
Either way, fun learnings!
This just gives you 3D acceleration so that some programs can work properly, but the VM performance is still going to be abyssmal as there is no actual GPU passthrough
Hi, could you recommend the tutorial/guide you followed ?
I'd like to pass through the dGPU to windows vm of the laptop.
CPU intel, gpu nvidia.
Thx !
@@marshallhyasi6213 Same. Have you found a good tutorial or a CZcams video? I'd like to do same with Nvidia GPU also.
@@marshallhyasi6213 Sorry, looks like Mental Outlaw already covered it below, and TechHut gave us the keys to success ...
TECHHUT SAID ... If anyone is wondering: czcams.com/video/KVDUs019IB8/video.html
Hi. Is is possible to do a guide for installing MacOS in Manjaro/Arch using the VMWare? As I understand, the Installation is quite tricky and not so simple as your guide with Win11! I plan to use it to connect my ipad or iphone directly, and stop switching to a separate OS (like Win11).
I sub my brother! Amazing job.
Can we get USB pass through? My biggest annoyment is that I want to use Odin to flash Samsung ROM or unlock Xiaomi phones and it is windows only software. I tried USB passthrough using virtualbox but it did not work
Ta for this, as I'll have a look at doing this myself, for my uni work (we have to use Word for assignments). One thing though, does it cause any licencing issues, when you hook up your Office 365 account?
I don't think so. At least on virtmanager, there are ways to trick windows and programs into thinking they aren't virtualized if you do happen to run into issues.
Using after effects in VM the performance drop drastically? is there any method to run AE on linux?
Does the Windows 11 iso let you upgrade an existing Windows 10 install? I already have a VM with Windows 10 and it won't let me upgrade because my "PC doesn't meet minimum requirements." Hoping I can just boot from the iso and use this regedit trick and upgrade without starting fresh with a new install. Edit: just found out it doesn't let you upgrade from the iso. Tells you to boot up and then insert the disk. Maybe I'll try that. But I found out my other issue is I had set up this VM using defaults which selected BIOS instead of UEFI Secure boot. So Win11 complains about that too. Tried just importing the virtual disk to a new VM using UEFI but it didn't want to boot.
ArcGis Pro question: if you have to use it for work (from home) would you dual boot with windows or still run a virtual machine. I'd imagine that the drop in performance would grate on you after a while. Thoughts?
Run a virtual machine. Don't dual boot. You'll waste a lifetime from all of the reboots.
Do you have any GIS tutorials? Also, why ArcGis Pro and not QGIS?
Can you please tell me if you think thhis can handle Adobe After effects? Looking to be able to run on Linux!!!
could you use swtpm for the tpm?
I'm struggling with vmware, it says that it couldn't build modules and refers me to a log file. then it says it couldn't stop a service at the end of the file. I am using Manjaro
Perfect time for me who just heading to Linux from Windows, still use the dual boot mode cause my main software only work in Windows, good tutorial
I've been wanting to convert to using linux as my main OS. However, my main concern is not being able to play valorant. Does the vm support paying valorant? Thanks nice video!
Nice! Thank you! While I understand it won’t be native performance, I’m curious how close to native it gets.
You prefer open source for VM but you use arc Gis at the same time, how does that fit together? Try qgis if you know how to use python
will the windows on virtual machine be able to detect usb storage devices like external hard drives?
You are a hero
Hi great tutorial , but i can not still bypass with BypassTPMCheck 1 -> it tells me you can not run win11 on this computer. Any help? Any other tricks? ....Thank you
Thanks
Could I use windows 10 instead of windows 11?
Why does my Vmware look so different? I have it on a bare metal server, I use the free ESXI license, Creating VMs has a different interface but some of those options are there. What are you using to create VMs, is it free? Does it have features not in free esxi? Example: There is no option to add sound devices from the GUI so I have to SSH into ESXI and edit each VM's file and manually add sound into it from the command line.
Also... Does installing Windows 11 as a VM completely ignore all those annoying requirements that say if I want to use Windows 11 I'll have to replace my very modern CPU? Does it not apply to enterprise customers because the cost involved in replacing hardware would encourage them to switch entirely to Linux?
OK, have Nobara running as per your video. Tried to follow the instructions from your .TV instructions but got 'before you can run vmware several modules must be compiled and loaded into the running kernel". I click install and it asks for su password, put that in and it errors with 'unable to install all modules. see log...' I look in there and do not see why it fails. What am I doing wrong?
Hey mate i cant get my network working, can you maybe help me? I get the error '' Failed to enable unit: Unit file vmware-networks.service does not exist''
is ther a fix for the mouse on the vmplayer ?
How VMware compares to Hyper-V ? Which one of the two generally works better ?
just when I needed it the most, idk what to make of this, I just finished installing win 10 on qemu/kvm but I wasn't very happy with the performance
I'm experiencing sound stutter and mini freezes, what's the solution? There is more than enough resources for everything. Something else is wrong. Clean ubuntu, clean vmware workstation. Win 10 or win11, both have the same issues. Virtualbox works just fine.
Would this work with Windows XP/7/8/10 or is it exclusive to 11?
Finally, my PC can run Windows 11 :D
Its running surprisingly good, desktop is super slow and browsing too, however games runs surprisingly good.
So how is the ArcGIS Pro performance?
I'm getting "Error: Could not open /dev/vmmon" after rebooting host. Please help.
is 16 gig ram enough to run linux with windows 11 in vm with AtlasOS or ReviOS strictly to use photoshop and illustrator?
dont run atlas and revi
That would be really useful to see how it compares to actual hardware performance wise? Does it have the same performance penalty as DXVK, is it better, is it worse?
I have a Linux OS running as a host and I want to run Windows in a VM, like you've done here. The problem is I have some USB devices that are only supported on Windows, no Linux drivers. Can I still run Windows in a VM, install the drivers for these devices on the Windows guest and connect to the actual hardware without having drivers for the Linux host OS?
Yes.
0s0m!👍🏻 Thank you!!
Hi. im trying to create a Win 11 Machine with VMWare 17 but when i get to starting the machine i receive this errror.
Could not open /dev/vmmon: No such file or directory.
Please make sure that the kernel module `vmmon' is loaded.
Then shows up another window :Could not open/dev/vmmon: No such file or dictionary
And the last window :Unable to change virtual machine power state: Transport (VMDB) error -14: Pipe connection has been broken.
Can anyone help?
question...for anyone really...if I virtualize my current OS then install linux and vmware for example...then install a VM of my previous OS...will it be able from the VM to see the drive where all my games are stored?
In case I need to run windwos inside linux for 3D animation, wich virtual machine would be more convenient? VMWare or QEMU ahving in mind that i need graphic power for the 3d animation softwar? Thank you very much to everybody
QEMU is you best bet. if you're using 2 gpus + arch linux
the arch wiki for gpu pass through is extremely useful. You do not need to do any shady rom hack none sense
depends on the cpu pinning tho
Thanks brother for your reply. Unfortunately, after a while dealing with all this connected to the 3D animation things, I had to quit trying to solve it and changed to mwindows :/@@XioJN I spent more time trying to solve all the problems with linux isntead of using the computer...
Did you enable Virtualization on windows in order to play Fall Guys on Linus
For some reason vmware wont create the vm. I have vmware is installed and all works, I create my folder and name my vm, the. I get an error. I have tried matching the kernel with the api but I get the same error.
what would i need to do if win11 doesnt let me skip the internet thing?
the mouse speed make same games not playable any fix on the vmplayer
What is your main linux distro?
VMware Player still expires after 30 days and than no longer works. I have tried many times and it always stops working after 30 days.
Are there any Linux laptops for steam os arch?
Can you do this on windows host and linux guest?
Check your video title and what did u install
Does it work with windows 10 iso?
I have liked VMware but I have never been able to make a mouse back-forward button work. VirtualBox works with no issue automatically.
Wish VMware would fix that.
Can you do gpu passthrough on VMware?
Another video about VM and especially about VFIO will appreaciate!
no that is not possible. U need type 1 hypervisor for that
Seeing this makes me VERY interesting in giving Linux another try.... Whatever gives me major issues I can just use in the VM.
But I have some questions...
1. Do you actually need a Windows Pro key to use the Pro version that you installed (with ALL features available?)
2. Do you need to install "windows drivers" on the VM? Like, do I need to install a Windows version of an Nvidia driver on it?
3. Does anyone know if AMD Smartshift (dynamically changes power delivery to the GPU/CPU depending on the load) works in Linux? I'm patiently waiting for the new all-AMD laptops to release later this year, though there are some laptops already available with this feature.
I'll be the first to admit I'm a complete noob at this stuff, any help would be greatly appreciated :)
1. windows doesnt really need to be activated to work now (after XP), so you could just install it without a key, just with some limitations, i mostly know that personalization being limited if windows is not activated
2. No, just install the vmware guest tools and you should be fine
3. idk how to answer this
i have never seen software like this that actually works well enough 4 me to use it. even with gpu passtrough i had a lot of latency somehow for some reason. i have to stick with windows 4 games 4 now
This is very usefull, I'm thinking of switching to Linux and I just KNOW that allthough there are Linux version of a lot of the software I use, there is stuff that isn't available and I know I can't run all my Windows stuff in WINE.
Does it work with nvidia gpu?
Is your main OS Arch now?
I hope Virtualbox using the older VMWare 3D acceleration drivers, also gets this new feature somewhere in the future. I'm not a gamer, so I stick to Virtualbox, also because I have ~70VMs and transferring them is just too much work. I use some modest games in my Ubuntu 20.04 and 22.04 VMs, they are Extreme Tux Racer; SuperTuxKart and Wolfenstein-3D in DOSBOX in an Ubuntu VM on an Ubuntu 22.04 Host running on OpenZFS 2.1. Those Linux games run with VBox 3D acceleration on 1080p 60HZ, creating a ~75% GPU load on my Ryzen 3 2200G APU (1GB).
I noticed that everybody is giving a lot of resources to a VM. I'm more modest, I use Windows Vista; 7 and 8.1 with 2.5GB; Windows 10 gets 3GB and Windows 11 gets 4GB. They run fine with that amount of memory. Maybe because I also run the Hosts with OpenZFS 2.1 with the L1ARC memory cache containing 3GB of lz4 compressed disk records. So Windows swaps its memory to that L1ARC, which can take normally ~6GB of uncompressed Windows stuff :). Currently it contains 2.9GB which represents 9.6GB of uncompressed stuff, but that is an absolute record :) :)
Running CDM in a Windows 11 VM, I measure ~1.6 GB/s on the sequential reads and 500 and 600 MB/s on sequential writes :) The random values are much lower 103 and 43 MB/s for reads and 41 and 23 MB/s for the writes. I expect, those random values are partly lower, because Windows 11 sees a SATA SSD instead of a nvme-SSD.
By the way the L1ARC hit rate are ~98% for all disk IO and the remaining 2% is serviced from my Silicon Power nvme-SSD (3400/2300MB/s). Unfortunately the throughput is really lower due to the (de)compression of all disk IO by a 14nm Ryzen CPU (4C4T; 3.7GHz OC). I love to buy the Ryzen 5 4600G; 2.2x the performance for 1.5x the price of the 2200G :) :) In my opinion it beats the Ryzen 5 5600G for 2.9x the performance for 2.2x the price. In my opinion that 5600G is ~$40 overpriced, so as a true Dutchman I will not buy it, I have to honor an ancient tradition!
Can I ask? Why do you need 70 VMs? Surely, you don't run them all at the same time. Are you a developer or something? Just curious. Because I plan to really create lot of VMs.
Why the hell do you need 70 VMs is this a troll comment?
I've got to do this. Another windows update borked my system. Fucked up my Office 2010 apps (like Word) and now it won't load. So, I've got to virtualize.
Does this perform better than proxmox?
Will this work for chrome os
Afaik qemu has also (coming with virtmanager) gpu acceleration and it comes with tmp
Can this be done on Windows 10?
Thank you TechHut! I've been using VirtualBox for months now. I tried qemu/kvm but somehow the Windows interface was laggy; I spent days trying to make qemu/kvm with GPU passthrough and looking glass but it'd crash randomly, basically unusable. I never considered VMWare until I saw your video. I spent a few hours migrating from VirtualBox to VMWare and I must say I'm loving it so far! It's performant and feels native. The only downside is the lack of configurations but I'm happy with the end result. Thank you!!
The Windows 10 performance with VirtualBox is awful. VMWare is much better with Windows 10 virtualization.
How good is VMware I don't use it but I want performance for video playback and have it usable because I am going through an OS crisis right now
Installed vmware-workstation16 just out of curiosity because I use QEMU. First problem is that it does have an ArchLinux template, had to choose Other Linux 5x. That is plain stupid from VMWare because they had there other Linux distros I never heard before. Boot up Manjaro... kernel panic. Boot up ArchLinux it loads ok. Boot up Ubuntu 20.04 and after 10 minutes I just shutdown the machine and remove Vmware-workstation from my ArchLinux machine. It was fun while it lasted. No need to say I have with QEMU all Linux distros and a Windows VM. All work 100%.
Where are the instructions how to install the .bundle file, please?
I am using VMware with Windows 10, on a Linux machine, and it is so slow, I can't even run windows, much less SolidWorks, which is why I installed a virtual machine.
What am I doing wrong?
Can anyone please guide me that how can i transfer file (such as MS word, Excel etc) from Windows guest to linux host and vice verse?
I do it by uploading to a cloud drive, like Google drive.
Does this need to be Windows 11? Or will Windows 10 work fine as well ( I am kind of concerned about privacy in Windows 11, even in a VM, and I can also skip the whole installation "hacking" you have to do with Windows 11 in that way)? Thanks for the answer Brandon!
You still have to install proprietary software on your hardware that is vmware
Impossible to install Vmware player on Fedora 36.
And is it possible to run Linux app on windows os?
It would be appreciated if you actually showed me how to install it because I keep getting errors I have no idea what to do about
Thank you for this. Really feeling this is going to be the year I step away from Windows for good.
same. Another windows update borked my system. Fucked up my Office 2010 apps (like Word) and now it won't load. So, I've got to virtualize.