diff --git a/README.md b/README.md index 1d637d59..3996fe7b 100644 --- a/README.md +++ b/README.md @@ -563,10 +563,6 @@ driver: Sets the internal hostname for the instance. This is not used when connecting to the Vagrant virtual machine. -For more details on this setting please read the -[config.vm.hostname](http://docs.vagrantup.com/v2/vagrantfile/machine_settings.html) -section of the Vagrant documentation. - To prevent this value from being rendered in the default Vagrantfile, you can set this value to `false`. @@ -575,6 +571,29 @@ instance was called "default-fuzz-9" will produce a default `vm_hostname` value of `"default-fuzz-9"`. For Windows-based platforms, a default of `nil` is used to save on boot time and potential rebooting. +```yaml +--- +platforms: + - name: ubuntu-16.04 + driver: + vm_hostname: server1.example.com +``` + +will generate a Vagrantfile configuration similar to: + +```ruby +Vagrant.configure("2") do |config| + # ... + + config.vm.hostname = "server1.example.com" +end +``` + +For more details on this setting please read the +[config.vm.hostname](http://docs.vagrantup.com/v2/vagrantfile/machine_settings.html) +section of the Vagrant documentation. + + ## Unsupported Hypervisors The following providers are reported to work but are unsupported: