Linux « DHCP server | HOME | Squid - Proxy Server »
To run multiple OS on 1 physical server, you need to install below softwares.
- VMware server
- VMware mui
- VMware server console
These softwares are available for both Linux and Windows. So you can choose both platform as HOST OS. After finished host OS setup, you can install GUEST OS on host OS as many as you want. Guest OS can be both Linux or Windows.
Install VMware server
This is main software for virtualization.
# wget http://download3.vmware.com/software/vmserver/VMware-server-1.0.4-56528.i386.rpm
# rpm -ihv VMware-server-1.0.4-56528.i386.rpm
Setup program is prepared. Exexute below file. (If you updated kernel, you have to run this program again. So better kill kernel update by yum. Write "exclude=kernel*" in "/etc/yum.conf".)
# vmware-config.pl
Most of the setup can be the same as default. Also most of the setup can be changed after installatation.
Important thing here is network setup mentioned below.
Do you want networking for your virtual machines? (yes/no/help) [yes] yes
Your computer has multiple ethernet network interfaces available: eth0, eth1.
Which one do you want to bridge to vmnet0? [eth0] eth1 (If you have multiple NIC on the server)
Do you wish to configure another bridged network? (yes/no) [no] no
Do you want to be able to use NAT networking in your virtual machines? (yes/no)
[yes] no
Do you want to be able to use host-only networking in your virtual machines?
[no] no
This is the details for networking.
Use bridged networking : Give the guest operating system direct access to an external Ethernet network. The guest must have its own IP address on the external network.
Use network address translating (NAT) : Give the guest operating system access to the host computer's dial-up or external Ethernet network connection using the host's address.
Use host-only networking : Connect the guest operating system to a private virtual network on the host computer.
Important thing is also below. This is the port setup communicating with VMware server console. You can change the port which is affected to "/etc/xinetd.d/vmware-authd". But if you use VMware server console on Windows, there is no way to change port on client side. It means if you change port here, you can never connect to the server from VMware server console. So better leave it as default.
The default port : 902 is not free. We have selected a suitable alternative
port for VMware Server use. You may override this value now.
Remember to use this port when connecting to this server.
Please specify a port for remote console connections to use [904] 902
Below setup is the directory to save VM machine files. This locations should have the size more than VM machine hard drive size which you will setup later. If you want to assign 20GB hard disk space to the virtual machine, you should choose this directory which is more than 20GB. (Actually this directory setup can be changed later.)
In which directory do you want to keep your virtual machine files?
[/var/lib/vmware/Virtual Machines]
You need to input serial number. You can register yourself and get it from the web.
Type XXXXX-XXXXX-XXXXX-XXXXX or 'Enter' to cancel: XXXXX-XXXXX-XXXXX-XXXXX
Install VMware mui
Install this software to see the server status from the web browser. (VMware management interface)
# wget http://download3.vmware.com/software/vmserver/VMware-mui-1.0.4-56528.tar.gz
# tar zxfv VMware-mui-1.0.4-56528.tar.gz
# cd vmware-mui-distrib/
Exexute auto installation file
# ./vmware-install.pl
All setup can be default.
If you want to uninstall VMware-mui, uninstallation program is prepared as "vmware-uninstall-mui.pl".
Setup Vmware mui
# vmware-config-mui.pl
All setup here also can be default.
# /etc/init.d/vmware start
# /etc/init.d/httpd.vmware start
# chkconfig vmware on
# chkconfig httpd.vmware on
Also "xinetd" should be on for vmware-authd which can modify in "/etc/xinetd.d/vmware-authd".
After above installations were finished, you can access to VMware mui from the web browser.
Firstly check the port which is being used by this software.
# grep Port /usr/lib/vmware-mui/apache/conf/httpd.conf
# Port: The port to which the standalone server listens. For Port 8222
So now you can access VMware mui with below URL.
http://10.81.255.19:8222
To avoid unnecessary warning in "/var/log/secure", create below symlink.
# ln -s /lib/security/pam_unix.so /lib/security/pam_unix2.so
Install VMware server console
This software is necessary to install and manage guest OS. Also you can access to guest OS from this software like VNC.
This software needs Graphic user interface. If you are using Linux without X-window system, you dont have GUI. So you need to do this with the other PC which has GUI interface.
This software is downloadable from VMware mui. So connect VMware mui and download for your appropriate OS. Below is the installation procedure for Linux for example.
# wget https://10.81.255.19:8333/vmware/bin/VMware-server-console-1.0.4-56528.i386.rpm --no-check-certificate
# rpm -ihv VMware-server-console-1.0.4-56528.i386.rpm
# /usr/bin/vmware-config-server-console.pl
Then start VMware server console and now you can install guest OS on the host OS.
Install VMware Tolls on guest OS
After installed guest OS, better install VMware Tools on guest OS which provides you below functions.
- Improve graphic performance
- Move mouse pointer seamlessly between host and guest OS
- Synchronize the time between host and guest OS
- Copy and paste a text between host and guest OS
- Share folder (in case that host OS is windows)
For Windows, it is very easy to install since just click on "Install VMware Tools" from "VM" menu on Vmware Server Console.
For Linux, nothing happens although you did above. After that you need to mount software directory like below. (This directory is prepared only when you click "Install VMware Tools".)
# mount /dev/hdc /mnt/
Then you can see some installation files in there.
# rpm -ivh /mnt/VMwareTools-1.0.6-91891.i386.rpm
After installation finished, execute below and follow the setup wizard.
# vmware-config-tools.pl
# /etc/init.d/vmware-tools start
# chkconfig vmware-tools on
=============
reference
http://register.vmware.com/content/download.html

