我有一个硬盘,里面有一个 Windows 分区和一个 Fedora 19 分区。是否可以使用工具(例如virt-p2v
)将 Windows 安装转换为 Fedora 上的虚拟机?
磁盘详细信息:
root@host / $ fdisk -l /dev/sda
Disk /dev/sda: 500.1 GB, 500107862016 bytes, 976773168 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
Disk label type: dos
Disk identifier: 0x787cf056
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 1023999 510976 7 HPFS/NTFS/exFAT
/dev/sda2 1024000 210739199 104857600 7 HPFS/NTFS/exFAT
/dev/sda3 210739200 211763199 512000 83 Linux
/dev/sda4 211763200 976773167 382504984 5 Extended
/dev/sda5 211765248 976773119 382503936 8e Linux LVM
root@host /root $ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/fedora-root 50G 32G 15G 69% /
devtmpfs 3.9G 0 3.9G 0% /dev
tmpfs 3.9G 2.7M 3.9G 1% /dev/shm
tmpfs 3.9G 944K 3.9G 1% /run
tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
tmpfs 3.9G 148K 3.9G 1% /tmp
/dev/sda3 477M 120M 328M 27% /boot
/dev/mapper/fedora-home 307G 200G 92G 69% /home
答案1
将分区从物理分区转换为图像分区很简单:
kvm-img /dev/sda1 /home/sda1.img
之后,请阅读http://fds-team.de/cms/articles/2013-12/use-a-real-windows-7-partition-in-virtualbox-kvm-vmware-player-u.html文章解释了其余部分。