Wiki source for Blog20120303Virtualization

Show raw source

===Some links about virtualization===


cf. for initial work done to virtualize windows using VirtualBox

===Virtualizing Windows XP on disk to VirtualBox===
(no success so far, still a black screen :/)

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%%

%% cd /media/data1/vm/
mkdir vmwinmount
mount -o loop vmwin.dd /media/data1/vm/vmwinmount # and the partition is available for modification

%%# mount
/dev/sda5 on / type ext4 (rw,noatime,acl,commit=600)
none on /proc type proc (rw)
/dev/sda7 on /media/data1 type ext4 (rw,noatime,acl,commit=600)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
gvfs-fuse-daemon on /home/baud/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=baud)
/dev/loop0 on /media/data1/vm/vmwinmount type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)

%%du -k ; du -m ; du -h # shows (kB, MB, GB...)

At approximately 70 MB writing on disk, it should end up in 5 min (well, yes it took 5 min :D)

%%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)...%%

first boot of VM newly created using vmwin.vdi results only in a black screen and 1 CPU running at 100% till stopping the VM :/ some possible reasons : boot.ini configured with the parameter /burnmemory = 4096, the RAM is reduced to 4 GB (reduces the RAM another 4 GB, which leaves the virtual machine with 0 GB of RAM o_O) migration with VMware, driver lsilogic vs ide...

Seem the option for ##VBoxManage## has changed:
%%VBoxManage convertfromraw vmwin.dd vmwin.vdi
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
available for the current kernel (3.3.8-desktop-2.mga2) or it failed to
load. Please recompile the kernel module and install it by

sudo /etc/rc.d/init.d/virtualbox start

You will not be able to start VMs until this problem is fixed.
Converting from raw image file="vmwin.dd" to file="vmwin.vdi"...
Creating dynamic image with size 17708995584 bytes (16889MB)...

reasons for black screen of death when migrating windows xp to VirtualBox
looking for the reason why I've got a black screen, cursor blinking when first booting windows migrated to VirtualBox

apparently not related due to upgrade due to guest additions due to upgrade blue screen when moving VM

intelppm.sys virtualbox There are a few Windows device drivers that does not play nice on VirtualBox' hardware. A similar problem may exist with intelppm.sys, which can also cause a hang of the guest OS.

===Trying yet another time===
Some objectives:
~- using the dd I made of a physical installation (not available any more :/)
~~- convert it to a VM usable under GNU/Linux
~~- launch visio for example, office eventually
~~- map the C: and D: (data, My Documents) drives correctly
~~- edit necessary .ini files (D: drive for example)
~- debug boot even though I get a black-screen of death (there might be some log, somewhere)
~- reduce the size of the VM: 12 GB is a bit huge, it corresponds to a ##dd if=/dev/sda1 of=vmwin.dd## there is unused space imho, 4 or even 8 GiB would be better :)
~- launch visio on the .dd file from wine ? (using the original registry for example?)
~- try p2v with qemu or KVM, maybe VirtualBox will do it in the end?

%%md5sum vmwin.*
2e795421f05f0140be240182c7e39551 vmwin.dd
066303a8b37a2a178f378413741d838d vmwin.vdi%%
I made a backup to my USB drive, formatted as ext4 (better for files 12 GiB large... than fat32)
%%df -h .
Sys. fich. Taille Util. Dispo Uti% Monté sur
/dev/sda7 50G 44G 4,1G 92% /media/data1%%
hmmm I won't be able to work on this, copying on another laptop ;-)

=== some more links === other searches

=== software installed for virtualization ===
%%rpm -qa|grep -iE "virt|vbo|emu"|grep -v virtuoso|sort

Valid XHTML :: Valid CSS: :: Powered by WikkaWiki