This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
packages:vagrant [2013-08-07 23:45] glen add grow disk sample |
packages:vagrant [2013-09-08 20:40] glen mention vagrant installing |
||
---|---|---|---|
Line 4: | Line 4: | ||
Quick workflow is such: | Quick workflow is such: | ||
- | - you register base box with ''vagrant box add'' | + | - install vagrant: ''poldek -u vagrant'' |
- | - you create ''Vagrantfile'' with ''vagrant init BASEBOXNAME'' | + | - add your user to ''vbox'' group |
- | - you bring up VM defined in ''Vagrantfile'' with ''vagrant up'' | + | - register base box with ''vagrant box add'' |
- | - you log in to VM with ''vagrant ssh'' | + | - create ''Vagrantfile'' with ''vagrant init BASEBOXNAME'' |
+ | - bring up VM defined in ''Vagrantfile'' with ''vagrant up'' | ||
+ | - log in to VM with ''vagrant ssh'' | ||
The commands are run in dir where is ''Vagrantfile''. | The commands are run in dir where is ''Vagrantfile''. | ||
Line 38: | Line 40: | ||
the ''.box'' is actually [[https://github.com/mitchellh/vagrant/issues/1741|importable by plain VirtualBox]] as well if you rename the file as ''.ova'', on [[ftp://ftp.pld-linux.org/people/glen/vm/|ftp]] there are symlinks for .ova files made for convenience. | the ''.box'' is actually [[https://github.com/mitchellh/vagrant/issues/1741|importable by plain VirtualBox]] as well if you rename the file as ''.ova'', on [[ftp://ftp.pld-linux.org/people/glen/vm/|ftp]] there are symlinks for .ova files made for convenience. | ||
- | |||
- | ===== Grow a disk ===== | ||
- | |||
- | The VM contains 80GiB disk in LVM PV, default LVM allocation is rather minimal to get base packages installed and may be small when you actually copy files there. | ||
- | |||
- | To increase rootfs by 2GiB: | ||
- | <code bash> | ||
- | poldek -u xfsprogs | ||
- | lvextend --size=+2G /dev/sys/rootfs | ||
- | xfs_growfs / | ||
- | </code> | ||
===== What next? ===== | ===== What next? ===== | ||
After box is up, you probably want to provision it or install packages with ''poldek'' directly. | After box is up, you probably want to provision it or install packages with ''poldek'' directly. | ||
+ | Also quite common is to [[people/glen/vm-info#grow_a_disk|grow a disk]] | ||
==== Chef ==== | ==== Chef ==== | ||
To install ''chef-solo'' do ''poldek -u chef'', if you want to run chef server inside that box, have look at [[chef-server]]. | To install ''chef-solo'' do ''poldek -u chef'', if you want to run chef server inside that box, have look at [[chef-server]]. |