ARTICLE

Using VMware Player to test linux distributions
Contributed by Francesco Arillotta in Applications on 2006-05-05 14:04:40

VMware (http://www.vmware.com) is a company specialized in virtualization technology, providing software to run an operating system (guest) inside another (host). A few months ago VMware released VMware Player, a free virtual machine player which you can use to run prebuilt virtual OSs.

System

Host (the actual OS): Ubuntu Dapper Drake (build 20060323) You can download prereleases of Ubuntu from http://cdimage.ubuntu.com

Guest (the virtual OS we are going to install): Underground Desktop (022) Download from http://www.ludos.org

VMware Player Installation

Download the tar.gz version of VMware Player from here: http://www.vmware.com/download/player/

Install the Ubuntu kernel headers matching your running kernel: sudo apt-get install linux-headers-`uname -r`

Also install packages needed to compile the vmware kernel modules: sudo apt-get install gcc make

Uncompress the VMware Player somewhere, and change to the new directory: tar xvzf VMware-player-1.0.1-19317.tar.gz cd vmware-player-distrib

Now install it:

sudo ./vmware-install.pl

The installer will ask questions about the configuration, just accept the default answers (press ENTER). You'll also be shown license conditions, read them then press q and enter yes if you accept them.

Now VMware Player should be installed. Let's try and install a guest OS.

Install guest OS

Create a new directory to hold the stuff you need for you guest OS:

mkdir  ~/GUEST
cd  ~/GUEST

Now you need a virtual hard disk in vmware format. Qemu, another emulator, provides a way to create it. So install the qemu package (you must enable the Ubuntu universe repository):

sudo apt-get install qemu

Now let's create a 8 GB disk image, which will be used by the guest OS:

qemu-img create -f vmdk hd.vmdk 8G

Then, create a virtual machine configuration file and call it vm.vmx.

#!/usr/bin/vmplayer

config.version = "8"
virtualHW.version = "3"
guestOS = "other26xlinux"
memsize = "320"
MemAllowAutoScaleDown = "FALSE"
MemTrimRate = "-1"
uuid.action = "create"
hints.hideAll = "TRUE"
tools.syncTime = "TRUE"
usb.present = "TRUE"
usb.generic.autoconnect = "FALSE"
sound.present = "TRUE"
sound.virtualdev = "es1371"
isolation.tools.hgfs.disable = "FALSE"
isolation.tools.dnd.disable = "TRUE"
isolation.tools.copy.enable = "TRUE"
isolation.tools.paste.enabled = "TRUE"
ethernet0.present = "TRUE"
ethernet0.virtualDev = "vlance"
ethernet0.connectionType = "nat"
ethernet0.addressType = "generated"
ethernet0.generatedAddress = "00:0c:29:2e:30:2d"
ethernet0.generatedAddressOffset = "0"
floppy0.present = "TRUE"
floppy0.startConnected = "FALSE"
floppy0.autodetect = "TRUE"
ide1:0.present = "TRUE"
ide1:0.deviceType = "cdrom-image"
ide1:0.startConnected = "TRUE"
ide1:0.fileName = "underground_022.iso"
displayName = "UNDERGROUND"
ide1:0.autodetect = "TRUE"
ide0:0.present = "TRUE"
ide0:0.fileName = "hd.vmdk"
ide0:0.mode = "persistent"
ide0:0.startConnected = "TRUE"
ide0:0.writeThrough = "TRUE"
ide0:0.redo = ""
uuid.location = "56 4d 5d 61 35 03 9a 16-0d b2 b6 b2 92 2e 30 2d"
uuid.bios = "56 4d 5d 61 35 03 9a 16-0d b2 b6 b2 92 2e 30 2d"

In this file, change:

memsize = "320"
if you need more than 320 MB of RAM for your virtual machine.

Also, change the two lines:

ide1:0.fileName = "underground_022.iso"
displayName = "UNDERGROUND"

so that they show the ISO image you are using to install your guest OS, and its name. In this case, we downloaded Underground Desktop, a linux distribution I build myself, and placed the ISO image of the installation CD in ~/GUEST, together with vm.vmx and hd.vmdk.

Now run the player:

vmplayer vm.vmx

The virtual machine will boot from the CD image and the installation will start. Now just follow the installation steps, then reboot. Your guest OS is now ready.

You may want to change the line:

ide1:0.deviceType = "cdrom-image"

to:

ide1:0.deviceType = "cdrom-raw"

and the line:

ide1:0.fileName = "underground_022.iso"

to:

ide1:0.fileName = "auto-detect"
in order to gain access to a physical CDROM.


 
Discussion(s)
.
Written by Michael B on 2006-05-05 17:24:37
It doesn't have to be that hard.

Download the VMWare server beta and everything can be tuned via GUI.
I use both VMWare on Linux and on Win2k so that whatever I am doing I can still use the tools I need and my OS of choice.
I have about 5 virtual distros and 3 Windoze versions all as VMs that start instantly from their suspended state.
The best thing is that a VM can run on any VMWare station by simply copying the files.
I am about to build 5 servers as VMWare virtual machines for a production environment. It should mean maximum downtime of no more than a few minutes.
Discuss! Reply!

vmware FOR LINUX
Written by a280931 on 2007-05-09 19:28:12
Which did you like better linux side or windows?

I want to do VMWare on my dual boot laptop in linux and guest into windows xp.

What do you think?

Is the server a better installation for me or will vmplayer do just fine?
Discuss! Reply!

install vmware 6.0
Written by danny0085 on 2008-04-04 11:47:06
Here I give you a link with a useful tip

http://tips-debian.blogspot.com/2008/04/vmware-60.html</a>">debian-tips
Discuss! Reply!

Visility of http://www.linuxforums.org/a
Written by naboban on 2006-05-08 10:10:33
I tried to look up your posting in a library with IE/WinXP. The content was not visible. Only at home could read it (Firefox/Mac OS X).
Discuss! Reply!

what os have you tried the beta on?
Written by cantormath on 2006-05-08 18:07:37
Did you try the VMWare server beta on dapper or a debian based system?
Discuss! Reply!

VMWare Server + Debian Systems
Written by Emmanuel on 2006-05-11 16:34:17
VMWare Server Beta works well in Ubuntu Dapper Drake with no problems at all and is very stable..
Discuss! Reply!

Thanks, great guide!
Written by MD on 2006-06-14 02:05:50
Thank you!

I've been mucking around for ages to make a successful vmware image via qemu. Finally, following this, I managed.

Qemu(+ the KQemu accelerator) works fine for me in Linux, but I have had issues with it under Windows. Cheers for the help.
Discuss! Reply!