User Tools

Site Tools


linux:vagrant

vagrant

A easy tool to setup the linux development environment and deploy on different platform.

Seems to create the special VirtualMachine. But it is cool, I like it.

http://www.vagrantup.com/

http://www.vagrantbox.es/

https://vagrantcloud.com/

Vagrant start...

mkdir ubuntu
cd ubuntu
vagrant init
vagrant box list
vim Vagrantfile
// set to hashicorp/precise64
vagrant up
vagrant ssh

Usage

git clone https://github.com/pjq/vagrant.git
cd vagrant/openwrt
vagrant up
vagrant ssh

vagrant reload
vagrant halt
vagrant up

vagrant box add pengjianqing/gentoo

Vagran with VMWare

As company doesn't not allow to install the VirtualBox, but the VMWare is OK, so I need to follow up the guideline for using vagrant with VMWare

Steps:

  • brew install vagrant
  • Download the Vagrant VMWare Utils https://www.vagrantup.com/vmware/downloads
  • vagrant plugin install vagrant-vmware-desktop
  • sudo launchctl load -w /Library/LaunchDaemons/com.vagrant.vagrant-vmware-utility.plist
  • sudo launchctl unload -w /Library/LaunchDaemons/com.vagrant.vagrant-vmware-utility.plist
  • vagrant plugin update vagrant-vmware-desktop
  • vagrant up –provider=vmware_desktop

Search the “gentoo” box which has the vmware provider

My Vagrant github

git clone https://github.com/pjq/vagrant.git
cd vagrant
vagrant up --provider=vmware_desktop
vagrant ssh
/var/www/dokuwiki/wiki/data/pages/linux/vagrant.txt · Last modified: 2022/06/20 17:19 by jianqing