How To Install VMware Server 1.0.x On An Ubuntu 9.10 SERVER (AMD64)

Discussion in 'HOWTO-Related Questions' started by none.null, Dec 19, 2009.

  1. none.null

    none.null New Member

    I need to install VMVare Server 1.0.10 on an Ubuntu 9.10 SERVER (AMD64).
    I used the how to "How To Install VMware Server 1.0.x On An Ubuntu 9.10 Desktop" ( at the link http://www.howtoforge.com/how-to-install-vmware-server-1.0.x-on-an-ubuntu-9.10-desktop ) in a new installation without the upgrade.

    after the step :
    Code:
    dpkg -i linux-image-2.6.31.4-custom_2.6.31.4-custom-10.00.Custom_amd64.deb linux-headers-2.6.31.4-custom_2.6.31.4-custom-10.00.Custom_amd64.deb
    retrurn the follow message
    Code:
    Examining /etc/kernel/postinst.d.
    run-parts: executing /etc/kernel/postinst.d/nvidia-common
    
    Setting up linux-headers-2.6.31.4-custom (2.6.31.4-custom-10.00.Custom) ...
    dpkg: warning: obsolete option '--print-installation-architecture', please use '--print-architecture' instead.
    
    after reboot, when the VM started, the host jams ! :confused:

    what about ?
    thanks.
    best regards.
     
  2. falko

    falko Super Moderator Howtoforge Staff

    I had this message as well, but it didn't cause any problem for me...

    Any errors in your logs?
     
  3. none.null

    none.null New Member

    I think so, bat when the VM start the system halted

    now I reinstall ubuntu 9.10 server , vmware 1.0.10 and post the logs
     
  4. none.null

    none.null New Member

    I've reinstalled all.
    After install the new kernel ( the old kernel was 2.6.31-16-server) 2.6.31.4-vmware-1.10

    Code:
    make-kpkg clean
    fakeroot make-kpkg --initrd --append-to-version=-custom kernel_image kernel_headers
    
    when I install or remove a program, the system return the follow error
    Code:
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    mc is already the newest version.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    1 not fully installed or removed.
    After this operation, 0B of additional disk space will be used.
    Setting up linux-image-2.6.31.4-vmware-1.10 (2.6.31.4-vmware-1.10-10.00.Custom) ...
    Running depmod.
    Finding valid ramdisk creators.
    Using mkinitramfs-kpkg to build the ramdisk.
    initrd.img(/boot/initrd.img-2.6.31.4-vmware-1.10
    ) points to /boot/initrd.img-2.6.31.4-vmware-1.10
     (/boot/initrd.img-2.6.31.4-vmware-1.10) -- doing nothing at /var/lib/dpkg/info/linux-image-2.6.31.4-vmware-1.10.postinst line 588.
    vmlinuz(/boot/vmlinuz-2.6.31.4-vmware-1.10
    ) points to /boot/vmlinuz-2.6.31.4-vmware-1.10
     (/boot/vmlinuz-2.6.31.4-vmware-1.10) -- doing nothing at /var/lib/dpkg/info/linux-image-2.6.31.4-vmware-1.10.postinst line 588.
    Running postinst hook script update-grub.
    Searching for GRUB installation directory ... found: /boot/grub
    Searching for default file ... found: /boot/grub/default
    Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
    Searching for splash image ... none found, skipping ...
    Found kernel: /boot/vmlinuz-2.6.31.4-vmware-1.10
    Found kernel: /boot/vmlinuz-2.6.31-16-server
    Found kernel: /boot/vmlinuz-2.6.31-16-generic
    Found kernel: /boot/vmlinuz-2.6.31-14-server
    Found GRUB 2: /boot/grub/core.img
    Found kernel: /boot/memtest86+.bin
    Updating /boot/grub/menu.lst ... done
    
    Examining /etc/kernel/postinst.d.
    run-parts: executing /etc/kernel/postinst.d/dkms
    run-parts: executing /etc/kernel/postinst.d/nvidia-common
    run-parts: /etc/kernel/postinst.d/nvidia-common exited with return code 20
    Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-2.6.31.4-vmware-1.10.postinst line 1186.
    dpkg: error processing linux-image-2.6.31.4-vmware-1.10 (--configure):
     subprocess installed post-installation script returned error exit status 2
    Errors were encountered while processing:
     linux-image-2.6.31.4-vmware-1.10
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    
    The question : do you think is possible to install the vmware-server-1.0.10 onto ubuntu 9.10 server with the last kernel ?

    If this is possible can you exlane me how to do it ?

    best regards.
     
  5. falko

    falko Super Moderator Howtoforge Staff

    No, you will have to rebuild the kernel as explained in the tutorial.
     
  6. none.null

    none.null New Member

    problem after recompile the kernen

    After recopile the kernel, when i can to try to install a program (eg. mc),
    I've the proplem : E: Sub-process /usr/bin/dpkg returned an error code (1)

    Code:
    Lettura elenco dei pacchetti... Fatto
    Generazione albero delle dipendenze       
    Lettura informazioni sullo stato... Fatto
    Pacchetti suggeriti:
      arj xpdf dbview odt2txt
    I seguenti pacchetti NUOVI saranno installati:
      mc
    0 aggiornati, 1 installati, 0 da rimuovere e 5 non aggiornati.
    1 non completamente installati o rimossi.
    È necessario scaricare 2192kB di archivi.
    Dopo quest'operazione, verranno occupati 6521kB di spazio su disco.
    Scaricare:1 http://it.archive.ubuntu.com karmic/universe mc 2:4.6.2-2ubuntu1 [2192kB]
    Recuperati 2192kB in 9s (234kB/s)                                                                                                                                               
    Selezionato il pacchetto mc.
    (Lettura del database... 190081 file e directory attualmente installati.)
    Estrazione di mc (da .../mc_2%3a4.6.2-2ubuntu1_amd64.deb)...
    Elaborazione dei trigger per man-db...
    Configurazione di linux-image-2.6.31.4-custom (2.6.31.4-custom-10.00.Custom)...
    Running depmod.
    Finding valid ramdisk creators.
    Using mkinitramfs-kpkg to build the ramdisk.
    initrd.img(/boot/initrd.img-2.6.31.4-custom
    ) points to /boot/initrd.img-2.6.31.4-custom
     (/boot/initrd.img-2.6.31.4-custom) -- doing nothing at /var/lib/dpkg/info/linux-image-2.6.31.4-custom.postinst line 588.
    vmlinuz(/boot/vmlinuz-2.6.31.4-custom
    ) points to /boot/vmlinuz-2.6.31.4-custom
     (/boot/vmlinuz-2.6.31.4-custom) -- doing nothing at /var/lib/dpkg/info/linux-image-2.6.31.4-custom.postinst line 588.
    Running postinst hook script update-grub.
    Searching for GRUB installation directory ... found: /boot/grub
    Searching for default file ... found: /boot/grub/default
    Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
    Searching for splash image ... none found, skipping ...
    Found kernel: /boot/vmlinuz-2.6.31.4-custom
    Found kernel: /boot/vmlinuz-2.6.31-16-server
    Found kernel: /boot/vmlinuz-2.6.31-16-generic
    Found kernel: /boot/vmlinuz-2.6.31-14-server
    Found GRUB 2: /boot/grub/core.img
    Found kernel: /boot/memtest86+.bin
    Updating /boot/grub/menu.lst ... done
    
    Examining /etc/kernel/postinst.d.
    run-parts: executing /etc/kernel/postinst.d/dkms
    run-parts: executing /etc/kernel/postinst.d/nvidia-common
    run-parts: /etc/kernel/postinst.d/nvidia-common exited with return code 20
    Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-2.6.31.4-custom.postinst line 1186.
    dpkg: errore nell'elaborare linux-image-2.6.31.4-custom (--configure):
     il sottoprocesso vecchio script di post-installation ha restituito lo stato di errore 2
    Configurazione di mc (2:4.6.2-2ubuntu1)...
    
    Si sono verificati degli errori nell'elaborazione:
     linux-image-2.6.31.4-custom
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    
    

    and the process is to slow then before.

    how to do ?

    Thanks.
     
  7. none.null

    none.null New Member

    I've resolved the problem with synaptic ( delete nvidia driver and after reinstalled with Driver Hardware)
     
  8. none.null

    none.null New Member

    the kernel release

    In original installation (ubuntu 9.10 server AMD64) the kernel was 2.6.31-14-server
    after upgrade was 2.6.31-16-server

    after rebuild is 2.6.31.4-custom

    the question : do you think it's possible to compile the kernel with the (last) release 2.6.31-server ?

    If yes : how to do it ? and in the next relese I will recompile the kernell every upgrade ?


    best regards.

    HNY for all.
     
  9. falko

    falko Super Moderator Howtoforge Staff

    Did you install the latest kernel source package?
     
  10. none.null

    none.null New Member

    I have installed (aptitude install) linux-source-2.6.31 before upgrade, and now :
    Code:
    dpkg -l | grep linux-source
    ii  linux-source-2.6.31                  2.6.31-16.53                               Linux kernel source for version 2.6.31 with 
    
     
  11. falko

    falko Super Moderator Howtoforge Staff

    What's the output of
    Code:
    ls -la /usr/src/
    ?
     
  12. bquark

    bquark New Member

    The HOWTO appears to be missing a step

    After installing the custom kernel and entering uname -a:
    Code:
    Linux foobar 2.6.31.6-custom #1 SMP Fri Jan 8 14:12:15 EST 2010 i686 GNU/Linux
    
    the HOWTO asks the reader to
    Code:
    cd /home/falko/Downloads/vmware-update*/
    sudo ./runme.pl
    
    However, vmware-update was not previously mentioned in the HOWTO. After some googling, I decided that vmware-update is a VMware patch and I found a set of vmware patches at http://groups.google.com/group/vmkernelnewbies/files?pli=1.

    I tried the 117d patch and the 2.6.28 patch (there is no 2.6.31 patch in that repository), but both of them result in a failure of the vmmon kernel module to compile. The output of runme.pl is below. Am I on the right track here? If so, am I using the right patch version?

    Code:
    # cd vmware-update-2.6.27-5.5.7-2/
    # ./runme.pl 
    Updating /usr/bin/vmware-config.pl ... already patched
    Updating /usr/bin/vmware ... No patch needed/available
    Updating /usr/bin/vmnet-bridge ... No patch needed/available
    Updating /usr/lib/vmware/bin/vmware-vmx ... No patch needed/available
    Updating /usr/lib/vmware/bin-debug/vmware-vmx ... No patch needed/available
    VMware modules in "/usr/lib/vmware/modules/source" has been updated.
    
    Before running VMware for the first time after update, you need to configure it 
    for your running kernel by invoking the following command: 
    "/usr/bin/vmware-config.pl". Do you want this script to invoke the command for 
    you now? [yes]  
    ...
    Building the vmmon module.
    
    Building for VMware Server 1.0.0.
    Using 2.6.x kernel build system.
    make: Entering directory `/tmp/vmware-config2/vmmon-only'
    make -C /lib/modules/2.6.31.6-custom/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
    make[1]: Entering directory `/usr/src/linux-source-2.6.31'
      CC [M]  /tmp/vmware-config2/vmmon-only/linux/driver.o
    In file included from /tmp/vmware-config2/vmmon-only/./include/vmware.h:25,
                     from /tmp/vmware-config2/vmmon-only/linux/driver.c:52:
    /tmp/vmware-config2/vmmon-only/./include/vm_basic_types.h:97:7: warning: "__FreeBSD__" is not defined
    In file included from /tmp/vmware-config2/vmmon-only/./include/x86.h:21,
                     from /tmp/vmware-config2/vmmon-only/linux/driver.h:15,
                     from /tmp/vmware-config2/vmmon-only/linux/driver.c:53:
    /tmp/vmware-config2/vmmon-only/./include/x86apic.h:80:1: warning: "APIC_BASE_MSR" redefined
    ...
    /tmp/vmware-config2/vmmon-only/./include/vm_atomic.h:273:7: warning: "_MSC_VER" is not defined
    /tmp/vmware-config2/vmmon-only/./include/vm_atomic.h:277:7: warning: "_MSC_VER" is not defined
    ...
    /tmp/vmware-config2/vmmon-only/linux/driver.c:1781: error: too many arguments to function ‘smp_call_function’
    make[2]: *** [/tmp/vmware-config2/vmmon-only/linux/driver.o] Error 1
    make[1]: *** [_module_/tmp/vmware-config2/vmmon-only] Error 2
    make[1]: Leaving directory `/usr/src/linux-source-2.6.31'
    make: *** [vmmon.ko] Error 2
    make: Leaving directory `/tmp/vmware-config2/vmmon-only'
    Unable to build the vmmon module.
    
    For more information on how to troubleshoot module-related problems, please 
    visit our Web site at "http://www.vmware.com/download/modules/modules.html" and
    "http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html".
    
    Execution aborted.
    
     
  13. falko

    falko Super Moderator Howtoforge Staff

    I guess you missed this step?

    Code:
    cd /home/falko/Downloads
    wget -c http://www.insecure.ws/warehouse/vmware-update-2.6.31-5.5.9.tar.bz2
    tar xvfj vmware-update*.tar.bz2
     
  14. bquark

    bquark New Member

    No, I didn't see that at all. I couldn't even find it with Alt-F in Firefox. Thanks, it's working fine now.
     
  15. none.null

    none.null New Member

    The output is :
    Code:
    drwxrwsr-x 13 root src       4096 2010-01-09 18:55 .
    drwxr-xr-x 11 root root      4096 2010-01-01 19:52 ..
    drwxr-xr-x 23 root root      4096 2010-01-01 18:45 linux-headers-2.6.31-14
    drwxr-xr-x  7 root root      4096 2010-01-01 18:45 linux-headers-2.6.31-14-server
    drwxr-xr-x 23 root root      4096 2010-01-01 19:08 linux-headers-2.6.31-16
    drwxr-xr-x  7 root root      4096 2010-01-01 19:08 linux-headers-2.6.31-16-generic
    drwxr-xr-x  7 root root      4096 2010-01-02 13:51 linux-headers-2.6.31-16-server
    drwxr-xr-x 23 root root      4096 2010-01-09 16:04 linux-headers-2.6.31-17
    drwxr-xr-x  7 root root      4096 2010-01-09 16:04 linux-headers-2.6.31-17-generic
    drwxr-xr-x  7 root root      4096 2010-01-09 16:04 linux-headers-2.6.31-17-server
    -rw-r--r--  1 root src    6320106 2010-01-01 21:58 linux-headers-2.6.31.4-custom_2.6.31.4-custom-10.00.Custom_amd64.deb
    drwxr-xr-x 23 root root      4096 2010-01-09 18:16 linux-headers-2.6.31.6-vmware
    -rw-r--r--  1 root src    6321090 2010-01-09 18:10 linux-headers-2.6.31.6-vmware_2.6.31.6-vmware-10.00.Custom_amd64.deb
    -rw-r--r--  1 root src  403672782 2010-01-01 21:57 linux-image-2.6.31.4-custom_2.6.31.4-custom-10.00.Custom_amd64.deb
    -rw-r--r--  1 root src  403798724 2010-01-09 18:08 linux-image-2.6.31.6-vmware_2.6.31.6-vmware-10.00.Custom_amd64.deb
    drwxr-xr-x 26 root root      4096 2010-01-09 18:09 linux-source-2.6.31
    -rw-r--r--  1 root root  62171637 2009-12-10 20:32 linux-source-2.6.31.tar.bz2
    -rw-r--r--  1 root root  62171637 2009-12-10 20:32 linux-source-2.6.31.tar.bz2.old
    drwxr-xr-x  2 root root      4096 2010-01-09 18:55 nvidia-190.53
    
     
  16. falko

    falko Super Moderator Howtoforge Staff

    Please go to the /usr/src/linux-headers-2.6.31-17-server directory to build the newest kernel.
     
  17. bquark

    bquark New Member

    I'm experiencing stability problems with VMs under VMware Server 1.0.10 on Ubuntu 9.10 with this configuration. Windows XP VMs lock or crash frequently (every day) and CentOS VMs crash once a week, none of which happened under Ubuntu 8.04.

    Does anyone else have similar problems? Is VMware Server 2 more reliable on Ubuntu 9.10 than 1.0.10? If so, can you connect remotely to VMware Server 1 hosts from Server 2?
     

Share This Page