Use template and clone

Source: Internet
Author: User
Tags administrator password

Use template and clone

1. Lab Resource requirements

The vcenter server is started normally and the service is normal.

Esxi starts normally

VMware sphereclient is connected to VC normally

Network Interconnection

There is a virtual machine deployed on the esxi host.

2. Lab Objectives

1. Create a template

2. Create custom specifications

3. Use templates to deploy virtual machines

4. clone a VM in the starting state.

3. Experiment configuration Step 3.1 create a template

In this task, you can create a template by converting a virtual machine to a template.

1. If vmwear vsphere clienttm has not been started, use it to log on to your vcenter server system. Log on as the root user using the password you recorded in "preparation before exercise.

2. In the vsphere client, select "home"> "inventory"> "VMS and templates" (virtual machines and templates)

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/47/D5/wKioL1QAQFbA8VROAADVmdpmLzQ172.gif "Title =" 1.gif" alt = "wkiol1qaqfba8vroaadvmdpmlzq172.gif"/>

3. Expand the labvms folder. In this folder, there is a virtual machine named <your name >##-1.

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/47/D3/wKiom1QAP1yCs1F0AADujt7Vkns724.gif "Title =" 2.gif" alt = "wkiom1qap1ycs1f0aadujt7vkns724.gif"/>

4. After the VM is disabled, right-click the VM and choose "template"> "convert to template" (convert to template)

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/47/D6/wKioL1QAQLezYghcAAD_-iI0UfI563.gif "Title =" 3.gif" alt = "wKioL1QAQLezYghcAAD_-iI0UfI563.gif"/>

5. Drag the <your name >##-1 VM template from the labvms folder to the Templates folder.

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/47/D6/wKioL1QAQOfzpXF7AADIHdsPdqU370.gif "Title =" 4.gif" alt = "wkiol1qaqofzpxf7aadihdspdqu370.gif"/>

6. Right-click the VM template and click rename ). Type <your name> template to change the Template Name.

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/47/D3/wKiom1QAP_fxXksmAADR5tI1w2U872.gif "Title =" 5.gif" alt = "wkiom1qap_fxxksmaadr5ti1w2u872.gif"/>

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/47/D6/wKioL1QAQT_hameIAADQWMI3pHE659.gif "Title =" 6.gif" alt = "wkiol1qaqt_hameiaadqwmi3phe659.gif"/> 650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/47/D6/wKioL1QAQVDT-zQ5AADkyheCTVI806.gif "Title =" 7.gif" alt = "wKioL1QAQVDT-zQ5AADkyheCTVI806.gif"/>

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/47/D3/wKiom1QAQISTT3sSAADhWsGMXTM475.gif "Title =" 8.gif" alt = "wkiom1qaqistt3ssaadhwsgmxtm475.gif"/> 2. Create custom Specification

In this task, create custom specifications for template deployment.

1. In the vsphere client, click home ).

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/47/D6/wKioL1QAQbvAoPC-AACp-xUoPfE968.gif "Title =" 9.gif" alt = "wKioL1QAQbvAoPC-AACp-xUoPfE968.gif"/>

2. on the Management Panel, click customization specification manager ).

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/47/D6/wKioL1QAQdyiLC5pAAByKoHkKnU346.gif "Title =" 10.gif" alt = "wkiol1qaqdyilc5paabykohkknu346.gif"/>

Click new ).

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/47/D6/wKioL1QAQf7RFf9dAACgpRRP-IU181.gif "Title =" 11.gif" alt = "wKioL1QAQf7RFf9dAACgpRRP-IU181.gif"/>

Select "Windows", enter a name, and click "Next ".

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/47/D4/wKiom1QAQQrAjwByAAA2AMzFgrw926.gif "Title =" 12.gif" alt = "wkiom1qaqqraw.byaaa2amzfgrw926.gif"/>

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/47/D4/wKiom1QAQSvxUJpHAAAst2ywF1M982.gif "Title =" 13.gif" alt = "wkiom1qaqsvxujphaaast2ywf1m982.gif"/>

Click "use virtual machine name", and then click "Next ).

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/47/D4/wKiom1QAQUbgCBD1AAA-YtijDF0745.gif "Title =" 14.gif" alt = "wKiom1QAQUbgCBD1AAA-YtijDF0745.gif"/>

Enter the product key recorded in exercise preparation and retain the default value in other fields. Click "Next ).

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/47/D6/wKioL1QAQoTiprWcAAA683Jrtz0454.gif "Title =" 15.gif" alt = "wkiol1qaqotiprwcaaa683jrtz0454.gif"/>

Re-enter the vcenter server administrator password recorded in preparation before exercise. In the "Confirm Password" field, enter the password again and click "Next ).

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/47/D4/wKiom1QAQYiQIs-dAAAxJl82QuE551.gif "Title =" 16.gif" alt = "wKiom1QAQYiQIs-dAAAxJl82QuE551.gif"/>

Select the time zone you recorded in "preparation before exercise" and click "Next ).

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/47/D6/wKioL1QAQrjSgI-IAAAtivPWfiY065.gif "Title =" 17.gif" alt = "wKioL1QAQrjSgI-IAAAtivPWfiY065.gif"/>

Retain the default value and click "Next ).

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/47/D4/wKiom1QAQcHhpl07AAAw3a2QNLs182.gif "Title =" 18.gif" alt = "wkiom1qaqchhz07aaaw3a2qnls182.gif"/>

Retain the default value and click "Next ).

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/47/D4/wKiom1QAQd3RSB7tAAAwZR_EEm4541.gif "Title =" 19.gif" alt = "wkiom1qaqd3rsb7taaawzr_eem4541.gif"/>

Retain the default value and click "Next ).

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/47/D6/wKioL1QAQxDQUZXfAAA2FIOvSKg134.gif "Title =" 20.gif" alt = "wkiol1qaqxdquzxfaaa2fiovskg134.gif"/>

Retain the default value and click "Next ).

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/47/D4/wKiom1QAQh-A_p2CAAAseUTg6EE302.gif "Title =" 21.gif" alt = "wKiom1QAQh-A_p2CAAAseUTg6EE302.gif"/>

Click Finish ).

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/47/D6/wKioL1QAQ1Sw4BR6AAA7RLojPVU693.gif "Title =" 22.gif" alt = "wkiol1qaq1sw4br6aaa7rlojpvu693.gif"/>

4. confirm that the custom specification has been successfully created.

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/47/D4/wKiom1QAQlnhLL3zAABLnIgGROY949.gif "Title =" 23.gif" alt = "wkiom1qaqlnhll3zaablniggroy949.gif"/>

3. Use templates to deploy virtual machines

In this task, deploy virtual machines using templates and allow vcenter server to customize the customer's operating system.

1. In the vsphere client, click home ).

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/47/D4/wKiom1QAQqeyUv_MAAB_aysLEDY220.gif "Title =" 24.gif" alt = "wkiom1qaqqeyuv_maab_aysledy220.gif"/>

2. on the "inventory" Panel, select "VMS and templates" (virtual machines and templates ). Right-click the named template and select "deploy Virtual Machine form this template" (use this template to deploy the virtual machine ).

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/47/D4/wKiom1QAQseAdra9AAC-G_gts-U253.gif "Title =" 25.gif" alt = "wKiom1QAQseAdra9AAC-G_gts-U253.gif"/>

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/47/D6/wKioL1QAQ_PB5bVRAAA6Ss-z99M478.gif "Title =" 26.gif" alt = "wKioL1QAQ_PB5bVRAAA6Ss-z99M478.gif"/>

3. When the "deploy template" Wizard prompts, perform the following operations. Use your name to name the new virtual machine, followed by the number "2" of the VMware vsphere esxi host ".

Select your labvms folder and click "Next ).

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/47/D6/wKioL1QARE7zAd8VAAA6Ss-z99M231.gif "Title =" 26.gif" alt = "wKioL1QARE7zAd8VAAA6Ss-z99M231.gif"/>

Select GM

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/47/D4/wKiom1QAQ1uxbkS1AAAwACXxvk4735.gif "Title =" 27.gif" alt = "wkiom1qaq1uxbks1aaawacxxvk4735.gif"/>

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/47/D4/wKiom1QAQ_ewM8u5AABP3zdaVvI476.gif "style =" float: none; "Title =" 28.gif" alt = "wkiom1qaq_ewm8u5aabp3zdavvi476.gif"/>

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/47/D6/wKioL1QARQ-hsLNrAAA4ueXxZJo443.gif "style =" float: none; "Title =" 29.gif" alt = "wKioL1QARQ-hsLNrAAA4ueXxZJo443.gif"/>

Click Finish ".

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/47/D6/wKioL1QARSKh0qljAAA7x9tNPQI379.gif "Title =" 30.gif" alt = "wkiol1qarskh0qljaaa7x9tnpqi379.gif"/>

4. Monitor the progress of the template deployment task in the "Recent tasks" (recent tasks) pane at the bottom of the vsphereclient.

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/47/D4/wKiom1QARJGxcmkhAADOvzXwXX8774.gif "Title =" 31.gif" alt = "wkiom1qarjgxcmkhaadovzxwxx8774.gif"/>

5. After creating these virtual machines, open the Virtual Machine console of each new virtual machine.

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/47/D6/wKioL1QARdfAMjO5AADPbrzabL8539.gif "Title =" 32.gif" alt = "wkiol1qardfamjo5aadpbrzabl8539.gif"/>

6. confirm that the VM has been correctly created. Check the following items:

Whether the VM is successfully booted. Wait at least two minutes until sysprep completes the task, including system reboot.

Can you log on to the customer's operating system as Administrator using the administrator password of the virtual machine recorded in "preparation before exercise.

Whether or not VMware Tools is installed and time synchronization is configured.

7. Disable the VM console. Do not disable virtual machines.

4. clone a virtual machine in the enabled status

In this task, you will clone the running Virtual Machine.

1. In the labvms folder, right-click <your name >##-1 Virtual Machine and select "clone ).

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/47/D4/wKiom1QARgjjAsZBAADPbrzabL8112.gif "Title =" 32.gif" alt = "wkiom1qargjjaszbaadpbrzabl8112.gif"/>

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/47/D6/wKioL1QARzbRiSfxAAA7ylbOe3U193.gif "Title =" 33.gif" alt = "wkiol1qarzbrisfxaaa7ylboe3u193.gif"/>

2. When the "clonevirtual machine" (clone Virtual Machine) wizard prompts, perform the following operations.

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/47/D4/wKiom1QARoKxYriQAAFIHdgf7c8634.gif "Title =" z1111111111111.gif "alt =" wkiom1qarokxyriqaafihdgf7c8634.gif "/>

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/47/D6/wKioL1QAR9XSrZpiAAA1vkwYhQU684.gif "style =" float: none; "Title =" 34.gif" alt = "wkiol1qar9xsrzpiaaa1vkwyhqu684.gif"/>

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/47/D4/wKiom1QARr2QkeaoAABQccIDiek765.gif "style =" float: none; "Title =" 35.gif" alt = "wkiom1qarr2qkeaoaabqccidiek765.gif"/>

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/47/D6/wKioL1QAR9Wi13WGAAA32UYDmLI337.gif "style =" float: none; "Title =" 36.gif" alt = "wkiol1qar9wi13wgaaa32uydmli337.gif"/>

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/47/D4/wKiom1QARr7xcA80AAA8HNQA8Us250.gif "style =" float: none; "Title =" 37.gif" alt = "wkiom1qarr7xca80aaa8hnqa8us250.gif"/>

3. Monitor tasks in the "recenttasks" (recent tasks) pane. Wait for the task to run.

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/47/D6/wKioL1QAR9WQuzNjAAC7vLm5p98163.gif "style =" float: none; "Title =" 38.gif" alt = "wkiol1qar9wquznjaac7vlm5p98163.gif"/>


650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/47/D4/wKiom1QARvvzHsW-AABSffQWqTk252.gif "style =" float: none; "Title =" 40.gif" alt = "wKiom1QARvvzHsW-AABSffQWqTk252.gif"/>

Use template and clone

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.