![]() One VM is for development and another VM is for the web. While creating the Vagrantfile make sure that you are using a different hostname, IP address and other settings so there aren’t conflicts. ![]() Vagrant helps us to create two or more VM using single Vagrantfile. V.cpus: Customize the amount of CPU on the VM Built Multiple VM: ![]() V.memory: Customize the amount of memory on the VM You can search for boxes at official site.Ĭonfig.vm.hostname: Create your machine hostnameĬonfig.vm.network “private_network”: Create a private network, which allows host-only access to the machine using a specific IP.Ĭonfig.vm.network “forwarded_port”: Create a forwarded port mapping which allows access to a specific port nfigure("2") do |config|Ĭonfig.vm.hostname = ''Ĭonfig.vm.network "private_network", ip: "172.20.10.13"Ĭonfig.vm.network "forwarded_port", guest: 80, host: 81Ĭonfig.vm.box: Every Vagrant development environment requires a box. In this we are CentOS 7 to built new VM machine. Base Config:įirst we are going to explain the base configuration of of Vagrantfile. ![]() In this article, we will help you to create multiple Virtual machines using single Vagrantfile. How to Set Up a Cookieless Domain in Linux How configure X11 Forwarding in CentOS/RHEL 6/7ģ. You can Establish network interfaces so that you can access your virtual machine from your own computer, another device on the same network, or even from another virtual machine.Ģ. You can also modify the physical properties of this virtual machine such as RAM, CPUs, etc. With the help of Vagrant, you can create a virtual machine as per requirement.
0 Comments
Leave a Reply. |