etc/sysconfig/network-scripts/ifcfg-ethX (where X is your iface number)Ĭhanging all the occurrences of the MAC address and UUID respectively, but you can simply comment or remove them.Īfter that you have also to edit the file: After that you have to change (supposing you are on a RHEL-style linux distro): *) You have to manual login to your Vagrant vm by starting it through VirtualBox. Now it’s almost done, BUT if you planned to let the two vms to inter-operate each other and you re-initialized the network MAC addresses, so you have to follow this step more: PAY ATTENTION: in “action_provision” file you don’t have to remove the starting prefix: ‘1.5:’ REMEMBER: you have to edit them on your cloned environment NOT in the original one. You will find this file placed somewhere under “.vagrant” directory. Now you have to edit these two file copying the machine uuid inside: “id” and “action_provision”. vagrant directory) to the new destination (the directory for the cloned vm). Open this file with a smart text editor, search for the Machine uuid and copy it:Īfter that go on your original Vagrant machine’s directory and copy the whole content (including the. Go to the new cloned vm’s path and look for a. The Full clone will have its own disk, the Linked clone will have a disk based on the original and increased for differences (it reduces disk size!).Īnd now it comes the tricky part. You can choose two types of cloning: “Full” and “Linked”. Please ensure to check the “Reinitialize MAC address” option if you plan to let the two virtual machines communicating each other. You should try using vagrant/vagrant that should be the default credentials.īy the way if you can’t find username and password you can always change the password for “vagrant” user.Īfter that when you’re ready to clone, open Virtualbox, right click on your Vagrant vm (you should recognize it by the name, if you can’t find it go at end of this article) and click on “Clone”.Ĭhange the vm’s name according your destination folder for the cloned Vagrant virtual machine. I want to show to anyone who’ll need it, how I managed to clone a Vagrant virtual machine using VirtualBox and some XML editing.įirst of all ensure that you can access to you Vagrant-vm also with user and password (not only by public/private key files).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
February 2023
Categories |