unable to run multiple vagrant instances of ubuntu/xenial64 box
Bug #1567259 reported by
LoOoD
This bug affects 20 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-images |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I've got 2 seperate repos that use vagrant. Both are configured to use ubuntu/xenial64 box. Once I 'up' a vagrant from one repo, I can't run unbuntu/xenial64 box for the other.
$ vagrant up xenial
Bringing machine 'xenial' up with 'virtualbox' provider...
==> xenial: Importing base box 'ubuntu/
==> xenial: Matching MAC address for NAT networking...
==> xenial: Checking if box 'ubuntu/xenial64' is up to date...
A VirtualBox machine with the name 'ubuntu-
Please use another name or delete the machine with the existing
name, and try again.
To post a comment you must log in.
The Vagrantfile INSIDE the virtualbox.box comes with some definitions that i guess shouldn't be there.
Here is the Vagrantfile from Trusty x Xenial
== Trusty ==
➜ boxes cat ubuntu- VAGRANTSLASH- trusty64/ 20160323. 1.0/virtualbox/ Vagrantfile vm.base_ mac = "0800278856E6"
Vagrant::Config.run do |config|
# This Vagrantfile is auto-generated by 'vagrant package' to contain
# the MAC address of the box. Custom configuration should be placed in
# the actual 'Vagrantfile' in this box.
config.
end
# Load include vagrant file if it exists after the auto-generated path(". ./include/ _Vagrantfile" , __FILE__) (include_ vagrantfile)
# so it can override any of the settings
include_vagrantfile = File.expand_
load include_vagrantfile if File.exist?
== Xenial == VAGRANTSLASH- xenial64/ 20160411. 0.0/virtualbox/ Vagrantfile path(". ./include/ _Vagrantfile" , __FILE__) (include_ vagrantfile)
➜ boxes cat ubuntu-
# Front load the includes
include_vagrantfile = File.expand_
load include_vagrantfile if File.exist?
Vagrant. configure( "2") do |config| vm.base_ mac = "020E47A5C995" ssh.username = "ubuntu" ssh.password = "7f63355c16f325 d44b440caa" vm.synced_ folder '.', '/vagrant', disabled: true
config.
config.
config.
config.
config. vm.provider "virtualbox" do |vb| xenial- 16.04-cloudimg"
vb.name = "ubuntu-
vb.customize [ "modifyvm", :id, "--uart1", "0x3F8", "4" ]
vb.customize [ "modifyvm", :id, "--uartmode1", "file", File.join(Dir.pwd, "%s-console.log" % vb.name) ]
end
end