Differences between revisions 92 and 104 (spanning 12 versions)
Revision 92 as of 2020-11-12 19:52:22
Size: 8530
Editor: ?JorkanoFaln
Comment: added vmware.service restart failed apt upgrade fix and correct title for adding guest additions
Revision 104 as of 2021-05-08 12:56:34
Size: 7158
Editor: ?JorkanoFaln
Comment: removed troubleshooting step for bullseye, since it is no longer relevant and edit version 16
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
VMware is a commercial PC virtualization solution running on amd64 compatible cpus, since version 11. It allows you to run any x86 compatible OS in a kind of 'sandbox' - inside the VMware virtual machine you can run other operating systems like Windows, FreeBSD or some other version of Linux. Both Windows and a Linux versions are available. VMware is a proprietary and commercial PC virtualization solution running on amd64 compatible CPUs ([[https://kb.vmware.com/s/article/51643|supported CPUs]]), since version 11. It allows you to run any x86 compatible OS in a kind of 'sandbox' - inside the VMware virtual machine you can run other operating systems like Windows, FreeBSD or some other version of Linux. Both Windows and a Linux versions are available.
Line 7: Line 7:
 * For free software alternatives see our SystemVirtualization section.
 * Other zero-cost VMware software that allows you to convert your physical OS to a virtual environment OS can be found here: http://www.vmware.com/products/converter/ .You can use it for example to convert your physical installations or other virtual machines types to a VMware virtual environment.
 * Commercial products like the VMware Workstation Pro is available for Linux, and starts at about 250 US dollars, see :https://www.vmware.com/products/workstation-pro.html
VMware is not a true emulator, it doesn't emulate a CPU like Bochs does, it wraps CPU commands around... It does emulate various hardware devices like network-, graphic- and sound cards.
 *
VMware Workstation player can easily be installed by downloading the relevant bundle and then running as root eg `sudo sh VMware-Player-15.5.6-16341506.x86_64.bundle` on a an vmplayer is useful for running a single VM guest, more info here: https://www.vmware.com/products/workstation-player.html
 * For [[FreeSoftware|Free Software]] alternatives see our SystemVirtualization section.
 * [[https://www.vmware.com/products/converter.html|VMware vCenter Converter]] is zero-cost and allows you to convert your physical OS to a virtual environment OS. You can use it for example to convert your physical installations or other virtual machines types to a VMware virtual environment.
 * Commercial products like [[https://www.vmware.com/products/workstation-pro.html|VMware Workstation Pro]] is available for Linux.
VMware is not a true emulator, it doesn't emulate a CPU like Bochs does, it wraps CPU commands around. It does emulate various hardware devices like network, graphics and audio cards.
 * [[https://www.vmware.com/products/workstation
-player.html|VMware Workstation Player]] can easily be installed by downloading the relevant bundle and then running as root eg `sudo sh VMware-Player-15.5.6-16341506.x86_64.bundle` on a an vmplayer is useful for running a single VM guest.
Line 18: Line 18:
Line 19: Line 20:
chmod +x VMware-Workstation-Full-16.0.0-16894299.x86_64.bundle
sudo ./VMware-Workstation-Full-16.0.0-16894299.x86_64.bundle
chmod +x VMware-Workstation-Full-16.1.1-17801498.x86_64.bundle
sudo ./VMware-Workstation-Full-16.1.1-17801498.x86_64.bundle
Line 22: Line 23:
Line 23: Line 25:
Line 30: Line 33:
VMware Workstation can be easily installed on Debian Buster and Debian Stretch by downloading the required bundle and executing the following commands: VMware Workstation can be easily installed on Debian Buster and Debian Stretch, since VMware Workstation requires a kernel version <= 5.4, without any kernel patches [[https://wiki.archlinux.org/index.php/VMware#VMware_bundle|kernel_patches]], by downloading the required bundle and executing the following commands:
Line 35: Line 39:
Line 36: Line 41:
Line 43: Line 49:
Line 47: Line 54:
In order to run VMware Workstation 14 properly, you must install the required packages to build the VMware kernel modules: 
In order to run VMware Workstation 14 properly, you must install the required packages to build the VMware kernel modules:
Line 52: Line 61:
= Converting existing machines to VMware =
== Physical Machines to VMware/Hyper-V to VMware using VMware Converter ==
Line 53: Line 64:
'''You are able to convert any existing operating system to a virtual environment as a guest on Debian host using [[https://www.vmware.com/products/converter.html|VMware Converter]]. '''
Line 54: Line 66:
== Installing VMware Horizon Client on Jessie ==

[[https://my.vmware.com/en/web/vmware/info/slug/desktop_end_user_computing/vmware_horizon_clients/4_0|VMware Horizon Client]] is a software do display virtual desktops running on VMware Servers. It provides among others [[https://en.wikipedia.org/wiki/PCoIP|PCoverIP]] access to VMware [[https://en.wikipedia.org/wiki/Desktop_virtualization|VDI]] infrastructure.

From the [[https://my.vmware.com/en/web/vmware/info/slug/desktop_end_user_computing/vmware_horizon_clients/4_0|Horizon Client]] page you can download a free for use version of VMware Horizon Client. The downloaded "bundle" package needs to be made executable:

{{{
chmod +x ...bundle
{{{#!wiki important
VMware converter requires to be run on a Windows machine, since it has no Linux version
Line 64: Line 70:
and then executed as root. === Windows ===
Line 66: Line 72:
The only additional thing that needs to be done on Debian jessie to have it running is to create a symlink to libudev:

{{{
ln -s /lib/x86_64-linux-gnu/libudev.so.1 /lib/x86_64-linux-gnu/libudev.so.0
}}}

(The above will need to be adapted to your platform depending on the CPU architecture your system has).

With Horizon client 4.4.0 on up to date Jessie i386 a symlink to libffi6 is also needed:

{{{
ln -s /usr/lib/i386-linux-gnu/libffi.so.6 /usr/lib/i386-linux-gnu/libffi.so.5
}}}
(This is likely to change with future releases, however the installer will complain about any missing libraries).

If the VDI infrastructure uses certificate authorities that are not contained in your CA collection, then you will need to add those as well in order to be able to connect:

{{{
cp VDI_CA.crt VDI_Intermediate_CA.crt /usr/local/share/ca-certificates/
update-certificates
}}}


= Converting existing machines to VMware =
== Physical Machines to VMware/Hyper-V to VMware using VMware Converter ==
'''You are able to convert any existing operating system to a virtual environment as a guest on Debian host using [[http://www.vmware.com/products/converter/|VMwareConverter]]. '''

!! VMware converter requires to be run on a Windows machine, since it has no Linux version !!

=== Windows ===
Line 105: Line 81:
 * To enter Serial Number you can click on Help->Enter Serial Number or you can run:
To enter Serial Number you can click on Help->Enter Serial Number or you can run:
Line 111: Line 89:
Line 116: Line 95:
 cd /usr/lib/vmware/bin cd /usr/lib/vmware/bin
Line 131: Line 110:
It is no longer required to install kernel-headers and run the vmware-guest-additions installer script, since the debian repos already include a version of the vmware-guest-addition [[DebianPkg:open-vm-tools|openvm-tools]]. To install the guest additions execute the following command: {{{
It is no longer required to install kernel-headers and run the vmware-guest-additions installer script, since the debian repos already include a version of the vmware-guest-addition DebianPkg:open-vm-tools. To install the guest additions execute the following command:

{{{
Line 136: Line 118:
 * On an '''apt-get upgrade''' when your kernel has been updated, you no longer need to download the kernel headers and reconfigure vmware. Since the guest additions are now provided by this package: [[DebianPkg:open-vm-tools|openvm-tools]]
On an '''apt upgrade''' when your kernel has been updated, you no longer need to download the kernel headers and reconfigure vmware. Since the guest additions are now provided by the DebianPkg:open-vm-tools package.
Line 140: Line 123:
== GCC version is not found null after VMware Player 16 successful install on Debian Bullseye/Sid ==
In order to enable the VMware Workstation kernel you must compile them manually as root, using the following commands
== GCC version is not found null after VMware Player 16 successful install on Debian Sid ==

In order to enable the VMware Workstation kernel you must compile them manually as root, using these commands:
Line 156: Line 140:
    systemctl restart vmware.service     service vmware restart
Line 161: Line 145:
== vmware.service restart fail after running apt upgrade on Debian Bullseye/Sid == == vmware.service restart fail after running apt upgrade on Debian Sid ==
Line 163: Line 147:
You must run the following commands as root to rebuild the kernel modules: You must run these as root to rebuild the kernel modules:
Line 177: Line 162:
    systemctl restart vmware.service     service vmware restart
Line 180: Line 165:
= Additional resources =

* [[https://wiki.archlinux.org/index.php/VMware|Arch Linux wiki article for VMware Workstation]]
Line 181: Line 170:

Translation(s): none

(!) /Discussion


VMware is a proprietary and commercial PC virtualization solution running on amd64 compatible CPUs (supported CPUs), since version 11. It allows you to run any x86 compatible OS in a kind of 'sandbox' - inside the VMware virtual machine you can run other operating systems like Windows, FreeBSD or some other version of Linux. Both Windows and a Linux versions are available.

VMware is not a true emulator, it doesn't emulate a CPU like Bochs does, it wraps CPU commands around. It does emulate various hardware devices like network, graphics and audio cards.

  • VMware Workstation Player can easily be installed by downloading the relevant bundle and then running as root eg sudo sh VMware-Player-15.5.6-16341506.x86_64.bundle on a an vmplayer is useful for running a single VM guest.

Installing VMware on Debian

VMware Workstation Pro/Player 16

VMware Workstation can be easily installed on Debian by downloading the required bundle and executing the following commands:

chmod +x VMware-Workstation-Full-16.1.1-17801498.x86_64.bundle
sudo ./VMware-Workstation-Full-16.1.1-17801498.x86_64.bundle

In order to run VMware Workstation 16 properly, you must install the required packages to build the VMware kernel modules:

sudo apt install build-essential linux-headers-$(uname -r)

VMware Workstation Pro/Player 15/15.5

VMware Workstation can be easily installed on Debian Buster and Debian Stretch, since VMware Workstation requires a kernel version <= 5.4, without any kernel patches kernel_patches, by downloading the required bundle and executing the following commands:

chmod +x VMware-Workstation-Full-15.5.5-16285975.x86_64.bundle
sudo ./VMware-Workstation-Full-15.5.5-16285975.x86_64.bundle

In order to run VMware Workstation 15 properly, you must install the required packages to build the VMware kernel modules:

sudo apt install build-essential linux-headers-$(uname -r)

VMware Workstation Pro/Player 14

VMware Workstation can be easily installed on Debian Stretch, since VMware Workstation requires a kernel version <= 4.18, without any kernel patches kernel_patches, by downloading the required bundle and executing the following commands:

chmod +x VMware-Workstation-Full-14.1.7-12989993.x86_64.bundle
sudo ./VMware-Workstation-Full-14.1.7-12989993.x86_64.bundle

In order to run VMware Workstation 14 properly, you must install the required packages to build the VMware kernel modules:

sudo apt install build-essential linux-headers-$(uname -r)

Converting existing machines to VMware

Physical Machines to VMware/Hyper-V to VMware using VMware Converter

You are able to convert any existing operating system to a virtual environment as a guest on Debian host using VMware Converter.

VMware converter requires to be run on a Windows machine, since it has no Linux version

Windows

When you are converting existing windows you might need to activate you installation again. Windows will detect different hardware and will prompt you for a new/current activation key.

VirtualBox to VMware

Here is a tutorial on how to convert existing VirtualBox machines to VMware: VBox to VMware

Using VMware

License Keys

To enter Serial Number you can click on Help->Enter Serial Number or you can run:

/usr/lib/vmware/bin/vmware-vmx --new-sn 123-123-123-123...123

Running vmware-netcfg (Virtual Network Editor) with VMware Player

VMware player by default does not give you the greater control over your network that vmware-netcfg used in VMware Workstation can provide.

The following commands will allow you to run vmware-netcfg

cd /usr/lib/vmware/bin

ln -s /usr/lib/vmware/bin/appLoader vmware-netcfg

ln -s /usr/lib/vmware/bin/vmware-netcfg /usr/bin/vmware-netcfg

Credit to Michael Gr.

VMware guest additions install on a Debian guest

It is no longer required to install kernel-headers and run the vmware-guest-additions installer script, since the debian repos already include a version of the vmware-guest-addition open-vm-tools. To install the guest additions execute the following command:

sudo apt install open-vm-tools

VMware, Debian Kernel Upgrade

On an apt upgrade when your kernel has been updated, you no longer need to download the kernel headers and reconfigure vmware. Since the guest additions are now provided by the open-vm-tools package.

Troubleshooting

GCC version is not found null after VMware Player 16 successful install on Debian Sid

In order to enable the VMware Workstation kernel you must compile them manually as root, using these commands:

    cd /usr/lib/vmware/modules/source  
    tar xvf vmnet.tar  
    cd vmnet-only  
    make  
    cd ..  
    tar xvf vmmon.tar  
    cd vmmon-only  
    make  
    cd ..  
    cp vmmon.o /lib/modules/`uname -r`/kernel/drivers/misc/vmmon.ko  
    cp vmnet.o /lib/modules/`uname -r`/kernel/drivers/misc/vmnet.ko  
    depmod -a  
    service vmware restart 

source: https://communities.vmware.com/thread/643016

vmware.service restart fail after running apt upgrade on Debian Sid

You must run these as root to rebuild the kernel modules:

    cd /usr/lib/vmware/modules/source  
    tar xvf vmnet.tar  
    cd vmnet-only  
    make  
    cd ..  
    tar xvf vmmon.tar  
    cd vmmon-only  
    make  
    cd ..  
    cp vmmon.o /lib/modules/`uname -r`/kernel/drivers/misc/vmmon.ko  
    cp vmnet.o /lib/modules/`uname -r`/kernel/drivers/misc/vmnet.ko  
    depmod -a  
    service vmware restart

Additional resources

* Arch Linux wiki article for VMware Workstation


CategoryVirtualization | CategorySoftware | CategoryProprietarySoftware