先试试:
config.vm.boot_timeout = 360
不行再加上:
INTNET_NAME = [*('A'..'Z')].sample(8).join
config.vm.provider "virtualbox" do |virt|
## Don't boot with headless mode so we can observe the start up process
virt.gui = true
## Give the virtual machine a name
#
virt.name = config.vm.hostname
#virt.customize ["modifyvm", :id, "--name", config.vm.hostname]
## Use VBoxManage to customize the VM:
## Give the internal network/cluster its own namespace to avoid conflicts
virt.customize ["modifyvm", :id, "--nic2", "intnet", "--intnet2", "#{INTNET_NAME}"]
## Fix for slow external network connections
virt.customize ['modifyvm', :id, '--natdnshostresolver1', 'on']
virt.customize ['modifyvm', :id, '--natdnsproxy1', 'on']
## Adjust total ram MB
virt.customize ["modifyvm", :id, "--memory", 1024]
## Adjust video ram MB
virt.customize ["modifyvm", :id, "--vram", 128]
## Adjust number of cpus cores
virt.customize ["modifyvm", :id, "--cpus", 2]
## Adjust CPU utilization cap (percentage)
virt.customize ["modifyvm", :id, "--cpuexecutioncap", 80]
end