User Tools

Site Tools


software:virtualbox

This is an old revision of the document!


http://www.virtualbox.org/

http://download.virtualbox.org/virtualbox/3.2.6/VirtualBox-3.2.6-63112-Linux_x86.run

sh VirtualBox-3.2.4-62467-Linux_x86.run &&
rm /etc/rc.d/rc*/*vboxdrv

reinstalling the vboxdrv and vboxnetflt kernel modules

cd /opt/VirtualBox-*/src &&
make &&
make install

mounting a vdi

I have a dynamically expanding virtual hard disk (vdi).
Extract the real data:

VBoxManage internalcommands converttoraw input.vdi output.raw

Get the offset:

sfdisk -luS output.raw
Disk output.raw: cannot get geometry

Disk output.raw: 1305 cylinders, 255 heads, 63 sectors/track
Units = sectors of 512 bytes, counting from 0

   Device Boot    Start       End   #sectors  Id  System
output.raw1   *        63  20948759   20948697   7  HPFS/NTFS
output.raw2             0         -          0   0  Empty
output.raw3             0         -          0   0  Empty
output.raw4             0         -          0   0  Empty

The offset is startsector * sectors size, in this case: 63 * 512 = 32256
I installed Windows XP to the virtual hard disk (vdi) , which uses NTFS as filesystem.

mount -t ntfs -o ro,noatime,noexec,loop,offset=32256 output.raw /mnt/some_mount_point
software/virtualbox.1277626066.txt.gz · Last modified: 2010/06/27 10:07 by kratz00