Suse linux and vmware

SDB:Installing VMware server or workstation

For kernel versions greater than or equal to 2.6.32 patching of the kernel modules used by VMware is required to enable them to compile. This article explains how to install a pre-built rpm containing the current patches along with the necessary scripts to simplify the installation and building of these kernel modules.

Contents

  • 1 VMware workstation or server installation
    • 1.1 Prerequsites
    • 1.2 Clean up previous patches
    • 1.3 Installing VMware Workstation (openSUSE)
    • 1.4 Installing VMware Workstation (SLE 11 SP1)
    • 1.5 Installing VMware Server (openSUSE or SLE 11 SP1)
    • 2.1 Install vmware-fix
    • 2.2 Install vmware-fix-workstation-6.5.5 for openSUSE 11.4
    • 3.1 For openSUSE 11.3 and 11.4
    • 3.2 For openSUSE 12.3
    • 4.1 Team members
    • 5.1 External links

    VMware workstation or server installation

    Prerequsites

    The following development applications are required;

    • make, gcc, patch, kernel-source, kernel-syms, linux-glibc-devel or linux-kernel-headers.
    • Either VMware-server 2.0.2, VMware-Workstation 6.5.4 or 6.5.5 and less than 7.1

    Clean up previous patches

    Unsuccessful installation or patching can leave remnants, therefore it’s best to uninstall any previous installs of VMware and clean out the following directory. Open a terminal session and run the following commands;

    Installing VMware Workstation (openSUSE)

    On openSUSE 11.3 there was an issue where the workstation install hung, so this can be overcome by unpacking the rpm to install.

    Open a terminal session and as your user cd to the download location of the rpm (a work directory under your home directory is a good idea) and run the following commands;

    rpm2cpio VMware-Workstation-6.5.4-246459.x86_64.rpm | cpio -idmv
    ./var/cache/vmware/VMware-Workstation-6.5.4-246459.x86_64.bundle
    774099 blocks
    mv ./var/cache/vmware/VMware-Workstation-6.5.4-246459.x86_64.bundle .
    chmod u+x *.bundle

    Now you need to open a second terminal session and become root user and run the following commands;

    In the previous terminal (where you unpacked the rpm also become root user and install the bundle by running the following commands;

    Now proceed as required until the installer finishes, then in the terminal session running the killall command, press ctrl+c to quit the looping command and exit/close the terminal.

    Installing VMware Workstation (SLE 11 SP1)

    For VMware-workstation install via the rpm command, so open a terminal session and run the following commands;

    Installing VMware Server (openSUSE or SLE 11 SP1)

    For VMware-server install via the rpm command, so open a terminal session and run the following commands;

    Patching VMware

    Install vmware-fix

    First you need to grab the vmware-fix rpm for your system, they can be found by using the openSUSE Build Service search feature software.opensuse.org: Search Results

    You can then use your preferred method to install the rpm. On openSUSE 11.3 there is a post install script that runs to create softlinks to autoconf.h and utsrelease.h. If you uninstall the rpm it will delete them.

    Once the vmware-fix rpm has installed, open a terminal session and become root user and run the following commands as per your install below;

    Install vmware-fix-workstation-6.5.5 for openSUSE 11.4

    First you need to grab the vmware-fix-workstation-6.5.5 rpm for your system, they can be found by using the openSUSE Build Service search feature software.opensuse.org: Search Results

    You can then use your preferred method to install the rpm. On openSUSE 11.4 there is a post install script that runs to create softlinks to autoconf.h and utsrelease.h. If you uninstall the rpm it will delete them.

    Once the vmware-fix-workstation-6.5.5 rpm has installed, open a terminal session and become root user and run the following commands as per your install below;

    [Update]: For those having trouble with Host-only or NAT networking the patch provided in the rpm needs to be a different one: http://risesecurity.org/2010/04/02/vmware-server-2-0-2-update-patch-2/ . In a nutshell the vmnet interfaces show no mac address then and are configured not for ethernet but netrom (AMPR NET/ROM in `ip addr`). If you’re affected here’s the temporary diff to the patch (until we figured out a rpm based solution):

    --- /usr/sbin/vmware_server_fix.orig 2010-09-28 22:29:08.484777254 +0100 +++ /usr/sbin/vmware_server_fix 2010-11-04 12:11:51.467653463 +0100 @@ -37,12 +37,12 @@ find vsock-only/ -type f -exec chmod 644 <> \; #Copy patch into fixed directory and apply -cp /usr/share/vmware-fix/vmware-server-2.0.2-203138.patch /tmp/fixed +cp /usr/share/vmware-fix/VMware-server-2.0.2-203138-update-2.patch /tmp/fixed if [ -f vmmon-only/include/compat_cred.h ]; then echo "compat_cred.h exists, removing" rm -f vmmon-only/include/compat_cred.h fi -patch -p0 < vmware-server-2.0.2-203138.patch +patch -p4 < VMware-server-2.0.2-203138-update-2.patch

    For vmware-workstation

    In both the above cases, the script runs the installer routines after patches have been applied, so it's just a matter of answering the questions until the install is completed.

    Kernel Update Issues

    The above patching and scripts only need to be run ONCE to patch the modules, after a kernel upgrade restarting the workstation or server will rebuild the already patched modules.

    For openSUSE 11.3 and 11.4

    After a kernel update there is a new -obj directory added, so the softlinks to autoconf.h and utsrelease.h need updating. So before running any vmware reconfiguration after a kernel update you need to run the following commands;

    For openSUSE 12.3

    With the 3.7.* kernels, the location of .version.h has changed from VMWare's default path. This may not affect all versions of VMWare, however, this applies to Version 9.0.1 and above.

    The location in SUSE changes from /usr/src/linux/linux-$(uname -r)/include/linux/version.h to /usr/src/linux-3.7.x-x.xx-obj/x86_64/desktop/include/generated/uapi/linux/version.h . However, VMWare will look for it in /lib/modules/3.7.x-x.xx-desktop/build/include/linux/version.h. A clean method can be implemented by creating a symbolic link to version.h (but this is not required unless you habitually change your kernel, in which case it would be best to memorize the paths). A dirty method of fixing this is to copy the version.h to the path where VMWare is looking for it.

    This is done by: mkdir /lib/modules/3.7.x-x.xx-desktop/build/include/linux/ cp /usr/src/linux-3.7.x-x.xx-obj/x86_64/desktop/include/generated/uapi/linux/version.h /lib/modules/3.7.x-x.xx-desktop/build/include/linux/

    Communication

    Team members

    See also

    • How to install VMware Server 2.0.x on Ubuntu 9.10 Karmic Koala A script for automated patch install. Radu Cotescu's professional blog
    • VMware Communities: Linux Kernel 2.6.32 + Workstation 7
    • VMware Workstation 6.5.3 on Ubuntu Karmic 9.10 Nobody was Born with Linux Knowledge, blog.
    • Workstation 6.5.5 doesn't compile with kernel 2.6.37 (os11.4)

    Источник

    How to Install VMWare Workstation Pro in OpenSUSE

    Vmware Workstation is a virtual machine software used to run multiple operating systems in a single machine. The virtual machine can run an instance of an operating system such as Windows or any Linux distribution. Generally, it works as a bridge between the host and virtual machine for hardware resources such as hard disk, network drivers, USB devices, etc.

    On the other hand, OpenSUSE is a free open-source Linux distro maintained by the openSUSE project and it is available in two variants which are Leap and Tumbleweed.

    In this tutorial, we go over the steps involved in installing VMWare Workstation 16 in the OpenSUSE Linux distribution.

    Features of VMWare Workstation

    • New guest operating system support.
    • USB controller support.
    • A larger virtual machine, i.e, 32 virtual CPUs, 8GB graphics memory.
    • Performance improvements such as fast file transfer speeds, faster shutdown.
    • Improved accessibility support.
    • Container and Kubernetes support.

    Installing VMWare Workstation Pro in OpenSUSE

    Open a terminal and first update your OpenSUSE system as follows:

    $ sudo zypper update [On openSUSE Leap] $ sudo zypper dist-upgrade [On openSUSE Tumbleweed]

    Next, install the required package dependencies by writing.

    $ sudo zypper in kernel-source kernel-devel gcc

    Next, download the Vmware Workstation 16 installer script bundle from the VMware official site using the following wget command.

    $ wget https://download3.vmware.com/software/wkst/file/VMware-Workstation-Full-16.2.1-18811642.x86_64.bundle

    After this operation, you should expect to see a file named VMware-Workstation-Full-16.2.1-18811642.x86_64.bundle as shown.

    $ ls | grep "bundle" VMware-Workstation-Full-16.2.1-18811642.x86_64.bundle 

    If your output resembles the above it means that the download was successful, now go to the directory where it is currently stored and change its permissions by adding an execute permission for a suitable user group and execute the bundle as follows.

    $ chmod +x VMware-Workstation-Full-16.2.1-18811642.x86_64.bundle $ sudo ./VMware-Workstation-Full-16.2.1-18811642.x86_64.bundle

    Install VMWare Workstation in OpenSUSE

    Now we have it installed, it is time to launch it via the GUI through the application launcher or by using the command:

    If the above command was successful, proceed to the next step. Otherwise, if such a prompt like the one shown below is encountered:

    VMWare Kernel Module Error

    To get rid of this prompt we have to reboot the system:

    The next time we try to launch VMware again, we should see a screen resembling the following:

    Installing VMWare Kernel Modules

    After kernel modules are installed we can relaunch the application again. If successful a window resembling the one below should be displayed.

    VMWare Workstation Agreement

    Select the radio button saying accept the terms in the license agreement then select the next button to proceed, if there is another similar prompt repeat the selection and proceed.

    The next window involves product updates, you can select no if you don’t need product updates or yes if you need them, this is recommended, we don’t want to run an outdated version.

    VMWare Workstation Updates

    You can choose to participate in the CEIP program or not, select yes to join and no not to join then select next to proceed.

    VMWare Workstation Improvements

    Now we are prompted for a license key, if you have one this is the place to enter it and proceed otherwise if you are running it for non-commercial use, select the second radio button.

    VMWare Workstation License

    After selecting, press the finish to complete the installation and start VMware.

    VMWare Workstation Running

    Uninstalling VMWare Workstation Pro in OpenSUSE

    To uninstall the VMWare workstation player write:

    $ sudo vmware-installer -u vmware-workstation

    Remove VMWare Workstation in Opensuse

    If successful you should have an output like shown below:

    Removing VMWware in OpenSUSE

    Vmware Workstation is a virtual machine software used to run multiple operating systems in a single machine. In this article, we have learned how to install it along with its dependencies. We have also shown how to start the VMWare workstation and also how to uninstall it from the OpenSUSE system.

    Источник

    Читайте также:  How to sed linux
Оцените статью
Adblock
detector