안녕하세요. 문성주입니다.
VM_Guest OS - VMtools 관련된 간단한 에러 로그 처리 방법 공유 해드립니다.
- 환경
Hypervisor = ESXi 7.0u3
Guest OS = Rocky Linux release 8.4 (Green Obsidian)
VM Version = ESXi 7.0 U2 and later (VM version 19)
- 관련 로그
vmware-vmsvc-root.log에 ipv6 관련 로그가 지속적으로 발생하고 있으며,
(logrotate를 설정하지 않으면..) log full 및 bigsize log access에 대한 이슈가 발생할 수도 있고,
관련 vmtoolsd daemon의 cpu usage에 영향을 끼칠 수 있기에 처리하는 것이 좋아 보입니다.
[root@ns1 /]# tail -f /var/log/vmware-vmsvc-root.log [2021-12-08T15:53:21.105Z] [ warning] [vmsvc] SlashProcNet_GetRoute6: open(/proc/net/ipv6_route): No such file or directory [2021-12-08T15:53:21.105Z] [ warning] [vmsvc] RecordRoutingInfo: Unable to collect IPv6 routing table. [2021-12-08T15:53:51.106Z] [ warning] [vmsvc] SlashProcNet_GetRoute6: open(/proc/net/ipv6_route): No such file or directory [2021-12-08T15:53:51.106Z] [ warning] [vmsvc] RecordRoutingInfo: Unable to collect IPv6 routing table. [2021-12-08T15:54:21.107Z] [ warning] [vmsvc] SlashProcNet_GetRoute6: open(/proc/net/ipv6_route): No such file or directory [2021-12-08T15:54:21.107Z] [ warning] [vmsvc] RecordRoutingInfo: Unable to collect IPv6 routing table. [2021-12-08T15:54:51.107Z] [ warning] [vmsvc] SlashProcNet_GetRoute6: open(/proc/net/ipv6_route): No such file or directory [2021-12-08T15:54:51.107Z] [ warning] [vmsvc] RecordRoutingInfo: Unable to collect IPv6 routing table. [2021-12-08T15:55:21.108Z] [ warning] [vmsvc] SlashProcNet_GetRoute6: open(/proc/net/ipv6_route): No such file or directory [2021-12-08T15:55:21.108Z] [ warning] [vmsvc] RecordRoutingInfo: Unable to collect IPv6 routing table. |
Ipv6를 disable 상태이기에 /proc/net/ipv6_route 가 없으며,
vmtoolsd daemon이 Guest VM - Network Monitoring를 위해 관련 정보를 수집하는 것 같습니다.
- 해결방안
- ipv6를 활성화하여 처리
ipv6를 활성화 한다면 문제되지 않겠지요.^^
10년전부터도 전세계적인 ip부족으로 ipv6를 써야 된다고들 하지만
필드에서 ipv6 쓰는 곳은 몇몇 공공기관 외에는 본적이 없습니다.
추가적으로 전 알아먹기 힘든 ipv6를 쓰고 싶지 않습니다.ㅋㅋㅋ
- tools.conf 추가
[root@ns1 /]# ls -al /etc/vmware-tools/
total 68
drwxr-xr-x. 4 root root 236 Dec 9 01:10 .
drwxr-xr-x. 85 root root 8192 Dec 9 00:41 ..
-rwxr-xr-x. 1 root root 4364 Jun 2 2021 poweroff-vm-default
-rwxr-xr-x. 1 root root 4364 Jun 2 2021 poweron-vm-default
-rw-r--r-- 1 root root 120 Dec 8 18:08 quiesce_manifest.xml
-rwxr-xr-x. 1 root root 4364 Jun 2 2021 resume-vm-default
drwxr-xr-x. 3 root root 20 Nov 22 23:14 scripts
-rwxr-xr-x. 1 root root 1478 Sep 23 2020 statechange.subr
-rwxr-xr-x. 1 root root 4364 Jun 2 2021 suspend-vm-default
-rw-r--r--. 1 root root 11220 Sep 23 2020 tools.conf.example ==> example 파일이 있습니다.
drwxr-xr-x. 3 root root 21 Nov 22 23:14 vgauth
-rw-r--r--. 1 root root 113 Jun 2 2021 vgauth.conf
[root@ns1 /]# cat /etc/vmware-tools/tools.conf.example | grep -vE "^#|^\[.*\]$|^$"
^# = 줄 시작이 #(주석)된 라인 제외
^\[.*\]$ = 줄 시작이 “[“ 괄호로 시작하여 “]”괄호로 끝나는 줄 제외
^$ = 빈줄 제외
tools.conf.example 파일 내용을 한번 슬쩍 보시면 좋을 것 같습니다.
어찌댓든 example 파일인 관계로 특별히 설정된 내역은 없네요.
필요한 부분만 주석 제거하여 사용해 보겠습니다.
[root@ns1 /]# cat /etc/vmware-tools/tools.conf.example | grep -i ipv
# max umber of IPv4 routes to gather.
#max-ipv4-routes=100
# max umber of IPv6 routes to gather.
#max-ipv6-routes=100
[root@ns1 /]# cp -p /etc/vmware-tools/tools.conf.example /etc/vmware-tools/tools.conf ==> example 파일 복사
[root@ns1 /]# ls -al /etc/vmware-tools/tools.conf
-rw-r--r-- 1 root root 11220 Sep 23 2020 /etc/vmware-tools/tools.conf
[root@ns1 /]# sed -ie 's/\#max-ipv6-routes=100/max-ipv6-routes=0/g' /etc/vmware-tools/tools.conf ==> sed로 파일 내용 수정
[root@ns1 /]# cat /etc/vmware-tools/tools.conf | grep -vE "^#|^$" ==> 적용 내용 확인
[unsetenvironment]
[setenvironment]
[logging]
[powerops]
[guestinfo]
max-ipv6-routes=0
[appinfo]
[servicediscovery]
[unity]
[resolutionKMS]
[guestosinfo]
[vmbackup]
[guestoperations]
[autoupgrade]
[deployPkg]
[cbhelper]
[root@ns1 /]# systemctl restart vmtoolsd.service ==> vmtoolsd 서비스 재시작
[root@ns1 /]# systemctl status vmtoolsd.service ==> vmtoolsd 서비스 상태 확인
vmtoolsd.service - Service for virtual machines hosted on VMware
Loaded: loaded (/usr/lib/systemd/system/vmtoolsd.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2021-12-09 01:23:44 KST; 4s ago
Docs: http://github.com/vmware/open-vm-tools
Main PID: 6749 (vmtoolsd)
Tasks: 2 (limit: 24916)
Memory: 1.7M
CGroup: /system.slice/vmtoolsd.service
└─6749 /usr/bin/vmtoolsd
Dec 09 01:23:44 ns1 systemd[1]: Started Service for virtual machines hosted on VMware.
- 참고사항
ipv6 활성화 유무 확인 방법
[root@ns1 vmware-tools]# cat /sys/module/ipv6/parameters/disable ==> ipv6 disable parameter 확인
1
0=활성화
1=비활성화
[root@ns1 /]# ip -6 -o addr ==> ipv6 address 사용 현황 확인
[root@ns1 /]# ss -6 -pan ==> netstat or ss command로 ipv6 socket 확인
State Recv-Q Send-Q Local Address:Port Peer Address:Port
그럼 업무에 참고하세요.
감사합니다.
'VMware' 카테고리의 다른 글
[VMware] vsphere esxi 7.x 환경에서 centos5 vmtools 설치 관련 (0) | 2022.01.04 |
---|