hello
Server : Apache/2.4.52 (Ubuntu) System : Linux HAN2 5.15.0-185-generic #195-Ubuntu SMP Fri Jun 19 17:11:50 UTC 2026 x86_64 User : servadmin ( 1000) PHP Version : 8.1.2-1ubuntu2.25 Disable Function : NONE Directory : /opt/Nutanix/log/ |
+ sourcefilepath=/tmp/nutanix_move_servadmin/vmware232/nutanix_move.sh + echo Running /tmp/nutanix_move_servadmin/vmware232/nutanix_move.sh Running /tmp/nutanix_move_servadmin/vmware232/nutanix_move.sh + NUTANIX_MOVE_ARG=--retain-ip + xtractMainIP= + sudoterm=false + retainIP=false + skipretainIP=false + retainIPscript= + reconfigLVM=false + configureTempDisk=false + configureTempDiskscript= + uninstallVMwareTools=false + installNgt=false + uninstallVMwareToolsscript= + cleanup=false + cleanupscript= + freeBSD=false + isCustomIP=false + prepConfFilePath= + configeditPath= + [ 10 -gt 0 ] + retainIP=true + retainIPscript=/tmp/nutanix_move_servadmin/vmware232/retainIP.sh + shift + shift + [ 8 -gt 0 ] + reconfigLVM=true + shift + [ 7 -gt 0 ] + uninstallVMwareTools=true + uninstallVMwareToolsscript=/tmp/nutanix_move_servadmin/vmware232/uninstallVMwareTools.sh + shift + shift + [ 5 -gt 0 ] + installNgt=true + installNgtScriptPath=/tmp/nutanix_move_servadmin/vmware232/install_ngt.sh + shift + shift + [ 3 -gt 0 ] + cleanup=true + cleanupscript=/tmp/nutanix_move_servadmin/vmware232/cleanup_installation.sh + shift + shift + [ 1 -gt 0 ] + sudoterm=true + shift + [ 0 -gt 0 ] + date Fri Jul 17 11:19:35 CDT 2026 + name=nutanix_move + start_cmd=nutanix_move_start + stop_cmd=: + destfilepath=/etc/init.d/nutanix-move + SOURCE_ID_FILE=/etc/sourcevm-idfile + BSD_IFILE=/etc/rc.conf + ENABLE_MOVE=nutanix_move_enable="YES" + DHCP_FILE=/etc/sourcevm-dhcpfile + SCRIPTS_DIR=/opt/Nutanix/Move/download/scripts + LVM_CONFIG_FILE=/etc/lvm/lvm.conf + BACKUP_SUFFIX=.bak + TEMPDISK_SIZE_FILE=/etc/tempdisk_sizefile + CLEANUP_DIR=/opt/Nutanix/Uninstall/scripts + cleanupscriptpath=/opt/Nutanix/Uninstall/scripts/cleanup_installation.sh + LOG_DIR=/opt/Nutanix/log + TARGET_SCRIPT_COMPLETED_STATUS_FILE=/opt/Nutanix/log/target-script-completed.txt + BASH_CMD=bash + SYSTEMD_PATH=/etc/systemd/system + UNINSTALL_VMWARETOOLS_TIMEOUT=180 + INSTALL_NGT_TIMEOUT=1500 + CONFIGURE_TEMP_DISK_TIMEOUT=180 + RETAIN_IP_TIMEOUT=200 + CLEANUP_SCRIPT_TIMEOUT=100 + MISC_OPS_TIMEOUT=100 + TOTAL_SCRIPTS_TIMEOUT=2080 + NUTANIX_MOVE_SCRIPT_TIMEOUT=2500 + CONF_DIR=/opt/Nutanix/Move/download/conf + PREP_CONF_FILE=/opt/Nutanix/Move/download/conf/pcf.json + BIN_DIR=/opt/Nutanix/Move/download/bin + CONFIGEDIT_PATH=/opt/Nutanix/Move/download/bin/configedit + rm /opt/Nutanix/log/target-script-completed.txt rm: cannot remove '/opt/Nutanix/log/target-script-completed.txt': No such file or directory + rm /tmp/nutanix_move_servadmin/target-script-completed.txt rm: cannot remove '/tmp/nutanix_move_servadmin/target-script-completed.txt': No such file or directory + [ 2500 -lt 2080 ] + uname + grep -i freebsd + errorVal=1 + [ 1 = 0 ] + id -u + [ true = true -a 1000 != 0 ] + chmod 755 /tmp/nutanix_move_servadmin/vmware232/nutanix_move.sh + write_log Starting the script as root + set +x 17-07-2026T11:19:35 INFO Starting the script as root + return 0 + [ false = true ] + ./sudoTerm -s /tmp/nutanix_move_servadmin/vmware232/nutanix_move.sh [sudo] password for servadmin: + sourcefilepath=/tmp/nutanix_move_servadmin/nutanix_move/nutanix_move.sh + echo 'Running /tmp/nutanix_move_servadmin/nutanix_move/nutanix_move.sh' Running /tmp/nutanix_move_servadmin/nutanix_move/nutanix_move.sh + NUTANIX_MOVE_ARG= + xtractMainIP= + sudoterm=false + retainIP=false + skipretainIP=false + retainIPscript= + reconfigLVM=false + configureTempDisk=false + configureTempDiskscript= + uninstallVMwareTools=false + installNgt=false + uninstallVMwareToolsscript= + cleanup=false + cleanupscript= + freeBSD=false + isCustomIP=false + prepConfFilePath= + configeditPath= + '[' 11 -gt 0 ']' + case $1 in + shift + '[' 10 -gt 0 ']' + case $1 in + retainIP=true + case $2 in + retainIPscript=/tmp/nutanix_move_servadmin/vmware232/retainIP.sh + shift + shift + '[' 8 -gt 0 ']' + case $1 in + reconfigLVM=true + shift + '[' 7 -gt 0 ']' + case $1 in + uninstallVMwareTools=true + case $2 in + uninstallVMwareToolsscript=/tmp/nutanix_move_servadmin/vmware232/uninstallVMwareTools.sh + shift + shift + '[' 5 -gt 0 ']' + case $1 in + installNgt=true + case $2 in + installNgtScriptPath=/tmp/nutanix_move_servadmin/vmware232/install_ngt.sh + shift + shift + '[' 3 -gt 0 ']' + case $1 in + cleanup=true + case $2 in + cleanupscript=/tmp/nutanix_move_servadmin/vmware232/cleanup_installation.sh + shift + shift + '[' 1 -gt 0 ']' + case $1 in + sudoterm=true + shift + '[' 0 -gt 0 ']' + date Fri Jul 17 11:19:37 AM CDT 2026 + name=nutanix_move + start_cmd=nutanix_move_start + stop_cmd=: + destfilepath=/etc/init.d/nutanix-move + SOURCE_ID_FILE=/etc/sourcevm-idfile + BSD_IFILE=/etc/rc.conf + ENABLE_MOVE='nutanix_move_enable="YES"' + DHCP_FILE=/etc/sourcevm-dhcpfile + SCRIPTS_DIR=/opt/Nutanix/Move/download/scripts + LVM_CONFIG_FILE=/etc/lvm/lvm.conf + BACKUP_SUFFIX=.bak + TEMPDISK_SIZE_FILE=/etc/tempdisk_sizefile + CLEANUP_DIR=/opt/Nutanix/Uninstall/scripts + cleanupscriptpath=/opt/Nutanix/Uninstall/scripts/cleanup_installation.sh + LOG_DIR=/opt/Nutanix/log + TARGET_SCRIPT_COMPLETED_STATUS_FILE=/opt/Nutanix/log/target-script-completed.txt + BASH_CMD=bash + SYSTEMD_PATH=/etc/systemd/system + UNINSTALL_VMWARETOOLS_TIMEOUT=180 + INSTALL_NGT_TIMEOUT=1500 + CONFIGURE_TEMP_DISK_TIMEOUT=180 + RETAIN_IP_TIMEOUT=200 + CLEANUP_SCRIPT_TIMEOUT=100 + MISC_OPS_TIMEOUT=100 + TOTAL_SCRIPTS_TIMEOUT=2080 + NUTANIX_MOVE_SCRIPT_TIMEOUT=2500 + CONF_DIR=/opt/Nutanix/Move/download/conf + PREP_CONF_FILE=/opt/Nutanix/Move/download/conf/pcf.json + BIN_DIR=/opt/Nutanix/Move/download/bin + CONFIGEDIT_PATH=/opt/Nutanix/Move/download/bin/configedit + rm /opt/Nutanix/log/target-script-completed.txt rm: cannot remove '/opt/Nutanix/log/target-script-completed.txt': No such file or directory + rm /tmp/nutanix_move_servadmin/target-script-completed.txt rm: cannot remove '/tmp/nutanix_move_servadmin/target-script-completed.txt': No such file or directory + '[' 2500 -lt 2080 ']' + uname + grep -i freebsd + errorVal=1 + '[' 1 = 0 ']' ++ id -u + '[' true = true -a 0 '!=' 0 ']' + '[' false = true ']' + case "$NUTANIX_MOVE_ARG" in + write_log 'Starting script nutanix_move' + set +x 17-07-2026T11:19:37 INFO Starting script nutanix_move + return 0 + do_start + '[' -f /etc/sourcevm-idfile ']' + do_source + write_log 'Starting nutanix_move script with xtractMainIP retainIP true skipRetainIP false reconfigLVM true configureTempDisk false uninstallVMwareTools true cleanup true' + set +x 17-07-2026T11:19:37 INFO Starting nutanix_move script with xtractMainIP retainIP true skipRetainIP false reconfigLVM true configureTempDisk false uninstallVMwareTools true cleanup true + return 0 + exit_status=0 + destfilename=nutanix-move + mkdir -p /opt/Nutanix/Move/download/scripts /opt/Nutanix/Move/download/conf /opt/Nutanix/Move/download/bin + '[' true = true -o false = false -o -f /opt/Nutanix/Move/download/scripts/retainIP.sh ']' + '[' '!' -f /opt/Nutanix/Move/download/scripts/retainIP.sh ']' + '[' '!' -z /tmp/nutanix_move_servadmin/vmware232/retainIP.sh ']' + mv /tmp/nutanix_move_servadmin/vmware232/retainIP.sh /opt/Nutanix/Move/download/scripts + '[' 0 -ne 0 ']' + bash /opt/Nutanix/Move/download/scripts/retainIP.sh source + CONF_DIR=/opt/Nutanix/Move/download/conf + PREP_CONF_FILE=/opt/Nutanix/Move/download/conf/pcf.json + BIN_DIR=/opt/Nutanix/Move/download/bin + CONFIGEDIT_PATH=/opt/Nutanix/Move/download/bin/configedit + destfilepath=/etc/init.d/nutanix-move + IFACE_MAC_ADDR=/etc/mac-nic-address-map + BACKUP_PATH=/opt/Nutanix/backup + RHEL_IFILE=/etc/sysconfig/network-scripts/ifcfg- + SUSE_IFILE=/etc/sysconfig/network/ifcfg- + RHEL_NETWORK_SCRIPTS=/etc/sysconfig/network-scripts + RHEL_NM_KEY_FILES=/etc/NetworkManager/system-connections + SUSE_NETWORK_SCRIPTS=/etc/sysconfig/network + NIC_FILE=/sys/class/net + DEBIAN_IFILE=/etc/network/interfaces + NETPLAN='/etc/netplan/*.yaml' + NETPLAN_DIRECTORY=/etc/netplan + DHCP_NETPLAN_FILE=/etc/netplan/nutanix.yaml + DHCP_FILE=/etc/sourcevm-dhcpfile + PERSISTENT_RULES_FILE=/etc/udev/rules.d/70-persistent-net.rules + BSD_IFILE=/etc/rc.conf + SYSCTL_CONF_FILE=/etc/sysctl.conf + CLOUD_INIT_CONFIGS_DIR=/etc/cloud/cloud.cfg.d + NM_KEYFILE_EXT=.nmconnection + WAIT_FOR_NETWORK_MANAGER=30 + OS_ID= + OS_ID_RHEL=RHEL + OS_ID_RHEL_9X_OR_LATER=RHEL_9x + OS_ID_FreeBSD=FreeBSD + OS_ID_Debian=Debian + OS_ID_SUSE=SUSE + LNF_IFCFG=lnf_ifcfg + LNF_KEYFILE=lnf_keyfile + isCustomIP=false + freeBSD=false + uname + grep -i freebsd + errorVal=1 + '[' 1 = 0 ']' + '[' source = source ']' + do_source + echo -e '\n*** Running IP retention script on source VM ***\n' *** Running IP retention script on source VM *** + '[' -f /etc/init.d/nutanix-move ']' + echo 'RetainIP_debug : /etc/init.d/nutanix-move does not exist. Running retainIP script on source.' RetainIP_debug : /etc/init.d/nutanix-move does not exist. Running retainIP script on source. + echo 'RetainIP_debug : Adding Hardware address to network scripts' RetainIP_debug : Adding Hardware address to network scripts ++ list_interfaces ++ '[' false = true ']' +++ ls /sys/class/net ++ wc -w ++ for nic in $(ls $NIC_FILE) ++ grep -v virtual/ ++ readlink -f /sys/class/net/ens160 ++ echo ens160 ++ for nic in $(ls $NIC_FILE) ++ readlink -f /sys/class/net/lo ++ grep -v virtual/ + num_interfaces=1 + '[' 1 -gt 0 ']' + add_hwaddr_in_nw_scripts_and_nm_keyfiles + '[' -f /etc/redhat-release ']' + '[' -f /etc/SuSE-release ']' + rm -f /etc/mac-nic-address-map + rm -f /etc/sourcevm-dhcpfile + echo 'RetainIP_debug : Dumping Hardware address and interface name to /etc/mac-nic-address-map' RetainIP_debug : Dumping Hardware address and interface name to /etc/mac-nic-address-map ++ list_interfaces ++ '[' false = true ']' +++ ls /sys/class/net ++ for nic in $(ls $NIC_FILE) ++ readlink -f /sys/class/net/ens160 ++ grep -v virtual/ ++ echo ens160 ++ for nic in $(ls $NIC_FILE) ++ readlink -f /sys/class/net/lo ++ grep -v virtual/ + for iface in $(list_interfaces) ++ query_hwaddr ens160 ++ iface=ens160 ++ '[' false = true ']' ++ cat /sys/class/net/ens160/address + hwaddr=00:50:56:b9:a6:b4 + echo 00:50:56:b9:a6:b4,ens160 + echo 'RetainIP_debug : Backing up interface configuration' RetainIP_debug : Backing up interface configuration + '[' false = true ']' + '[' -f /etc/redhat-release ']' + '[' -f /etc/debian_version ']' + OS_ID=Debian + backup_all_interfaces /etc/netplan + network_config_path=/etc/netplan + mkdir -p /opt/Nutanix/backup + '[' -f /etc/netplan ']' + '[' -d /etc/netplan ']' + cp -R /etc/netplan/01-netcfg.yaml /etc/netplan/02-netcfg.yaml /etc/netplan/03-netcfg.yaml /opt/Nutanix/backup/ ++ date +%FT%T + echo 'RetainIP_debug : Time of backup 2026-07-17T11:19:37' RetainIP_debug : Time of backup 2026-07-17T11:19:37 + backup_all_interfaces /etc/network/interfaces + network_config_path=/etc/network/interfaces + mkdir -p /opt/Nutanix/backup + '[' -f /etc/network/interfaces ']' + cp -R /etc/network/interfaces /opt/Nutanix/backup/ ++ date +%FT%T + echo 'RetainIP_debug : Time of backup 2026-07-17T11:19:37' RetainIP_debug : Time of backup 2026-07-17T11:19:37 + '[' -f /etc/udev/rules.d/70-persistent-net.rules -a '!' -f /etc/udev/rules.d/70-persistent-net.rules.nxbak ']' + '[' 0 -ne 0 ']' + '[' false = true ']' + '[' true = true ']' + write_log '\n*** Running reconfigLVM on source VM ***\n' + set +x 17-07-2026T11:19:37 INFO \n*** Running reconfigLVM on source VM ***\n + return 0 + grep 'use_lvmetad.*=.*1' /etc/lvm/lvm.conf + rc=1 + '[' 1 '!=' 0 ']' + write_log 'lvmetad not running. Returning success.' + set +x 17-07-2026T11:19:37 INFO lvmetad not running. Returning success. + return 0 + '[' false = true ']' + '[' '!' -f /opt/Nutanix/Move/download/scripts/uninstallVMwareTools.sh -a true = true ']' + write_log '\n*** Downloading uninstallVMwareTools script on source VM ***\n' + set +x 17-07-2026T11:19:37 INFO \n*** Downloading uninstallVMwareTools script on source VM ***\n + return 0 + '[' '!' -z /tmp/nutanix_move_servadmin/vmware232/uninstallVMwareTools.sh ']' + mv /tmp/nutanix_move_servadmin/vmware232/uninstallVMwareTools.sh /opt/Nutanix/Move/download/scripts + '[' 0 -ne 0 ']' + '[' '!' -f /opt/Nutanix/Move/download/scripts/install_ngt.sh -a true = true ']' + write_log '\n*** Downloading Install NGT script on source VM ***\n' + set +x 17-07-2026T11:19:37 INFO \n*** Downloading Install NGT script on source VM ***\n + return 0 + '[' '!' -z /tmp/nutanix_move_servadmin/vmware232/install_ngt.sh ']' + mv /tmp/nutanix_move_servadmin/vmware232/install_ngt.sh /opt/Nutanix/Move/download/scripts + '[' 0 -ne 0 ']' + is_custom_ips_flow + '[' -f /opt/Nutanix/Move/download/conf/pcf.json ']' + '[' false = true ']' + '[' '!' -f /opt/Nutanix/Uninstall/scripts/cleanup_installation.sh -a true = true ']' + mkdir -p /opt/Nutanix/Uninstall/scripts + write_log '\n*** Downloading cleanup_installation script on source VM ***\n' + set +x 17-07-2026T11:19:37 INFO \n*** Downloading cleanup_installation script on source VM ***\n + return 0 + '[' '!' -z /tmp/nutanix_move_servadmin/vmware232/cleanup_installation.sh ']' + mv /tmp/nutanix_move_servadmin/vmware232/cleanup_installation.sh /opt/Nutanix/Uninstall/scripts + '[' 0 -ne 0 ']' + '[' -f /etc/init.d/nutanix-move ']' ++ dirname /etc/init.d/nutanix-move + '[' '!' -d /etc/init.d ']' + cp /tmp/nutanix_move_servadmin/nutanix_move/nutanix_move.sh /etc/init.d/nutanix-move + rc=0 + '[' 0 '!=' 0 ']' + chmod 755 /etc/init.d/nutanix-move + rc=0 + '[' 0 '!=' 0 ']' + '[' false = true ']' + '[' -f /etc/redhat-release ']' + '[' -f /etc/debian_version ']' + rc=0 ++ whereis systemctl + systemctlpath='systemctl: /usr/bin/systemctl /usr/share/man/man1/systemctl.1.gz' + '[' -z /usr/bin/systemctl /usr/share/man/man1/systemctl.1.gz ']' /tmp/nutanix_move_servadmin/nutanix_move/nutanix_move.sh: line 547: [: /usr/bin/systemctl: binary operator expected + write_service_file + destfilename=nutanix-move + cat + chmod 644 /etc/systemd/system/nutanix-move.service + systemctl daemon-reload + systemctl enable nutanix-move.service Synchronizing state of nutanix-move.service with SysV service script with /lib/systemd/systemd-sysv-install. Executing: /lib/systemd/systemd-sysv-install enable nutanix-move Created symlink /etc/systemd/system/multi-user.target.wants/nutanix-move.service → /etc/systemd/system/nutanix-move.service. + rc=0 + '[' 0 '!=' 0 ']' + write_log 'NutanixMove_debug : Copying UUID to /etc/sourcevm-idfile' + set +x 17-07-2026T11:19:38 INFO NutanixMove_debug : Copying UUID to /etc/sourcevm-idfile + return 0 + cat /sys/class/dmi/id/product_uuid + mkdir -p /opt/Nutanix/log + cp /tmp/nutanix_move_servadmin/xtract-guest.log /opt/Nutanix/log/xtract-source.log