Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to analyze the batch deployment of virtual machines

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

Today, I will talk to you about how to deploy virtual machines in batches. Many people may not know much about it. In order to let you know more, Xiaobian summarized the following contents for you. I hope you can gain something according to this article.

For batch deployment of virtual machines, obviously you can't install them one by one manually; there are different shortcuts to batch deployment on ESXI and vCenter. The following is an actual demonstration of their entire deployment process.

Rapid deployment on ESXI

1. Use export OVF template

Create a new virtual machine, install the necessary programs, and shut it down after all the work is done;

Right-click the virtual machine that has been shut down, select File--Export--Export OVF Template, wait for completion!

Then select File-Deploy OVF Template, select the template generated previously, and you can complete the cloning.

Deployment is complete, can be started directly in the list, after starting to pay attention to modify the host name and IP address.

2. Use data storage to quickly copy and add

Close the virtual machine to be cloned, select the ESXi server host, click the Configuration tab on the right, select the storage, right-click the storage name on the right, and select Browse Datastore.

Create a new folder kelong, enter the linuxceshi folder, copy the linuxceshi.vmx and linuxceshi.vmdk files to the folder kelong, the copy process is very fast, less than two minutes.

Find the linuxceshi.vmx file in the kelong folder, right-click and select "Add to list"

A prompt pops up asking if the VM is mobile or copied, select "I coyied it" and OK.

Start the power on, and then need to modify the IP address, username password, etc.

3. For different ESXI hosts, you can execute scp command to copy linuxceshi.vmx and linuxceshi.vmdk files to the corresponding directories of the target server.

II. Rapid deployment on VCENTER

1. Convert to template

Create a new virtual machine, install the necessary programs, and shut it down after all the work is done;

Right-click the virtual machine that has been closed, select Template-Convert to Template, and the production is complete!

After converting virtual machines to templates, you cannot see the converted templates in "Hosts and Clusters". You need to go to the "Virtual Machines and Templates" view to view them, as follows:

Right-click the VM template and select Deploy VM from this template.

2. Use cloning

Create a new virtual machine, install the necessary programs, and shut it down after all the work is done;

Right-click the virtual machine that has been shut down and select Clone. The rest of the steps are similar. Finished!

Additional:

If it is a windows system, everyone will definitely think of SID problem, yes, deploying virtual machines through templates is actually cloning the original virtual machine, which will inevitably lead to the same SID of the cloned virtual machine; how to solve it? There are two ways:

1. Before converting a virtual machine into a template, encapsulate it with sysprep or modify it with NEWSID after creating a new system using the template.

2. Create a new Custom Specification Manager in vcenter to avoid this problem.

By defining these specifications in advance, SID problems can be avoided.

After reading the above content, do you have any further understanding of how to deploy virtual machines in batches? If you still want to know more knowledge or related content, please pay attention to the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report