```ruby
#
# Cookbook Name:: desktop
# Recipe:: virtualbox
#
# Copyright 2015, Andrew Jones
#
# All rights reserved - Do Not Redistribute
#

include_recipe 'apt'

apt_repository 'virtualbox' do
  uri 'http://download.virtualbox.org/virtualbox/debian'
  components ['contrib']
  distribution node[:lsb][:codename]
  key 'https://www.virtualbox.org/download/oracle_vbox_2016.asc'
  action :add
end

package 'virtualbox-4.3' do
  action :remove
  only_if 'dpkg --get-selections | grep virtualbox-4.3'
end
   
package [ 
         'build-essential',
         'dkms',
         'virtualbox-5.0' 
        ] do
    action :install
end

group 'vboxusers' do
  append true
  members node['desktop']['user']['name']
end
```

Add timeout for vbox install
user
```ruby
#
# Cookbook Name:: desktop
# Recipe:: virtualbox
#
# Copyright 2015, Andrew Jones
#
# All rights reserved - Do Not Redistribute
#

include_recipe 'apt'

apt_repository 'virtualbox' do
  uri 'http://download.virtualbox.org/virtualbox/debian'
  components ['contrib']
  distribution node[:lsb][:codename]
  key 'https://www.virtualbox.org/download/oracle_vbox_2016.asc'
  action :add
end

package 'virtualbox-4.3' do
  action :remove
  only_if 'dpkg --get-selections | grep virtualbox-4.3'
end
   
package [ 
         'build-essential',
         'dkms',
         'virtualbox-5.0' 
        ] do
  action :install
  timeout 3600
end

group 'vboxusers' do
  append true
  members node['desktop']['user']['name']
end
```
assistant