User Tools

Site Tools


linux:vagrant

Differences

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

Link to this comparison view

Next revision
Previous revision
linux:vagrant [2014/05/13 21:43] – created percylinux:vagrant [2022/06/20 17:19] (current) – [Vagran with VMWare] jianqing
Line 5: Line 5:
  
 http://www.vagrantup.com/ http://www.vagrantup.com/
 +
 +
 +http://www.vagrantbox.es/
 +
 +https://vagrantcloud.com/
 +
 +====== Vagrant start... ======
 +<code BASH>
 +
 +mkdir ubuntu
 +cd ubuntu
 +vagrant init
 +vagrant box list
 +vim Vagrantfile
 +// set to hashicorp/precise64
 +vagrant up
 +vagrant ssh
 +</code>
 +
 +
 +====== Usage ======
 +<code BASH>
 +git clone https://github.com/pjq/vagrant.git
 +cd vagrant/openwrt
 +vagrant up
 +vagrant ssh
 +
 +</code>
 +
 +<code BASH>
 +
 +vagrant reload
 +vagrant halt
 +vagrant up
 +</code>
 +
 +  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
 +  - https://www.vagrantup.com/docs/providers/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
 +  - https://app.vagrantup.com/generic/boxes/gentoo
 +
 +====== 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/attic/linux/vagrant.1399988631.txt.gz · Last modified: 2016/05/05 13:06 (external edit)