Windows Inside of Linux
Ғылым және технология
This will show you how to optimize Windows inside of Linux. When complete, this will make it feel like a native install without Linux.
Website Guide: christitus.com/windows-inside...
Setting up QEMU in Linux: christitus.com/vm-setup-in-li...
Past QEMU Install Video: • Stop using Virtualbox,...
Timestamps:
00:00 Intro
00:35 VM Performance and Recommendations
02:55 Initial Windows VM Setup (Stock - No Changes)
09:53 New Windows VM Setup (Hard Drive Pass-through)
16:22 Optimizing the Existing VM (VirtIO and Guest Agent) .
►► Digital Downloads ➜ www.cttstore.com
►► Reddit ➜ / christitustech
►► Titus Tech Talk ➜ / titustechtalk
►► Twitch ➜ / christitustech
Пікірлер: 451
Website Guide: christitus.com/windows-inside-linux Setting up QEMU in Linux: christitus.com/vm-setup-in-linux/ Past QEMU Install Video: kzread.info/dash/bejne/faVslpt8oKrKaJs.html
@sinki3362
Жыл бұрын
i would realy like to se how you set up vm for gaming. I have tried it from before never worked out, and also it was something to with cpu to connect to the vm
@BobDoe_69
Жыл бұрын
If you will put the vm on a dedicated harddrive, why not just baremetal install win on the second harddrive for even more speed and dual boot?
@Billy_Souls
Жыл бұрын
Do you suggest Debian over Manjaro?
@nicholaswjamrock
Жыл бұрын
Good video, I am old school and i like mail, please stop beating on it, its a good app. Tried doing this with virtual box several years ago it was a real mess
@ChrisTitusTech
Жыл бұрын
@@nicholaswjamrock Yeah I understand many like the minimal design and how they made mail. I'll try to keep the hatred out for it. I generally hate most UWP design and Microsoft Store Apps in general, but mail is one of the best in that category.
I'm running Chrome OS Flex inside Window Subsystem for Linux 2 running inside a Windows 11 VirtualBox on a Steam Deck (which runs Arch, btw).
@sudo11
Жыл бұрын
Run arch in chrome os and customize it to look like steam os
@HShango
Жыл бұрын
I've been waiting for that lil powerful machine for days and valve still hasn't sent me a confirmation email 🤨
@markusTegelane
Жыл бұрын
Such a flex
@ArawnFR
Жыл бұрын
so useless 😂😂😂
@DTechDive
Жыл бұрын
Flexing at its peak
Thank you SO much for making an easy guide. There's so many confusing tutorials regarding VM performance that this is a breath of fresh air
FYI, one should set up CPU topology manually in the VM settings page since virt-manager (or QEMU) assigns one socker per vCPU core but Windows 10 Pro only supports 2 sockets. So if you don't set up topology manually, Win 10 only sees 2 CPU cores.
@trapOrdoom
Жыл бұрын
Thank you… I’m wondering why my shit seems so unreasonably slow when I allocated 8 sockets.
@SosirisTseng
Жыл бұрын
@Kyle Miller According to a Reddit answer, the frequency is controlled by host CPU policies. By default, the frequency should go up when running CPU-intensive tasks. You could use a system monitor like bpytop to check CPU load and frequency on the HOST.
Really looking forward to a video on GPU pass-through. For Windows gaming specifically. Level 1 Techs had teased doing one and referenced using Looking Glass but nothing ever seemed to come of it.
@cooky842
Жыл бұрын
Look at poor shamed computer by ordinary gamer. I based my vfio rig on it and work like a charm. But I don't understand why he doest use virtio qcoe drives instead of whole disk..
@TurntableTV
Жыл бұрын
Hey man, Mental Outlaw did a very nice tutorial on GPU passthrough with Virt-Manager.
@notuxnobux
Жыл бұрын
You dont even need two gpu's for gpu passthrough with an nvidia card these days
@cooky842
Жыл бұрын
@@notuxnobux I know! Good times to be in linux
@abilovestotrade
Жыл бұрын
@@notuxnobux do you need 2 GPU with AMD cards ?
Wow, you included some steps and recommendations that I never would have thought about, frankly. I am definitely going to build a Windows 10 VM using QEMU/KVM. This was really informative.
Literally subscribed for that pass through video, this was so incredibly well explained and I can’t wait for that one.
Thank you Chris. You explained so well, I have never used QEMU/KVM. It looks awesome!
Your video is pure GOLD. Many tips that was dispersed you joined in this tutorial. I'm installing with your recommendations right now.
Thanks Chris, the best guide ever for qemu and windows. I really appreciate all your hard work.
You are awesome Chris! I was thinking about trying something like this on my rig as I built this thing for Gaming / graphics editing. I wanted to get on Linux full time and use Windows as a gaming VM. Can't wait till you put out the Video on Passthrough to the graphics card. This whole guide has helped me understand how the process should work.
What timing! I just spun up a Win10 VM with virt-manager yesterday, so I'll be trying those settings. Thanks Chris!
this video litteraly came out the moment i needed to make a windows VM for school, thank you so much for the help and keep it up chris!
That was a cracking video! Incredibly useful. Thanks Chris. I’ll be doing this as soon as I can.
Thank you so much! This is probably the only understandable video on KZread about the performance of virtual machines!!
Love this. Can't wait to see your video passthrough tips. I have a Hades Canyon running Linux and I've yet to successfully do video passthrough on it no matter what guides I follow. Your video may not help my particular situation, but more info is always good.
Thank you for sharing your preferences and the reason for them. It is a big help to us newbies!
This is exactly what I was thinking of doing. Chris you are awesome!
Great video Chris. Can't wait for the video passthrough. I watched another tutorial that implied only Nvidia worked so I am excited to see the 5700xt passthrough. Keep up the great content!
Nice timing on this video! I've been a long time Windows user and have been dabbling with Linux in recent months. I'd like to switch over fully, but I'm also an avid gamer. I wanted to set up a Windows VM with GPU passthrough to accommodate that, but it can be tough finding the info you need. Looking forward to the next video on this.
@kentoscocos5238
Жыл бұрын
also i'm looking forward to this! would like to use fedora as main OS, and using windows using kvm just to play my games
@kytv9000
Жыл бұрын
For gaming performance, I guess using Wine/lutris/proton solution are still better.
@Brayconic
Жыл бұрын
@@kytv9000 It's viable for sure and I have used it. I like the Windows VM for the sake of ease of gaming/modding and for use of apps not available on Linux for which I have no alternative. I know I could dual boot, but I think the VM is cooler.
Thank you so much man!! been watching your videos since 2021 it's crazy that I still learn a lot from you
For truly great VM performance on KVM/QEMU, configure CPU pinning and set the host and guest to run on different cores. Also, GPU passthrough will allow for full baremetal graphics performance and hardware accelerated graphics performance. Obviously you'd need multiple GPUs to be able to passthrough a GPU physically, but it works great (allowing for gaming with baremetal performance on the VM). You CAN run with a single GPU, but then you have to close out the linux window manager when launching the VM (using hooks scripts), but it still gives you the benefit of a virtual windows VM and linux hypervisor running in the background. I've been running this way for months and prefer this over baremetal installations.
@harrytsang1501
6 ай бұрын
Can confirm. Subdivided a 13900k into four windows vm each with GPU pass through. Each runs faster than i7 8700 and has GPU acceleration Cpu pinning is the only way to really utilise cpus with non homogeneous cores for vm
@balsalmalberto8086
4 ай бұрын
it's only useful if you don't have a potato for a pc like most of us. @@harrytsang1501
As Johnny Lawrence would say: badass! This is the video I was looking for. Not for running Windows, but to get to know about how to use VMs properly on my desktop from a professional. Thank you Chris.
im glad im still subbed to this channel. between you, and wendell, the world has so many ways to do full fat windows virtualization on linux
Thanks for doing this video Chris - it's a real help. I've wanted to replace Windows entirely with Linux, but there's a few programs I just can't do without and no real alternative on Linux at present. But I've struggled getting Virt-Manager working on Linux and only used Boxes because it was so much easier to use. I'll give Virt-Manager a go again and see how I go. Cheers
Excellent video as always. Keep up the excellent work.
Thank you so much Chris! Your videos have helped, and I have learned a lot!
Went out and bought an SSD drive today (way cheaper than they were 2 years ago I see) as Windows would not install on an empty partition. Well worth it as instead of the minutes my VM used to take to start up, mine is also starting now in 15 or 20 seconds. Thanks these tips really made it usable again.
Thank you Chris, very informative and useful video!
Awesome video.. again.. Thanks for your efforts mate..👍
If I pass through a partition instead of an entire disk will I still experiment performance improvements?
Another great informative video! Virtualization is so interesting. I would love to see more videos live this. I use Arch btw lol
I've been waiting for this video for a long time! Ever since you said you live in Linux and virtualize windows and mac.
Great video, depending on the purpose of the windows vm sometimes I also do 1)Disable search services, 2)Disable automatic windows update, 3)disable antivirus after I have installed everything that I need.
Thanks for the video. Really simple. I am quite interested about the dual graphic card setup. Not only the installation, but the hardware selection too.
What you're explaining about your setup of fully accelerated Windows and Mac with a full Linux enviroment just sounds like a perfect PC solution for every type of task!
Thank you Chris. Another great video really helpful insight into VM Windows on Linux. Sick of the background downloads and updates taking out my work environment which is Windows 10. Using Win 10 for the reasons you explained in your video. I need Windows 10/11 to test network connections and programs. Now I can stay in Linux (I'm a nubie) do the system/network set up and use Windows to test after the updates are done. FYI. on more than one occasion I could not use my Laptop for over 4 hours while Windows updated at a customer site.
THANK YOU MY BROTHER FROM ANOTHER COUNTRY AND ANOTHER FAMILY!!!
What i personally like to do when i need to use windows vm is i just run it in headless mode and RDP into it with remmina, and its pretty seamless, also you can enable the multimonitor mode in remmina so it feels just like native experience.
@aeleequis
Жыл бұрын
this is actually a big brain solution
@andresstreetpunk
Жыл бұрын
virt-viewer is also good
@slavic_commonwealth
6 ай бұрын
I thought of that too, but couldn't get it working - Spice WebDAV server on guest and Remmina on host.
Yes please make this whole category as a whole series of optimizing VMs and choosing + configuring storage machine type bios type all that for each type of VM
Excellent as usual !!
Chris, you most probably don't read this but... You have a GREAT CHANNEL; I really enjoy what you are doing. Just one thing. In the corporate world, we still have 5%-10% of OS running on bare metal. There are many use cases where that is still required. Or where the technology don't work with VMs.
When you did the comparison I think you should have left RAM & CPU exactly the same during both tests so that you were comparing the differences only between qcow2 & raw disk. In addition, the qcow2 file test should have been done on the exact same hard drive as the raw test.
You a smart man Chris! Thank You
Thanks for the video!
Your VM has more resources than my laptop, no doubts it is smooth
Love it!!!! I'm a VirtualBox user and my problem is I run VirtualBox on old laptops with not a lot of "horsepower". lol Anyway, it's good to know about these tips. Thanks for posting!!!!
I haven't bothered with Windows at home in so long that I never thought about these settings. This is some really good info and could be a good option for those who are making the switch to Linux but can't completely let go of Windows yet.
@vholes2803
Жыл бұрын
Exactly my situation. Knowing the bottlenecks and workarounds in default VM installs is always useful, even if I'm just testing look-and-feel before Linux distro hopping.
Hi Chris. Thanks for the detailed explanation. That is really helpful! I just got a question on the harddrive. Can I also use my primary M2 SSD and use a partition of that drive? Or do I really need an entire physical drive? Thanks!
Thank you so much for this informative stuff
Love it. I'm considering something similar for myself with GPU passthrough so I can test and switch between various media editing software
Excellent tutorial / walkthrough Chris, thank you! I am currently using Oracle VirtualBox for my Windows 10 and it works pretty good. Are there advantages to using QEMU for virtualization in Linux? I am currently using Fedora 36 as my host.
This could be much better! Use a LVM pool, add a VirtIO SCSI controller and attach the storage to that. That way you don't need dedicated hardware but you get pretty much bare metal hardware. Also, EFI secboot is a piece of cake using libvirt! :)
You sir, are amazing! Thank you so much for this tutorial. One question, what hardware are you running? Thanks
Great video Chris, very informative. Soon enough I dont have to use my work computer at all, the only thing holding me back in Linux is the vpn we are using at my company, not working natively on linux yet. This might fix that, thanks
Thanks Chris. I’ve been toying with the idea of getting an amd 9 7950x and a nasty new gpu and running windoze as a guest for gaming. Now that I know it’s possible I wanna go all in on the one Linux box to rule them all!
Realize it might be a bit of an older video by now but have a question! When you say "pass through" the HDD, it seems you've just dedicated an SSD to it (which is nice on a desktop). If you were to store the storage file on say an NVME (say on a laptop where an additional drive would be harder), do you think the performance would be crazy different?
OK Chris, trying to work through this. I think I got the QEMU part done (the copy the commands links are very helpful). The directions on your "Setting Up Windows Inside Linux" kind of broke down at the "Optimizing Windows VM" part. Directions are kind of sketchy there. What am I supposed to do? The GitHub page is quite confusing.
what a hearty video for all beginners!
yes, it encouraged me to stop fighting with trying to get windows programs to work in xubuntu. I'll bite the bullet and set up windows on linux. Thanks a lot!
Oh my god thank you, I've been scouring the internet for literal years looking for the right way to set up VMs, always leading to dead ends and me going "well I don't really need windows that badly anyways" while hyperventilating copium xD Big, BIG thank you 👍
Great work Thank you
Hiii great video as usual!!!!, do you think that use a volume or partition of the disk for all the VM's is going to have the same final result as you did with direct disk? Thanks in advance for all
4:50 - @chris Titus tech Question: in Proxmox I have a host with 6 cores, and I'm able to allocate 6 cores to (currently) 3 VMs without issues... Is this a difference in how the software is allocating that hardware vs the software you're using here? Thanks for the vid!
This is a great guide, thank you! How do you recommend sharing a directory between the host and guest? None of the options I've found have been great (samba, experimental virtio-win drivers, NFS, just use VirtualBox)...
@andresstreetpunk
Жыл бұрын
Samba is pretty straightforward. I bridged my Ethernet connection with nmtui and now my vm is using my LAN. I just enter my samba share without problems, and with my other windows machines in my house too. it's very good because I have my things on my main linux server to distribute to the rest of windows and linux pcs
You could/should have made the storage in the 1st example virtio based, which performs way better than the generic SATA controller. You just have to load the driver during the install. If you're going to pass physical disks though, I think its considered better practice to use '/dev/disk/by-id' because /dev/sd* can sometimes shift around.
@balsalmalberto8086
4 ай бұрын
That's exactly what I did. This should be higher. Also you don't need to dedicate the entire hard drive you can do this with a single partition as well. One problem I have is windows detects my ssd as hdd and I haven't been able to fix this. 'winsat formal' should trigger a change but it does not fix. (this happened with installing to .qcow on ssd as well) I disabled defrag in the mean time.
@blkspade23
4 ай бұрын
@@balsalmalberto8086There is an option for the VM config to emulate a SSD, that would pass to windows.
Wow, great info! I always thought that one day our computers would be powerful enough to run Windows gaming through Linux. I didn't think we were there yet. Your video gives me hope that I will never need Windows for gaming again some day.
Butter R fast! 🤣. BTW this is great, well layed out and explained! Went to sub and was already subbed must of seen something a while ago I liked and didn't come accross you again till I searched out windows inside linux, today. Anyway appreciate the effort you put into this! Very helpful.
Chris I have a question ... windows host virtualbox as vm and windows 10 guest the sound is very choppy what do you recommend to solve audio issues especially when using a DAW the audio performance is really crappy ... Thx
Chris, are you using AMD CPU too? If so can you drop the name of the motherboard you're using when you start the GPU pass through? I went through this before but since I my PCI lanes were shared for nvme and GPU I couldn't blacklist my nvidia card. I don't know if this is a shared problem for GPU pass through on AMD cards
This is awesome Titus! How much horse power does the host machine have?
that's super great! thx for that! Just a question, what if I don't have a spare drive, would separate partition work?
I enjoyed your video, though exactly how relevant it is for a machine that's already 14 years old is anyone's guess. Your point about hosting an OS directly on the hard drive is definitely a good one, it's what I did to access my current Windows Vista and XP partitions from within the WinXP vm (yes, I did get it activated). In addition, virtio drivers for WinXP are a little harder to get, as the current virtio drivers only support as far back as windows 8. Additionally, I don't have 30GB of space to spare for the WDKs that building from source seems to require. Again, thanks for the video, you have plenty of good tips when using modern machines for virtual hosts.
Sweet. Thanks!
Awesome video I will try it out. Please also a GPU passthrough video next. 🙂
Awesome Video
Just a thought - is it possible to have a dual boot win/linux install but be able to load the win partition as a vm in linux? My thinking is daily drive linux and use the windows install through the vm, but if you wanted to play a game that just didn't run well enough through the loaded vm, you could reboot into the windows installation bare-metal.
I'm planning to run some Linux distro and Win 11 on my Win 10, just to test. What virtual program do you recommend? I used VirtualBox and Vmware before. Is there something better? Thanks.
Great video. I absolutely love your content. Btw if you don't mind can you explain the rational behind spice vs virtio display.
Installing on qcow is also pretty fast, as long as you configure it in virt-manger as a VirtIO disk and load the VirtIO drivers during install , which is kinda a not straight forward process. The advantage of doing installation on a qcow is due to snapshot or backup capabilities or you can just move the Windows install to a different machine, without pulling an entire drive.
qcow2 works fine with virtio drivers installed and virtio chosen as the bus type for storage. It's not really a fair comparison when you run a qcow2 with SATA on a mechanical drive and compare it to directly passing through an SSD. Also there's a bug in virt-manager that improperly assigns CPU cores. It's always a good idea to manually assign cores/threads. To really optimize, you could also allocate hugepages and pin the CPU. You might want to look in to looking-glass if you're building up a system with GPU passthrough. It's possible to use evdev or a KVM to switch IO/displays between machines, but looking glass removes that hassle.
Thanks for the guide! Did you ever got Single GPU Passthrough working?
Using RDP and remoting into the VM is also a lot faster because Windows has optimizations for running over network connections and offloads some of the rendering to the client, which benefits from the host's GPU capabilities. So things like moving windows around and opening menus is much snappier. QXL is great but on anything past Windows XP, it's a display-only driver so all the rendering is done in software and taxing on the CPU. RDP bypasses a good chunk of that, but there's just no way to get good video acceleration on Windows without some form of GPU passthrough (be it full passthrough, or GVT-g or SR-IOV). QXL with 3D acceleration for Linux VMs on the other hand is awesome, basically as smooth as running natively. Can even run games! (Although OpenGL only for now, Vulkan is still WIP).
I was watching Son of a Tech for crypto and your video was recommended afterwards. I did not know I needed you in my life. I have been binge watching your videos--so informative. I love you.
How many disk drives are you using? And how much storage capacity do you recommend having to make so many partitions? Thank you!
Nice video, I learnt a lot. Waiting the video for do it with Mac please! Cheers from Ecuador.
I have a windows vm, that I use very regularly for gaming, when i set it up I didn't have a spare drive so i made a 500gb qcow2 file, is there a way to clone that qcow2 file onto a new blank drive and make it so it's basically its own partition, or will do i have to keep it as a qcow2 file, even if i move it to another drive?
Yes please do the GPU passthrough. I live in Linux and use Virtualised Windows. However the problem is running Ableton Live 11, it lags a bit. I found that VMware didn't suffer the same as KVM.
Thank you Chris, that was very informative, as always. Do you by chance have an idea on how to establish an internet connection inside a qemu vritual machine for a host that has only a wireless card, like most laptops?
One video showing how optimize for games would be great!! Since i switched to Linux about 3 years ago i rarely play Killer Instinct (game i like a lot but i don't play anymore because i need to dual boot everytime i want to play) and this games is a Microsoft Store one. hehe. Thanks for all the content you make by the way!
@ChrisTitusTech
Жыл бұрын
Coming Soon, I just bought a 5700XT used mining card to passthrough to vm's (mainly doing it for MacOS as I want to use Final Cut Pro inside a VM), but should be able to show the Windows side of this as well.
@littlek3000
Жыл бұрын
@@ChrisTitusTech Do you only have 1 brand of card, or do you have both nvidia and AMD? I have a 1660 super, but when i replace the card with a 5500XT, and start my display manager, I only get a flashing cursor, i tried removing nvidia drivers and replacing them with AMD drivers, that didn't work, i tried the hybrid drivers, and those didn't work either. I would ultimately like both cards in my system, but I can't get the AMD card to display anything besides a tty. I also have the same problem with my integrated graphics, only my nvidia card works, no display from anything else.
@ArawnFR
Жыл бұрын
what about with only one gpu ?
@littlek3000
Жыл бұрын
@@ArawnFR With my nvidia card i get output fine, with drivers, but i only get a tty with my igpu, or the AMD card, with or without prop drivers, or noveau drivers.
@ArawnFR
Жыл бұрын
@@littlek3000 yeah but you can’t access your gpu on your host and vm unless you unload your graphics card on the host, that’s the real hard part
Hey Titus, you have any experince with intel xeon (with x99 chinese mobo paired with xeon e5) for simple virtualization like this? I really love linux but i just can't leave adobe ecosystem (use it for work). Currently dual booting linux and windows in my machine (gen 3 i5), haven't tried dedicating entire hard disk for a vm tho, but for a cheap upgrade, is it worth to save some money and get a xeon build, or just get a more modern system (maybe am4 or intel lga 1700 or even lga 1200)? I live in Asia so x99 mobo kinda cheap here
WoW! Linux, Windows, Mac together would be amazing.
Thank you, Chris. Like keeping a skunk under your porch. Seriously though, good information.
hi chris! great video! i've been having some issues, how can i virtualize a nvme drive with win10 already installed? i keep getting bluescreens on boot with virt-manager and virtualbox, i'm following similar steps for pci passthrough...
Thanks for the video Chris! Really helpful for me since I only need Windows for one specific program where I have to test it at work. Could you also post some commands to do the same thing on Fedora? I tried but some things ended up missing, if that's not too much different.
During installation process what other types of formats does it let you choose from except qcow2?
Hey Chris-- does having dual-channel going help VM's? Daughter's newish laptop has 1 16GB stick/2 slots. Will she see better performance at 32? I've told her to run Mint w/Win11 guest. Just getting those ducks in order. xx Thank you, from AU!
Chris, Irecently found your channel. As a PC Technician troubleshooting Windows professionally for 11 years and heavily steep in hardware configurations, I say, it's a rarity to find a youtuber that knows, in detail, what he or she is talking about. Anyway, my interest here is possibly leveraging your intimate knowledge to determine the minimal Linux support needed to run qemu, with and without virt-manager. If the challenge sounds fun to you, would you do a video on that setup" perhaps on Arch?
Are you not able to swap isos in the virtual CD drive while the VM is running? Most virtualisation platforms allow you to do that, and the vm just thinks you ejected the CD and put a new one in.
Do you need 2 separate video cards if you want to pass through? One for Linux and the other one for Windows?