Results 1 to 8 of 8

Thread: HowTo: make vmtools and autofit guest work with new kernel

  1. #1
    My life is this forum Snayler's Avatar
    Join Date
    Jan 2010
    Posts
    1,418

    Default HowTo: make vmtools and autofit guest work with new kernel

    Ok, this is my first tutorial, so I'll try to be as clear as possible.
    Last week was like a struggle to make vmware tools work with the new kernel (2.6.30.5). I finally managed to get it working, so i decided to share my experience and the solutions i found to my situation.

    I started trying to update kernel because I never managed to get the auto-fit guest feature to work with the new kernel (now i know that the problem was from the graphics drivers, but i'll get to that later)

    So, for start, use muts tutorial to update the kernel:

    Code:
    apt-get update
    apt-get install -d linux-image
    cd /var/cache/apt/archives/
    dpkg -i --force-all linux-image-2.6.30.5_2.6.30.5-10.00.Custom_i386.deb
    apt-get dist-upgrade
    apt-get install madwifi-drivers
    apt-get install r8187-drivers
    (reboot)
    fix-splash
    uname -a (and check if 2.6.30.5 appears)
    Next, you will need to install linux-sources

    Code:
    apt-get install linux-source-2.6.30.5
    cd /usr/src/
    tar jxvf /usr/src/linux-source-2.6.30.5.tar.bz2
    rm -f /usr/src/linux
    ln -s /usr/src/linux-source-2.6.30.5 /usr/src/linux
    After this, i tried installing vmware tools but it complained about not having linux headers.
    The next part, I'll give full credits to muts, because he was the one who told me how to get around the "linux headers needed" problem (thanks again, muts!):

    Code:
    cd /usr/src/linux
    zcat /proc/config.gz > .config
    make scripts
    make bzImage (let it run for like 20 secs and then CTRL+C it)
    ln -s /usr/src/linux /lib/modules/2.6.30.5/build
    After this steps, your kernel should be ready for vmware tools installation.
    After this, auto-fit guest feature wouldn't work for me, so i reverted to the old kernel, and later I discovered how to get it working. Haven't tested it yet with the new kernel... But it should work! For those who auto-fit guest won't work, just do the following:

    Code:
    kate /etc/X11/xorg.conf
    Look for this line:
    Code:
    # **********************************************************************
    # Graphics device section
    # **********************************************************************
    And replace the following lines (until endsection) by this:
    Code:
    Section "Device"
    	Identifier	"VESA Framebuffer"
    	Boardname	"vmware"
    	Busid		"PCI:0:15:0"
    	Driver		"vmware"
    	Screen	0
    EndSection
    That should be it, logout, startx, wait a while, got to view > fit guest now (or resize your vmware window)

    EDIT:
    There is still a problem with the background wallpaper (it gets tiled when the guest autofits the vmware window). I'm still working on that, seems that it is a KDE problem. If somebody knows the answer, please post. I would appreciate it very much.

    Thanks for reading, and sorry for my english. Feel free to correct/criticize my tutorial!

  2. #2
    Senior Member secure_it's Avatar
    Join Date
    Feb 2010
    Location
    在這兩者之間 BackTrack是4 FwdTrack4
    Posts
    854

    Default

    cd /usr/src/linux
    zcat /proc/config.gz > .config
    make scripts
    make bzImage (let it run for like 20 secs and then CTRL+C it)
    ln -s /usr/src/linux /lib/modules/2.6.30.5/build

    Will also solve problem people having,while installing Nvidia Drivers.as while installing on default kernel shipped with BT4,it says version.h not found(kernel headers missing but actually this is problem with symlinks)

  3. #3
    Good friend of the forums Eatme's Avatar
    Join Date
    Aug 2009
    Location
    Socks5
    Posts
    308

    Default

    great tut. !

    re-configured vmware tools and reboot fix my auto guest.
    Wiffy-Auto-Cracker - was the best thing that ever happen to me. :) Wo0oT :)
    AWUSO36H_500mW_5dBi Antenna

  4. #4
    My life is this forum Snayler's Avatar
    Join Date
    Jan 2010
    Posts
    1,418

    Default

    Quote Originally Posted by secure_it View Post
    cd /usr/src/linux
    zcat /proc/config.gz > .config
    make scripts
    make bzImage (let it run for like 20 secs and then CTRL+C it)
    ln -s /usr/src/linux /lib/modules/2.6.30.5/build

    Will also solve problem people having,while installing Nvidia Drivers.as while installing on default kernel shipped with BT4,it says version.h not found(kernel headers missing but actually this is problem with symlinks)
    Thanks for the tip!
    Already helped some people with your info, and gave the credits to you.

    Quote Originally Posted by Eatme View Post
    great tut. !

    re-configured vmware tools and reboot fix my auto guest.
    Glad it worked for you.

  5. #5
    Just burned his ISO
    Join Date
    Aug 2009
    Posts
    3

    Default

    Wouldn't easier solution to 'linux headers not found' and similar errors be
    'make modules_prepare'?
    It sets up kernel tree for building external modules.
    It works for me

  6. #6
    Just burned his ISO
    Join Date
    Feb 2010
    Posts
    5

    Default

    Quote Originally Posted by Snayler View Post

    Code:
    cd /usr/src/linux
    zcat /proc/config.gz > .config
    make scripts
    make bzImage (let it run for like 20 secs and then CTRL+C it)
    ln -s /usr/src/linux /lib/modules/2.6.30.5/build
    After this steps, you kernel should be ready for vmware tools installation.
    Great tutorial but looks like my kernel is not ready yet .
    I installed vmware tools using vmware-install.pl script. After install, the same script calls in vmware-config-tools.pl in order to build external modules, but all of them fail to build in the process.

    Thanks

  7. #7
    Just burned his ISO
    Join Date
    Jan 2010
    Posts
    2

    Default

    Quote Originally Posted by Snayler View Post
    For those who auto-fit guest won't work, just do the following:

    Code:
    kate /etc/X11/xorg.conf
    Look for this line:
    Code:
    # **********************************************************************
    # Graphics device section
    # **********************************************************************
    And replace the following lines (until endsection) by this:
    Code:
    Section "Device"
    	Identifier	"VESA Framebuffer"
    	Boardname	"vmware"
    	Busid		"PCI:0:15:0"
    	Driver		"vmware"
    	Screen	0
    EndSection
    That should be it, logout, startx, wait a while, got to view > fit guest now (or resize your vmware window)

    EDIT:
    There is still a problem with the background wallpaper (it gets tiled when the guest autofits the vmware window). I'm still working on that, seems that it is a KDE problem. If somebody knows the answer, please post. I would appreciate it very much.

    Thanks for reading, and sorry for my english. Feel free to correct/criticize my tutorial!
    I am using BackTrack4-Final in VMware 7.0.1, I updated VMware Tools and all I had to do to get Autofit working was the above. Having the wallpaper problem too, but still thank you

  8. #8
    Member
    Join Date
    Jan 2010
    Location
    Netherlands
    Posts
    84

    Default

    works great thanks !

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •