


This obviously fails to start (qemu-kvm says geom error when attempting to boot). dd if=/dev/sdc1 conv=sync,noerror bs=100M of=/data/system.imgĬonverted the raw image to qcow2 on my new U18.04 system (both images reside on an ext4 data partition separate from the OS): qemu-img convert -f raw -O qcow2 system.img system.qcow2 I cloned my current OS (Ubuntu10.04) from a single partition on an unmounted SSD. I have no idea why the valid partition is not seen. And checking 'file d.img' before and after shows a difference, so maybe that is where it breaks, even though I can mount it again and again & fdisk shows the same data before and after:īefore: d.img: DOS/MBR boot sector partition 1 : ID=0x83, active, start-CHS (0x0,32,33), end-CHS (0x275,145,28), startsector 2048, 92364800 sectors One thing I did differently to the article I got inspired from is that I used the local (old) grub-install (in the chroot), instead of the host's system. Stops under grub_rescue, stating that it does not recognise the UUID as above, and what I can see is: > ls So I can definitely see the image, but somehow GRUB in qemu fails to see the partition: > qemu-system-x86_64 d.qcow2 > qemu-img convert -f raw -O qcow2 d.img d.qcow2 > exit # come out of the chroot environment # uncomment swap and /data, just keep the root partition (which includes /boot) Re-create the partition (n (+all defaults, said no to removing the existing ext4 signature), a (make bootable), w) > file d.imgĭ.img: DOS/MBR boot sector partition 1 : ID=0x83, active, start-CHS \ > fdisk d.img # to initialise the header suitably (create the partition) > pv system.img > d.img # to paste sdc1 onto that header To start with a normal modern system header (starting with a blank slate with 2048 blocks of 512 bytes) - but unlike my old system which only had one 512-byte block.
#Best iptv app for ipad full
I reconstructed a full disk image: > dd if=/dev/zero of=d.img count=1 bs=1MiB

To create a VM with only the first partition, I got inspiration from the following article: Technical notes: convert a partition image to a bootable disk image. The original SSD is as follows: > sfdisk -d /dev/sdc I cloned my working OS (powered off, HD mounted on USB drive, > dd if=/dev/sdc1 of=/data/system.img
