I've spent 3 weeks trying to solve this, but to no avail. I'm aware of the many posts on this topics.
I've already read and tried at least:
Migrate from a virtual machine (VM) to a physical system
Convert VirtualBox (VM) Machine TO Physical Drive
DD tutorial - how to clone, backup and restore disks and partitions
restore using dd will not boot
I've created a lubuntu 20.04 with certain packages and files in a VM.
But I can't install it into a physical laptop (need to make many identical laptops with same configs). I can wipe all drives so I don't need to worry about dual boot.
Steps I've taken:
VM system: virtual box 7.0 (created a lubuntu 20.04), 10Gb
Laptop system: 125Gb (want to install lubuntu 20.04 with files/packages)
- Created a lubuntu VM with fixed partition (not dynamic allocation)
- I've created an .img and tried both with
VBoxManage...
and dd
within the VM.
- Booted into a Live usb installed lubuntu on the laptop disk then
dd
the img file into sda
(the disk not sda1)
When I run lsblk
the boot partition is missing unlike the results of Convert VirtualBox (VM) Machine TO Physical Drive.
- I've tried to offset and install the MBR but the VM does not have a boot partition only sda1
- I've tried
install-mbr
(but not in depth)
At this point and age I feel that this is important enough that there's a tool. It looks like that this question has been asked for over a decade.
Thanks : )