Installing VMware
(→Installation of VMware Player) |
|
| (One intermediate revision by one user not shown) | |
Latest revision as of 13:57, 30 November 2010
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
sudo pisi it kernel-source kernel-module-headers gcc make -y
- Create the required directories
sudo mkdir /etc/rc{0..6}.d - Start installation of VMware-Player
sudo sh VMware-Player-3.1.0-261024.i386.bundle
- In Dolphin go to the downloaded VMware-Player software, open a Konsole with F4 and install/check the required additional packages
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
/usr/kde/4/lib/kde4/libexec/kdesu kwrite /usr/bin/vmplayer
or Alt+F2 andkdesu kwrite /usr/bin/vmplayer
- 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)
- Save and close Kwrite.
- Open VMware-Player executable file in Kwrite as root with
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).
- [start] > [My Computer] and enter at {Address:}
\\IP.address.of.the.host\share (+ enter)
- [start] > [My Computer] and enter at {Address:}
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
- Open a Konsole and install/check the required packages
sudo pisi it kernel-source gcc make
and for P2009 alsosudo pisi it kernel-module-headers
- Create the required directories
sudo mkdir /etc/rc{0..6}.d - Go to the downloaded VMware-Player file (default=)
cd Desktop/
- Start installation
sudo sh VMware-Player-2.5.2-156735.i386.bundle
- Open a Konsole and install/check the required packages
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 Alt+F2 and enter)
kdesu kwrite /usr/bin/vmplayer
- 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)
- Save and close Kwrite.
- Open VMware-Player executable file in Kwrite as root with Alt+F2 and enter)
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.xLiveCD ISO-image
path-to-.iso-file (for instance /mnt/sda3/Pardus-2008.2-Canis-aureus-International.iso)
Installing the Guest_OS in VMware Player
- Upack the downloaded My_Virtual_Machine.zip file. This contains the .vmx and .vmdk file.
- 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
- Open a Konsole and create a directory to extract VMware-Workstation
mkdir /tmp/vmware_tools
- Go to the downloaded VMware-Workstation file (default=)
cd Desktop/
- 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
- Open a Konsole and create a directory to extract VMware-Workstation
Mounting VMWare Tools files on the Host_OS
- 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/orsudo mount -o loop /tmp/vmware/vmware-workstation/lib/isoimages/windows.iso /home/samba
- Mount the .iso file as a loopback file system
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)
- In Konqueror at the Location bar
fish://username-on-the-host@IP.address.of.the.host/tmp/vmware_tools
examplefish://juser@192.168.0.201/tmp/vmware_tools
- Right-click
VMwareTools-7.8.5-156735.tar.gz
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
sudo pisi it gcc make kernel-source kernel-module-headers
sudo mkdir /etc/rc{0..6}.d - 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). - Restart the Guest_OS to activate the VMware Tools.
- In Konqueror at the Location bar
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)
- [start] > [My Computer] and enter at {Address:}
\\IP.address.of.the.host\share (+ enter)
- Copy all items and run
setup
- [start] > [My Computer] and enter at {Address:}
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".