Skip to content

Instantly share code, notes, and snippets.

@taking
Last active June 22, 2022 00:19
Show Gist options
  • Save taking/399b2bbebb0633714ba1b4d1514c3646 to your computer and use it in GitHub Desktop.
Save taking/399b2bbebb0633714ba1b4d1514c3646 to your computer and use it in GitHub Desktop.

Vagrant

Prerequisites

  • CPU supports hardware virtualization Check not '0' (egrep -c '(vmx|svm)' /proc/cpuinfo)
  • Virtualbox (apt install virtualbox)
  • Vagrant (apt install vagrant)

Tip

(1) CPU Supports Check

apt install cpu-checker -y
kvm-ok

CleanShot 2022-06-18 at 22 43 52@2x

(2) Vagrant

Create Vagrantfile
mkdir ./vagrant-ubuntu2004 && cd ./vagrant-ubuntu2004
vagrant init generic/ubuntu2004
vagrant up --provider=virtualbox

CleanShot 2022-06-18 at 22 51 15@2x

Connect
  • user : vagrant
  • pass : vagrant
  • port : 2222
ssh vagrant@localhost -p 2222
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment