Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 26th July 2010, 08:33
letsharehowto letsharehowto is offline
Junior Member
 
Join Date: Dec 2009
Location: Sai gon - Viet Nam
Posts: 12
Thanks: 0
Thanked 12 Times in 8 Posts
Default Vmware server 2.0.2-x with Ubuntu server 10.04 VMware Remote Console Plug-in

Vmware server 2.0.2-x with Ubuntu server 10.04 VMware Remote Console Plug-in

Today I will tell you howto setup new box which run Vmware server 2.0.2-x with Ubuntu server 10.04 and VMware Remote Console Plug-in

My box:

CPU: Intel(R) Celeron(R) D CPU 3.06GHz, 1 cores
Memory: 2G
CDrom


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



We have 4 step:

Step one: Setup new box run Ubuntu server.
Step two: Register, download, patch, install VMware.
Step three: Create virtual machines.
Step four: Remote virtual machines by VMware Remote Console Plug-in from client.

Step one: Setup new box run Ubuntu server:

Very easy. If you don`t know, you look at: http://www.howtoforge.com/perfect-se...nx-ispconfig-3.
After setup, reboot box.
Login and active root account:

Code:
sudo passwd root
Password for root, I choose: 111111

Logout then login with root and later we do everything with root too.
Upgrade box:

Code:
apt-get update
apt-get upgrade -y
Install gcc:

Code:
apt-get install -y gcc
Get static for NIC:

Code:
nano /etc/network/interfaces
Delete all and replace with:

Quote:
# 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:

Code:
nano /etc/resolv.conf
Delete all and replace with:

Quote:
nameserver 192.168.1.1
Reboot box:

Code:
reboot
Step two: Register, download, patch, install VMware:

Logon with root and create /root/vm:

Code:
mkdir /root/vm
cd /root/vm
To get VMware file, you have to register at: https://www.vmware.com/tryvmware/?p=server20&lp=1. They will send you email. Follow email, you download and save VMware-server-2.0.2-203138.i386.tar.gz at /root/vm and remember write down Key VMware Server for Linux (look like: XXXXX-XXXXX-XXXXX-XXXXX)

Untar file VMware:

Code:
tar -xzf VMware-server-2.0.2-203138.i386.tar.gz
Before install VMware, we have to patch VMware:

Code:
mkdir /root/dev
cd /root/dev
Download 5 files:

Code:
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 file:

Code:
gunzip 02-vmnet-include.diff.txt.gz
Change name 5 files:

Code:
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 something file patch-vmware_2.6.3x.sh:

Code:
nano patch-vmware_2.6.3x.sh
Delete all and replace with:

Quote:
#!/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:

Code:
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:

Code:
cd /root/vm/vmware-server-distrib
./vmware-install.pl
Enter for everything. Say yes to agree license. Type Key VMware Server they give for you.
That`s it. If sucess, the end like this:

Quote:
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 box:

Code:
reboot
Step three: Create virtual machines:

At client box, goto http://www.google.com/chrome/?hl=en, choose the right one then download and install Chrome.

Open Chrome. Type https://192.168.1.75:8333/ui/# then hit Enter... Click Procced anyway. Picture 1 (http://picasaweb.google.com/11636672...09350211289746)

Login name: root
Password: 111111
Picture 2 (http://picasaweb.google.com/11636672...09360279780690)

Then follow my pictures to create virtual machine (look at pointer).


This step, some time VMware kick you out. You have to refersh brown, relogon to finish this step.


Step four: Remote virtual machines by VMware Remote Console Plug-in from client:

At server, please open tray, put Ubuntu CD then close tray.

Client box is x86, we do:

Code:
cd /tmp 
IP=192.168.1.75:8333 # < fill in esx server ip address here 
wget --no-check-certificate https://$IP/ui/plugin/vmware-vmrc-linux-x86.xpi 
mv vmware-vmrc-linux-x86.xpi vmware-vmrc-linux-x64.zip 
cd ~ 
mkdir -p bin/vmwareconsole # make directory bin in your own homedir 
cd bin/vmwareconsole 
unzip /tmp/vmware-vmrc-linux-x86.zip 
cd ~/bin 
ln -s vmwareconsole/plugins/vmware-vmrc . # make a symlink for easy access 
vmware-vmrc # run the console
Client box is x64, we do:

Code:
cd /tmp 
IP=192.168.1.75:8333 # < fill in esx server ip address here 
wget --no-check-certificate https://$IP/ui/plugin/vmware-vmrc-linux-x64.xpi 
mv vmware-vmrc-linux-x64.xpi vmware-vmrc-linux-x64.zip 
cd ~ 
mkdir -p bin/vmwareconsole # make directory bin in your own homedir 
cd bin/vmwareconsole 
unzip /tmp/vmware-vmrc-linux-x64.zip 
cd ~/bin 
ln -s vmwareconsole/plugins/vmware-vmrc . # make a symlink for easy access 
vmware-vmrc # run the console
Quote:
Host Name: 192.168.1.75:8333
User: root
Password: 111111
Pictures. (http://picasaweb.google.com.vn/11636...55527122802690)

Now you can try new OS.
Have fun!
God Bless!

Thanks:

http://www.howtoforge.com
http://www.ubuntu.com
http://www.vmware.com
http://communities.vmware.com/thread...0&amp;tstart=0
...
And you, spend your time to read this


(If you success, please tell me know )
Reply With Quote
The Following 2 Users Say Thank You to letsharehowto For This Useful Post:
falko (27th July 2010), Onn (5th August 2010)
Sponsored Links
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
php Apps email not going through palkat General 8 21st September 2011 05:35
Statistic not working mzo Installation/Configuration 49 20th April 2011 12:19
The Perfect Server - Ubuntu Lucid Lynx (Ubuntu 10.04) [ISPConfig 2] - Install Samba donbzm2 HOWTO-Related Questions 1 16th July 2010 06:53
Webmail Relay Error palkat General 17 23rd April 2006 18:12
The Perfect Setup Suse 9.3 - Postfix problems new_bee05 HOWTO-Related Questions 20 25th November 2005 02:30


All times are GMT +2. The time now is 22:15.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.