How to run Wolvix in VirtualBox
Introduction
Virtualbox is : "Virtualbox is a general-purpose full virtualizer for x86 hardware. Targeted at server, desktop and embedded use, it is now the only professional-quality virtualization solution that is also Open Source Software."
It is both fast and full featured. You can share sound, flash drives, directories on your hard drive, etc.
Home Page :
http://www.virtualbox.org/wiki/VirtualBox∞
Screen Shots :
http://www.ubuntugeek.com/create-and-manage-virtual-machines-using-virtualbox.html∞
*These screen shots include a walk through of configuration
Install VirtualBox on Windows :
http://doc.gwos.org/index.php/VirtualBox#Install_VirtualBox_on_Windows∞
Download
Download the "All distributions" script to ~/src/virtualbox
http://www.virtualbox.org/download/1.3.8/VirtualBox_1.3.8_Linux_x86.run∞
Install Dependencies
Open gslapt and install
qt-3.3.7-1486-1wlv
Install VirtualBox
sh VirtualBox_1.3.8_Linux_x86.run install
Scroll down and agree to license agreement ...
Post install configuration
Edit
/etc/rc.d/rc/local and add these lines :
# Start vboxdrv
if [ -x /etc/rc.d/rc.vboxdrv ]; then
/etc/rc.d/rc.vboxdrv start
fi
Start virtualbox :
/etc/rc.d/rc.vboxdrv start
Start VirtualBox
In you Menu : System -> InnoTec VirtualBox
Now, in the initial window, go to menu at the top and : File -> Global Settings -> Input
Put the mouse in the "Host Key" box and hit F11 . This sets the escape key to your F11 function key.
Configure a Bridge Network
With a bridge network your guest OS will become a part of your network like any other computer on your router. You may ssh into the guest from the host or any computer on the henet work. You can nfs, samba, cups, run headless ....
1. Open gslapt and install bridge-utils
2. Go to
http://user-mode-linux.sourceforge.net/dl-sf.html∞ and download
uml_utilities_20040406.tar.bz2
Direct link :
http://prdownloads.sourceforge.net/user-mode-linux/uml_utilities_20040406.tar.bz2∞
3. Extract and install (no compile needed) (Extracts a directory called "tools")
tar xjf uml_utilities_20040406.tar.bz2
cd tools
make install
4. Configure bridge :
modprobe bridge
modprobe tun
tunctl -t tap0 -u root
Note : Syntax ~ tunctl -t <name_of_device> -u <user>
chmod 0666 /dev/net/tun
brctl addbr br0
brctl addif br0 eth0
brctl addif br0 tap0
ifconfig tap0 0.0.0.0 promisc up
ifconfig eth0 0.0.0.0 promisc up
dhcpcd br0
5. Add bridge to VirtualBox guest OS
With the virtual machine off (powered down) Select "Network" from the list on the Right.
In the pull down box change "NAT" to "Host Interface"
In the "Interface Name" box add
tap0
Click "OK" to save changes.
Now when you boot the guest you will get a IP on your local network.
Additions ISO
The
VBoxGuestAdditions.iso is used to install additions onto guest OS. It is located (on the wolvix host) at
/opt/VirtualBox-1.3.8/additions/VBoxGuestAdditions.iso
Location of VBoxGuestAdditions.iso :
Wolvix host : /opt/VirtualBox-1.3.8/additions
Windows host : C:\Program files\InnoTek VirtualBox
Wolvix Guest
To install the Additions on a Wolvix guest,
1. Mount the VBoxGuestAdditions.iso on the Wolvix guest.
For best results, with the Wolvix virtual machine running, in the virtual machine’s menu bar click on the “Devices” --> “Install guest additions” menu, which will automatically bring up the Additions (as a CD-ROM, VBOXADDITIONS_2.1.4_42893) on your Wolvix desktop.
2. Before you can install the Guest Additions, you need to install GNU make, GNU compiler and the kernel source, which VirtualBox uses to build a kernel module. Use these commands:
slapt-get --update
slapt-get --install glibc
slapt-get --install glibc-i18n
slapt-get --install kernel-source
slapt-get --ignore-dep --install meta-development
3. You then install the additions onto the Wolvix guest to extend functionality.
Change to the directory where your CD-ROM drive is mounted and execute as root:
sh ./VBoxLinuxAdditions-x86.run
Alternatively, you can open the Additions CD-ROM on your Wolvix desktop and double-click the file VBoxLinuxAdditions-x86.run.
4. Restart the Wolvix virtual machine.
Share USB devices
Edit
/etc/udev/rules.d/udev.rules
Look for this line:
SUBSYSTEM=="usb", KERNEL=="lp*", NAME="usb/%k", SYMLINK+="usb%k", GROUP="lp", MODE="0664"
Change it to this :
# Modified for virtualBox -> Enable USB device sharing
# SUBSYSTEM=="usb", KERNEL=="lp*", NAME="usb/%k", SYMLINK+="usb%k", GROUP="lp", MODE="0664"
SUBSYSTEM=="usb", KERNEL=="lp*", NAME="usb/%k", SYMLINK+="usb%k", GROUP="lp", MODE="0666"
Further Information
Documentation is sparse at times, and tends to be targeted to rpm systems.
Phone∞ Energy∞
The virtual box forums are here :
http://www.virtualbox.org/discussion/1∞
And here is some further information I have gathered :
http://doc.gwos.org/index.php/VirtualBox∞
If you prefer to see how it looks like rather than read about it online or in
essay topics∞, you can view the
screenshots of Wolvix in Virtual Box∞ here.
Virtual Box Virtual images -
http://virtualboximages.com/∞
Custom Essays∞
Other
Screenshots of how to install
Categories
CategoryGuide