Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
Site Navigation
Linux Forums
Linux Articles
Product Showcase
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds
Free Publications


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.

 
Rate This Article: poor excellent
 
Comments about this article
.
writen 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.
RE: . written by Michael B:
Visility of http://www.linuxforums.org/a
writen 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).
RE: Visility of http://www.linuxforums.org/a written by naboban:
what os have you tried the beta on?
writen by: cantormath on 2006-05-08 18:07:37
Did you try the VMWare server beta on dapper or a debian based system?
RE: what os have you tried the beta on? written by cantormath:
VMWare Server + Debian Systems
writen 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..
RE: VMWare Server + Debian Systems written by Emmanuel:
Thanks, great guide!
writen 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.
RE: Thanks, great guide! written by MD:
vmware FOR LINUX
writen 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?
RE: vmware FOR LINUX written by a280931:
install vmware 6.0
writen by: danny0085 on 2008-04-04 11:47:06
Here I give you a link with a useful tip [url=<a href=""> http://tips-debian.blogspot.com/2008/04/vmware-60.html</a>]debian-tips[/url]
RE: install vmware 6.0 written by danny0085:
Gladhatter
writen by: Charlie Swindall on 2009-01-30 23:16:37
RE: Gladhatter written by Charlie Swindall:
VMX Builder Should help
writen by: digg1980 on 2009-09-09 10:49:52
Instead of having to create the VMX file manually and typed it
RE: VMX Builder Should help written by digg1980:
A Noob asks about Virtual Machine's
writen by: stratman on 2009-09-10 08:46:34
I know Zilch about VM's. In fact I don't even know what they are. I run XP on one HD and Kubuntu on another HD. There are still Windows programs I use that will probably never have a Linux version so I have to keep Windows for some things. Now, will a VM benefit me? Now, will someone please tell me what a Virtual Machine is? I'm sorry for being so unlearned and asking these stupid questions but how is a person ever going to find out anything unless they ask somebody that knows and you people sound like you know what you're talking about. Thanks!
RE: A Noob asks about Virtual Machine's written by stratman:

Comment title: * please do not put your response text here