N0ri

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by N0ri

  1. Hey guys, 

     

     thank you for the script.. it copy the files very nice but end in an error.. did you face the same issue? 

     

    root@nas:/boot/config/plugins/user.scripts/scripts/clone_vm# bash clonevm.sh /mnt/user/domains/vm-win10-002/ /mnt/user/domains/vm-win10-001 -r
    clonevm.sh: line 33: vim-cmd: command not found
    
    CloneVM.sh for VMWare ESXi 4.1 & ESXi 5.x
    -----------------------------------------
    
    OLD VM DATASTORE : /mnt/user/domains/vm-win10-002
    OLD VM           : 
    
    NEW VM DATASTORE : /mnt/user/domains
    NEW VM           : vm-win10-001
    
    -r specified, cloned VM will be added to ESXi host inventory
    
    Cloning VMDK : 
    sed: -e expression #1, char 0: no previous regular expression
    clonevm.sh: line 87: vmkfstools: command not found
    
    Copying Supporting Files:
    sed: -e expression #1, char 0: no previous regular expression
    Copying /mnt/user/domains/vm-win10-002//vdisk1.img to /mnt/user/domains/vm-win10-001/
    
    Updating /mnt/user/domains/vm-win10-001/vm-win10-001.vmx
    
    sed: can't read /mnt/user/domains/vm-win10-001/vm-win10-001.vmx: No such file or directory
    Registering vm-win10-001 into ESXi Host Inventory
    
    clonevm.sh: line 115: vim-cmd: command not found