华为虚拟化openEuler release 22.03 (LTS-SP1)安装VMTools
Fusioncompute openEuler 安装 vm tools
·
华为虚拟化openEuler release 22.03 (LTS-SP1)安装VMTools
环境
虚拟化平台:华为Fusioncompute 6.5.1.SPH6 X86
虚拟机操作系统:openEuler release 22.03 (LTS-SP1)
VMTools版本:vmtools-2.5.0.155.tar.bz2
默认vmtools不支持openEuler release 22.03 (LTS-SP1)版本,需要修改安装脚本
修改vmtools/install脚本
vim /root/vmtools/install
### determine linux distribution
issue='/etc/issue'
if [ -e '/etc/debian_version' -o -n "$(grep -i 'debian' $issue)" ]
then
SYS_TYPE='debian'
KERN_RELEASE="$(uname -r)"
CPU_ARCH="$(uname -m)"
INIT_TYPE='sysv'
PIDPATH='/var/run'
RC_SYSINIT='/etc/init.d/rc.local'
## 插入以下文本
elif [ -e '/etc/openEuler-release' ]
then
SYS_TYPE='openEuler'
KERN_RELEASE="$(uname -r)"
CPU_ARCH="$(uname -m)"
INIT_TYPE='sysv'
PIDPATH='/var/run'
## 在$SYS_TYPE" = "redhat" 后增加 -o "$SYS_TYPE" = "openEuler"
# Redhat-based systems
if [ "$SYS_TYPE" = "redhat" -o "$SYS_TYPE" = "openEuler" ]
then
if ! chkconfig --del $srv_name > /dev/null 2>&1
then
$Info "Disable $srv_name failed."
warn "Disable $srv_name failed."
fi
安装VMTools
安装服务
sh install
显示如下信息,表示安装成功
启动服务
systemctl start vm-agent
查看服务状态
systemctl status vm-agent
配置开机自启
systemctl enable vm-agent
查看虚拟VMTools状态
更多推荐
已为社区贡献2条内容
所有评论(0)