Archives
Tuesday, April 20th, 2021
Weather:
city not found
HomeComputingCloning and changing over virtual machine circles with vmkfstools

Cloning and changing over virtual machine circles with vmkfstools

Reason

This article gives data and guidelines on the utilization of the vmkfstools order to change over virtual machine plates starting with one kind then onto the next.

Goal

The vmkfstools order offers the capacity to clone virtual machine content and furthermore convert from one virtual machine circle (.vmdk) design into another.

Note: The host working framework picked to play out the transformation may not really uphold running of virtual machines through the yield design characterized. vmkfstools keeps up the chance of sending out virtual plates for use in other VMware items which uphold elective circle designs.

To change over a virtual machine plate starting with one kind then onto the next:

  1. Shut down the virtual machine. Virtual machine plate records are secured while use by a running virtual machine.
  2. Log in to the VMware vSphere Management Assistant (vMA). On the other hand, open an order line interface subsequent to sending the VMware vSphere CLI (vCLI). In the event that terminal access is required:

• For VMware ESX 4.x and 3.x, sign in by means of the terminal or SSH. For extra data, see Connecting to an ESX have utilizing a SSH customer (1019852).

• For VMware ESXi 4.1 and ESXi 5.x, see Using Tech Support Mode in ESXi 4.1 and ESXi 5.0 (1017910).

• For VMware ESXi 4.0 and 3.x, see Tech Support Mode for Emergency Support (1003677).

  1. Run these vmkfstools order to clone the plate starting with one arrangement then onto the next:

From the ESX/ESXi terminal:

vmkfstools – I input yield – d design – an adaptertype

From vMA/vCLI:

vmkfstools – worker – I input yield – d design – an adaptertype

For instance, to clone examplevm.vmdk from Datastore to Datastore 2 and dainty arrangement the objective duplicate:

From the ESX/ESXi terminal:

vmkfstools – I “/vmfs/volumes/Datastore/examplevm/examplevm.vmdk” “/vmfs/volumes/Datastore 2/newexamplevm/newexamplevm.vmdk” – d dainty – a buslogic

From vMA/vCLI:

vmkfstools – worker 10.21.49.14 – I ‘[Datastore] examplevm/examplevm.vmdk’ ‘[Datastore 2] newexamplevm/newexamplevm.vmdk’ – d dainty – a buslogic

Note: For VMs that dwell on vSAN make a point to include – W vsan

Note: Ensure the new objective index is made before cloning the circles.

Cautioning: If virtual machine previews or delta plates are available, guarantee that the source picked is the current depiction delta circle. Neglecting to do so brings about an obsolete objective duplicate. Nonetheless, when utilizing the order, the comparing descriptor document for the most recent delta plate should be utilized when cloning the circle.

For instance to clone and additionally convert virtual machine plate with depiction (also called a delta circle), examplevm-000001.vmdk and like above, from Datastore to Datastore 2 , with a meager provisioned objective duplicate, run these order:

From the ESX/ESXi terminal:

vmkfstools – I “/vmfs/volumes/Datastore/examplevm/examplevm-000001.vmdk” “/vmfs/volumes/Datastore 2/newexamplevm/newexamplevm.vmdk” – d slim – a buslogic

From vMA/vCLI:

vmkfstools – worker 10.21.49.14 – I ‘[Datastore] examplevm/examplevm-000001.vmdk’ ‘[Datastore 2] newexamplevm/newexamplevm.vmdk’ – d slim – a buslogic

Note the choice of examplevm-000001.vmdk , rather than examplevm.vmdk for the information document. Preview delta plate documents are annexed a sequencing number, separating one depiction delta circle emphasis or level from another. Choosing the latest delta plate guarantees that the most as of late put away information is cloned to the objective.

Note: Running the vmkfstools – I order makes a cloned drive with a LSI regulator, regardless of whether the source plate is utilizing VMware Paravirtual. This outcomes in the virtual machine neglecting for sure. To determine this issue, change the regulator type to equivalent to the source.

For more data on steps to distinguish a virtual machine’s present depiction, see Confirming a virtual machine’s preview delta circle format (1027887).

Note: This cycle just clones the plate that was determined in the order. To enlist the recently cloned plate/VM into stock, it requires a .vmx document. Physically duplicate the .vmx from the cloned VM and modify the .vmx record to give the way to the recently cloned plates or make another VM from the UI and select the cloned circles in the Hard Disk segment.

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

Post Tags
No comments

leave a comment