Learn how to clone a Linux virtual machine in vCenter 6.5 to create a second VM.
- [Instructor] To create my second VM, I'm going to create a clone of LinuxVM1. To do this, I can Right Click on it, and I can go to Clone, and then Clone Virtual Machine. I can clone a virtual machine either while it's running or while it's turned off. It tends to be a little bit faster if you do it while the VM is turned off. So, we'll click on Clone Virtual Machine, LinuxVM2. We're going to put it on our second ESXI host.
We'll use the one host storage policy again, and notice this list with my datastores, one, as vsanDatastore being compatible, and the NFS-Datastore is listed as incompatible. If I wanted to, under advanced options, I can choose to split out the configuration file and the disks and store them separately. We'll go back to Basic. Click on Next. Now, this particular operating system is not set up for us to customize the operating system automatically, so we'll have to do it after boot.
If I wanted to, I can customize the virtual machine's hardware, and I could power it on. We'll go ahead and power it on. Now, at this point, because I'm doing a clone operation of a virtual machine that has a static IP address, LinuxVM1 and LinuxVM2 are both going to have the same IP address. So, I'll need to log into LinuxVM2 and change its host name and IP address once it's complete. Once again, we monitor recent tasks and wait for the clone operation to complete.
Once the clone operation is complete, then the VM will be powered on, and I can click here to open the console. Log-in is root. Password is vmware1!, and now, I can run YaST to modify the operating system. Go down to Network Settings.
And I can use Alt + I to edit the IP address. Now, if I want these virtual machines to have internet access, I can give them IP addresses in the same range as all of my other systems. Since I don't really care about that for this lab, I'm going to leave them on 192168 and just change the last octet and change the name of the VM. Alt + N for next. And then, I want to change the host names, so Alt + S.
LinuxVM2.lab.local. And again, if I want outside access, I can change the name server to be the new IP address of the control center VM. And then Alt + Q to quit. Notice that the name of the command line didn't change. If I shut down and reboot, then after it comes back up, it'll have the new name.
Let's create one more virtual machine, and we'll use a template to do that.
- Virtual machine benefits
- Building a lab environment with a mini PC
- Working with ESXi and vCenter Server
- Installing a control center VM
- Using the HTML5 client and the web client
- Adding an ESXi host and use Remote Console
- Configuring vSAN and storage profiles
- Adding NFS datastore
- Deploying a virtual machine from OVA
- Performing a cloning operation
- Using templates
- Performing a vMotion migration
- Working with snapshots