在 CentOS / AlmaLinux / Rocky Linux ARM 上安装 VMware Tools

Posted by sysin on 2021-07-02
Estimated Reading Time 1 Minutes
Words 289 In Total
Viewed Times

请访问原文链接:在 CentOS / AlmaLinux / Rocky Linux ARM 上安装 VMware Tools,查看最新版。原创作品,转载请保留出处。

作者:gc(at)sysin.org,主页:www.sysin.org

ESXi-Arm 已经可以支持运行 CentOS 8 Arm/AArch64 及关联发行版 AlmaLinux 8 ARM 和 Rockly Linux 8 ARM。不过 VMware Tools 与 x86_64 版本不一样,无法直接运行 dnf install open-vm-tools 进行安装,安装步骤如下:

1.首先需要启用 powertools repo 安装必要组件,然后从 github 获取 open-vm-tools 编译安装:

1
2
3
4
5
6
7
8
9
dnf config-manager --set-enabled powertools
dnf -y update
dnf install -y git make rpm-build autoconf automake libtool gcc-c++ doxygen fuse-devel gdk-pixbuf2-xlib-devel glib2-devel gtkmm30-devel gtk3-devel libdnet-devel libicu-devel libmspack-devel libtirpc-devel libtool-ltdl-devel libX11-devel libXext-devel libXi-devel libXinerama-devel libXrandr-devel libXrender-devel libXtst-devel openssl-devel pam-devel rpcgen xmlsec1-devel xmlsec1-openssl-devel valgrind-devel libdrm-devel systemd-devel
git clone https://github.com/vmware/open-vm-tools.git
cd open-vm-tools/open-vm-tools/
autoreconf -i
./configure
make
make install

2.创建一个 systemd unit 文件来管理 VMware Tools 服务:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
cat > /etc/systemd/system/vmtoolsd.service << EOF
[Unit]
Description=
Description=Open VM Tools
After=
After=network-online.target

[Service]
ExecStart=
ExecStart=/usr/local/bin/vmtoolsd
Restart=always
RestartSec=1sec

[Install]
WantedBy=multi-user.target
EOF

3.启动服务:

1
2
systemctl enable vmtoolsd.service
systemctl start vmtoolsd.service

捐助本站 ❤️ Donate


如果文章中使用的内容或图片侵犯了您的版权,请联系作者删除。如果您喜欢这篇文章或者觉得它对您有所帮助,欢迎您发表评论,也欢迎您分享这个网站,或者赞赏一下作者,谢谢!


支付宝打赏 微信打赏

赞赏一下



1000000