![]() Provisioning Vagrant specifies that the script should be run when the virtual machine is initialized. guest-share/ubuntu-20.04″Directory is specified to be synchronized to the guest OS’s “/home/vagrant/share” directory.īy synchronizing, you can share and use files on the host OS and guest OS. Specifying the IP address to be set for the virtual machine. This time, Chef Software has specified a Box file for Ubuntu 20.04 published to Vagrant Cloud. You can create your own Box files as templates for virtual machines, but you can easily build virtual machines using Box files published to Vagrant Cloud. Specify the name of the Box of Vagrant to use. If you want to define multiple virtual machines, you can configure multiple virtual machines in a single Vagrantfile by repeating the definition with vm1 as vm2, etc. nfigure(VAGRANTFILE_API_VERSION) do |config|ĭefines the configuration of the virtual machine to build between config.vm.define :vm1 do |vm1| and end. You can include definitions of multiple virtual machines between nfigure(VAGRANTFILE_API_VERSION) do |config| to end. ![]() VAGRANTFILE_API_VERSION api version of the Vagrantfile to be used in the configuration. Vagrantfile is a file that describes the configuration required to build a virtual machine in Vagrant. ![]() Launchctl start /host-osx/ubuntu-20.04/Vagrantfile log after the execution script file name, and the execution start date and time are output to the log file. The execution result of the script is set to be output to the file () with. The location of the script file is in the current directory. This is the main script for building Ubuntu 20.04 virtual machines.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |