[libvirt-users] p2v a single bootable partition

Hello How to convert a bootable linux partition to virtual disk ? I tried : |dd if=/dev/sda1 of=/mnt/mydisk3/sda1.raw| |||qemu-img convert -f raw -O qcow2 sda1.raw sda1.qcow2| |but the disk ||sda1.qcow2|is not bootable The second partition contains data and is very large, so I want to check the process with the system partition Arnaud

On Wed, Mar 30, 2016 at 11:06:57AM +0200, arnaud.bougeard@univ-rennes1.fr wrote:
Hello
How to convert a bootable linux partition to virtual disk ? I tried :
|dd if=/dev/sda1 of=/mnt/mydisk3/sda1.raw|
|||qemu-img convert -f raw -O qcow2 sda1.raw sda1.qcow2|
|but the disk ||sda1.qcow2|is not bootable
The second partition contains data and is very large, so I want to check the process with the system partition
https://rwmj.wordpress.com/2010/09/30/technique-for-synthesizing-a-partition...
Arnaud
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users

I have this error using this procedure to create a niked filesystem running the line : echo -e "unit: sectors\n\n/dev/sda1 : start=63, size=$sda1size, Id=7" | sfdisk --force /dev/loop0 /Checking that no-one is using this disk right now ... OK// // //Disk /dev/loop0: 31.5 KiB, 32256 bytes, 63 sectors// //Units: sectors of 1 * 512 = 512 bytes// //Sector size (logical/physical): 512 bytes / 512 bytes// //I/O size (minimum/optimal): 512 bytes / 512 bytes// // //>>> Script header accepted.// //>>> Created a new DOS disklabel with disk identifier 0x6888d234.// //Start sector 63 out of range.// //Failed to add partition: Numerical result out of range// //Leaving./ Le 30/03/2016 13:23, Martin Kletzander a écrit :
On Wed, Mar 30, 2016 at 11:06:57AM +0200, arnaud.bougeard@univ-rennes1.fr wrote:
Hello
How to convert a bootable linux partition to virtual disk ? I tried :
|dd if=/dev/sda1 of=/mnt/mydisk3/sda1.raw|
|||qemu-img convert -f raw -O qcow2 sda1.raw sda1.qcow2|
|but the disk ||sda1.qcow2|is not bootable
The second partition contains data and is very large, so I want to check the process with the system partition
https://rwmj.wordpress.com/2010/09/30/technique-for-synthesizing-a-partition...
Arnaud
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users
participants (2)
-
arnaud.bougeard@univ-rennes1.fr
-
Martin Kletzander