this post was submitted on 20 Aug 2024
72 points (95.0% liked)

Linux

48209 readers
1537 users here now

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

Related Communities

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

founded 5 years ago
MODERATORS
 

This might sound daft, but something similar used to work with live discs.

I've got Windows 10 and Mint 21.1 dual booting on my computer at the moment. Every so often I'll realise that I've missed something from my Windows installation. If it's important, I then have to boot to Windows to get the information, or the settings etc.

Is there a way to virtualise my Mint installation so that I can run both the OSs at once to make sure that I've got everything?

VirtualBox had a tool to do this with a live USB, but that was back in the MBR days, so it probably won't work with modern hardware.

EDIT: Sorry, I should clarify, Mint and Windows are on the same physical disk, and the plan is to remove Windows once I'm done.

Update: I'm giving up. It looks like it is possible if you have separate disks with separate boot partitions, but getting it to work with a shared boot partition is harder work than I'm willing to do right now.

VMware Player can use a partition or disk, but might be in read only mode, I couldn't get far enough to check.

Thanks for all the replies :)

you are viewing a single comment's thread
view the rest of the comments
[–] kitnaht@lemmy.world 1 points 2 months ago* (last edited 2 months ago) (1 children)

It's literally been built into windows since Windows 10, natively.

Can you access another partition on the drive and boot it? I'm sure it's possible somehow. The VM part isn't really the problem here.

[–] Tippon@lemmy.dbzer0.com 1 points 2 months ago (1 children)

You might be misunderstanding what I want to do. I want to boot my existing Mint partition as a VM under Windows, not make a new VM with its own drive.

From what I can tell, it might be possible if the distro is on its own drive with its own boot partition, but my Mint installation is on a partition on the same drive as Windows, and they share the same boot partition.

[–] kitnaht@lemmy.world 3 points 2 months ago* (last edited 2 months ago) (1 children)

Didn't misunderstand at all, you just used different wording.

You want to utilize an existing partition on the drive, as a VM image and boot it while you're in Windows.

The answer is yes, you can. Again, the VM part isn't the problem here. Virtualbox can do it, but they require some major workarounds in order to do.

https://www.neowin.net/forum/topic/784138-howto-boot-existing-ubuntu-partition-using-virtualbox-inside-windows/

This is just one example out of many out there on Google. Understand that the commands here are NOT making a new drive image. They are making a drive image FILE that is specially formatted with the tools to point to the existing partition on the drive. VMWare can do this, QEMU can do this, Virtualbox can do this... you're just making a VM image, where the data points to an actual hard existing partition on the drive.

Once again -- This is NOT making a new VM with its own drive, even though the command looks similar. I'm sure HyperV can do it as well, I'm simply not familiar enough with its packaging.

[–] Tippon@lemmy.dbzer0.com 1 points 2 months ago

Apologies, yes, I did misunderstand you.

I got VMware to recognise the partition, but it couldn't boot it. Everything I found said that the distro needed to be on a separate drive with its own boot partition. I found threads saying that VirtualBox couldn't do it either, but I'd be happy to be wrong :)

I'm not at my computer now, so won't get a chance to try it for at least a few hours.

Thanks for the link and the information :)