Skip to content
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

Update Vagrant to use Ubuntu 16.04 & PHP7 #181

Closed
ruebot opened this issue Apr 6, 2016 · 8 comments
Closed

Update Vagrant to use Ubuntu 16.04 & PHP7 #181

ruebot opened this issue Apr 6, 2016 · 8 comments
Assignees

Comments

@ruebot
Copy link
Member

ruebot commented Apr 6, 2016

#180

...when 16.04 is released, and when it is available as a box in Atlas.

@ruebot ruebot self-assigned this Apr 6, 2016
@ruebot ruebot added the vagrant label Apr 6, 2016
@ruebot
Copy link
Member Author

ruebot commented Apr 18, 2016

Due to be released on April 21, 2016. Will need to verify that Ubuntu switches this over to a stable build from a daily build.

@ruebot
Copy link
Member Author

ruebot commented Apr 21, 2016

Just checked, and 16.04 is still a daily build on Atlas.

@ruebot
Copy link
Member Author

ruebot commented Jul 18, 2016

Still running into this:

[nruest@gorila:install] (git)-[ubuntu1604]-$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'ubuntu/xenial64'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'ubuntu/xenial64' is up to date...
==> default: Setting the name of the VM: Islandora CLAW
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
==> default: Forwarding ports...
    default: 8080 (guest) => 8080 (host) (adapter 1)
    default: 8181 (guest) => 8181 (host) (adapter 1)
    default: 8282 (guest) => 8282 (host) (adapter 1)
    default: 3306 (guest) => 3306 (host) (adapter 1)
    default: 5432 (guest) => 5432 (host) (adapter 1)
    default: 80 (guest) => 8000 (host) (adapter 1)
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: ubuntu
    default: SSH auth method: password
    default: 
    default: Inserting generated public key within guest...
    default: Removing insecure key from the guest if it's present...
    default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Setting hostname...
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

hostname -f

Stdout from the command:



Stderr from the command:

sudo: unable to resolve host ubuntu-xenial
mesg: ttyname failed: Inappropriate ioctl for device
hostname: Name or service not known

Xenial box: v20160715.0.0
Vagrant 1.8.1
Virtualbox 5.0.14_Ubuntu r105127

@ruebot
Copy link
Member Author

ruebot commented Jul 18, 2016

With vagrant 1.8.4

[nruest@gorila:install] (git)-[ubuntu1604]-$ vagrant up                                                         
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-vagrant.box' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
==> default: Box file was not detected as metadata. Adding it directly...
==> default: Adding box 'https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-vagrant.box' (v0) for provider: virtualbox
    default: Downloading: https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-vagrant.box
==> default: Box download is resuming from prior download progress
==> default: Successfully added box 'https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-vagrant.box' (v0) for 'virtualbox'!
==> default: Importing base box 'https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-vagrant.box'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: Islandora CLAW
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
==> default: Forwarding ports...
    default: 8080 (guest) => 8080 (host) (adapter 1)
    default: 8181 (guest) => 8181 (host) (adapter 1)
    default: 8282 (guest) => 8282 (host) (adapter 1)
    default: 3306 (guest) => 3306 (host) (adapter 1)
    default: 5432 (guest) => 5432 (host) (adapter 1)
    default: 80 (guest) => 8000 (host) (adapter 1)
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: ubuntu
    default: SSH auth method: password
    default: 
    default: Inserting generated public key within guest...
    default: Removing insecure key from the guest if it's present...
    default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Setting hostname...
==> default: Mounting shared folders...
    default: /home/vagrant/islandora => /home/nruest/git/CLAW
Failed to mount folders in Linux guest. This is usually because
the "vboxsf" file system is not available. Please verify that
the guest additions are properly installed in the guest and
can work properly. The command attempted was:

mount -t vboxsf -o uid=`id -u ubuntu`,gid=`getent group ubuntu | cut -d: -f3` home_vagrant_islandora /home/vagrant/islandora
mount -t vboxsf -o uid=`id -u ubuntu`,gid=`id -g ubuntu` home_vagrant_islandora /home/vagrant/islandora

The error output from the last command was:

mesg: ttyname failed: Inappropriate ioctl for device
mount: unknown filesystem type 'vboxsf'

@g7morris
Copy link

g7morris commented Aug 4, 2016

Perhaps this would help @ruebot

I too encountered this issue "mesg: ttyname failed: Inappropriate ioctl for device" as well.

Following the advice from the Vagrant maintainers suggestions in the last post here: [https://github.com/hashicorp/vagrant/issues/7155]

I upgraded Vagrant to 1.8.5, Virtualbox to 5.0.26 and used a different Atlas / Vagrant box.

Within the Vagrantfile edit this line to match:

config.vm.box = "bento/ubuntu-16.04"

Apparently the bento boxes are more inline with the Vagrant "way" of testing, installing of "Guest Additions" than the ubuntu/ boxes.

I've not had the same issue since.

@ruebot
Copy link
Member Author

ruebot commented Aug 4, 2016

@g7morris thanks for commenting. We have to keep an eye on the Virtualbox versions, since that'll cause issues across operating systems.

@ruebot
Copy link
Member Author

ruebot commented Aug 4, 2016

Pull request: #323

whikloj pushed a commit that referenced this issue Aug 16, 2016
* Add FITS Web Service; Address #309.
* Update to 16.04 LTS, and PHP7; Address #181.
@whikloj
Copy link
Member

whikloj commented Aug 16, 2016

Resolved with f942941

@whikloj whikloj closed this as completed Aug 16, 2016
whikloj pushed a commit that referenced this issue Aug 17, 2016
* Add FITS Web Service; Address #309.

* Update to 16.04 LTS, and PHP7; Address #181.
* Setup Loris IIIF Image Server; Address #326
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants