Skip to main content

Posts

Showing posts from June, 2008
Installing VirtualBox on 7.04 Server edition for VRDP use Jose Catre-Vandis September 20th, 2007, 07:29 PM Aim: to install a command line system, using the 7.04 server edition, and then to install Virtualbox on it, so that I can run VMs using VRDP and access them remotely using rdesktop on client machines. PART I Installing the 7.04 server edition is easy, so I'll skip that. PART II Installing VirtualBox is much more difficult, but I got it done in the end as follows. But what I want to know is if there is a better way to do this, e.g. install a desktop 7.04 and strip it back, or reduce all the items I had to install. Not had a chance to do extensive testing on all the variations. If you are running a headless server, login via ssh (you may need to install openssh-server after the initial install), if not work from the command line at the PC first off, install lots of kernel/sources stuff ###install needed linux components sudo apt-get install linux-source sudo apt-get install make
VirtualBox Open Source Edition on Ubuntu 8.04 (Hardy) Installing VirtualBox OSE on Hardy is even easier. From a terminal session run the following commands to install Virtualbox OSE. sudo apt-get install virtualbox-ose virtualbox-ose-source virtualbox-ose-modules-generic Add yourself to the vboxusers group. You can add more usernames after " whoami " if you wish. sudo gpasswd -a `whoami` vboxusers or sudo usermod -Gvboxusers -a `whoami` You will now have to log out of your desktop session and log back in order to update your group membership. Congratulations, you can now skip down to "Using Virtual Box" (which might be out of date?) If you have a multi-core CPU and experiment high CPU usage even when the guest OS is almost no using CPU, you can force Virtual Box to execute in just one of your cores by launching it through taskset . sudo apt-get install util-linux taskset -c 1 virtualbox See http://www.virtualbox.org/ticket/1233 and http://ubuntuforums.
Networking Bridge Ubuntu To start, NAT is by far the easiest way to get your guests connected to the interweb, but you may want to use the guests as servers, for this you need Host Networking. You will need to install bridge-utils and uml-utilities so that you can make a tap device and add it to a bridge. sudo apt-get install bridge-utils uml-utilities Now make a bridge, and put your current interface into it: sudo tunctl -t tap1 -u fred #where fred is the user you will be running vbox as sudo chown root.vboxusers /dev/net/tun sudo chmod g+rw /dev/net/tun Set the permission to persist across reboots, by editing as root /etc/udev/rules.d/20-names.rules and changing: KERNEL=="tun", NAME="net/%k" to KERNEL=="tun", NAME="net/%k", GROUP="vboxusers", MODE="0660" Make a new bridge called br0: sudo brctl addbr br0 Put your current interface (in this case eth0) into pro