maier / vagrant-alpine

Vagrant plugin for Alpine Linux Guest
MIT License
137 stars 10 forks source link

[NFS] Setting up NFS fails (maier/alpine-3.1.3-x86_64) #8

Closed ghost closed 8 years ago

ghost commented 8 years ago

Host: Ubuntu 15.04 / OSX 11.3.1 Box: maier/alpine-3.1.3-x86_64

When exeuting vagrant up the first time the setup for NFS fails.

* Caching service dependencies ...                                                                                   [ ok ]
 * Starting rpcbind ...
Error loading shared library libgssapi_krb5.so.2: No such file or directory (needed by /usr/lib/libtirpc.so.1)
Error loading shared library libkrb5.so.3: No such file or directory (needed by /usr/lib/libtirpc.so.1)
Error loading shared library libk5crypto.so.3: No such file or directory (needed by /usr/lib/libtirpc.so.1)
Error relocating /usr/lib/libtirpc.so.1: gss_display_status: symbol not found
Error relocating /usr/lib/libtirpc.so.1: gss_delete_sec_context: symbol not found
Error relocating /usr/lib/libtirpc.so.1: gss_sign: symbol not found
Error relocating /usr/lib/libtirpc.so.1: gss_init_sec_context: symbol not found
Error relocating /usr/lib/libtirpc.so.1: gss_verify_mic: symbol not found
Error relocating /usr/lib/libtirpc.so.1: gss_unwrap: symbol not found
Error relocating /usr/lib/libtirpc.so.1: gss_release_buffer: symbol not found
Error relocating /usr/lib/libtirpc.so.1: gss_release_name: symbol not found
Error relocating /usr/lib/libtirpc.so.1: gss_get_mic: symbol not found
Error relocating /usr/lib/libtirpc.so.1: gss_release_cred: symbol not found
Error relocating /usr/lib/libtirpc.so.1: gss_wrap: symbol not found
Error relocating /usr/lib/libtirpc.so.1: gss_accept_sec_context: symbol not found
Error relocating /usr/lib/libtirpc.so.1: gss_duplicate_name: symbol not found
Error relocating /usr/lib/libtirpc.so.1: gss_acquire_cred: symbol not found
Error relocating /usr/lib/libtirpc.so.1: gss_import_name: symbol not found
Error relocating /usr/lib/libtirpc.so.1: gss_display_name: symbol not found
Error relocating /usr/lib/libtirpc.so.1: GSS_C_NT_HOSTBASED_SERVICE: symbol not found
 * start-stop-daemon: failed to start `/sbin/rpcbind'                                                                 [ !! ]
 * ERROR: rpcbind failed to start
 * ERROR: cannot start rpc.statd as rpcbind would not start

Solution

Run sudo apk update && sudo apk upgrade after the first time you called vagrant up.

Steps:

vagrant up
vagrant ssh -c "sudo apk update && sudo apk upgrade"
vagrant halt
vagrant up

Update ouput:

fetch http://dl-6.alpinelinux.org/alpine/v3.1/main/x86_64/APKINDEX.tar.gz
v3.1.4-201-g3abe446 [http://dl-6.alpinelinux.org/alpine/v3.1/main]
OK: 4869 distinct packages available
(1/8) Upgrading libcrypto1.0 (1.0.1p-r0 -> 1.0.1r-r0)
(2/8) Upgrading libssl1.0 (1.0.1p-r0 -> 1.0.1r-r0)
(3/8) Upgrading openssh-client (6.7_p1-r2 -> 6.7_p1-r3)
(4/8) Upgrading openssh (6.7_p1-r2 -> 6.7_p1-r3)
(5/8) Upgrading openssl (1.0.1p-r0 -> 1.0.1r-r0)
(6/8) Upgrading sudo (1.8.12-r0 -> 1.8.15-r0)
(7/8) Upgrading krb5-libs (1.13-r1 -> 1.13.2-r0)
(8/8) Upgrading sqlite-libs (3.8.10.2-r0 -> 3.8.10.2-r1)
Executing busybox-1.22.1-r15.trigger
Executing ca-certificates-20141019-r0.trigger
OK: 226 MiB in 59 packages

Vagrantfile:

Vagrant.configure(2) do |config|
  config.vm.box = "maier/alpine-3.1.3-x86_64"

  config.vm.network "private_network", ip: "192.168.200.10"
  config.vm.synced_folder './data', '/vagrant', type: 'nfs'

end
maier commented 8 years ago

You can have this update done for you automatically by adding the following to your Vagrantfile. I'll add it to the example as well.

  config.vm.provision 'shell', inline: <<-SHELL
    apk update && apk upgrade
  SHELL