![]() ![]() This is something else that is specific to the provider that you are using.įor example, the virtualbox provider can be configured like this: Setting the hardware configuration can be really useful to do, particularly the memory and number of cores / CPUs. Here’s an example:Ĭonfig.vm.hostname = "my-vagrant-machine" ![]() The host name limited by soem rules or conventions of, mainly that it can be letters seprated by hypen or dot. The hostname is what your machine will appear as on a network, and what it will say on the command line when you log in. If you are using virtual box you can use: ![]() This will be provider-specific, so you should check the details for your provider. The name of the vagrant machine can also appear in the provider itself. Default is DIRECTORY_default_TIMESTAMP – this is often fine, but you may want to customise it. the ‘hostname’ as it appears on the command line.įirstly, let’s take a look at the name vagrant uses for the machine.virtualbox) will display a name for the virtual machine vagrant has its own name for the virtual machine created.There are actually a few different ways to interpret the ‘machine name’: This might be fine for in some cases, but you may also want to have more control over the virtual machine name. When you create a vagrant virtual machine you will see that vagrant has given the virtual machine a fairly generic name. This post shows how you can also use the vagrantfile to define characteristics of the machine itself including custom machine names, memory and cpu, networking and shared folders. I have posted before about how you can provision your virtual machine via the vagrantfile – for example set which packages should be installed when the machine is created. This post goes a little beyond the basics of creating a Vagrantfile, and looks at some of the more advanced topics for writing a vagrantfile to make a more polished machine. ![]() Vagrantfiles are used to configure vagrant virtual machines. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |