How do I clone my current ESXi system to an SD card or USB disk?

Source: Internet
Author: User

recently there are learners on how to install the local disk on theESXisystem cloning toSDCard orUSBDisk for fast implementationESXiof the hostVsan-readystate. Just the cat is also a bit interested, so, study the next way, the general work idea is"first throughDDcommand willESXisystem cloning toVMFS Datastorebecome a file and then get it from the fileSDCard orUSBdisk can". The following are the steps:
1 , first, confirm with the following command ESXi the specific location of the partition to which the system is installed:

1. #ls-L/dev/disks/

as shown in the following:                                       

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/75/0D/wKioL1Yxre7zIVE1AATnFWSOe9w489.jpg "title=" 00001. PNG "alt=" wkiol1yxre7zive1aatnfwsoe9w489.jpg "/>

2 , the command confirms which disk is the system disk, and records its mpx.vmhbaxxxx parameter, execute the following command to copy the disk to the VMFS Datastore :

1. #dd if=/dev/disks/mpx.vmhba1:c0:t0:l0 of=/vmfs/volumes/datastore/esxi.img

As shown in the following:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/75/0F/wKiom1YxrcvzxpOZAAA1WOb7chw618.jpg "title=" 00002. PNG "alt=" wkiom1yxrcvzxpozaaa1wob7chw618.jpg "/>

in the Vmfsdatastore , you can see the result:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/75/0D/wKioL1Yxrg-D4vRDAAAZpCetAEQ609.jpg "title=" 00003. PNG "alt=" wkiol1yxrg-d4vrdaaazpcetaeq609.jpg "/>

Note: If necessary, for example, if the local disk is large, it is recommended that you add a compression directive with the following command:

1. #dd if=/dev/disks/mpx.vmhba1:c0:t0:l0 |gzip >/vmfs/volumes/datastore/esxi.img.gz

3, after completing the first two steps, it means having a completeESXisystemmessage, the next thing to do is to put thisesxi.imgWrite toSDCard orUSBon the disk. If it isLinuxsystem, you can continue to use it directlyDDcommand to do, willesxi.imgCopy toLinuxsystem, and willSDCard orUSBInsert the disk into that machine, and then command:

1. #dd if =esxi.img of=/dev/sdc

Note: Here'sSDCrepresentsSDCard orUSBdisk isMountto theLinuxafter the drive letter path;

if gzip compression is useful in step 2 , the command is as follows:

1. #dd if=esxi.img | gunzip dd OF=/DEV/SDC

4, if it isWindowsmachine, you willSDCard orUSBafter the disk is plugged into the system, useusbimage Tooltool to do this, after downloading the tool, after installing, opening it, click on Device Restore, then select the location of the esxi.img file, you can wait for the copy to complete;



Virtual people: Focus on virtualization and cloud computing

Read more about small technology sharing

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/75/0F/wKiom1YxrhOQ_SREAAHMxL4Xe6Q748.jpg "title=" p[ 26yza{hoh_6g ' [px_zxvv.png ' alt= ' wkiom1yxrhoq_sreaahmxl4xe6q748.jpg '/>


How do I clone the current ESXi system to an SD card or USB disk?

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.