Hacker News new | ask | show | jobs
by falcolas 3696 days ago

    $ vu development-16
    Bringing machine 'development-16' up with 'virtualbox' provider...
    ==> development-16: Importing base box 'ubuntu/xenial64'...
    ==> development-16: Matching MAC address for NAT networking...
    ==> development-16: Checking if box 'ubuntu/xenial64' is up to date...
    ==> development-16: Setting the name of the VM: ubuntu-xenial-16.04-cloudimg
    [...]
    ==> development-16: Machine booted and ready!
    ==> development-16: Checking for guest additions in VM...
    ==> development-16: 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

    $ vssh development-16
    Welcome to Ubuntu 16.04 LTS (GNU/Linux 4.4.0-22-generic x86_64)

     * Documentation:  https://help.ubuntu.com/

      Get cloud support with Ubuntu Advantage Cloud Guest:
        http://www.ubuntu.com/business/services/cloud

    0 packages can be updated.
    0 updates are security updates.


    ubuntu@ubuntu-xenial:~$ hostname
    ubuntu-xenial
    ubuntu@ubuntu-xenial:~$ hostname -f
    hostname: Name or service not known
    ubuntu@ubuntu-xenial:~$ which hostname
    /bin/hostname
    ubuntu@ubuntu-xenial:~$ \hostname -f
    hostname: Name or service not known
    ubuntu@ubuntu-xenial:~$ cat /etc/lsb-release
    DISTRIB_ID=Ubuntu
    DISTRIB_RELEASE=16.04
    DISTRIB_CODENAME=xenial
    DISTRIB_DESCRIPTION="Ubuntu 16.04 LTS"
Fun times.
1 comments

Seems very odd, here it works

  clemme@ubuntu:~ $ hostname -f
  ubuntu

  clemme@ubuntu:~ $ cat /etc/lsb-release 
  DISTRIB_ID=Ubuntu
  DISTRIB_RELEASE=16.04
  DISTRIB_CODENAME=xenial
  DISTRIB_DESCRIPTION="Ubuntu 16.04 LTS"
Yeah, does seem odd. Looks like I'll need to ping Vagrant, since `ubuntu/xenial64` is their managed box.