前提
AOS 6.10
AHV 2023.~
クローン元のVM名:RockyLinux9.5
クローン後のVM名:RockyLinux9.5-2
クローン元のVMのNGAの確認
クローン元のVMでNutanix Guest Agentが動作しているか確認します。
systemctl status ngt_guest_agent
出力例
[root@RockyLinux9 ~]# systemctl status ngt_guest_agent ● ngt_guest_agent.service - Starts, stops Nutanix Guest Agent. Loaded: loaded (/etc/systemd/system/ngt_guest_agent.service; enabled; preset: enabled) Active: active (running) since Sun 2025-04-27 15:25:24 JST; 1 day 21h ago Process: 830 ExecStart=/usr/local/nutanix/ngt/src/ngt_guest_agent start (code=exited, status=0/SUCCESS) Main PID: 1031 (python3) Tasks: 14 (limit: 48331) Memory: 183.8M CPU: 2min 52.384s CGroup: /system.slice/ngt_guest_agent.service tq1031 /usr/local/nutanix/ngt/python36/python3 -E /usr/local/nutanix/ngt/python/bin/guest_agent_monitor_linux.py mq1339 /usr/local/nutanix/ngt/python36/python3 -E /usr/local/nutanix/ngt/python/bin/guest_agent_monitor_linux.py 4月 27 15:25:23 localhost systemd[1]: Starting Starts, stops Nutanix Guest Agent.... 4月 27 15:25:24 localhost.localdomain ngt_guest_agent[830]: Starting Nutanix Guest Agent daemon. 4月 27 15:25:24 localhost.localdomain systemd[1]: Started Starts, stops Nutanix Guest Agent..
runnningとなっていることから、Nutanix Guest Agentが動作していることを確認できました。
クローン後のVMのNGAの確認
Nutanix Guest Agentの起動状況
Nutanix Guest Agentのスタータスを確認してみます。
systemctl status ngt_guest_agent
出力例
[root@RockyLinux9.5-2 ~]# systemctl status ngt_guest_agent ● ngt_guest_agent.service - Starts, stops Nutanix Guest Agent. Loaded: loaded (/etc/systemd/system/ngt_guest_agent.service; enabled; preset: enabled) Active: active (running) since Tue 2025-04-29 12:51:55 JST; 2min 1s ago Process: 836 ExecStart=/usr/local/nutanix/ngt/src/ngt_guest_agent start (code=exited, status=0/SU> Main PID: 1022 (python3) Tasks: 8 (limit: 22564) Memory: 42.1M CPU: 1.910s CGroup: /system.slice/ngt_guest_agent.service tq1022 /usr/local/nutanix/ngt/python36/python3 -E /usr/local/nutanix/ngt/python/bin/gues> mq1252 /usr/local/nutanix/ngt/python36/python3 -E /usr/local/nutanix/ngt/python/bin/gues> 4月 29 12:51:54 localhost systemd[1]: Starting Starts, stops Nutanix Guest Agent.... 4月 29 12:51:55 localhost.localdomain ngt_guest_agent[836]: Starting Nutanix Guest Agent daemon. 4月 29 12:51:55 localhost.localdomain systemd[1]: Started Starts, stops Nutanix Guest Agent.. lines 1-15/15 (END)
このように、サービスとして起動していることを確認できました。
どうやら、Nutanix Guest Agentは起動時に自動的に有効化されるように設定されているようです。
[root@RockyLinux9.5-2 ~]# systemctl is-enabled ngt_guest_agent Enabled
CVMとNGA間の通信確認
次のコマンドを使用して確認できます。
nutanix_guest_tools_cli list_vm_tools_entities include_vm_info=true vm_name=サーバ名
出力例
nutanix@NTNX-HOME-C-CVM:192.168.3.116:~$ nutanix_guest_tools_cli list_vm_tools_entities include_vm_info=true vm_name=RockyLinux9.5-2 I20250429 04:05:58.000536Z 2663450(0x7f732b21c3c0) zookeeper_init:994] Initiating client connection, host=zk1:9876,zk2:9876,zk3:9876 sessionTimeout=20000 watcher=0x7f73357e76c0 sessionId=0 sessionPasswd=<null> context=0x7ffda201f500 flags=0 I20250429 04:05:58.000537Z 2663450(0x7f732a8fc700) zookeeper_interest:1950] Connecting to server 192.168.3.114:9876 I20250429 04:05:58.000537Z 2663450(0x7f732a8fc700) zookeeper_interest:1987] Zookeeper handle state changed to ZOO_CONNECTING_STATE for socket [192.168.3.114:9876] E20250429 04:05:59.000035Z 2663450(0x7f732a8fc700) handle_socket_error_msg:2065] Socket [192.168.3.114:9876] zk retcode=-7, errno=110(Connection timed out): connection timed out (exceeded timeout by 0ms) I20250429 04:05:59.000036Z 2663450(0x7f732a8fc700) zookeeper_interest:1950] Connecting to server 192.168.3.116:9876 I20250429 04:05:59.000036Z 2663450(0x7f732a8fc700) zookeeper_interest:1987] Zookeeper handle state changed to ZOO_CONNECTING_STATE for socket [192.168.3.116:9876] I20250429 04:05:59.000036Z 2663450(0x7f732a8fc700) check_events:2196] initiated connection to server [192.168.3.116:9876] I20250429 04:05:59.000038Z 2663450(0x7f732a8fc700) check_events:2244] session establishment complete on server [192.168.3.116:9876], sessionId=0x19639ab3ea926de, negotiated timeout=20000 I20250429 04:05:59.000140Z 2663450(0x7f732b21c3c0) zookeeper_close:3142] Closing zookeeper sessionId=0x19639ab3ea926de to [192.168.3.116:9876]
本来は、次のように、引数で指定したVMに関する情報が出力されますが、クローンしたVMでは出力されません。CVMとNutanix Guest Agentで通信が出来ていないことを確認できました。
[出力例(一部抜粋)] vm_uuid_vec: "17e3b176-61f7-4544-be14-396bbddea92e" vm_info_vec { vm_uuid: "17e3b176-61f7-4544-be14-396bbddea92e" capabilities { file_level_restore: true vss_snapshot: false volume_group_snapshot: false }
対処方法
Nutanix Guest Agentが正常に稼働していることは確認できました。
クローン後のVMでNutanix Guest AgentがCVMと通信できるようにするにはNutanix Guest Toolをマウントします。
マウントされていることを確認します。
再度、CVMとの通信が正常にできているか確認してみると、先ほどとは異なり、VMの詳細情報まで確認することができました。
出力例
nutanix@NTNX-HOME-C-CVM:192.168.3.116:~$ nutanix_guest_tools_cli list_vm_tools_entities include_vm_info=true vm_name=RockyLinux9.5-2 I20250429 04:18:48.000040Z 2782171(0x7ff5d26053c0) zookeeper_init:994] Initiating client connection, host=zk1:9876,zk2:9876,zk3:9876 sessionTimeout=20000 watcher=0x7ff5dcbd06c0 sessionId=0 sessionPasswd=<null> context=0x7ffcab0a4f80 flags=0 I20250429 04:18:48.000041Z 2782171(0x7ff5d1cf9700) zookeeper_interest:1950] Connecting to server 192.168.3.112:9876 I20250429 04:18:48.000042Z 2782171(0x7ff5d1cf9700) zookeeper_interest:1987] Zookeeper handle state changed to ZOO_CONNECTING_STATE for socket [192.168.3.112:9876] I20250429 04:18:48.000042Z 2782171(0x7ff5d1cf9700) check_events:2196] initiated connection to server [192.168.3.112:9876] I20250429 04:18:48.000046Z 2782171(0x7ff5d1cf9700) check_events:2244] session establishment complete on server [192.168.3.112:9876], sessionId=0x39639a7a1842a1b, negotiated timeout=20000 I20250429 04:18:48.000147Z 2782171(0x7ff5d26053c0) zookeeper_close:3142] Closing zookeeper sessionId=0x39639a7a1842a1b to [192.168.3.112:9876] vm_uuid_vec: "2afe516b-52e0-453a-912b-1e40b1414fb5" vm_info_vec { vm_uuid: "2afe516b-52e0-453a-912b-1e40b1414fb5" capabilities { file_level_restore: false vss_snapshot: true volume_group_snapshot: false } auth_key: "6c5c504b14504641595a071401485255460d59415a511b795f5b44190d4211150a5d425d" guest_tools_enabled: true vm_info { ngt_version: "4.1.2" guest_os_type: kLinux guest_os_release: "Rocky Linux-9.5" is_64_bit: true mobility_drivers_info { kvm_drivers_installed: true esx_drivers_installed: true } vss_installed: false guest_os_version: "9.5" is_installation_complete: false backup_scripts_installed: false multipathing_enabled_for_devices: false network_interfaces_info { interface: "ens3" mac_address: "50:6B:8D:93:04:64" ipv4_info_vec { ip_address: "192.168.3.79" prefix_length: 24 gateway_ip_vec: "192.168.3.1" is_static_ip: false } dns_ip_vec: "8.8.8.8" dhcp_sever_ip_address: "192.168.3.254" } guest_ngt_capabilities { in_guest_volume_attachment_enabled: true ngt_metrics_enabled: false } client_cert_expiry_date: 1832300089 package_manager: "RPM" installation_time: "36.18782949447632" } tools_mounted: true client_certificates_generated: true nfs_iso_path: "/default-container-76230950612170/.ngt/2afe516b-52e0-453a-912b-1e40b1414fb5/nutanix_guest_tools.iso" system_uuid: "2afe516b-52e0-453a-912b-1e40b1414fb5" ngt_uuid: "035d9e39-ea69-4242-8dd7-a8d5ac0a3766" vm_name: "RockyLinux9.5-2" communication_link_active: true mounted_iso_version: "4.1.2" mounted_iso_config_only: false is_dormant_vm: false device_uuid: "3409beec-b3bf-4c4d-bf07-11caf9166878" client_cert_expiry_date: 1832300089 communication_type: kFallbackToIP communication_link_over_serial_port_active: true mark_for_communication_type_modify: false }
その他
クローンした場合、Nutanix Guest Agentの証明書の有効期限もクローン元と同じでした。
参考
Nutanix Support & Insights
コメント