Installing VMware

From PardusWiki
(Difference between revisions)
Jump to: navigation, search
(For Linux Pardus (SSH))
(Undo revision 3089 by Itycajofa (Talk) Spam.)
 
(21 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
= Installing VMware Player =
 
= Installing VMware Player =
 +
This manual is tested on VMware-Player-3.1.0-261024.i386.bundle.
 +
Change the applicable commands for other versions.
 +
 +
==Download==
 +
Go to http://www.vmware.com/products/player/ and download (at this moment) VMware-Player-3.1.0-261024.i386.bundle.
 +
 +
VMware-Player is free of charge.
 +
You have to supply an email address in order to download.
 +
==Installation of VMware Player ==
 +
:# In Dolphin go to the downloaded VMware-Player software, open a Konsole with F4 and install/check the required additional packages <pre>sudo pisi it kernel-source kernel-module-headers gcc make -y</pre>
 +
:# Create the required directories <pre>sudo mkdir /etc/rc{0..6}.d</pre>
 +
:# Start installation of VMware-Player<pre>sudo sh VMware-Player-3.1.0-261024.i386.bundle</pre>
 +
The VMware Player menu item is available in Pardus > Programs > System.
 +
 +
=='''Required''' modification of VMware-Player executable file==
 +
For Pardus it is necessary to modify the VMware-Player executable file in order to get a working VMware-Player and network connection for the Guest_OS after a restart of Pardus (Host_OS)
 +
:# Open VMware-Player executable file in Kwrite as root with <pre>/usr/kde/4/lib/kde4/libexec/kdesu kwrite /usr/bin/vmplayer</pre>or Alt+F2 and<pre>kdesu kwrite /usr/bin/vmplayer</pre>
 +
:# Add at line 11 (just before "set -e") <pre>/usr/kde/4/lib/kde4/libexec/kdesu /etc/init.d/vmware start #(for Pardus 2009)</pre> <pre>kdesu /etc/init.d/vmware start #(for Pardus 2008)</pre>
 +
:# Save and close Kwrite.
 +
 +
==Creating the New Virtual Machine==
 +
Start System > VMware Player and use the "Create a New Virtual Machine" option.
 +
 +
==VMWare Tools==
 +
To improve the graphic properties, mouse capture and more ... we need to install VMWare Tools on the Guest.
 +
 +
When you start the New Virtual Machine a pop-up window about download in install VMWare Tools ... is presented.
 +
 +
If you select "Remind Me Later" you can restart this by activating the Virtual Machine > Install VMware Tools... option in an active VMware Player session.(after installing the Guest_OS).
 +
 +
If the installation of the downloaded VMware Tools is not started automatically, restart the guestOS > start > This Computer > VMware Tools (D:).
 +
 +
 +
===Sharing files between Host_OS and Guest_OS===
 +
For sharing files we need to activate SSH (for Linux <> Linux) and/or Samba (for Linux <> Windows and Linux <> Linux).
 +
 +
For SSH (on the host/Pardus) have a look in [http://en.pardus-wiki.org/HOWTO:_How_to_access_your_files_on_a_remote_PardusPC#SSH_server_setting_on_remote_computer SSH server setting on remote computer] and [http://en.pardus-wiki.org/HOWTO:_How_to_access_your_files_on_a_remote_PardusPC#Firewall_settings_on_all_computers Firewall settings].
 +
 +
For Samba (on the host/Pardus) have a look in [http://en.pardus-wiki.org/HOWTO:SambaNetwork#Setup_of_Pardus Setup of Pardus (Samba)].
 +
 +
====Access to shared files in Windows (Samba)====
 +
:# [start] > [My Computer] and enter at {Address:}  <pre>\\IP.address.of.the.host\share (+ enter)</pre>
 +
 +
=Old version=
 
This manual is tested on VMware-Player-2.5.2-156735.i386.bundle and VMware-Workstation-6.5.2-156735.i386.bundle.
 
This manual is tested on VMware-Player-2.5.2-156735.i386.bundle and VMware-Workstation-6.5.2-156735.i386.bundle.
 
Change the applicable commands for other versions.
 
Change the applicable commands for other versions.
Line 11: Line 55:
  
 
==Installation of VMware Player ==
 
==Installation of VMware Player ==
:# Open a Konsole and install/check the required packages <pre>sudo pisi it kernel-source gcc make</pre>
+
:# Open a Konsole and install/check the required packages <pre>sudo pisi it kernel-source gcc make</pre>and for P2009 also<pre>sudo pisi it kernel-module-headers</pre>
 
:# Create the required directories <pre>sudo mkdir /etc/rc{0..6}.d</pre>
 
:# Create the required directories <pre>sudo mkdir /etc/rc{0..6}.d</pre>
 
:# Go to the downloaded VMware-Player file (default=)  <pre>cd Desktop/</pre>
 
:# Go to the downloaded VMware-Player file (default=)  <pre>cd Desktop/</pre>
Line 17: Line 61:
 
VMware Player menu item is available in Pardus > Programs > System.
 
VMware Player menu item is available in Pardus > Programs > System.
  
==Modification of VMware-Player executable file==
+
=='''Required''' modification of VMware-Player executable file==
For Pardus it is necessary to modify the VMware-Player executable file in order to get a working network connection for the Guest_OS after a restart of Pardus (Host_OS).
+
For Pardus it is necessary to modify the VMware-Player executable file in order to get a working VMware-Player and network connection for the Guest_OS after a restart of Pardus (Host_OS)
:# Open VMware-Player executable file in Kwrite <pre>kdesu kwrite /usr/bin/vmplayer</pre>
+
:# Open VMware-Player executable file in Kwrite as root with Alt+F2 and enter)<pre>kdesu kwrite /usr/bin/vmplayer</pre>
:# Add at line 11 (just before "set -e") <pre>kdesu /etc/init.d/vmware start</pre>
+
:# Add at line 11 (just before "set -e") <pre>/usr/kde/4/lib/kde4/libexec/kdesu /etc/init.d/vmware start (for Pardus 2009)</pre> <pre>kdesu /etc/init.d/vmware start (for Pardus 2008)</pre>
 
:# Save and close Kwrite.
 
:# Save and close Kwrite.
 +
 
==Creating the virtual machine files==
 
==Creating the virtual machine files==
 
VMware-Player needs two files for the Guest_OS.
 
VMware-Player needs two files for the Guest_OS.
Line 42: Line 87:
  
 
===Mounting VMWare Tools files on the Host_OS===
 
===Mounting VMWare Tools files on the Host_OS===
:# Mount the .iso file as a loopback file system  <pre>sudo mount -o loop /tmp/vmware/vmware-workstation/lib/isoimages/linux.iso /tmp/vmware_tools</pre>and/or  <pre>sudo mount -o loop /tmp/vmware/vmware-workstation/lib/isoimages/windows.iso /tmp/vmware_tools</pre>
+
:# Mount the .iso file as a loopback file system  <pre>sudo mount -o loop /tmp/vmware/vmware-workstation/lib/isoimages/linux.iso /tmp/vmware_tools</pre>and/or  <pre>sudo mount -o loop /tmp/vmware/vmware-workstation/lib/isoimages/windows.iso /home/samba</pre>
  
 
===Sharing VMWare Tools between Host_OS and Guest_OS===
 
===Sharing VMWare Tools between Host_OS and Guest_OS===
Line 62: Line 107:
 
:# In Konqueror at the Location bar <pre>fish://username-on-the-host@IP.address.of.the.host/tmp/vmware_tools</pre>example <pre>fish://juser@192.168.0.201/tmp/vmware_tools</pre>
 
:# In Konqueror at the Location bar <pre>fish://username-on-the-host@IP.address.of.the.host/tmp/vmware_tools</pre>example <pre>fish://juser@192.168.0.201/tmp/vmware_tools</pre>
 
:# Right-click  <pre>VMwareTools-7.8.5-156735.tar.gz</pre> and select Extract to ... (wait some seconds) "/home/your_username +[OK]" and close Konqueror.
 
:# Right-click  <pre>VMwareTools-7.8.5-156735.tar.gz</pre> and select Extract to ... (wait some seconds) "/home/your_username +[OK]" and close Konqueror.
:# Open a Konsole and check/install the required packages and directories  <pre>sudo pisi it gcc make kernel-source</pre>  <pre>sudo mkdir /etc/rc{0..6}.d</pre>
+
:# Open a Konsole and check/install the required packages and directories  <pre>sudo pisi it gcc make kernel-source kernel-module-headers</pre>  <pre>sudo mkdir /etc/rc{0..6}.d</pre>
 
:# Go to the vmware-tools-distrib directory and start compiling/installation of vmware-tools <pre>cd vmware-tools-distrib</pre>  <pre>sudo ./vmware-install.pl</pre>Answer all the questions with the default value (= [Enter] key).
 
:# Go to the vmware-tools-distrib directory and start compiling/installation of vmware-tools <pre>cd vmware-tools-distrib</pre>  <pre>sudo ./vmware-install.pl</pre>Answer all the questions with the default value (= [Enter] key).
 
:# Restart the Guest_OS to activate the VMware Tools.
 
:# Restart the Guest_OS to activate the VMware Tools.
Tip: to change display resolution of the Guest_OS use Pardus >  Programs > System > KRandRTray and '''not''' Pardus > Tasma > System > Display Manager.
+
Tip: to change the display resolution of the Guest_OS use Pardus >  Programs > System > KRandRTray and '''not''' Pardus > Tasma > System > Display Manager.
  
 
====For Windows (Samba)====
 
====For Windows (Samba)====
:# [start]>[My Computer] and enter at {Address:}  <pre>smb://IP.address.of.the.host (+ enter) and goto /tmp/vmware_tools</pre>
+
:# [start] > [My Computer] and enter at {Address:}  <pre>\\IP.address.of.the.host\share (+ enter)</pre>
  <pre></pre>
+
:# Copy all items and run <pre>setup</pre>
=Old version=
+
===Modifying Guest_OS properties===
 
+
All properties are described in the .vmx file. Open this file in your favorite editor and you can change the properties of the Guest_OS. As an example have a look at "numvcpus".
Before installing VMware do the following:
+
 
+
<code>pisi it kernel-source<br>
+
pisi it gcc<br>
+
pisi it make<br>
+
mkdir /etc/rc{0..6}.d<br>
+
ln -s /bin/lsmod /sbin/lsmod</code><br>
+
 
+
cd to the <code>wmware-distrib</code> directory, execute <code>./vmware-install.pl</code> and give default answers for all the installer's questions.
+
  
 
[[Category:Virtualisation]]
 
[[Category:Virtualisation]]

Latest revision as of 13:57, 30 November 2010

Contents

Installing VMware Player

This manual is tested on VMware-Player-3.1.0-261024.i386.bundle. Change the applicable commands for other versions.

Download

Go to http://www.vmware.com/products/player/ and download (at this moment) VMware-Player-3.1.0-261024.i386.bundle.

VMware-Player is free of charge. You have to supply an email address in order to download.

Installation of VMware Player

  1. In Dolphin go to the downloaded VMware-Player software, open a Konsole with F4 and install/check the required additional packages
    sudo pisi it kernel-source kernel-module-headers gcc make -y
  2. Create the required directories
    sudo mkdir /etc/rc{0..6}.d
  3. Start installation of VMware-Player
    sudo sh VMware-Player-3.1.0-261024.i386.bundle

The VMware Player menu item is available in Pardus > Programs > System.

Required modification of VMware-Player executable file

For Pardus it is necessary to modify the VMware-Player executable file in order to get a working VMware-Player and network connection for the Guest_OS after a restart of Pardus (Host_OS)

  1. Open VMware-Player executable file in Kwrite as root with
    /usr/kde/4/lib/kde4/libexec/kdesu kwrite /usr/bin/vmplayer
    or Alt+F2 and
    kdesu kwrite /usr/bin/vmplayer
  2. Add at line 11 (just before "set -e")
    /usr/kde/4/lib/kde4/libexec/kdesu /etc/init.d/vmware start #(for Pardus 2009)
    kdesu /etc/init.d/vmware start #(for Pardus 2008)
  3. Save and close Kwrite.

Creating the New Virtual Machine

Start System > VMware Player and use the "Create a New Virtual Machine" option.

VMWare Tools

To improve the graphic properties, mouse capture and more ... we need to install VMWare Tools on the Guest.

When you start the New Virtual Machine a pop-up window about download in install VMWare Tools ... is presented.

If you select "Remind Me Later" you can restart this by activating the Virtual Machine > Install VMware Tools... option in an active VMware Player session.(after installing the Guest_OS).

If the installation of the downloaded VMware Tools is not started automatically, restart the guestOS > start > This Computer > VMware Tools (D:).


Sharing files between Host_OS and Guest_OS

For sharing files we need to activate SSH (for Linux <> Linux) and/or Samba (for Linux <> Windows and Linux <> Linux).

For SSH (on the host/Pardus) have a look in SSH server setting on remote computer and Firewall settings.

For Samba (on the host/Pardus) have a look in Setup of Pardus (Samba).

Access to shared files in Windows (Samba)

  1. [start] > [My Computer] and enter at {Address:}
    \\IP.address.of.the.host\share (+ enter)

Old version

This manual is tested on VMware-Player-2.5.2-156735.i386.bundle and VMware-Workstation-6.5.2-156735.i386.bundle. Change the applicable commands for other versions.

Download

Go to http://www.vmware.com/products/player/ and download (at this moment) VMware-Player-2.5.2-156735.i386.bundle and to add the Guest_OS utility's we also need VMware-Workstation-6.5.2-156735.i386.bundle.

VMware-Player is free of charge. You have to supply an email address in order to download. As we only use VMware-Workstation to extract the Guest_OS utilities you don't need a payed license-key for VMware-Workstation.

Installation of VMware Player

  1. Open a Konsole and install/check the required packages
    sudo pisi it kernel-source gcc make
    and for P2009 also
    sudo pisi it kernel-module-headers
  2. Create the required directories
    sudo mkdir /etc/rc{0..6}.d
  3. Go to the downloaded VMware-Player file (default=)
    cd Desktop/
  4. Start installation
    sudo sh VMware-Player-2.5.2-156735.i386.bundle

VMware Player menu item is available in Pardus > Programs > System.

Required modification of VMware-Player executable file

For Pardus it is necessary to modify the VMware-Player executable file in order to get a working VMware-Player and network connection for the Guest_OS after a restart of Pardus (Host_OS)

  1. Open VMware-Player executable file in Kwrite as root with Alt+F2 and enter)
    kdesu kwrite /usr/bin/vmplayer
  2. Add at line 11 (just before "set -e")
    /usr/kde/4/lib/kde4/libexec/kdesu /etc/init.d/vmware start (for Pardus 2009)
    kdesu /etc/init.d/vmware start (for Pardus 2008)
  3. Save and close Kwrite.

Creating the virtual machine files

VMware-Player needs two files for the Guest_OS.

A .vmx file to describe in plain text the properties of the guest and a .vmdk file for the data. This .vmdk file will increase in size (> ?GB) after installation (and aditional packages) of the Guest_OS.

The easiest way to create these files is to use the "Virtual Machine Creator" of http://www.easyvmx.com/

As a test use the "Super Simple" option with Virtual Machine Operating System:
Generic Linux 2.6.x
LiveCD ISO-image
path-to-.iso-file (for instance /mnt/sda3/Pardus-2008.2-Canis-aureus-International.iso)

Installing the Guest_OS in VMware Player

  1. Upack the downloaded My_Virtual_Machine.zip file. This contains the .vmx and .vmdk file.
  2. Start VMware Player, select "Open an existing Virtual Machine" and after selecting the .vmx file the installation will start.

VMWare Tools

To improve the graphic properties, mouse capture and more ... we need to install VMWare Tools on the Guest.

Extracting VMWare Tools files on the Host_OS

  1. Open a Konsole and create a directory to extract VMware-Workstation
    mkdir /tmp/vmware_tools
  2. Go to the downloaded VMware-Workstation file (default=)
    cd Desktop/
  3. Extract the VMware Workstation bundle. Note that the (temporary) extracted contents is ~ 580M. (we only need the files in /tmp/vmware/vmware-workstation/lib/isoimages/
    sudo /usr/lib/vmware/installer/vmware-installer --install-bundle VMware-Workstation-6.5.2-156735.i386.bundle --extract /tmp/vmware

Mounting VMWare Tools files on the Host_OS

  1. Mount the .iso file as a loopback file system
    sudo mount -o loop /tmp/vmware/vmware-workstation/lib/isoimages/linux.iso /tmp/vmware_tools
    and/or
    sudo mount -o loop /tmp/vmware/vmware-workstation/lib/isoimages/windows.iso /home/samba

Sharing VMWare Tools between Host_OS and Guest_OS

For sharing files we need to activate SSH (for Linux<>Linux) and/or Samba (for Linux<>Windows and Linux<>Linux).

For SSH (on the host)
 [Pardus]>[Tasma]>[System]>[Service Manager]
      Select [Secure Shell Server].
      Put a mark at {Run on startup} and activate the green (Start)button.
      In the column {Run on Startup} {Yes} should be shown.
      [Back].
 [Internet & Network]>[Firewall Config] 
      [Start Firewall] (if not already running)
      Put a mark at {Remote login service}
      [Apply]>[Back] and close Tasma

For Samba have a look in http://en.pardus-wiki.org/HOWTO:SambaNetwork

Installation of VMWare Tools files on the Guest_OS

For Linux Pardus (SSH)

  1. In Konqueror at the Location bar
    fish://username-on-the-host@IP.address.of.the.host/tmp/vmware_tools
    example
    fish://juser@192.168.0.201/tmp/vmware_tools
  2. Right-click
    VMwareTools-7.8.5-156735.tar.gz
    and select Extract to ... (wait some seconds) "/home/your_username +[OK]" and close Konqueror.
  3. Open a Konsole and check/install the required packages and directories
    sudo pisi it gcc make kernel-source kernel-module-headers
    sudo mkdir /etc/rc{0..6}.d
  4. Go to the vmware-tools-distrib directory and start compiling/installation of vmware-tools
    cd vmware-tools-distrib
    sudo ./vmware-install.pl
    Answer all the questions with the default value (= [Enter] key).
  5. Restart the Guest_OS to activate the VMware Tools.

Tip: to change the display resolution of the Guest_OS use Pardus > Programs > System > KRandRTray and not Pardus > Tasma > System > Display Manager.

For Windows (Samba)

  1. [start] > [My Computer] and enter at {Address:}
    \\IP.address.of.the.host\share (+ enter)
  2. Copy all items and run
    setup

Modifying Guest_OS properties

All properties are described in the .vmx file. Open this file in your favorite editor and you can change the properties of the Guest_OS. As an example have a look at "numvcpus".

Personal tools
Namespaces
Variants
Actions
Navigation
Print/export
Toolbox