title: Cannot install Guest Additions on Kali 2.0
body: <p>I am installing the new Kali (2.0) and I am unable to install the guest additions successfully.</p>
  
  <p>I explain you all the steps I have done:</p>
  
  <p>First of all I made sure I have the correct repositories (I think these are the correct ones):</p>
  
  <pre><code>deb http://http.kali.org/kali sana main non-free contrib
  deb http://security.kali.org/kali-security sana/updates main contrib non-free
  deb-src http://http.kali.org/kali sana main non-free contrib
  deb-src http://security.kali.org/kali-security sana/updates main contrib non-free
  </code></pre>
  
  <p>I have updated and upgraded.</p>
  
  <p>Then I have installed the linux-headers (maybe the mistake is here, but I don't think so)</p>
  
  <pre><code>apt-get install linux-headers-$(uname -r)
  apt-get install dkms linux-source linux-headers-$(uname -r)
  </code></pre>
  
  <p>Then I mounted the CD, give it 755 permissions and executed it. This is what I get:</p>
  
  <pre><code>Building the main Guest Additions module ...done.
  Building the shared folder support module ...fail!
  (Look at /var/log/vboxadd-install.log to find out what went wrong)
  Doing non-kernel setup of the Guest Additions ...done.
  Installing the Window System drivers
  Warning: unknown version of the X Window System installed.  Not installing
  X Window System drivers.
   ...done.
  Installing graphics libraries and desktop services components ...done.
  </code></pre>
  
  <p>I have installed the following:</p>
  
  <pre><code>apt-get install virtualbox-guest-x11
  apt-get install open-vm-tools
  </code></pre>
  
  <p>But I still get the same result.</p>
  
  <p>For further information, this is my kernel:</p>
  
  <pre><code>root@kali:~# uname -r
  4.0.0-kali1-686-pae
  </code></pre>
  
  <p>It seems I have the module installed but it doesn't work:</p>
  
  <pre><code>root@kali:~# lsmod | grep vbox
  vboxguest             180224  5
  </code></pre>
  
  <p>My virtualbox version is 4.3.20
  Any idea¿? Thank you very much.</p>
  
  <p>/var/log/vboxadd-install.log</p>
  
  <pre><code>In file included from /tmp/vbox.0/dirops.c:19:0:
  /tmp/vbox.0/dirops.c: In function ‘sf_getdent’:
  /tmp/vbox.0/dirops.c:129:29: error: ‘struct file’ has no member named ‘f_dentry’
       sf_g = GET_GLOB_INFO(dir-&gt;f_dentry-&gt;d_inode-&gt;i_sb);
                               ^
  /tmp/vbox.0/vfsmod.h:144:60: note: in definition of macro ‘GET_GLOB_INFO’
   # define GET_GLOB_INFO(sb)       ((struct sf_glob_info *) (sb)-&gt;s_fs_info)
                                                              ^
  /tmp/vbox.0/dirops.c:135:16: error: ‘struct file’ has no member named ‘f_dentry’
       inode = dir-&gt;f_dentry-&gt;d_inode;
                  ^
  /usr/src/linux-headers-4.0.0-kali1-common/scripts/Makefile.build:263: recipe for target '/tmp/vbox.0/dirops.o' failed
  make[4]: *** [/tmp/vbox.0/dirops.o] Error 1
  /usr/src/linux-headers-4.0.0-kali1-common/Makefile:1407: recipe for target '_module_/tmp/vbox.0' failed
  make[3]: *** [_module_/tmp/vbox.0] Error 2
  Makefile:145: recipe for target 'sub-make' failed
  make[2]: *** [sub-make] Error 2
  Makefile:8: recipe for target 'all' failed
  make[1]: *** [all] Error 2
  /tmp/vbox.0/Makefile.include.footer:79: recipe for target 'vboxsf' failed
  make: *** [vboxsf] Error 2
  Creating user for the Guest Additions.
  Creating udev rule for the Guest Additions kernel module.
  </code></pre>