vagrant up fails with `bash: line 4: setup: command not found`
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-images |
Invalid
|
Undecided
|
Unassigned |
Bug Description
On a Ubuntu 17.10 and vagrant 2.0.1 installed from https:/
I do a
vagrant init ubuntu/artful32
vagrant up
This results in
-------
==> default: Machine booted and ready!
Got different reports about installed GuestAdditions version:
Virtualbox on your host claims: 5.1.28
VBoxService inside the vm claims: 5.1.30
Going on, assuming VBoxService is correct...
[default] GuestAdditions seems to be installed (5.1.30) correctly, but not running.
Got different reports about installed GuestAdditions version:
Virtualbox on your host claims: 5.1.28
VBoxService inside the vm claims: 5.1.30
Going on, assuming VBoxService is correct...
Failed to start vboxadd.service: Unit vboxadd.service not found.
Failed to start vboxadd-
Got different reports about installed GuestAdditions version:
Virtualbox on your host claims: 5.1.28
VBoxService inside the vm claims: 5.1.30
Going on, assuming VBoxService is correct...
bash: line 4: setup: command not found
==> default: Checking for guest additions in VM...
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
setup
Stdout from the command:
Stderr from the command:
bash: line 4: setup: command not found
-------
I can "fix" it with `vagrant vbguest --do install`
vagrant@
build_name: server
serial: 20171220
tags: | added: id-5a4b99b05e4bd6a0fdd2580e |
I cannot reproduce this issue on my setup (running on Xenial): https:/ /pastebin. ubuntu. com/26312647/
This means the problem is likely not with the image but with your setup.
It seems like you are installing vagrant from the vagrant upstream *debian* package, and not from the Ubuntu package, which is likely to cause funny interactions.
Please try again after install vagrant and virtualbox from a supported source - in other words:
"sudo apt install vagrant"