From Mageia wiki
Jump to: navigation, search
(2017_10_08 codegazer: added "trouble shooting" section)
(2018_09_11 codegazer redirected this page to "Installing VMware workstation 12.5.9 in Mageia 6")
 
Line 1: Line 1:
= Introduction =
+
This page has been superceded by: [[Installing VMware workstation 12.5.9 in Mageia 6]]
 
 
VMware is virtualization software that enables the creation of one or more "virtual machines".
 
 
 
For example, it is possible to install a different operating system such as Ubuntu, Windows, etc as a "guest" virtual machine.
 
 
 
One of the benefits of this is to be able to run different operating systems at the same time on the same physical hardware.
 
For example, you may prefer using Mageia Linux but need to run Windows to keep your satnav device up-to-date.
 
In this case, Mageia is installed on the physical hardware and Windows can be installed as a guest virtual machine allowing the satnav windows application software to run.
 
 
 
 
 
VMware is commercial virtualization software which is not available in the Mageia URPMI sources.
 
In order to download the install image it is necessary to register and login on http://vmware.com .
 
 
 
A license key (purchased from VMware) is needed to run VMware beyond the free trial period.
 
 
 
= Preparation =
 
 
 
== Install C++ development package ==
 
 
 
The C++ development package needs to be installed to enable compilation of some kernel modules used by VMware workstation.
 
 
 
# Install C++ development package
 
# (copy & paste, run as root):
 
 
  urpmi task-c++-devel
 
 
# (end copy & paste)
 
 
 
== Install required kernel packages ==
 
 
 
Kernel modules have to be compiled for VMware workstation.
 
The latest kernel-devel package needs to be installed.
 
Check which kernel you have with the following command:
 
 
 
$ uname -r
 
4.9.50-desktop-1.mga6
 
 
 
The above example shows a "desktop" kernel. Another kernel type would be: "server".
 
Open a root shell and set a shell variable for the kernel type:
 
 
 
<pre>
 
# Define shell variable "kernel_type"
 
# (copy & paste, run as root):
 
 
 
  kernel_type=$(uname -r | awk -F- '{print$2}')
 
 
 
# (end copy & paste)
 
</pre>
 
 
 
Now, check that ''kernel-'''desktop'''-latest'' installed (NB: if it is "server" then check for ''kernel-'''server'''-latest''):
 
 
 
$ rpm -qa | grep "^kernel-${kernel_type}-latest"
 
kernel-desktop-latest-4.9.50-1.mga6
 
 
 
We do have kernel-desktop-latest installed. That is good. If you don't see that installed, you can install it:
 
 
 
<pre>
 
  # Install kernel "latest" meta rpm
 
  # (copy & paste, run as root)
 
 
 
  /sbin/urpmi kernel-${kernel_type}-latest
 
 
 
  # (end copy & paste)
 
</pre>
 
 
 
Next,  check the matching ''devel'' kernel rpm is installed:
 
 
 
$ rpm -qa | grep "^kernel-${kernel_type}-devel-latest"
 
kernel-desktop-devel-latest-4.9.50-1.mga6
 
 
 
We see ''kernel-desktop-'''devel'''-latest'' and that is good. If <i>kernel-desktop-<b>devel</b>-latest</i> was not installed,  install it with:
 
 
 
<pre>
 
  # Install kernel "devel" latest meta rpm
 
  # (copy & paste, run as root)
 
 
 
  /sbin/urpmi kernel-${kernel_type}-devel-latest
 
 
 
  # (end copy & paste)
 
</pre>
 
 
 
== Install other required packages ==
 
 
 
A library needed by the VMware installer when running in console (non-GUI) mode is "lib64ncursesw5":
 
 
 
<pre>
 
  # Install "lib64ncursesw5"
 
  # (copy & paste, run as root)
 
 
 
  /sbin/urpmi lib64ncursesw5
 
 
 
  # (end copy & paste)
 
</pre>
 
 
 
== Download the VMware workstation 12 install image ==
 
 
 
A free trial copy of the VMware workstation install image is available from http://vmware.com after registering.
 
 
 
The VMware workstation 12 image can be found by searching for "VMware-Workstation-Full-12.5.7-5813279.x86_64.bundle" on the http://vmware.com page.
 
Example: https://my.vmware.com/group/vmware/details?downloadGroup=WKST-1257-LX&productId=524&rPId=17068
 
 
 
== Verify download ==
 
 
 
In the VMware download page, click on "Read More" to display the checksums for the install image file.
 
Copy the MD5 checksum to a local file like this:
 
 
 
<pre>
 
  # Copy MD5 checksum to local file same name but with .md5 name extension
 
  # (copy&paste run as non-root)
 
 
 
  f=VMware-Workstation-Full-12.5.7-5813279.x86_64.bundle
 
 
 
  echo "c32043a2174c2464ebca8bba0896f7c4  ${f}" > ${f}.md5
 
 
 
  # Verify MD5 checksum
 
  md5sum -c ${f}.md5
 
 
 
  # (end copy & paste)
 
</pre>
 
 
 
Example:
 
 
 
[user@localhost Downloads]$  # Copy MD5 checksum to local file same name but with .md5 name extension
 
[user@localhost Downloads]$  # (copy&paste run as non-root)
 
[user@localhost Downloads]$
 
[user@localhost Downloads]$  f=VMware-Workstation-Full-12.5.7-5813279.x86_64.bundle
 
[user@localhost Downloads]$
 
[user@localhost Downloads]$  echo "c32043a2174c2464ebca8bba0896f7c4  ${f}" > ${f}.md5
 
[user@localhost Downloads]$
 
[user@localhost Downloads]$  # Verify MD5 checksum
 
[user@localhost Downloads]$  md5sum -c ${f}.md5
 
VMware-Workstation-Full-12.5.7-5813279.x86_64.bundle: OK
 
 
 
In this example (above) the "OK" indicates the MD5 checksum matches correctly indicating that the download completed with no errors.
 
 
 
= Install =
 
 
 
== Execute the install image ==
 
 
 
If you have a license key for VMware workstation 12 then have this ready to copy and paste.
 
 
 
Run the downloaded install file and respond to the EULA agreement prompts that appear.<br>
 
Example: here, running as root, we use the "--console" command line argument to ensure a non-graphical install.
 
 
 
  [root@localhost Downloads] # /bin/sh ./VMware-Workstation-Full-12.5.7-5813279.x86_64.bundle --console
 
 
 
If we have a license key, we can supply that on the command line:
 
 
 
  [root@localhost Downloads] # /bin/sh ./VMware-Workstation-Full-12.5.7-5813279.x86_64.bundle --console \
 
                                --set-setting=vmware-workstation serialNumber 12345-YOUR2-KEY00-GOES0-HERE0
 
 
 
The install will display two EULAs:
 
 
 
# VMware Workstation End User License Agreement
 
# VMware OVF Tool component for Linux End User
 
 
 
If you respond that you agree then you should see something like the following:
 
 
 
<pre>
 
[ text of EULA deleted for brevity ]
 
 
 
If You have any questions concerning this
 
EULA, please send an email to info@vmware.com.
 
 
 
Do you agree? [yes/no]: yes
 
 
 
Would you like to check for product updates on startup? [yes]:
 
 
 
Would you like to help make VMware software better by sending
 
anonymous system data and usage statistics to VMware? [yes]:  
 
 
 
Please enter the user that will initially connect to Workstation
 
Server. Without setting this correctly, you will not be able to share
 
VMs with other users. Additional users and administrators can be
 
configured later in Workstation by selecting "Shared VMs" and clicking
 
"Permissions".  [user]:
 
 
 
Please choose a directory for your shared virtual machines.
 
[/var/lib/vmware/Shared VMs]:
 
 
 
Please enter the port to use for https access to Workstation Server.
 
(HTTPS port:) [443]:
 
 
 
Enter license key. (optional) You can enter this information later.:
 
 
 
The product is ready to be installed.  Press Enter to begin
 
installation or Ctrl-C to cancel.
 
 
 
Installing VMware Workstation 12.5.7
 
    Configuring...
 
[######################################################################] 100%
 
Installation was successful.
 
 
 
</pre>
 
 
 
== Workaround for VMware 12 to work with kernel 4.9 or newer ==
 
 
 
In order to run VMware on 64-bit Mageia 6, it is important to apply the following workaround.
 
 
 
ref: https://communities.vmware.com/thread/564602  (Hint: search for "palko Jun 8, 2017 11:34 PM". )
 
 
 
<pre>
 
  # workaround for VMware workstation 12.5.7 on Mageia 6 with kernel 4.9.50
 
  # (copy & paste, run as root)
 
 
 
  (cd /usr/lib/vmware/lib/libz.so.1 && mv libz.so.1 libz.so.1.old && ln -s /usr/lib64/libz.so.1 .)
 
 
 
  # (end copy & paste)
 
</pre>
 
 
 
= Run =
 
 
<b>NB:</b> Do not attempt to run VMware workstation without applying the workaround (as shown above) or it will fail silently.
 
 
 
VMware workstation can be started from a shell with the command:
 
 
 
<pre>
 
vmware
 
</pre>
 
 
 
Alternatively, start via the desktop: Applications -> Systems Tools -> VMware Workstation
 
 
 
== First time run ==
 
 
 
Note that the first time VMware workstation is run: if a license key was not entered when the install image bundle was executed then a prompt will appear:
 
 
 
[[Image:2017_10_11_vmware_workstation_12_1of2.png]]
 
 
 
Finally, you should see the VMware workstation 12 "Home" window appear:
 
 
 
[[Image:2017_10_11_vmware_workstation_12_2of2.png|742x535px]]
 
 
 
== Subsequent runs ==
 
 
 
Subsequent runs will display the VMware workstation 12 window.
 
 
 
= Trouble shooting =
 
 
 
If, when attempting to start a VMware guest, you see a message like:
 
 
 
<pre>
 
Could not open /dev/vmmon: No such file or directory.
 
Please make sure that the kernel module `vmmon' is loaded.
 
</pre>
 
 
 
Then check that the VMware has been started with <i>systemctl</i>:
 
 
 
<pre>
 
# systemctl status vmware.service
 
● vmware.service - SYSV: This service starts and stops VMware services
 
  Loaded: loaded (/etc/rc.d/init.d/vmware; generated; vendor preset: enabled)
 
  Active: inactive (dead)
 
    Docs: man:systemd-sysv-generator(8)
 
</pre>
 
 
 
If you see the output from "systemctl status vmware.service" like the above example then you can start it:
 
 
 
<pre>
 
# systemctl start vmware.service && systemctl status vmware.service
 
● vmware.service - SYSV: This service starts and stops VMware services
 
  Loaded: loaded (/etc/rc.d/init.d/vmware; generated; vendor preset: enabled)
 
  Active: active (running) since Wed 2017-11-08 11:09:27 GMT; 3s ago
 
    Docs: man:systemd-sysv-generator(8)
 
  Process: 16536 ExecStart=/etc/rc.d/init.d/vmware start (code=exited, status=0/SUCCESS)
 
  CGroup: /system.slice/vmware.service
 
          ├─16662 /usr/lib/vmware/bin/vmware-vmblock-fuse -o subtype=vmware-vmblock,default_permissions,allow_other /var/run/vmblock-fuse
 
          ├─16693 /usr/bin/vmnet-bridge -s 6 -d /var/run/vmnet-bridge-0.pid -n 0
 
          ├─16701 /usr/bin/vmnet-netifup -s 6 -d /var/run/vmnet-netifup-vmnet1.pid /dev/vmnet1 vmnet1
 
          ├─16717 /usr/bin/vmnet-dhcpd -s 6 -cf /etc/vmware/vmnet1/dhcpd/dhcpd.conf -lf /etc/vmware/vmnet1/dhcpd/dhcpd.leases -pf /var/run/vmnet-dhcpd-vmnet1.pid vmnet1
 
          ├─16720 /usr/bin/vmnet-natd -s 6 -m /etc/vmware/vmnet8/nat.mac -c /etc/vmware/vmnet8/nat/nat.conf
 
          ├─16722 /usr/bin/vmnet-netifup -s 6 -d /var/run/vmnet-netifup-vmnet8.pid /dev/vmnet8 vmnet8
 
          ├─16738 /usr/bin/vmnet-dhcpd -s 6 -cf /etc/vmware/vmnet8/dhcpd/dhcpd.conf -lf /etc/vmware/vmnet8/dhcpd/dhcpd.leases -pf /var/run/vmnet-dhcpd-vmnet8.pid vmnet8
 
          └─16792 /usr/sbin/vmware-authdlauncher
 
 
 
Nov 08 11:09:27 dhcp-192-168-101-65.home vmnet-dhcpd[16728]: Copyright 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.
 
Nov 08 11:09:27 dhcp-192-168-101-65.home vmnet-dhcpd[16728]: All rights reserved.
 
Nov 08 11:09:27 dhcp-192-168-101-65.home vmnet-dhcpd[16728]:
 
Nov 08 11:09:27 dhcp-192-168-101-65.home vmnet-dhcpd[16728]: Please contribute if you find this software useful.
 
Nov 08 11:09:27 dhcp-192-168-101-65.home vmnet-dhcpd[16728]: For info, please visit http://www.isc.org/dhcp-contrib.html
 
Nov 08 11:09:27 dhcp-192-168-101-65.home vmnet-dhcpd[16728]:
 
Nov 08 11:09:27 dhcp-192-168-101-65.home vmware[16536]:    Virtual ethernet[  OK  ]
 
Nov 08 11:09:27 dhcp-192-168-101-65.home vmware[16536]:    VMware Authentication Daemon[  OK  ]
 
Nov 08 11:09:27 dhcp-192-168-101-65.home vmware[16536]:    Shared Memory Available[  OK  ]
 
Nov 08 11:09:27 dhcp-192-168-101-65.home systemd[1]: Started SYSV: This service starts and stops VMware services.
 
</pre>
 
 
 
= External links =
 
 
 
# VMware https://vmware.com
 
 
 
# Arch Linux VMware page https://wiki.archlinux.org/index.php/VMware
 

Latest revision as of 20:14, 11 September 2018

This page has been superceded by: Installing VMware workstation 12.5.9 in Mageia 6