mirror of
https://github.com/rapid7/metasploitable3.git
synced 2024-08-26 00:00:09 +02:00
16 lines
416 B
Ruby
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 |