Skip to content

Instantly share code, notes, and snippets.

@dibayendu
Created July 12, 2017 16:24
Show Gist options
  • Save dibayendu/14e57f287787886f07f8c5cb25e312b7 to your computer and use it in GitHub Desktop.
Save dibayendu/14e57f287787886f07f8c5cb25e312b7 to your computer and use it in GitHub Desktop.
Moving VirtualBox VM to server

Moving VirtualBox VM to server

Modifying guest VM before moving to server

  1. Install ssh server on guest machine - sudo apt-get install openssh-server
  2. Add ssh port VBoxManage modifyvm <myserver> --natpf1 "ssh,tcp,,8022,,22" ssh -p 38022 [email protected]
  3. Remove usb drive settings (except mouse) from VM.
  4. Export Appliance.

Importing VM on server

  1. use sftp to move the .ova file.
  2. VBoxManage import <filename.ova>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment