0

I've got this Ubuntu server I'm running, and it's really handy to take the load off of my laptop, but I'd like to know how to set up a virtual machine on it that I can ssh into. Obviously, this removes things like VirtualBox from the equation, since I'm currently in a command line.

I've googled this question, but to no avail. Everything just tells me to run Ubuntu server from a VirtualBox or something, but my laptop can't handle that.

I'd like to keep things in the command line, if possible. Thank you for your help!

(Ideal situation: I create a virtual machine with no GUI from command line, while currently in an ssh connection to a home server. Then I ssh into that virtual machine. No GUIs involved whatsoever.)

0

1 Answer 1

1

Thanks to @Giacomo1968, I now have an answer.

  1. Install VirtualBox and Vagrant on the server. (via ssh connection)
  2. Go to VagrantCloud and select your box. For the sake of this example, I'm using Ubuntu
  3. Create a folder called Ubuntu, and cd into it
  4. Initialize the vagrant box [vagrant init ubuntu/trusty64]
  5. Activate the virtual machine [vagrant up]
  6. After, ssh into it [vagrant ssh]

NOTE: if it asks you for the password for the user vagrant, by default the password is "vagrant" too. (without quotes).

To shut down VM: [vagrant halt]

source: https://www.taniarascia.com/what-are-vagrant-and-virtualbox-and-how-do-i-use-them/

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .