-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Virtualbox packager includes stray information #9425
Comments
|
We are facing same issue.. |
|
@erezinchy the workaround is proposed in the issue (look for vb.customize [ 'modifyvm', :id, '--uartmode1', 'disconnected']) |
|
by the way - does it make sense to include synced folders when packaging a box? ( |
|
I believe the root cause of my issue is different even though the error message is the same. We were getting the error when running packer build. BR, |
|
I believe this is Canonical's problem as they are the maintainers of the official ubuntu/xenial64 image. Have you noticed newly created log file named If I run the following on my Ubuntu machine, using https://app.vagrantup.com/ubuntu/boxes/xenial64/versions/20180228.1.0 cat ~/.vagrant.d/boxes/ubuntu-VAGRANTSLASH-xenial64/20180228.1.0/virtualbox/Vagrantfileit produces # Front load the includes
include_vagrantfile = File.expand_path("../include/_Vagrantfile", __FILE__)
load include_vagrantfile if File.exist?(include_vagrantfile)
Vagrant.configure("2") do |config|
config.vm.base_mac = "02248981872F"
config.vm.provider "virtualbox" do |vb|
vb.customize [ "modifyvm", :id, "--uart1", "0x3F8", "4" ]
vb.customize [ "modifyvm", :id, "--uartmode1", "file", File.join(Dir.pwd, "ubuntu-xenial-16.04-cloudimg-console.log") ]
end
endI use the workaround provided by @axd1967 whenever I build a box off of the official ubuntu/xenial64 image that I intend to package and distribute internally. |
|
I face the same issue and @axd1967 's solution seems to work as well when using ubuntu/xenial64 baseimage |
|
thanks a million, I was pulling my hair since the problem only occured when using the box on a different machine from where it was created (which is of course the purpose), on the same machine the path of course exists and there is no issue. |
|
Is there any update to this? I'm still running into this issue with Vagrant 2.1.5 and VBox 5.2.18 |
|
@Jimwoodward See |
|
Closing as this is an upstream issue. Cheers! |
…path See hashicorp/vagrant#9425 for more information.
|
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Vagrant version
2.0.2
Host operating system
Ubuntu 16.04
Guest operating system
ubuntu/xenial
unless following config is used inside Vagrantfile ...
Vagrantfile (relevant excerpt)
(remainder of Vagrantfile is basic)
... Vagrant box packaging (
vagrant package --base ... --ouput ...) will result in the inclusion of a hardcoded (and apparently totally unrelated) user file path (usually related to the user creating the box, eg/home/user/<filename>) that can be found in thebox.ovf(XML) file, resulting in errors when another user tries to install (vagrant up) that box.This .ovf file is probably used to configure serial ports, but in this case a local logfile path somehow ends up in this setting.
(originally submitted at https://www.virtualbox.org/ticket/17513)
steps to reproduce
then, extract
box.ovfand observe that under<UART><Port slot="0">there is odd info:path="(some local path)"When another user tries to install such a box (notice that in this case, the offending file path starts with
/home/alex/...):The text was updated successfully, but these errors were encountered: