this post was submitted on 26 Nov 2024
13 points (100.0% liked)
Linux 101 stuff. Questions are encouraged, noobs are welcome!
1086 readers
1 users here now
Linux introductions, tips and tutorials. Questions are encouraged. Any distro, any platform! Explicitly noob-friendly.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Sure, why not?
You can run Windows in a VM in Linux, or Linux in a VM in Windows, whichever way you need to go. It's done all the time in the business world.
Lots of the machines I use are just VMs. In the early 2000's, VM systems enabled running apps in a VM but appeared like they were running on the host - you launch the app via a shortcut, but it actually launches the VM where the app is installed.
KVM (Kernel Virtual Machine, Linux native virtualization) is so performant that even VMware has switched to it for their VMware Workstation virtualization.
So run your Linux desktop, and build a Windows VM using KVM.
I can't use a Windows VM for this as I need GPU passthrough for the app I'm trying to run and I can't do GPU passthrough without a second dedicated video card
So, running linux in a VM under windows is the next plan, but I've been running linux for 6 months now, and don't want to maintain a second brand new install in the VM, but rather, I would like to spin up my existing local linux install in a VM when I'm forced to boot in to windows, and that's what I'm asking about. I don't know if that's possible.
It should be.
VMware had Physical-to-Virtual tools 15 years ago. Since then I've used a few other tools.
I'm sure there's open-source, or Linux-based P-to-V tools today, I haven't looked into it. That's what you want to search for though.
Essentially you need a tool that can make an image of a disk. Which the Virtualization system can then mount and use as a virtual machine. There's a few standard disk image formats today, and most products today support them all to some degree.
I wouldn't be surprised if KVM had this built in.
VMware has their own vCenter Converter Standalone tool, and theres also others like clonezilla. And here's a KVM single GPU passthrough tutorial. KVM doesn't have built in p2v conversion, but it's preferred for GPU passthrough