Results 1 to 5 of 5

Thread: 12.1 guest on vmware 8.0.1 vmware tools NULL pointer using vmhgfs

  1. #1

    Default 12.1 guest on vmware 8.0.1 vmware tools NULL pointer using vmhgfs

    Just in case this helps someone temporarily until a real fix comes out.


    Under OpenSuSE 12.1 vmtools from open-vm-tools, vmhgfs module will not load. vmtools from vmware workstation 8.0.1, vmhgfs results in a stack trace BUG NULL pointer in kernel not handled error. vmhgfs is needed for shared folders.

    To fix vmware vmtools you need to edit one file, and reinstall. Usual steps apply


    1. Copy CD to directory.
    2. goto vmware-tools-distrib/lib/modules/source
    3. mkdir tmp
    4. cd tmp
    3. tar xvf ../vmhgfs.tar
    4. edit vmhgfs-only/nano filesystem.c (from the tar extract)
    5. find compat_d_alloc_name
    replace with


    Code:
    // rootDentry = compat_d_alloc_name(NULL, "/");
       struct qstr qs;
       qs.name = "/";
       qs.len = strlen ("/");
       qs.hash = full_name_hash ("/",strlen("/"));
    
     
    
       rootDentry = d_alloc_pseudo(sb, &qs);
    
     
    
    also edit out (not needed now)
    
    //rootDentry->d_parent = rootDentry;
    //rootDentry->d_sb = sb;

    6. tar -cf ../vmhgfs.tar *
    7. go ahead and reinstall vmware-install.pl

    (You will get a compilation warning about mixing data and code but vmhgfs will now work)

  2. #2

    Default Re: 12.1 guest on vmware 8.0.1 vmware tools NULL pointer using vmhgfs

    Might be a good idea to add a cp vmhgfs.tar cmhgfs.tar.old just for failback

    Also what is the deal here...

    ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]

    struct qstr qs;

    Finally this doesn't seem to be working for me I still see the following after install...

    wasuser@linux-4802:~> sudo mount -t vmhgfs -o uid=1001,gid=100 .host:/jackie /me - Pastebin.com

  3. #3

    Default Re: 12.1 guest on vmware 8.0.1 vmware tools NULL pointer using vmhgfs

    Quote Originally Posted by partyk1d24 View Post
    Might be a good idea to add a cp vmhgfs.tar cmhgfs.tar.old just for failback

    Also what is the deal here...

    ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]

    struct qstr qs;

    Finally this doesn't seem to be working for me I still see the following after install...

    wasuser@linux-4802:~> sudo mount -t vmhgfs -o uid=1001,gid=100 .host:/jackie /me - Pastebin.com
    Hi, yes the backup is a good idea (I did do that myself ). The C90 is because I stuck the declaration within the code rather than the begining.

    Did you restart? If you have had the vmhgfs stack trace, it doesn't get removed from memory, and a restart/reboot is the only way to clean it! e.g. to play safe I was doing vmware-uninstall-tools.pl , reboot, vmware-install.pl, but I think a simple reboot after applying the patch should work

  4. #4
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: 12.1 guest on vmware 8.0.1 vmware tools NULL pointer using vmhgfs

    On 2011-11-22 22:46, oldcraft wrote:
    > Under OpenSuSE 12.1 vmtools from open-vm-tools, vmhgfs module will not
    > load. vmtools from vmware workstation 8.0.1, vmhgfs results in a stack
    > trace BUG NULL pointer in kernel not handled error. vmhgfs is needed for
    > shared folders.


    View this thread: http://forums.opensuse.org/showthread.php?t=467953

    In particular a pointer to a thread in Vmware forums.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4 x86_64 "Celadon" at Telcontar)

  5. #5

    Default Re: 12.1 guest on vmware 8.0.1 vmware tools NULL pointer using vmhgfs

    Thank you!
    Works great for VMWare Fusion 4.1.1 and OpenSUSE 12.1.

    Cheers,
    Steve Burns

Posting Permissions

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