Sie sind auf Seite 1von 11

VIRTUALBOX OSE 2.1.4 ON UBUNTU 9.

04
INSTALLATION AND CONFIGURATION TUTORIAL
This tutorial explains how to install and use VirtualBox Open Source Edition (OSE) 2.1.4 for creating
and running virtual machines on an Ubuntu 9.04 Desktop OS.

Installing VirtualBox OSE


In order to install VirtualBox Open Source Edition in Ubuntu Jaunty (9.04) must be preformed the
following terminal command:

$ sudo apt-get install virtualbox-ose virtualbox-ose-guest-source virtualbox-ose-guest-utils dkms

Creating a Virtual Machine


The following screenshots present us the setting up of a virtual machine (Debian 5.0.1 as guest
running on an Ubuntu 9.04 host).

Firstly, click "New" to start the "Create New Virtual Machine" Wizard.

saulparada 1
Specify a virtual machine name and operating system type.

saulparada 2
Specify an amount of RAM to dedicate to this virtual machine when it is running.

Either choose an existing image, go and find one with the "Existing..." button, or press "New..." to
start the "Create New Virtual Disk" Wizard.

saulparada 3
Creating a new virtual disk image

Assign a disk image to the virtual machine.

saulparada 4
saulparada 5
Summary page is then shown.

saulparada 6
Details page shows the settings for the created Virtual Machine.

saulparada 7
Attaching a CD-ROM image

Click on CD/DVD-ROM in the Details tab.


Tick "Mount CD/DVD Drive" and tick “ISO Image File” then go find it with the select button.

Added the Virtual Disk Manager as a “CD/DVD Image”, choose it then click Select.

saulparada 8
Back in the CD/DVD-ROM selection dialog.

Starting the emulator

Boot up the VM using the "Start" button.

saulparada 9
The Virtual Machine running Debian 5.0.1 after installation:

VirtualBox Networking
VirtualBox 2 and onwards provides straightforward networking allowing IP address assignment and
internet access using NAT, the default network option.
It is needed to load the "vboxnetflt" module, if it is not loaded yet.

# sudo modprobe vboxnetflt

VirtualBox Remote Desktop Protocol (RDP)


VirtualBox has builtin RDP support, much like VMware's Remote View (VNC), however it does take
some tinkering to get working on Ubuntu Desktop/Server.
The main issue is when trying to use PAM authentication, on the host system, to authenticate
remote users who wish to RDP into a Virtual Machine. PAM needs to be configured to allow the
VRDPAuth.so library access to PAM services. This can be done by:

1. Creating a new PAM configuration file:

$ gedit /etc/pam.d/vrdpauth

...and adding the following lines:

saulparada 10
auth required pam_unix.so
account required pam_unix.so broken_shadow

Save the file.

2. Now is needed to set an environment variable so that VRDPAuth.so uses the correct PAM Service
instead of the /etc/pam.d/login service. For that must be performed the following terminal instruction:

$ sudo export VRDP_AUTH_PAM_SERVICE="vrdpauth"

Sources:
• http://www.ubuntugeek.com/how-to-install-virtualbox-220-in-ubuntu-904-jaunty.html

• https://help.ubuntu.com/community/VirtualBox

saulparada 11

Das könnte Ihnen auch gefallen