The goal is to start an allready installed windows7 with KVM. To do this I've found this documentation:
use-a-real-windows-7-partition-in-virtualbox-kvm-vmware-player
A prerequisite is to create a virtual disk only containing a partition table. This partition table should point to real partitions on the disc. This is the currently used partition table:
Code:
~# fdisk -l /dev/sda
Disk /dev/sda: 465,8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x16a708a6
Device Boot Start End Sectors Size Id Type
/dev/sda1 63 80324 80262 39,2M de Dell Utility
/dev/sda2 * 81920 25767935 25686016 12,3G 7 HPFS/NTFS/exFAT
/dev/sda3 25767936 557957119 532189184 253,8G 7 HPFS/NTFS/exFAT
/dev/sda4 557959166 976771071 418811906 199,7G 5 Extended
/dev/sda5 557959168 573581311 15622144 7,5G 82 Linux swap / Solaris
/dev/sda6 573583360 976771071 403187712 192,3G 83 Linux
The problem is, that this real partition table starts at sector 63. But when I want to create this partition table with "fdisk" it will start at sector 2048. I tried allready a lot, but was not able to create a partition table that points to the correct entry points of the real partitions.
Does anybody know, how I can create a valid, virtual partition table that works?
According to the document the partition table is valid, when I can mount the real partition with
Code:
mount /dev/md0p2 /mnt -oro
But this gives me only the following output:
Code:
~# mount /dev/md0p2 /mnt -oro
mount: wrong fs type, bad option, bad superblock on /dev/md0p2,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so.
Any help would be apreciated.