Formatting code for VirtualBox


show source only

{{parent page="HomePage"}}

===VirtualBox===
http://www.virtualbox.org

==Building kernel module for vbox==
Platform Fedora 9 on custom kernel 2.6.25.5

%%
cd /usr/src/linux
make oldconfig
make prepare
make -j2
/etc/init.d/vboxdrv setup
%%

==Configuring NAT==
Port 2201 on host machine will be forwarded to port 22 on guest
%%
VBoxManage setextradata "bsd7" "VBoxInternal/Devices/e1000/0/LUN#0/Config/guestssh/Protocol" TCP
VBoxManage setextradata "bsd7" "VBoxInternal/Devices/e1000/0/LUN#0/Config/guestssh/GuestPort" 22
VBoxManage setextradata "bsd7" "VBoxInternal/Devices/e1000/0/LUN#0/Config/guestssh/HostPort" 2201
%%

==Creating a shared disk image==
With virtualbox 3.2.8 or above, one can create a "shareable" disk using the VBoxManage command:

%%
VBoxManage createhd --filename /my/vm/c5-shared-disk.vdi --size 4096 --type shareable --variant Fixed
VBoxManage modifyhd /my/vm/c5-shared-disk.vdi --type shareable
%%

Now the disk image /my/vm/c5-shared-disk.vdi can be added to multiple virtual machines, and you know what you can do that!
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki