Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
vagrant [2019-12-19] dcaivagrant [2020-04-20] (current) dcai
Line 1: Line 1:
 +====== vagrant ======
 +
 +=== Find private key ===
 +
 +vagrant ssh-config
 +
 +=== resize small root partition for ubuntu's box ===
 +
 +<code>
 +VBoxManage clonehd "ubuntu-bionic-18.04-cloudimg.vmdk" "hdd.vdi" --format vdi
 +VBoxManage modifyhd "hdd.vdi" --resize 102400
 +# remove all other disk for the instance, and add hdd.vdi
 +# now vagrant up
 +sudo cfidsk /dev/sda # remove /dev/sda2 if exists and expand sda1 to max
 +sudo resize2fs /dev/sda1
 +</code>