wiki:TipAndDoc/VM/VMware/Server/Lucid

Version 3 (modified by mitty, 14 years ago) (diff)

--

install VMware Server 2.0.2 on Ubuntu Lucid

procedure produced by Radu

install Ubuntu Lucid with ubuntu-10.04-server-amd64.iso

  • uname -a
    Linux vmserv 2.6.32-21-server #32-Ubuntu SMP Fri Apr 16 09:17:34 UTC 2010 x86_64 GNU/Linux
    

set password to user root

  • sudo su -
  • # passwd
  • rootにパスワードを設定するのは安全性が下がるので、本来は別にユーザを作って管理するようにした方が良い

install packages

  • sudo aptitude install -R linux-headers-uname -r build-essential
    The following NEW packages will be installed:
      binutils{a} build-essential dpkg-dev{a} g++{a} g++-4.4{a} gcc{a}
      gcc-4.4{a} libc-dev-bin{a} libc6-dev{a} libgomp1{a} liblzma1{a}
      libstdc++6-4.4-dev{a} linux-libc-dev{a} xz-utils{a}
    The following packages will be upgraded:
      libc-bin libc6
    The following packages are RECOMMENDED but will NOT be installed:
      fakeroot manpages-dev
    

3rd-party patched

  • mkdir vmware
  • mv VMware-server-2.0.2-203138.x86_64.tar.gz vmware
  • wget http://codebin.cotescu.com/vmware/vmware-server-2.0.x-kernel-2.6.3x-install.sh
    Location: http://github.com/raducotescu/vmware-server-linux-2.6.3x-kernel/tarball/master [following]
    Location: http://waitdownload.github.com/raducotescu-vmware-server-linux-2.6.3x-kernel-592e882.tar.gz [following]
    Saving to: `raducotescu-vmware-server-linux-2.6.3x-kernel-592e882.tar.gz'
    
  • tar xzf raducotescu-vmware-server-linux-2.6.3x-kernel-592e882.tar.gz
  • mv raducotescu-vmware-server-linux-2.6.3x-kernel-592e882/* vmware/
  • ll vmware/
    total 463352
    drwxr-xr-x 2 mitty mitty      4096 2010-06-06 14:22 ./
    drwxr-xr-x 8 mitty mitty      4096 2010-06-06 14:21 ../
    -rw-r--r-- 1 mitty mitty      1321 2010-04-26 05:18 LICENSE
    -rw-r--r-- 1 mitty mitty      1980 2010-04-26 05:18 README
    -rwxr-xr-x 1 mitty mitty       702 2010-04-26 05:18 start-VMware-console.sh*
    -rw-r--r-- 1 mitty mitty      1111 2010-04-26 05:18 vmware-config.patch
    -rw-r--r-- 1 mitty mitty     13618 2010-04-26 05:18 vmware-server-2.0.2-203138-update.patch
    -rw-r--r-- 1 mitty mitty 474415801 2009-10-24 08:13 VMware-server-2.0.2-203138.x86_64.tar.gz
    -rwxr-xr-x 1 mitty mitty     11358 2010-04-26 05:18 vmware-server-2.0.x-kernel-2.6.3x-install.sh*
    

install VMware Server

  • cd vmware/
  • ~/vmware$ sudo ./vmware-server-2.0.x-kernel-2.6.3x-install.sh
    The current administrative user for VMware Server  is ''.  Would you like to
    specify a different administrator? [no] yes
    
    Please specify the user whom you wish to be the VMware Server administrator
     root
    
    Using root as the VMware Server administrator.
    

問題点

vmware-config.plが使えない

  • sudo vmware-config.pl
    The following VMware kernel modules have been found on your system that were
    not installed by the VMware Installer.  Please remove them then run this
    installer again.
    
    vmnet
    vmci
    vmmon
    
    I.e. - 'rm /lib/modules/2.6.32-21-server/misc/<ModuleName>.{o,ko}'
    
    Execution aborted.
    
  • kernel updateによって、moduleが組み込まれなくなった場合に於いてはvmware-config.plが実行可能になるが、kernel moduleを再コンパイルした後はやはり使えなくなる。
    1. sudo aptitude update
    2. sudo aptitude dist-upgrade
      The following NEW packages will be installed:
        linux-headers-2.6.32-22{a} linux-headers-2.6.32-22-server{a}
        linux-image-2.6.32-22-server
      The following packages will be REMOVED:
        linux-headers-2.6.32-21{u} linux-headers-2.6.32-21-server{u}
      The following packages will be upgraded:
        apt apt-transport-https apt-utils libglib2.0-0 linux-headers-server
        linux-image-server linux-server mountall python-apt update-manager-core
      The following packages are RECOMMENDED but will NOT be installed:
        libglib2.0-data shared-mime-info
      
    3. sudo reboot
    4. uname -a
      Linux vmserv 2.6.32-22-server #36-Ubuntu SMP Thu Jun 3 20:38:33 UTC 2010 x86_64 GNU/Linux
      
    5. sudo service vmware status
      Bridged networking on /dev/vmnet0 is not running
      Host network detection is not running
      Host-only networking on /dev/vmnet1 is not running
      DHCP server on /dev/vmnet1 is not running
      Host-only networking on /dev/vmnet8 is not running
      DHCP server on /dev/vmnet8 is not running
      NAT networking on /dev/vmnet8 is not running
      Module vmmon not loaded
      Module vmnet not loaded
      
    6. sudo service vmware start
      VMware Server is installed, but it has not been (correctly) configured
      for the running kernel. To (re-)configure it, invoke the
      following command: /usr/bin/vmware-config.pl.
      
    7. sudo vmware-config.pl
    8. sudo vmware-config.pl
      The following VMware kernel modules have been found on your system that were
      not installed by the VMware Installer.  Please remove them then run this
      installer again.
      
      vmnet
      vmci
      vmmon
      
      I.e. - 'rm /lib/modules/2.6.32-22-server/misc/<ModuleName>.{o,ko}'
      
      Execution aborted.