HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux sci 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: tpdc (1002)
PHP: 7.4.3-4ubuntu2.29
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //opt/Nutanix/log/xtract-source.log
+ sourcefilepath=/tmp/nutanix_move_root/vmware28/nutanix_move.sh
+ echo Running /tmp/nutanix_move_root/vmware28/nutanix_move.sh
Running /tmp/nutanix_move_root/vmware28/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_root/vmware28/retainIP.sh
+ shift
+ shift
+ [ 8 -gt 0 ]
+ reconfigLVM=true
+ shift
+ [ 7 -gt 0 ]
+ uninstallVMwareTools=true
+ uninstallVMwareToolsscript=/tmp/nutanix_move_root/vmware28/uninstallVMwareTools.sh
+ shift
+ shift
+ [ 5 -gt 0 ]
+ installNgt=true
+ installNgtScriptPath=/tmp/nutanix_move_root/vmware28/install_ngt.sh
+ shift
+ shift
+ [ 3 -gt 0 ]
+ cleanup=true
+ cleanupscript=/tmp/nutanix_move_root/vmware28/cleanup_installation.sh
+ shift
+ shift
+ [ 1 -gt 0 ]
+ sudoterm=true
+ shift
+ [ 0 -gt 0 ]
+ date
Thu May 15 13:31:32 +07 2025
+ 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_root/target-script-completed.txt
rm: cannot remove '/tmp/nutanix_move_root/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 ]
+ write_log Starting script nutanix_move
+ set +x
15-05-2025T13:31:32 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
15-05-2025T13:31:32 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 = true -o -f /opt/Nutanix/Move/download/scripts/retainIP.sh ]
+ [ ! -f /opt/Nutanix/Move/download/scripts/retainIP.sh ]
+ [ ! -z /tmp/nutanix_move_root/vmware28/retainIP.sh ]
+ mv /tmp/nutanix_move_root/vmware28/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
+ 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=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 ']'
++ wc -w
+++ ls /sys/class/net
++ for nic in $(ls $NIC_FILE)
++ readlink -f /sys/class/net/ens32
++ grep -v virtual/
++ echo ens32
++ 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/ens32
++ grep -v virtual/
++ echo ens32
++ for nic in $(ls $NIC_FILE)
++ readlink -f /sys/class/net/lo
++ grep -v virtual/
+ for iface in $(list_interfaces)
++ query_hwaddr ens32
++ iface=ens32
++ '[' false = true ']'
++ cat /sys/class/net/ens32/address
+ hwaddr=00:50:56:bc:20:14
+ echo 00:50:56:bc:20:14,ens32
+ 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/00-installer-config.yaml /opt/Nutanix/backup/
++ date +%FT%T
+ echo 'RetainIP_debug : Time of backup 2025-05-15T13:31:32'
RetainIP_debug : Time of backup 2025-05-15T13:31:32
+ 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 2025-05-15T13:31:32'
RetainIP_debug : Time of backup 2025-05-15T13:31:32
+ '[' -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
15-05-2025T13:31:32 INFO nutanix_move.sh Running reconfigLVM on source VM ***

+ return 0
+ grep use_lvmetad.*=.*1 /etc/lvm/lvm.conf
+ rc=1
+ [ 1 != 0 ]
+ write_log lvmetad not running. Returning success.
+ set +x
15-05-2025T13:31:32 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
15-05-2025T13:31:32 INFO nutanix_move.sh Downloading uninstallVMwareTools script on source VM ***

+ return 0
+ [ ! -z /tmp/nutanix_move_root/vmware28/uninstallVMwareTools.sh ]
+ mv /tmp/nutanix_move_root/vmware28/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
15-05-2025T13:31:32 INFO nutanix_move.sh Downloading Install NGT script on source VM ***

+ return 0
+ [ ! -z /tmp/nutanix_move_root/vmware28/install_ngt.sh ]
+ mv /tmp/nutanix_move_root/vmware28/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
15-05-2025T13:31:32 INFO nutanix_move.sh Downloading cleanup_installation script on source VM ***

+ return 0
+ [ ! -z /tmp/nutanix_move_root/vmware28/cleanup_installation.sh ]
+ mv /tmp/nutanix_move_root/vmware28/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_root/vmware28/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_root/vmware28/nutanix_move.sh: 547: [: /usr/bin/systemctl: unexpected operator
+ 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
15-05-2025T13:31:33 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_root/xtract-guest.log /opt/Nutanix/log/xtract-source.log