{"action":"created","issue":{"url":"https://api.github.com/repos/mitchellh/vagrant/issues/5694","labels_url":"https://api.github.com/repos/mitchellh/vagrant/issues/5694/labels{/name}","comments_url":"https://api.github.com/repos/mitchellh/vagrant/issues/5694/comments","events_url":"https://api.github.com/repos/mitchellh/vagrant/issues/5694/events","html_url":"https://github.com/mitchellh/vagrant/issues/5694","id":74175125,"number":5694,"title":"Setting the hostname using Vagrant 1.7.2 boxes","user":{"login":"codeATbusiness","id":4662191,"avatar_url":"https://avatars.githubusercontent.com/u/4662191?v=3","gravatar_id":"","url":"https://api.github.com/users/codeATbusiness","html_url":"https://github.com/codeATbusiness","followers_url":"https://api.github.com/users/codeATbusiness/followers","following_url":"https://api.github.com/users/codeATbusiness/following{/other_user}","gists_url":"https://api.github.com/users/codeATbusiness/gists{/gist_id}","starred_url":"https://api.github.com/users/codeATbusiness/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeATbusiness/subscriptions","organizations_url":"https://api.github.com/users/codeATbusiness/orgs","repos_url":"https://api.github.com/users/codeATbusiness/repos","events_url":"https://api.github.com/users/codeATbusiness/events{/privacy}","received_events_url":"https://api.github.com/users/codeATbusiness/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-08T00:29:43Z","updated_at":"2015-05-13T13:57:11Z","closed_at":null,"body":"I'm using the multi-machine options from Vagrant but I cannot set the hostname for each machine.\r\n\r\n```ruby\r\n    # -*- mode: ruby -*-\r\n    # vi: set ft=ruby :\r\n\r\n    VAGRANT_API_VERSION = \"2\"\r\n\r\n    # Boxes Configuration\r\n    Vagrant.configure(VAGRANT_API_VERSION) do |config|\r\n        # WebServer Machine 1\r\n        config.vm.define \"web1\" do |web|\r\n            web.vm.box = \"ubuntu/vivid64\"\r\n            web.vm.hostname = \"webserver1.dev\"\r\n            web.vm.network \"private_network\", ip: 192.168.50.5\r\n            web.vm.provider \"virtualbox\" do |v|\r\n                v.name = \"WebServer 1\"\r\n                v.cpus = 1\r\n                v.memory = 1024\r\n            end\r\n            web.vm.network \"forwarded_port\", guest: 80, host: 8080\r\n        end\r\n    end\r\n```\r\n\r\nThis results with the following error:\r\n\r\n```\r\n     ==> ansible: Setting hostname...\r\n    The following SSH command responded with a non-zero exit status.\r\n    Vagrant assumes that this means the command failed!\r\n\r\n    service hostname start\r\n\r\n    Stdout from the command:\r\n\r\n    Stderr from the command:\r\n\r\n    stdin: is not a tty\r\n    Failed to start hostname.service: Unit hostname.service is masked.\r\n```"},"comment":{"url":"https://api.github.com/repos/mitchellh/vagrant/issues/comments/101671130","html_url":"https://github.com/mitchellh/vagrant/issues/5694#issuecomment-101671130","issue_url":"https://api.github.com/repos/mitchellh/vagrant/issues/5694","id":101671130,"user":{"login":"sethvargo","id":408570,"avatar_url":"https://avatars.githubusercontent.com/u/408570?v=3","gravatar_id":"","url":"https://api.github.com/users/sethvargo","html_url":"https://github.com/sethvargo","followers_url":"https://api.github.com/users/sethvargo/followers","following_url":"https://api.github.com/users/sethvargo/following{/other_user}","gists_url":"https://api.github.com/users/sethvargo/gists{/gist_id}","starred_url":"https://api.github.com/users/sethvargo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sethvargo/subscriptions","organizations_url":"https://api.github.com/users/sethvargo/orgs","repos_url":"https://api.github.com/users/sethvargo/repos","events_url":"https://api.github.com/users/sethvargo/events{/privacy}","received_events_url":"https://api.github.com/users/sethvargo/received_events","type":"User","site_admin":false},"created_at":"2015-05-13T13:57:11Z","updated_at":"2015-05-13T13:57:11Z","body":"Closing as a dupe, thanks!"}}