updated: 05.may.2008
Moma's notes.
A) Installation of
VMware Player in Ubuntu 8.04 (alias Hardy Heron)
Study https://help.ubuntu.com/community/VMware
A1) Ok, let's go.
Install first some
prerequisites (pre-requirements).
$ sudo apt-get update
$ sudo apt-get install build-essential
linux-headers-generic linux-headers-$(uname -r)
----------
A2) Create a working folder and cd
there.
$ mkdir $HOME/vmware
$ cd $HOME/vmware
----------
A3) Download VMware Player from http://www.vmware.com/download/player/
wget guarantees
a safe download.
Depending on
your system, get 32 bits
$ wget
-c
http://download3.vmware.com/software/vmplayer/VMware-player-2.0.3-80004.i386.tar.gz
Or get 64 bits
$ wget -c
http://download3.vmware.com/software/vmplayer/VMware-player-2.0.3-80004.x86_64.tar.gz
Important: Check the
website and
pick the most recent version of the product.
----------
A4) Unzip and untar the files
$ tar -xvzf VMware*gz
----------
A5) Cd into the installation
directory
$ cd vmware-player-distrib
----------
A6) Install it
$ sudo ./vmware-install.pl
Press [ENTER]
key to give a default answer to all questions. The default answers are
just OK to begin with.
One of the modules will fail to compile, but the patch in the next step
will fix it. So do not worry.
----------
A7) Apply a patch
VMware Player on Ubuntu 8.04 requires a small patch.
Move to the working folder
$ cd $HOME/vmware
Download the patch
$ wget
http://xmi.pl/kernel/vmware-any-any-update-116.tgz
Note: If the above link is
broken then
download the patch from http://vmkernelnewbies.googlegroups.com or google for vmware-any-any-update*tgz
Unpack the patch
$ tar -xzvf vmware-any-any-update-116.tgz
And apply the
patch
$ cd vmware-any-any-update*
$ sudo ./runme.pl
Again,
press [ENTER]
to give default answer to all questions.
----------
A8) Update the library cache (it's a
list over dynamic libraries (*.so))
$ sudo ldconfig
----------
A9) Test whether it will run and play
$ vmplayer
----------
But for now,
quit the vmplayer because we need to donwload some guest
operating systems first. Move to step B).
B) Donwload guest
operating systems and run them in VMware
These
are the most common download sites for ready-made VMware images:
http://www.vmware.com/vmtn/appliances/directory/cat/25
http://vmplanet.net/
http://www.thoughtpolice.co.uk/vmware/
B1) Search for guest images.
I want to test the latest Fedora 9 release, so I browse to
http://www.vmware.com/vmtn/appliances/directory/cat/25
and search for "fedora 9".
It leads me to
http://www.thoughtpolice.co.uk/vmware/#fedora9preview
Important: Read
the entire description so you get known what the user names and
passwords are. It this particular case it says
fedora-9preview-i386.zip
Download
using: fast torrent download! (immediate!)
Notes:
root
password is "thoughtpolice"
Ok, start the
download. Use the torrent
method if possible. It ensures rather quick and 100% reliable download.
----------
B2) For the sake of tidiness
(order), lets gather all guest OSes in the same sub directory.
Create an
"images" directory under your $HOME/vmware/ folder.
$ cd $HOME/vmware
$ mkdir images
$ cd images
----------
B3) Unzip and place the
downloaded image
Ok, the torrent
client put the downloaded image to the $HOME/Desktop folder, so I move
it to my images directory.
$ mv
$HOME/Desktop/fedora-9preview-i386.zip $HOME/vmware/images/
Unzip
it
$ unzip
fedora-9preview-i386.zip
Again, the file is
huge so it will take
some time...
Note: some of the
images are compressed with p7zip. So
you may need to install the p7zip tool.
Now check the
resulting directory and files.
$ ls -lR
drwxr-xr-x 2 moma moma 4096
2008-04-21 20:12 fedora-9preview-i386
-rw-r--r-- 1 moma moma 1344944395 2008-05-04 17:35
fedora-9preview-i386.zip
./fedora-9preview-i386:
total 3728872
-rw------- 1 moma moma 8664
2008-04-21 20:12 fedora-9preview-i386.nvram
-rw------- 1 moma moma 1573781504 2008-04-21 20:12
fedora-9preview-i386-s001.vmdk
-rw------- 1 moma moma 1215102976 2008-04-21 20:12
fedora-9preview-i386-s002.vmdk
-rw------- 1 moma moma 205258752 2008-04-21 20:12
fedora-9preview-i386-s003.vmdk
-rw------- 1 moma moma 820379648 2008-04-21 20:12
fedora-9preview-i386-s004.vmdk
-rw------- 1 moma moma 65536 2008-04-21
20:12 fedora-9preview-i386-s005.vmdk
-rw------- 1 moma moma 567
2008-04-21 20:12 fedora-9preview-i386.vmdk
-rw------- 1 moma
moma 0 2008-04-21
20:12 fedora-9preview-i386.vmsd
-rwxr-xr-x 1 moma moma 997
2008-04-21 20:12 fedora-9preview-i386.vmx
-rw-rw-r-- 1 moma moma 167
2008-04-21 20:12 README-vmware-image.txt
Looks good to me mama. But what are the fedora-9preview-i386-s00?.vmdk
files? Are
they saved snapshot images or what?
Note: The README-vmware-image.txt file has important
information about the system settings, installed applications and
usernames/passwords.
Read it
carefully.
You can now delete the downloaded zip file (in my case fedora-9preview-i386.zip
).
----------
B4) Start the
guest OS in
the vmplayer.
Now, start
vmplayer from the command line or from the menu. You should find
it in Applications -> System Tools menu.
$ vmplayer
Click the [Open an existing Virtual Machine]
button and pick the fedora-9preview-i386.vmx
image from the $HOME/vmware/images/
directory.
Picture B4-1:
Start it.

Picture B4-2:
Fedora 9 preview is playing nicely.

----------
B5) Create and put a
shortcut icon
on the
desktop or toolbar
First, check
which command line arguments vmplayer can take.
$ vmplayer
--help
(note: the -X argument for full
screen may be useful )
So in my case,
the command line will look like this (replace the file
location with your own).
$ vmplayer
$HOME/vmware/images/fedora-9preview-i386/fedora-9preview-i386.vmx
Create an icon
on the desktop and set the command. Drag & drop it onto the
toolbar for quick access.
----------
New! Install
VMware
or VirtualBox on Ubu
B6) Download and test
other
Linux distributions. Go to step B1).
Boa viagem & good
luck.
The end.
----------
Note: If you upgrade the
Linux-kernel manually then your vmplayer will
most likely
stop working. However, it's easy to fix. Run
$ sudo /usr/bin/vmware-config.pl
Give the default
answers and vmplayer will play again.
Literature:
https://help.ubuntu.com/community/VMware
Installing
VMware Server....
howto-install-vmware-tools-in-ubuntu.html VMWare Tools
How-to-run-windows-within-linux...
C) VirtualBox - yet
another virtualization solution for Ubuntu 8.04
VirtualBox...
on
Ubuntu 8.04
Note: The VirtualBox in the
Ubuntu's repository is not the latest version, but if you really want
it then
install packages "virtualbox-ose"
and "virtualbox-ose-modules-generic".
This guide will show you how to install the latest and greatest version
of VirtualBox.
----------
C1) Download
the latest version
Browse to http://www.sun.com/download/
and click the download link beside the "Sun
xVM VirtualBox 1.6" label.
It will lead you to a ready-made binary package.
What is the other, OSE package? The OSE version contains the source
code. It is not what we need now.
(Note: If the
above download location is not available, try http://www.virtualbox.org/wiki/Downloads. )
Select correct platform.
My computer
runs Ubuntu 8.04 (32 bits) on an x86 architecture, so I choose
the "Ubuntu 8.04 x86" package.
The processor can be Intel or AMD.
Select "Ubuntu 8.04 AMD" if you
run a 64 bits Hardy Heron on Intel/AMD processor.
The label seems to have a mistake. It does not mension 64bits but it
will lead you to a correct 64bits .deb package.
(Note: type cat /proc/cpuinfo if you want to check the cpu type, uname -a shows the kernel/OS
version )
Study this picture

and make your selection.
Then install the package
Click
the
.deb package name (in my case it is virtualbox_1.6.0-30421_Ubuntu_hardy_i386.deb
) and let the
package manager download and install it.
See pictures

and

The actual package installation is now complete.
----------
C2) Then add your
user name to vboxusers
group. (if you like, replace $USER with your user name).
Run this command in a terminal window (gnome-terminal).
$ sudo usermod
-a -G vboxusers $USER
----------
C3)
Note:
The current session does not know about the new group or change unless you logout / in.
Log out by pressing
the CNTR + ALT + BACKSPACE keys. Then re-login.
Note: You can easily check which
groups you belong to. Just type
$ groups
----------
C4) Start the
VirtualBox
$ VirtualBox
----------
C5) Study the manuals
$ evince /usr/share/doc/virtualbox*/UserManual.pdf
Note. The VirtualBox
v1.5.2 and prior put the files to /opt/VirtualBox*/
directory.
$ firefox
http://www.virtualbox.org/wiki/User_FAQ
You can always get the latest user manual from http://www.virtualbox.org/wiki/Downloads
----------
Installing
a new operating system from an iso-file:
Create a new Virtual Machine and attach the iso-file to the CD/DVD ROM
device.
See the menu selection Machine -> Settings, CD/DVD ROM.
Study this picture.

Detach the iso-file
from the CD/DVD ROM after successful installation.
Ungrabbing the
keyboard:
To escape
from VirtualBox, press CTRL
key at the RIGHT side of
the keyboard. Ok? Ctrl-key.
----------
EDIT: If your
VirtualBox stops working after system upgrade (eg. you got a new
kernel), recompiling the kernel module may fix it.
Run
$ sudo
aptitude install linux-headers-$(uname -r)
$ sudo
/etc/init.d/vboxdrv setup
----------
Literature:
Ubuntuforums.org/showthread.php...
Run-windows-apps-seamlessly-inside-linux...
D)
Install and run KVM
virtualization in your Ubuntu 7.10
Ubuntu
7.10: vmware/vmware-player-gutsy.html
Ubuntu 8.04:
<work in
progress>
Literature:
http://ubuntuforums.org/forumdisplay.php?f=308
!
http://virt.kernelnewbies.org/KVM
http://kvm.qumranet.com/kvmwiki
http://www.techthrob.com/tech/linux_virtualization.php
E) Benchmarking
virtualization solutions

...
<work in progress>
Go back to http://www.futuredesktop.net