Difference between revisions of "VMware - VMware Player - on OpenSuse 10.1"
From Blue-IT.org Wiki
(→References) |
|||
(27 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | [[Category:Virtualisation]] | ||
==Prerequisites== | ==Prerequisites== | ||
− | * VMware(player) | + | * Get the VMware(player) rpm package (e.g. VMware-player-1.0.1-19317.i386.rpm) from [http://www.vmware.com/download/player/ VMware] |
− | * Open SuSE 10.1 | + | * Installation of Open SuSE 10.1 |
* Kernel 2.6.16-4-default | * Kernel 2.6.16-4-default | ||
− | + | * Actual version of vmware-any-any-update. [http://www.google.de/search?1&q=vmware-any-any&spell=1 Search Google.] | |
− | == | + | If you installed vmware(player) before, be shure to delete all files in /tmp: |
+ | rm -rf /tmp/vmware-* | ||
+ | |||
+ | ==Get kernel source== | ||
Get the ''kernel-source'', ''gcc'', ''g++'' and ''make'' and check if everything installed fine: | Get the ''kernel-source'', ''gcc'', ''g++'' and ''make'' and check if everything installed fine: | ||
Line 10: | Line 14: | ||
==Prepare kerneltree== | ==Prepare kerneltree== | ||
− | According to [http://www.novell.com/coolsolutions/feature/15963.htmlHow to install VMware 5.0 workstation on SUSE Linux 10.0] do the following | + | According to <ref>[http://www.novell.com/coolsolutions/feature/15963.htmlHow to install VMware 5.0 workstation on SUSE Linux 10.0]</ref> do the following: |
Go into the kernel source directory and make a configfile. | Go into the kernel source directory and make a configfile. | ||
Line 18: | Line 22: | ||
make prepare_all | make prepare_all | ||
make modules_prepare (THIS IS IMPORTANT FOR 10.1 !!) | make modules_prepare (THIS IS IMPORTANT FOR 10.1 !!) | ||
+ | |||
+ | This is necessary because otherwise vmware will ''NOT'' compile and leave you with an error message about the ''wrong'' kernel directory ''/usr/src/linux/includ''. | ||
==Install VMware== | ==Install VMware== | ||
− | + | 1. Install vmware(player) rpm package. | |
+ | 2. Start Installation which and abort with ''STRG+C'' when asked for the kernel source directory. | ||
+ | 3. Untar ''vmware-any-any-update'' and change to the directory and run | ||
+ | cd vmware-any-any-updateXXX/ | ||
+ | perl runme.pl | ||
+ | |||
+ | No vmware(player) should compile without problems. | ||
+ | |||
+ | ==Configure Networking== | ||
+ | ===SuSE Firewall=== | ||
+ | You have to open the firewall for the ''samba server'' before you can access it from inside of the virtual machine. | ||
+ | |||
+ | ===Linux host: smb.conf=== | ||
+ | To use samba networking within your virtual machine, you have to configure the samba server via yast or edit the configuration file by yourself. | ||
+ | |||
+ | Use the following settings in the ''global'' part of ''/etc/samba/smb.conf'': | ||
+ | [global] | ||
+ | server string = yourServerName | ||
+ | wins support = no | ||
+ | workgroup = yourWindowsSambaWorkgroup | ||
+ | guest account = nobody | ||
+ | encrypt passwords = yes | ||
+ | map to guest = Bad User | ||
+ | socket options = TCP_NODELAY | ||
+ | security = user | ||
+ | guest account = nobody | ||
+ | ; | ||
+ | ; Speed up the samba sever | ||
+ | ; | ||
+ | local master = yes | ||
+ | preferred master = yes | ||
+ | dns proxy = no | ||
+ | |||
+ | For a directory to share with your linux host add the following lines to your ''/etc/samba/smb.conf''. | ||
+ | It assumes, that you have static IP addresses in your network | ||
+ | [aDirectory] | ||
+ | ; Deny all hosts in subnet 192.168.0.1-254 (netmask 255.255.255.0) | ||
+ | hosts deny = 192.168.0.0/24 | ||
+ | ; Allow specific hosts | ||
+ | hosts allow = IP_OF_A_HOST_TO_ALLOW ANOTER_IP | ||
+ | path = /home/username/aDirectory | ||
+ | ; If no, you will see NOTHING in your windows client | ||
+ | available = yes | ||
+ | browseable = yes | ||
+ | public = no | ||
+ | writable = yes | ||
+ | username = solo | ||
+ | |||
+ | ===Windows client=== | ||
+ | Should work out of the box. | ||
+ | |||
+ | ===VMware Tools in a SuSE Guest=== | ||
+ | VMware tools is accessible via the Menu ''VM->VMware Tools Install''. | ||
+ | An isofile is mounted and accessible via the ''/media/...'' directory. | ||
+ | Install ether the ''tar.gz'' sources or the ''rpm'' package. | ||
+ | |||
+ | Download the | ||
+ | vmware-tools-any-updateXYZ.tgz | ||
+ | from your favorite mirror (use Google to find it), unpack it an run | ||
+ | runme.pl | ||
+ | |||
+ | Then you can run the configuration in a shell with | ||
+ | vmware-tools-config.pl | ||
+ | which is exactly the same - including the prerequisites, like the vmware install. | ||
+ | |||
+ | ==Mount vmware images== | ||
+ | VMware images (vmdk) can be mounted with the tool "vmware-mount.pl". | ||
+ | |||
+ | Usage: /usr/bin/" | ||
+ | -p : Print the partition table | ||
+ | disk : Name of the Virtual Hard Disk file | ||
+ | or | ||
+ | disk : Name of the Virtual Hard Disk file | ||
+ | partition : Number of the partition | ||
+ | [-t type] : Partition type | ||
+ | [-o options]: Partition mount options(s) | ||
+ | mount-point : Directory where to mount the partition | ||
+ | |||
+ | E.g.: To get a forsight linux image updated I did | ||
+ | myPC:/local/VMs # vmware-mount.pl foresight-2.18.0/foresight-2.18.0-x86.vmdk 1 temp/ | ||
+ | |||
+ | Then the console keeps open until you press "Ctrl+C" and you can use chroot or whatever to maintain the filesystem. | ||
+ | |||
+ | [[Category:Virtualisation]] | ||
+ | [[Category:VMware]] | ||
+ | [[Category:OpenSuse]] |
Latest revision as of 10:57, 5 February 2018
Contents
Prerequisites
- Get the VMware(player) rpm package (e.g. VMware-player-1.0.1-19317.i386.rpm) from VMware
- Installation of Open SuSE 10.1
- Kernel 2.6.16-4-default
- Actual version of vmware-any-any-update. Search Google.
If you installed vmware(player) before, be shure to delete all files in /tmp:
rm -rf /tmp/vmware-*
Get kernel source
Get the kernel-source, gcc, g++ and make and check if everything installed fine:
rpm -qa kernel* gcc* make
Prepare kerneltree
According to <ref>to install VMware 5.0 workstation on SUSE Linux 10.0</ref> do the following: Go into the kernel source directory and make a configfile.
cd /usr/src/linux make cloneconfig make prepare make prepare_all make modules_prepare (THIS IS IMPORTANT FOR 10.1 !!)
This is necessary because otherwise vmware will NOT compile and leave you with an error message about the wrong kernel directory /usr/src/linux/includ.
Install VMware
1. Install vmware(player) rpm package. 2. Start Installation which and abort with STRG+C when asked for the kernel source directory. 3. Untar vmware-any-any-update and change to the directory and run
cd vmware-any-any-updateXXX/ perl runme.pl
No vmware(player) should compile without problems.
Configure Networking
SuSE Firewall
You have to open the firewall for the samba server before you can access it from inside of the virtual machine.
Linux host: smb.conf
To use samba networking within your virtual machine, you have to configure the samba server via yast or edit the configuration file by yourself.
Use the following settings in the global part of /etc/samba/smb.conf:
[global] server string = yourServerName wins support = no workgroup = yourWindowsSambaWorkgroup guest account = nobody encrypt passwords = yes map to guest = Bad User socket options = TCP_NODELAY security = user guest account = nobody ; ; Speed up the samba sever ; local master = yes preferred master = yes dns proxy = no
For a directory to share with your linux host add the following lines to your /etc/samba/smb.conf. It assumes, that you have static IP addresses in your network
[aDirectory] ; Deny all hosts in subnet 192.168.0.1-254 (netmask 255.255.255.0) hosts deny = 192.168.0.0/24 ; Allow specific hosts hosts allow = IP_OF_A_HOST_TO_ALLOW ANOTER_IP path = /home/username/aDirectory ; If no, you will see NOTHING in your windows client available = yes browseable = yes public = no writable = yes username = solo
Windows client
Should work out of the box.
VMware Tools in a SuSE Guest
VMware tools is accessible via the Menu VM->VMware Tools Install. An isofile is mounted and accessible via the /media/... directory. Install ether the tar.gz sources or the rpm package.
Download the
vmware-tools-any-updateXYZ.tgz
from your favorite mirror (use Google to find it), unpack it an run
runme.pl
Then you can run the configuration in a shell with
vmware-tools-config.pl
which is exactly the same - including the prerequisites, like the vmware install.
Mount vmware images
VMware images (vmdk) can be mounted with the tool "vmware-mount.pl".
Usage: /usr/bin/" -p : Print the partition table disk : Name of the Virtual Hard Disk file or disk : Name of the Virtual Hard Disk file partition : Number of the partition [-t type] : Partition type [-o options]: Partition mount options(s) mount-point : Directory where to mount the partition
E.g.: To get a forsight linux image updated I did
myPC:/local/VMs # vmware-mount.pl foresight-2.18.0/foresight-2.18.0-x86.vmdk 1 temp/
Then the console keeps open until you press "Ctrl+C" and you can use chroot or whatever to maintain the filesystem.