VMware vSphere

 View Only
  • 1.  Clone machine ad planned operation

    Posted Jul 26, 2023 07:37 AM

    Hi, I need to clone a machine every nigth with a planned operation with vsphere, but at the second time the operation failed because the destination machine already exists.

    Is there an action to delete the machine (automatically) before the cloning operation?

    Thanks



  • 2.  RE: Clone machine ad planned operation

    Posted Jul 26, 2023 08:09 AM
    1. Why do you need to do that?
    2. Couldn't you use a script to delete the previous clone before executing the new clone operation?


  • 3.  RE: Clone machine ad planned operation

    Posted Jul 26, 2023 08:14 AM

    1. Why do you need to do that?

       I need to have a machine copy every night

    2. Couldn't you use a script to delete the previous clone before executing the new clone operation?

       Could you share some link/example where I can create this script with vsphere?

    Thanks



  • 4.  RE: Clone machine ad planned operation
    Best Answer

    Posted Jul 26, 2023 08:40 AM
    Why not use a backup tool?

    Look at PowerCLI for scripting, it will have cmdlets to make this happen - you can search the area of the Communities for PowerCLI here: https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/bd-p/2805


  • 5.  RE: Clone machine ad planned operation

    Posted Jul 27, 2023 07:20 AM

    Thanks, for the link