[Solved] P2V of a Linux system
Posted: 18. Oct 2021, 10:22
I have been messing about with a friend's HP Stream that is running a Debian Linux (not sure exactly what version ATM but it probably doesn't matter). I want to install a different Linux distribution on it but before I do so I thought I'd P2V it so we can go back and run it up on VirtualBox if we ever need to. These systems don't have a hard drive, just a 32GB MMC memory module. I booted off a live Linux USB (Ubuntu 21.04 Hirsute Hippo) so that the MMC would not be mounted and did a:
which shows the disk as /dev/mmcblk0 31268536320 bytes long with a GPT.
It also lists three partitions: a 25GB Linux filesystem, a 4.1GB Linux swap partition and some sort of 65MB vestigial Windows recovery partition. I put the whole lot on an external drive with:
This showed 31268536320 bytes transferred as expected.
I took the external drive to another Ubuntu 21.04 Hirsute Hippo system with VirtualBox installed and ran:
in the appropriate folder and the skipper.vdi file was created without complaint. I created a new Ubuntu VM in VirtualBox, attached the vdi and booted. I get the "Press F12 to select boot device." which times out and then complains "FATAL: No bootable medium found! System halted."
I tried messing around with the F12 menu: same result. I messed around with the VirtualBox System | Motherboard | Boot Order: same result.
I'm clearly making some sort of obvious basic error but I'm really not sure what it is - can anyone point out where my thinking is faulty?
Cheers!
Code: Select all
sudo fdisk -l
It also lists three partitions: a 25GB Linux filesystem, a 4.1GB Linux swap partition and some sort of 65MB vestigial Windows recovery partition. I put the whole lot on an external drive with:
Code: Select all
sudo dd if=/dev/mmcblk0 of=/media/ubuntu/76F22501F224C769/skipper/mmcblk0.img bs=4096 conv=sync,noerror status=progress
I took the external drive to another Ubuntu 21.04 Hirsute Hippo system with VirtualBox installed and ran:
Code: Select all
vboxmanage convertfromraw mmcblk0.img skipper.vdi
I tried messing around with the F12 menu: same result. I messed around with the VirtualBox System | Motherboard | Boot Order: same result.
I'm clearly making some sort of obvious basic error but I'm really not sure what it is - can anyone point out where my thinking is faulty?
Cheers!