metasploitable3/chef/cookbooks/metasploitable/recipes/vm_tools.rb

16 lines
416 B
Ruby

#
# Cookbook:: metasploitable
# Recipe:: vm_tools
#
# Copyright:: 2017, Rapid7, All Rights Reserved.
if node['virtualization']['system'].match /vbox/
# This assumes the VBoxGuestAdditions.iso was added to the user's home folder in Packer
bash "Install VirtualBox Guest Tools" do
code <<-EOH
mount /home/vagrant/VBoxGuestAdditions.iso /mnt
cd /mnt
./VBoxLinuxAdditions.run
EOH
end
end