HOW TO - Bare Metal: Dual Boot EVE-NG and Windows (No Hypervisor)

Before posting something, READ the changelog, WATCH the videos, howto and provide following:
Your install is: Bare metal, ESXi, what CPU model, RAM, HD, what EVE version you have, output of the uname -a and any other info that might help us faster.

Moderator: mike

Post Reply
Dmeist
Posts: 1
Joined: Wed Jan 04, 2023 11:13 pm

HOW TO - Bare Metal: Dual Boot EVE-NG and Windows (No Hypervisor)

Post by Dmeist » Fri Jun 28, 2024 10:57 pm

Install eve-ng bare metal. This will take up your entire drive (there are no partition options). If you had Windows or any other OS installed, kiss it goodbye.

Once the install is complete login with:

Username is root

Password is eve

Complete the setup wizard

Once the wizard is complete, shutdown the computer

Use a usb key and boot into gparted live environment: https://sourceforge.net/projects/gparte ... o/download

Do not just download the latest version of gparted live, you must use version gparted-live-1.3.1-8-amd64.iso (some dependencies are missing for lvm2 on the latest version)

Once you're in the live environment, open the terminal and run

sudo lvreduce --resizefs --size 300G /dev/ubuntu-vg/ubuntu-lv

This command will reduce the partition to 300 gigabytes and the remainder will be unallocated. Obviously you don't have to use 300G, change it to whatever you want.

Open GParted, look for the partition that has a file system of lvm2 pv. Right click it and choose Resize/Move. At the top of the window you'll see a long rectangle that represents the partition. On the right side of the rectangle hover your mouse until it turns into ↔️, then click and drag the partition border to the left until it stops. This will leave your 300G lvm2 partition intact and the remaining will be unallocated. Click Resize, then click the checkmark in the toolbar to submit the operation. Click apply

You're now ready to install Windows

When it asks, "Which type of installation do you want?", choose Custom: Install Windows only (advanced)

Highlight the line that contains "Unallocated Space" and click next to install Windows

That's it! Someone smarter than me could probably figure out how to have a grub boot menu pop up so you can choose what to boot into. For now, I just boot into bios and manually select my boot volume.

Post Reply