VM Triple boot Windows and Linux from SAME VM


jimbo45

Well-known member
Pro User
VIP
Local time
9:44 AM
Posts
5,861
Location
Hafnarfjörður IS
OS
Windows XP,11 Linux Fedora Rawhide pre-release 45
Hi folks
Adding on to booting different releases of Windows from a SINGLE VM you can also boot a different OS also from the same VM

so as before create the original VM with a large disk, EFI, MSR, and large enough NTFS partition for your Windows systems
Install all Windows systems FIRST.

Restart the VM :
Boot windows install ISO / WINPE / Stand alone partition manager to create extra partitions for the 2nd OS -- assume LINUX.
Reboot with Linux install ISO and install -- install GRUB to the EFI partition -- the one on the main disk - don't create any EFI partitions on the extra partitions you define for the Linux VM. (see your Linux distro install instructions on Linux install)

Now reboot and select the bottom of the screen and using the extra options you'll see GRUB - this will then boot your Linux distro.

So from one single VM you can boot totally different OS'es. For backup of Windows just either save the vmdx files or run Macrium from within the VM (or equivalent) For Linux just boot up a Linux install iso and save the partitions (usually / (root) and /home are sufficient - you don't need a separate /boot partition normally.

For new installs of Windows simply use dism /APPLY-IMAGE and update the boot manager / create a new vhdx file if you want to add another Windows installation, for Linux install, including grub.

I haven't been able yet to make this work on a WINDOWS HOST with VMWare - it might be possible with HYPER-V --- anybody tried it yet.

No problem though with KVM on Linux host

It seems that the edmk virtual boot manager can pass control to the boot manager on the EFI partition which then shows the classic Windows boot menu (assuming more than one OS). I think the VMWare boot manager isn't written in that way but maybe someone can have a go with it on a WINDOWS Host.

IMO doing this makes managing VM's a lot simpler -- one VM for triple, quadruple etc boot and essentially running on native I/O it's much more performance snappy than "Classical methods" creating a different VM for each system.

Cheers
jimbo
 

My Computer My Computer

At a glance

Windows XP,11 Linux Fedora Rawhide pre-releas...2 X Intel i7
OS
Windows XP,11 Linux Fedora Rawhide pre-release 45
Computer type
PC/Desktop
CPU
2 X Intel i7
Screen Resolution
4KUHD X 2
Why on earth would you put multiple OSs in a single vhd requiring you to have multiple partitions in that vhd!

Far easier to just have a single vhd per OS and add a boot entry to the primary vm that contains the required bcd. There is no (reasonable) limit to how many vhds you attach to a hyperV vm.

With multiple dynamically expanding vhds, you will minimise storage space.

Also, if separate, if one installation gets corrupted, it does not affect the other vms (other than a minor bcd boot tidy up needed.

Also, it gets confusing when you refer to vms when you mean vhds. VM is the virtual equivalent of pc, vhd is virtual equivalent of a drive that you attach to vm.
 

My Computer My Computer

At a glance

Windows 11 Pro + Win11 Canary VM.I9 13th gen i9-13900H 2.60 GHZ16 GB solderedIntegrated Intel Iris XE
OS
Windows 11 Pro + Win11 Canary VM.
Computer type
Laptop
Manufacturer/Model
ASUS Zenbook 14
CPU
I9 13th gen i9-13900H 2.60 GHZ
Motherboard
Yep, Laptop has one.
Memory
16 GB soldered
Graphics Card(s)
Integrated Intel Iris XE
Sound Card
Realtek built in
Monitor(s) Displays
laptop OLED screen
Screen Resolution
2880x1800 touchscreen
Hard Drives
1 TB NVME SSD (only weakness is only one slot)
PSU
Internal + 65W thunderbolt USB4 charger
Case
Yep, got one
Cooling
Stella Artois (UK pint cans - 568 ml) - extra cost.
Keyboard
Built in UK keybd
Mouse
Bluetooth , wireless dongled, wired
Internet Speed
900 mbs (ethernet), wifi 6 typical 350-450 mb/s both up and down
Browser
Edge
Antivirus
Defender
Other Info
TPM 2.0, 2xUSB4 thunderbolt, 1xUsb3 (usb a), 1xUsb-c, hdmi out, 3.5 mm audio out/in combo, ASUS backlit trackpad (inc. switchable number pad)

Macrium Reflect Home V8
Office 365 Family (6 users each 1TB onedrive space)
Hyper-V (a vm runs almost as fast as my older laptop)
Why on earth would you put multiple OSs in a single vhd requiring you to have multiple partitions in that vhd!

Far easier to just have a single vhd per OS and add a boot entry to the primary vm that contains the required bcd. There is no (reasonable) limit to how many vhds you attach to a hyperV vm.

With multiple dynamically expanding vhds, you will minimise storage space.

Also, if separate, if one installation gets corrupted, it does not affect the other vms (other than a minor bcd boot tidy up needed.

Also, it gets confusing when you refer to vms when you mean vhds. VM is the virtual equivalent of pc, vhd is virtual equivalent of a drive that you attach to vm.
Hi there
I explained it badly.

I have a SINGLE HDD with a load of vhdx files in it and boot entries for the VM's in the efi boot file. If one vhdx gets corrupted etc - just delete it, re-create if required and update bcdboot.

Problem with HYPER-V it doesn't like booting Linux VM's either from the main bcdboot file from the same VM that windows is in unless you mess around with something like this which gets messy. :

There's 2 windows boot options since I'm running the boot from an external HDD. So one for the internal HDD and one for the external HDD. When running totally from the internal HDD there's only the single boot manager entry which can boot as many VHDX files as required. As for storage saving etc - moot point whether to "dynamically expand" or use fixed storage. I've got a whole slew of SSD's so storage space isn't really an issue and it avoids defragmentation on VM storage.
Screenshot_20220124_143041.png

The object of the exercise is to get to this : FROM WITHIN the VM.

boot.png

Cheers
jimbo
 
Last edited:

My Computer My Computer

At a glance

Windows XP,11 Linux Fedora Rawhide pre-releas...2 X Intel i7
OS
Windows XP,11 Linux Fedora Rawhide pre-release 45
Computer type
PC/Desktop
CPU
2 X Intel i7
Screen Resolution
4KUHD X 2

Latest Support Threads

Back
Top Bottom