Showing posts with label VMware. Show all posts
Showing posts with label VMware. Show all posts

Thursday, September 1, 2011

How To Install VMware Player On Ubuntu 11.04/Linux Mint 11 | HowtoForge - Linux Howtos and Tutorials

How To Install VMware Player On Ubuntu 11.04/Linux Mint 11

Version 1.0
Author: Falko Timme <ft [at] falkotimme [dot] com>

Follow me on Twitter
Last edited 08/16/2011

This tutorial provides step-by-step instructions on how to install VMware Player on an Ubuntu 11.04 or Linux Mint 11 desktop system. With VMware Player you can create and run guest operating systems ("virtual machines") such as Linux, Windows, FreeBSD, etc. on your desktop, i.e., you can run multiple operating systems on the same hardware which saves a lot of money.

Also, with VMware Player you can let your old Windows desktop (that you previously converted into a VMware virtual machine with VMware Converter, as described in this tutorial: http://www.howtoforge.com/vmware_converter_windows_linux) run under your Ubuntu/Linux Mint desktop. This can be useful if you depend on some applications that exist for Windows only, or if you want to switch to Linux slowly.

I do not issue any guarantee that this will work for you!

 

1 Preliminary Note

I'm using the user name falko with the home directory /home/falko here - please adjust this appropriately.

 

2 VMware Player

To download VMware Player, go to http://www.vmware.com/go/downloadplayer/ and click on Download:

(JavaScript must be enabled in your browser to view the large image as an image overlay.)

On the next page, log in with your existing VMware account or create a new one:

(JavaScript must be enabled in your browser to view the large image as an image overlay.)

Follow the on-screen instructions. At the end, you should receive an email with a link to your download page. On the download page, select the right VMware Player for your architecture (32-bit or 64-bit) and click on the Download button:

(JavaScript must be enabled in your browser to view the large image as an image overlay.)

Select Save File in the Firefox download dialogue:

(JavaScript must be enabled in your browser to view the large image as an image overlay.)

Then open a terminal and run the following command to install some packages needed by the VMware Player installer:

sudo apt-get install build-essential linux-headers-`uname -r`

Then go to the location where you saved the VMware Player file, e.g. /home/falko/Downloads (replace falko with your own username!):

cd /home/falko/Downloads

Take a look at the contents of the directory:

ls -l

falko@falko-virtual-machine ~/Downloads $ ls -l
total 101136
-rw-r--r-- 1 falko falko 103561067 2011-08-16 13:49 VMware-Player-3.1.4-385536.x86_64.bundle
falko@falko-virtual-machine ~/Downloads $

We can start the VMware Player installation as follows:

gksudo bash ./VMware-Player-3.1.4-385536.x86_64.bundle

This will start the graphical VMware Player installation wizard. Just click your way through it:

(JavaScript must be enabled in your browser to view the large image as an image overlay.)

(JavaScript must be enabled in your browser to view the large image as an image overlay.)

Click on Install to start the installation:

(JavaScript must be enabled in your browser to view the large image as an image overlay.)

How To Install VMware Player On Ubuntu 11.04/Linux Mint 11 - Page 2

Copyright © 2011 Falko Timme
All Rights Reserved.

Posted via email from ://allthings-bare

Monday, January 10, 2011

How To Install VMware Server 2 On Ubuntu 10.10 (Kernel 2.6.35)

How To Install VMware Server 2 On Ubuntu 10.10 (Kernel 2.6.35)

Version 1.0
Author: Falko Timme <ft [at] falkotimme [dot] com>

Follow me on Twitter
Last edited 12/17/2010

This tutorial provides step-by-step instructions on how to install VMware Server 2 on an Ubuntu 10.10 desktop system. With VMware Server you can create and run guest operating systems ("virtual machines") such as Linux, Windows, FreeBSD, etc. under a host operating system. This has the benefit that you can run multiple operating systems on the same hardware which saves a lot of money, and you can move virtual machines from one VMware Server to the next one (or to a system that has the VMware Player which is also free).

Also, with VMware Server you can let your old Windows desktop (that you previously converted into a VMware virtual machine with VMware Converter, as described in this tutorial: http://www.howtoforge.com/vmware_converter_windows_linux) run under your Ubuntu desktop. This can be useful if you depend on some applications that exist for Windows only, or if you want to switch to Linux slowly.

I want to say first that this is not the only way of setting up such a system. There are many ways of achieving this goal but this is the way I take. I do not issue any guarantee that this will work for you!

 

1 Preliminary Note

I'm using the user name falko with the home directory /home/falko here - please adjust this appropriately.

 

2 VMware Server

With VMware Server you can let your old Windows desktop (that you previously converted into a VMware virtual machine with VMware Converter, as described in this tutorial: http://www.howtoforge.com/vmware_converter_windows_linux) run under your Ubuntu desktop. This can be useful if you depend on some applications that exist for Windows only, or if you want to switch to Linux slowly.

To download VMware Server, go to http://www.vmware.com/products/server/ and click on Download:

(JavaScript must be enabled in your browser to view the large image as an image overlay.)

On the next page, log in with your existing VMware account or create a new one:

(JavaScript must be enabled in your browser to view the large image as an image overlay.)

Follow the on-screen instructions. At the end, you should receive an email with a link to your download page. On the download page, you should see two license numbers, one for Windows and one for Linux. Write down or save the one for Linux and scroll down.

(JavaScript must be enabled in your browser to view the large image as an image overlay.)

Then download the VMware Server 2 for Linux .gz image (not the .rpm image!) to your computer (e.g. to /home/falko/Downloads) - I used the Manually Download link instead of the Start Download Manager button. Make sure you pick the right one for your architecture (32-bit or 64-bit):

(JavaScript must be enabled in your browser to view the large image as an image overlay.)

(JavaScript must be enabled in your browser to view the large image as an image overlay.)

(JavaScript must be enabled in your browser to view the large image as an image overlay.)

Then open a terminal (Applications > Accessories > Terminal) and run the following command to install some necessary packages:

sudo apt-get install linux-headers-`uname -r` build-essential xinetd

How To Install VMware Server 2 On Ubuntu 10.10 (Kernel 2.6.35) - Page 2

Copyright © 2010 Falko Timme
All Rights Reserved.

Posted via email from ://allthings-bare

Sunday, August 22, 2010

VMware Server 2.0.2-x On Ubuntu Server 10.04 With VMware Remote Console Plug-in

VMware Server 2.0.2-x On Ubuntu Server 10.04 With VMware Remote Console Plug-in

Today I will tell you how to set up a new Ubuntu 10.04 server which runs VMware server 2.0.2-x and the VMware Remote Console Plug-in.

My box:

CPU: Intel(R) Celeron(R) D CPU 3.06GHz, 1 core
Memory: 2GB
CD-ROM

Firefox 3.6 can not run the VMware Remote Console. On the client, I use Chrome to build virtual machines, then I use the VMware Remote Console Plug-in to run them.

We have four steps:

Step one: Set up a new box running Ubuntu server.
Step two: Register, download, patch, and install VMware.
Step three: Create virtual machines.
Step four: Control remote virtual machines with the VMware Remote Console Plug-in from a client.

 

Step one: Set up a new box running Ubuntu server

Very easy. If you don't know, look at: http://www.howtoforge.com/perfect-server-ubuntu-10.04-lucid-lynx-ispconfig-3.

After the setup, reboot the box.

Log in and activate the root account:

sudo passwd root

Type in the password for root, I choose: 111111

Log out then log in as root and later we do everything as root, too.

Upgrade the box:

apt-get update
apt-get upgrade -y

Install gcc:

apt-get install -y gcc

Configure a static IP address (I use 192.168.1.75 here):

nano /etc/network/interfaces

Delete everything and replace with:

# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5).  # The loopback network interface auto lo iface lo inet loopback  # The primary network interface auto eth0 iface eth0 inet static address 192.168.1.75 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255 gateway 192.168.1.1

Edit /etc/resolv.conf:

nano /etc/resolv.conf

Delete everything and replace with (make sure you use a valid nameserver; in this example I use 192.168.1.1, my router, which runs a nameserver as well):

nameserver 192.168.1.1

Reboot the box:

reboot

 

Step two: Register, download, patch, install VMware

Log on as root and create /root/vm:

mkdir /root/vm
cd /root/vm

To download VMware, you have to register at: https://www.vmware.com/tryvmware/?p=server20&lp=1. They will send you an email. Follow the instructions in the email, and download and save VMware-server-2.0.2-203138.i386.tar.gz in /root/vm and remember to write down the key for VMware Server for Linux (looks like: XXXXX-XXXXX-XXXXX-XXXXX).

Untar the VMware file:

tar -xzf VMware-server-2.0.2-203138.i386.tar.gz

Before we install VMware, we have to patch VMware:

mkdir /root/dev
cd /root/dev

Download five files:

wget http://nerdbynature.de/bits/2.6.32-22/00-vmware-2.6.32_functional.diff.txt
wget http://nerdbynature.de/bits/2.6.32-22/02-vmnet-include.diff.txt.gz
wget http://nerdbynature.de/bits/2.6.32-22/01-vmware-2.6.32_cosmetic.diff.txt
wget http://nerdbynature.de/bits/2.6.32-22/vmware-config.pl.diff.txt
wget http://nerdbynature.de/bits/2.6.32-22/patch-vmware_2.6.3x.sh.txt

Unzip the following file:

gunzip 02-vmnet-include.diff.txt.gz

Change the names of the five files:

mv 00-vmware-2.6.32_functional.diff.txt 00-vmware-2.6.32_functional.diff
mv 01-vmware-2.6.32_cosmetic.diff.txt 01-vmware-2.6.32_cosmetic.diff
mv 02-vmnet-include.diff.txt 02-vmnet-include.diff
mv patch-vmware_2.6.3x.sh.txt patch-vmware_2.6.3x.sh
mv vmware-config.pl.diff.txt vmware-config.pl.diff

Edit the file patch-vmware_2.6.3x.sh:

nano patch-vmware_2.6.3x.sh

Delete everything and replace with:

#!/bin/sh # # (C) 2010 lists@nerdbynature.de # # 00-vmware-2.6.32_functional.diff # - based on vmware-server-modules-linux-2.6.32.patch # - see http://communities.vmware.com/message/1389232#1389232 # # 01-vmware-2.6.32_cosmetic.diff # - based on rbihlmeyer's comments in http://communities.vmware.com/thread/232842 # # 02-vmnet-include.diff # - stuff .h and .c files in separate directories, as the other # modules do it # # vmware-config.pl.diff # - based on http://communities.vmware.com/message/1398525#1398525 # DIR=/root/dev/ PATCHES="00-vmware-2.6.32_functional.diff 01-vmware-2.6.32_cosmetic.diff 02-vmnet-include.diff"  # unset me! # DEBUG=echo  if [ -z "$1" -o ! "`ls "$1"/*tar 2>/dev/null | wc -l`" = 4 ]; then echo "Usage: `basename $0` [vmware-modules-source directory]" exit 1 else SRC="$1" fi  cd $SRC $DEBUG mkdir orig || exit 1 $DEBUG mv *tar orig/  # untar for t in orig/*.tar; do $DEBUG tar -xf $t done  # patch for p in $PATCHES; do $DEBUG patch -p1 < "$DIR"/"$p" done  # tar for d in *-only; do $DEBUG tar -cf `echo $d | sed 's/-only/.tar/'` $d done $DEBUG rm -rf *-only  # vsock.ko needs symbols from vmci $DEBUG cd ../../../bin || exit 2 if [ -x vmware-config.pl -a -f $DIR/vmware-config.pl.diff ]; then $DEBUG patch -p0 < $DIR/vmware-config.pl.diff fi

Save the file and quit.

Patch:

chmod u+x patch-vmware_2.6.3x.sh
./patch-vmware_2.6.3x.sh /root/vm/vmware-server-distrib/lib/modules/source

Install VMware:

cd /root/vm/vmware-server-distrib
./vmware-install.pl

You can press ENTER to accept all default values. Accept the license. Enter the VMware Server key that VMware gave to you. That's it. If the installation is successful, it ends like this:

The installation of VMware VIX API 1.6.2 build-203138 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command: "/usr/bin/vmware-uninstall-vix.pl".

Enjoy,

--the VMware team

Starting VMware services:
Virtual machine monitor done
Virtual machine communication interface done
VM communication interface socket family: done
Virtual ethernet done
Bridged networking on /dev/vmnet0 done
Host-only networking on /dev/vmnet1 (background) done
DHCP server on /dev/vmnet1 done
Host-only networking on /dev/vmnet8 (background) done
DHCP server on /dev/vmnet8 done
NAT service on /dev/vmnet8 done
VMware Server Authentication Daemon (background) done
Shared Memory Available done
Starting VMware management services:
VMware Server Host Agent (background) done
VMware Virtual Infrastructure Web Access
Starting VMware autostart virtual machines:
Virtual machines done

The configuration of VMware Server 2.0.2 build-203138 for Linux for this
running kernel completed successfully.

Housekeeping...
Thank you for using the script!
Patch provided by:
Ramon de Carvalho Valle
http://risesecurity.org
Script author:
Radu Cotescu
http://radu.cotescu.com

Reboot the box:

reboot


Copyright © 2010 Tuan Nguyen
All Rights Reserved.

Posted via email from ://allthings-bare