Revision [3914]
This is an old revision of VirtualBoxWindows made by BaudAdmin on 2012-02-16 00:54:32.
My requirements for P2V Windows XP to VirtualBox
Here are several of my requirements :- existing installation of windows XP on /media/system partition (NTFS) which can be seen from MandrivaLinux (installed on the same laptop)
- I do not want to tamper with existing installation of XP, if not booting it is possible, that would be fine for me (in order to do everything from GNU/Linux)
- the existing partition for Windows is 49 GB (with only 13 GB used), if the resulting image with VirtualBox is ~14 GB it will be fine (I have not that much disk to dedicate to the operation, though resizing/shrinking the current windows partition is still possible...
Sys. de fichiers Taille Uti. Disp. Uti% Monté sur /dev/sda7 27G 23G 3,0G 89% / /dev/sda5 32G 5,9G 27G 19% /media/data # data (used both by windows & GNU/Linux) /dev/sda1 49G 13G 37G 26% /media/system # system (only used by windows)
Some documentations
http://www.virtualbox.org/wiki/Migrate_Windows found among many tutorialshttp://www.vmware.com/products/converter/
http://www.artiflo.net/2009/01/convertir-une-image-virtuelle-vmware-vmdk-dun-windows-en-virtual-box-vdi/
http://forums.virtualbox.org/viewtopic.php?t=1404 some questions in my context : how to start from already installed windows to create a vdi, does not seem trivial (not yet tried)
http://blog.subaquatic.net/archives/virtualbox-p2v-success/ o_O using VMware free (as in free beer) tools, why not use VirtualBox tools ?
http://forums.virtualbox.org/viewtopic.php?t=9697
http://ubuntuforums.org/showthread.php?t=769883
http://forums.virtualbox.org/viewtopic.php?t=1966 manage VDIs and import native installations
http://forums.virtualbox.org/viewtopic.php?t=1404
Simple version
http://regx.dgswa.com/html/content/how-move-windows-virtualbox that shouldn't work as easily...fdisk -l dd if=/dev/sda1 of=/data/vm/xp.dd # change /data/vm to the actual directory VBoxManage convertdd /data/vm/xp.dd /data/vm/xp.vdi
http://www.pjsquared.com/blog/?p=169 another method with vmconverter by VMware which should work better
For 16 GB : begin at 22h27 of dd, end at 22h38 (apparently I've got 50 MB I/O throughput which should take me approximately 5 minutes to end up, or rather 10 minutes if I/O include read/writes : 16 GB * 1024 / 50 MB/s / 60 seconds * 2 to get the result in minutes )
ok confirmed :
[root@localhost vm]# dd if=/dev/sda1 of=vmwin.dd 34587882+0 enregistrements lus 34587882+0 enregistrements écrits 17708995584 octets (18 GB) copiés, 695,955 s, 25,4 MB/s
du -k ; du -m ; du -h # shows (kB, MB, GB...)
17293952
16889
17G
- At approximately 70 MB writing on disk, it should end up in 25 min
VBoxManage convertdd vmwin.dd vmwin.vdi Converting from raw image file="vmwin.dd" to file="vmwin.vdi"... Creating dynamic image with size 17708995584 bytes (16889MB)...