Skip to content

Instantly share code, notes, and snippets.

Created June 14, 2017 12:29
Show Gist options
  • Save anonymous/70e115c735c43defc6586573f8a1e03f to your computer and use it in GitHub Desktop.
Save anonymous/70e115c735c43defc6586573f8a1e03f to your computer and use it in GitHub Desktop.
system(VBOXMANAGE, 'guestcontrol', vm_name, '--username', remote_user, '--password', remote_password, 'run', '/usr/bin/sudo', '/bin/sh', '--', '-c', "echo \"127.0.0.1\t#{vm_name}\n\" >> /etc/hosts"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment