ruby ubuntu / trusty64的最小Vagrantfile(14.04 LTS)
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ruby ubuntu / trusty64的最小Vagrantfile(14.04 LTS)相关的知识,希望对你有一定的参考价值。
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.provider "virtualbox"
config.vm.box = "ubuntu/trusty64"
config.vm.provider "virtualbox" do |vb|
vb.memory = 512
vb.cpus = 1
vb.gui = false
end
config.vm.boot_timeout = 60
config.vm.define "minimal" do |minimal|
minimal.vm.host_name = "minimal"
minimal.vm.network "forwarded_port", guest: 80, host: 8080, auto_correct: true
minimal.vm.network "private_network", ip: "192.168.32.10"
# minimal.vm.network "public_network", auto_config: true, virtualbox__intnet: true, bridge: "en0: Wi-Fi (AirPort)"
minimal.vm.provision "shell", inline: "apt-get update && apt-get -y upgrade"
# minimal.vm.provision :shell, :path => "bootstrap.sh"
end
end
以上是关于ruby ubuntu / trusty64的最小Vagrantfile(14.04 LTS)的主要内容,如果未能解决你的问题,请参考以下文章
在WINDOWS上通过VAGRANT练习ANSIBLE
ubuntu 14.04 安装win7虚拟机
Ubuntu1404
Vagrant box add - 无法连接到cloud-images.ubuntu.com端口443:超时
Mac下Vagrant 1.8.7 添加box失败
sh 在Ubuntu 14.04.3 LTS Trusty上安装Libsodium