Difference between revisions of "Vmware"

From SME Server
Jump to navigationJump to search
(→‎Installing VMware: snetram path seems unavailable)
 
(29 intermediate revisions by 9 users not shown)
Line 1: Line 1:
 
{{Languages|vmware}}
 
{{Languages|vmware}}
 
+
{{usefulnote}}
== Vmware-server for SME Server ==
 
 
 
 
=== Maintainer ===
 
=== Maintainer ===
 
Sme Developers
 
Sme Developers
 +
===Version===
 +
{{#smeversion: smeserver-vmware-server }}
  
 
=== Description ===
 
=== Description ===
Line 13: Line 13:
  
 
http://forums.contribs.org/index.php?topic=30838.msg162804#msg162804
 
http://forums.contribs.org/index.php?topic=30838.msg162804#msg162804
==== Installing VMware ====
+
===VMware Server 1.x and 2.x===
 +
====Installation====
 +
Obtain a license key from the VMWare website (you need this during installation in vmware-config.pl) ([http://www.vmware.com/freedownload/login.php?product=server20 VMWare Server 2 Website]).
 +
 
 +
Get shell access (with Putty, Gnome-terminal or similar ssh-client) and log in as root.
 +
 
 +
Decide which VMWare Server version you want and do one of the following. Note unless you have a specific need you should use VMWare Server 2.
 +
 
 +
* Download the VMWare-server 1.x RPM from the VMWare website to your machine ([http://register.vmware.com/content/download.html VMWare Server 1 Website])
 +
 
 +
wget http://download3.vmware.com/software/vmserver/VMware-server-1.0.9-156507.i386.rpm
 +
 
 +
* VMware Server 2.x can't be downloaded directly from VMware servers, so get it to your server in some other way. Obtain the correct version for your architecture (32bit or 64bit)  ([http://www.vmware.com/freedownload/login.php?product=server20 VMWare Server 2 Website])
  
Go to VMware web site and get a free serial number for VMware Server, linux version.
+
=====SME7=====
 +
Issue the following command to install VMware together with the contrib:
  
Get shell access (with Putty or similar ssh-client) and log in as root.
+
yum install /path/to/VMware-server.rpm smeserver-vmware-server --enablerepo=smedev
  
wget http://download3.vmware.com/software/vmserver/VMware-server-1.0.4-56528.i386.rpm
+
The above should also install xinetd for dependency.
  
  wget http://www.snetram.nl/wp-content/uploads/temp/smeserver-vmware-server-0.0.1-4.el4.sme.noarch.rpm
+
=====SME8=====
Or
+
The contrib introduces a dependency that cannot be resolved. This dependency is not necessary for sme8.
  wget http://bends.se/it/smeserver/downloads/smeserver-vmware-server-0.0.1-4.el4.sme.noarch.rpm
+
  yum install xinetd
The requirement for GCC is currently an optional. Depending on your kernel at the time you may find the the included modules load and run perfectly (it will give you a message to this effect).
+
For SME8 32bit:
Enabling repos help resolve dependencys.
+
yum localinstall <path-to--rpm-file>/VMware-server-2.0.2-203138.i386.rpm
yum -y --enablerepo=base --enablerepo=updates install gcc
+
For SME8 64bit:
 +
  yum localinstall <path-to--rpm-file>/VMware-server-2.0.2-203138.x86_64.rpm
  
yum -y --enablerepo=base --enablerepo=updates localinstall \
+
configure vmware:
smeserver-vmware-server-0.0.1-4.el4.sme.noarch.rpm \
 
VMware-server-1.0.4-56528.i386.rpm
 
The above will also install xinetd for dependency.
 
 
  vmware-config.pl
 
  vmware-config.pl
 +
and set vmware to autostart and reboot:
 +
ln -s ../init.d/vmware /etc/rc7.d/S19vmware
 +
signal-event post-upgrade; signal-event reboot
 +
 +
Watch the console for a correct start of vmware services. Features like maintenance from external networks, vmware configuration db commands described in the contrib [[vmware]] do not work. Use
 +
/etc/init.d/vmware start|stop|restart
 +
to manage the vmware services. If you do not want vmware server to autostart, remove the symbolic link .
 +
  
 +
====Updating====
 +
Updating is similar to installation. You will need to download the latest rpm for example:
 +
 +
wget http://download3.vmware.com/software/vmserver/VMware-server-1.0.9-156507.i386.rpm
 +
 +
Issue the following command:
 +
 +
yum localupdate path/to/VMWare-server.rpm
 +
 +
You will also likely have to rerun the '''Configuration''' steps (below)
 +
 +
====Configuration====
 +
Go to VMware web site and get a free serial number for VMware Server, linux version [http://register.vmware.com/content/registration.html here].
 +
{{Note box|msg=The requirement for GCC is currently optional. Depending on your kernel at the time you may find the the included modules load and run perfectly (it will give you a message to this effect).
 +
Enabling repos help resolve dependencies.
 +
yum install gcc}}
 +
 +
To finish the installation run the following command:
 +
vmware-config.pl
 +
 +
{{Warning box|msg=Leaving gcc on a production server is considered a security risk, if you do not really need it you should not install it, if you need it you should seriously consider uninstalling gcc when you no longer need it. Removing gcc can be done using the following command:
 +
yum remove gcc}}
 +
 +
Clean up after the installation:
 
  signal-event post-upgrade; signal-event reboot
 
  signal-event post-upgrade; signal-event reboot
  
==== Installing MUI ====
+
=== Management UI for VMWare Server 1.x ===
 +
====Installation====
 
VMware Server Web-based management interface. It's optional, you can also use VMware Console from a client computer.
 
VMware Server Web-based management interface. It's optional, you can also use VMware Console from a client computer.
  wget http://download3.vmware.com/software/vmserver/VMware-mui-1.0.3-44356.tar.gz
+
  wget http://download3.vmware.com/software/vmserver/VMware-mui-1.0.9-156507.tar.gz
 +
tar -xzvf VMware-mui-1.0.9-156507.tar.gz
  
  tar -xzvf VMware-mui-1.0.3-44356.tar.gz
+
  cd vmware-mui-distrib/
 +
====Configuration====
 +
Configuration of the management user interface is done with a script that can be run like this:
 +
./vmware-install.pl
  
  cd vmware-mui-distrib/
+
=== Remote access ===
 +
The VMware Server will only be accessible from the local network. If you want to be able to access the VMware Server from internet, run these commands:
 +
====Console====
 +
To allow console access from your local network:
 +
config set vmware service access private status enabled TCPPort 902
 +
 
 +
{{Warning box|The command below will open the ports of the Management Console to the internet, this means a serious security implication}}
 +
To allow console access from all over the internet:
 +
config set vmware service access public status enabled TCPPort 902
 +
 
 +
Update the remote access settings and reload changes:
 +
signal-event remoteaccess-update
  
./vmware-install.pl
+
Substitute "disabled" instead of "enabled" in the above commands to disable access.
  
==== Remote access ====
+
====Management UI====
The VMware Server will only be accessible from the local network. If you want to be able to access the  VMware Server from internet, run these commands:
+
To allow Management UI access from your local network:
 +
config set httpd.vmware service TCPPorts 8222,8333 access private status enabled
  
To allow MUI access from anywhere:
+
{{Warning box|The command below will open the ports of the Management UI to the internet, this means a serious security implication}}
 +
To allow Management UI access from all over the internet:
 
  config set httpd.vmware service TCPPorts 8222,8333 access public status enabled
 
  config set httpd.vmware service TCPPorts 8222,8333 access public status enabled
 +
 +
After defining the service we need to make the service start at boot time
 
  ln -s /etc/rc.d/init.d/e-smith-service /etc/rc7.d/S91httpd.vmware
 
  ln -s /etc/rc.d/init.d/e-smith-service /etc/rc7.d/S91httpd.vmware
 +
 +
Now we can manually start the service
 
  /etc/rc7.d/S91httpd.vmware restart
 
  /etc/rc7.d/S91httpd.vmware restart
 
  signal-event remoteaccess-update
 
  signal-event remoteaccess-update
  
To allow console access from anywhere:
+
Substitute "disabled" instead of "enabled" in the above commands to disable access.
config set vmware service access public status enabled TCPPort 902
+
 
signal-event remoteaccess-update
+
=== Usage ===
 +
==== Management Console for VMware Server 1.x ====
 +
Download and install the VMware console from the VMware web site, or the MUI webpage, on a client machine or use the existing console if you already have VMware (Server) installed.
  
Substitute "disabled" instead of "enabled" in the above commands to disable this access.
+
Run Console on your client and connect to your_server and start to play...
  
=== Usage ===
+
====Management UI for 1.x ====
==== MUI ====
 
 
Open a web browser and go to https://your_server:8333/vmware/en/
 
Open a web browser and go to https://your_server:8333/vmware/en/
  
 
Log in as root and you will find VMware Management interface.
 
Log in as root and you will find VMware Management interface.
==== Console ====
 
Download and install the VMware console from the VMware web site, or the MUI webpage, on a client machine or use the existing console if you already have VMware (Server) installed.
 
  
Run Console on your client and connect to your_server and start to play...
+
====Management UI for 2.x ====
 +
Open a web browser and go to http://ip.of.your.server:8308/ui/# or https://ip.of.your.server:8333/ui/#
 +
 
 +
Log in as the user you specified during configuration, and you will find VMware Management interface.
  
 
=== Uninstallation ===
 
=== Uninstallation ===
Line 80: Line 147:
 
=== Additional information ===
 
=== Additional information ===
 
More information about vmware can be found on the vmware website http://www.vmware.com/products/server/
 
More information about vmware can be found on the vmware website http://www.vmware.com/products/server/
 
VMware download site: http://register.vmware.com/content/download.html
 
  
 
If some setting went wrong during installation, just rerun  
 
If some setting went wrong during installation, just rerun  
  vmware-config.pl
+
  vmware-config.pl  
  
Be aware that a yum update that includes a new kernel may cause a failure of VMware-server. In this case, you will have to re-run vmware-config.pl and rebuild the modules.  
+
NB. VMware-server benefits from a lot of ram.
  
NB. VMware-server benefits from a lot of ram.
 
 
=== Bugs ===
 
=== Bugs ===
 
Please raise bugs under the SME-Contribs section in {{BugzillaFileBug|product=|component=|title=bugzilla}}and select the smeserver-vmware-server component or use {{BugzillaFileBug|product=SME%20Contribs|component=smeserver-vmware-server|title=this link}}.
 
Please raise bugs under the SME-Contribs section in {{BugzillaFileBug|product=|component=|title=bugzilla}}and select the smeserver-vmware-server component or use {{BugzillaFileBug|product=SME%20Contribs|component=smeserver-vmware-server|title=this link}}.
  
 
==== Known problems ====
 
==== Known problems ====
 +
Be aware that a yum update that includes a new kernel may cause a failure of VMware-server. In this case, you will have to re-run vmware-config.pl and rebuild the modules.
 +
 
Virtual machines created in a Windows host probably need further customization to work fully under SMEserver (Linux) host.
 
Virtual machines created in a Windows host probably need further customization to work fully under SMEserver (Linux) host.
 +
 +
Installing VMware Server 2 without the contrib smeserver-vmware-server will likely result in failure to start VMware after a reboot.
 +
<br />If that is your case you probably have to reinstall the whole server before attempting to install VMware again.
 
   
 
   
 
----
 
----
[[Category: Contrib]]
+
[[Category: Deprecated_Contrib]]
 +
[[Category: Virtualisation]]

Latest revision as of 07:00, 11 July 2022


Is this article helpful to you?
Please consider donating or volunteering
Thank you!

Maintainer

Sme Developers

Version

smeserver-vmware-server
The latest version of smeserver-vmware-server is available in the SME repository, click on the version number(s) for more information.


Description

VMware Server installs on any existing server hardware and partitions a physical server into multiple virtual machines by abstracting processor, memory, storage and networking resources, giving you greater hardware utilization and flexibility. Streamline software development and testing and simplify server provisioning as you utilize the ability to "build once, deploy many times."

Installation

http://forums.contribs.org/index.php?topic=37605.0

http://forums.contribs.org/index.php?topic=30838.msg162804#msg162804

VMware Server 1.x and 2.x

Installation

Obtain a license key from the VMWare website (you need this during installation in vmware-config.pl) (VMWare Server 2 Website).

Get shell access (with Putty, Gnome-terminal or similar ssh-client) and log in as root.

Decide which VMWare Server version you want and do one of the following. Note unless you have a specific need you should use VMWare Server 2.

wget http://download3.vmware.com/software/vmserver/VMware-server-1.0.9-156507.i386.rpm
  • VMware Server 2.x can't be downloaded directly from VMware servers, so get it to your server in some other way. Obtain the correct version for your architecture (32bit or 64bit) (VMWare Server 2 Website)
SME7

Issue the following command to install VMware together with the contrib:

yum install /path/to/VMware-server.rpm smeserver-vmware-server --enablerepo=smedev

The above should also install xinetd for dependency.

SME8

The contrib introduces a dependency that cannot be resolved. This dependency is not necessary for sme8.

yum install xinetd

For SME8 32bit:

yum localinstall <path-to--rpm-file>/VMware-server-2.0.2-203138.i386.rpm

For SME8 64bit:

yum localinstall <path-to--rpm-file>/VMware-server-2.0.2-203138.x86_64.rpm

configure vmware:

vmware-config.pl

and set vmware to autostart and reboot:

ln -s ../init.d/vmware /etc/rc7.d/S19vmware
signal-event post-upgrade; signal-event reboot

Watch the console for a correct start of vmware services. Features like maintenance from external networks, vmware configuration db commands described in the contrib vmware do not work. Use

/etc/init.d/vmware start|stop|restart 

to manage the vmware services. If you do not want vmware server to autostart, remove the symbolic link .


Updating

Updating is similar to installation. You will need to download the latest rpm for example:

wget http://download3.vmware.com/software/vmserver/VMware-server-1.0.9-156507.i386.rpm

Issue the following command:

yum localupdate path/to/VMWare-server.rpm

You will also likely have to rerun the Configuration steps (below)

Configuration

Go to VMware web site and get a free serial number for VMware Server, linux version here.

Important.png Note:
The requirement for GCC is currently optional. Depending on your kernel at the time you may find the the included modules load and run perfectly (it will give you a message to this effect).

Enabling repos help resolve dependencies.

yum install gcc


To finish the installation run the following command:

vmware-config.pl


Warning.png Warning:
Leaving gcc on a production server is considered a security risk, if you do not really need it you should not install it, if you need it you should seriously consider uninstalling gcc when you no longer need it. Removing gcc can be done using the following command:
yum remove gcc


Clean up after the installation:

signal-event post-upgrade; signal-event reboot

Management UI for VMWare Server 1.x

Installation

VMware Server Web-based management interface. It's optional, you can also use VMware Console from a client computer.

wget http://download3.vmware.com/software/vmserver/VMware-mui-1.0.9-156507.tar.gz
tar -xzvf VMware-mui-1.0.9-156507.tar.gz
cd vmware-mui-distrib/

Configuration

Configuration of the management user interface is done with a script that can be run like this:

./vmware-install.pl

Remote access

The VMware Server will only be accessible from the local network. If you want to be able to access the VMware Server from internet, run these commands:

Console

To allow console access from your local network:

config set vmware service access private status enabled TCPPort 902


Warning.png Warning:
The command below will open the ports of the Management Console to the internet, this means a serious security implication


To allow console access from all over the internet:

config set vmware service access public status enabled TCPPort 902

Update the remote access settings and reload changes:

signal-event remoteaccess-update

Substitute "disabled" instead of "enabled" in the above commands to disable access.

Management UI

To allow Management UI access from your local network:

config set httpd.vmware service TCPPorts 8222,8333 access private status enabled


Warning.png Warning:
The command below will open the ports of the Management UI to the internet, this means a serious security implication


To allow Management UI access from all over the internet:

config set httpd.vmware service TCPPorts 8222,8333 access public status enabled

After defining the service we need to make the service start at boot time

ln -s /etc/rc.d/init.d/e-smith-service /etc/rc7.d/S91httpd.vmware

Now we can manually start the service

/etc/rc7.d/S91httpd.vmware restart
signal-event remoteaccess-update

Substitute "disabled" instead of "enabled" in the above commands to disable access.

Usage

Management Console for VMware Server 1.x

Download and install the VMware console from the VMware web site, or the MUI webpage, on a client machine or use the existing console if you already have VMware (Server) installed.

Run Console on your client and connect to your_server and start to play...

Management UI for 1.x

Open a web browser and go to https://your_server:8333/vmware/en/

Log in as root and you will find VMware Management interface.

Management UI for 2.x

Open a web browser and go to http://ip.of.your.server:8308/ui/# or https://ip.of.your.server:8333/ui/#

Log in as the user you specified during configuration, and you will find VMware Management interface.

Uninstallation

vmware-uninstall-mui.pl
yum remove VMware-server gcc smeserver-vmware-server

Check installed versions

yum info installed smeserver-vmware-server VMware-server

Additional information

More information about vmware can be found on the vmware website http://www.vmware.com/products/server/

If some setting went wrong during installation, just rerun

vmware-config.pl 

NB. VMware-server benefits from a lot of ram.

Bugs

Please raise bugs under the SME-Contribs section in bugzilla and select the smeserver-vmware-server component or use this link .

Known problems

Be aware that a yum update that includes a new kernel may cause a failure of VMware-server. In this case, you will have to re-run vmware-config.pl and rebuild the modules.

Virtual machines created in a Windows host probably need further customization to work fully under SMEserver (Linux) host.

Installing VMware Server 2 without the contrib smeserver-vmware-server will likely result in failure to start VMware after a reboot.
If that is your case you probably have to reinstall the whole server before attempting to install VMware again.