install vmware server on ubuntu

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

Now, to the install steps:

  1. Install the necesarry prerequisites

sudo apt-get install linux-headers-`uname -r` build-essential xinetd
  1. Now change into the directory where you saved your VMWare TAR ball. I saved mine in /home/paul/vm

    cd /home/efuchxu/vm


  2. Now Extract the TAR ball and run the installer

    tar xvfz VMware-server-*.tar.gz
    
    cd vmware-server-distrib
    sudo ./vmware-install.pl
  3. when you get an error such as:"The directory of kernel headers (version @@VMWARE@@ UTS_RELEASE) does not match your running kernel"

        you should first

sudo apt-get install linux-source

  1. You can hit enter for all of the defaults, except when asked for a name of an alternate administrator. For that enter your username. If you don't, you will have to reset the root password as that is the default administrator for VMWare Server. Also, when asked for the direcrory of virtual machines, you have the option of saving them in a different directory. I for instance like to save mine in /home/efuchxu/vm.
  2. Near the end, you will have to enter your serial number which you received when you first registered for the download.

   

sudo sed -i -e "s/\/sbin\/insmod -s -f \"\/lib\/modules\/\`uname -r\`\/misc\/\$1.o\"/modprobe -s -f \$1/" /etc/init.d/vmware
sudo sed -i -e "s/sub configure_module {/sub configure_module {\n return 'yes';/" /usr/bin/vmware-config.pl
sudo vmware-config.pl
sudo /etc/init.d/vmware restart

you may need not to do the following commands:

sudo ln -s /lib/modules/3.2.0-27-generic/build/include/generated/autoconf.h /lib/modules/3.2.0-27-generic/build/include/linux/autoconf.h

sudo ln -s /lib/modules/3.2.0-27-generic/build/include/generated/utsrelease.h /lib/modules/3.2.0-27-generic/build/include/linux/utsrelease.h

  1. VMware Server for Windows 921AM-YUW8G-167G7-49N9D  
    VMware Server for Linux 98H80-YH7F1-29N4Q-4T5V9
  2. Done! Now you are ready to login! You can login to the web console by browsing to http://servername:822

转载于:https://my.oschina.net/u/238880/blog/77137

你可能感兴趣的:(install vmware server on ubuntu)