Hi, I’m an old windows user who have played with linux* a few times, but never commited to it.

I want to dive deeper and I though about installing linux in a VM. Some basic questions:

  • Is that a good idea? / Anything I should take into account?
  • Is there any preferred VM manager for this? Windows comes with Hyper-V, but I remember reading about how Hyper-V is not ideal (I could be wrong).
  • Do different distributions work better or worse on VMs?
  • Are there any major differences when using linux in a VM compared to a bare metal installation?

And some not-so-basic ones:

  • Is there any [dis]advantage to “Linux VM on Windows” VS “Windows VM on Linux”?
  • If I start with “Linux VM on Windows”, would it be possible to swap them in the future? What I mean is:
    • Virtualize the Windows installation so it can be run as a VM.
    • Un-virtualize the Linux VM (with all its contents and configuration) and move it to bare metal.
    • Run Windows VM on linux.

Notes:

  • I did a quick search and, although I found multiple articles about the topic, the ones I’ve read just show one way to do it without comparing it to the alternatives.
  • I’m aware of WSL(2), but I would like to be able to decouple from Windows in the future.
  • EIDT: I tried dual booting in the past. The main problem is that I’m too lazy to reboot every time I want to try something in linux and I end up not using it.

Thanks!

* Mandatory linux = GNU/Linux

You are viewing a single thread.
View all comments
8 points

Is this a good idea?

Sure!

any preferred VM manager

I like Virtualbox.

  • Do different distributions work better or worse?

Depending on your specs, you may want to go lighter than you would on bare metal. For example, if you have 16 GB of RAM, you might want to only give your VM 4 GB of RAM so Windows can run on 12 GB, and then pick a lighter distro so it won’t be slow on 4 GB.

Any major differences?

Snapshots are way easier in a VM.

Advantage/disadvantage

Windows VM on linux is painfully slow and doesn’t have a license, so it’s much less good than linux VM on Windows IMO.

Would it be possible to swap?

Not as far as I’m aware, but smarter people than me have probably done it.

permalink
report
reply
1 point

Depending on your specs, you may want to go lighter (…)

Good point regarding balancing hardware resources.

Windows VM on linux is painfully slow and doesn’t have a license, so it’s much less good than linux VM on Windows IMO.

Good to know.

Thanks!

permalink
report
parent
reply
9 points

You can license Windows in a VM, you can grab your Windows license from the UEFI system using a command:

sudo strings /sys/firmware/acpi/tables/MSDM

permalink
report
parent
reply
5 points

Windows vm on a Linux box is not painfully slow. It’s about the same as native, where did you get this idea?

permalink
report
parent
reply

Linux

!linux@lemmy.ml

Create post

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Community stats

  • 9.5K

    Monthly active users

  • 5.9K

    Posts

  • 162K

    Comments