Mac M1 Parallels CentOS7.9 Install Parallels Tools

一、挂载parallels-tools安装包

bash 复制代码
mkdir /media/cdrom/
mount /dev/cdrom /media/cdrom/
mount: /dev/sr0 写保护,将以只读方式挂载

二、GCC升级

bash 复制代码
yum install -y centos-release-scl
yum install -y devtoolset-8-gcc*

# 切换当前会话中gcc版本为8
scl enable devtoolset-8 bash

# 直接替换旧的gcc
mv /usr/bin/gcc /usr/bin/gcc-4.8.5
ln -s /opt/rh/devtoolset-8/root/bin/gcc /usr/bin/gcc
mv /usr/bin/g++ /usr/bin/g++-4.8.5
ln -s /opt/rh/devtoolset-8/root/bin/g++ /usr/bin/g++

[root@no1 ~]# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/opt/rh/devtoolset-8/root/usr/libexec/gcc/aarch64-redhat-linux/8/lto-wrapper
Target: aarch64-redhat-linux
Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,lto --prefix=/opt/rh/devtoolset-8/root/usr --mandir=/opt/rh/devtoolset-8/root/usr/share/man --infodir=/opt/rh/devtoolset-8/root/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --with-default-libstdcxx-abi=gcc4-compatible --enable-plugin --enable-initfini-array --with-isl=/builddir/build/BUILD/gcc-8.3.1-20190311/obj-aarch64-redhat-linux/isl-install --disable-libmpx --enable-gnu-indirect-function --build=aarch64-redhat-linux
Thread model: posix
gcc version 8.3.1 20190311 (Red Hat 8.3.1-3) (GCC)

三、移入rpm文件并安装

bash 复制代码
yum install -y elfutils-libelf-devel
yum install -y kernel-devel
kernel-5.11.12-300.el7.aarch64.rpm
kernel-core-5.11.12-300.el7.aarch64.rpm
kernel-devel-5.11.12-300.el7.aarch64.rpm
kernel-headers-5.11.12-300.el7.aarch64.rpm

[root@no1 ~]# ls
anaconda-ks.cfg  kernel-5.11.12-300.el7.aarch64.rpm  kernel-core-5.11.12-300.el7.aarch64.rpm  kernel-devel-5.11.12-300.el7.aarch64.rpm  kernel-headers-5.11.12-300.el7.aarch64.rpm

[root@no1 ~]# rpm -ivh kernel-5.11.12-300.el7.aarch64.rpm
准备中...                          ################################# [100%]
	软件包 kernel-5.11.12-300.el7.aarch64 已经安装
[root@no1 ~]# rpm -ivh kernel-core-5.11.12-300.el7.aarch64.rpm
准备中...                          ################################# [100%]
	软件包 kernel-core-5.11.12-300.el7.aarch64 已经安装
[root@no1 ~]# rpm -ivh kernel-devel-5.11.12-300.el7.aarch64.rpm
准备中...                          ################################# [100%]
正在升级/安装...
   1:kernel-devel-5.11.12-300.el7     ################################# [100%]
[root@no1 ~]# rpm -ivh kernel-headers-5.11.12-300.el7.aarch64.rpm  --force --nodeps
准备中...                          ################################# [100%]
正在升级/安装...
   1:kernel-headers-5.11.12-300.el7   ################################# [100%]

添加源

bash 复制代码
vi /etc/yum.repos.d/epel.repo
bash 复制代码
[epel]
name=Extra Packages for Enterprise Linux 7 - $basearch
baseurl=http://mirrors.aliyun.com/epel/7/$basearch
failovermethod=priority
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7

[epel-debuginfo]
name=Extra Packages for Enterprise Linux 7 - $basearch - Debug
baseurl=http://mirrors.aliyun.com/epel/7/$basearch/debug
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
gpgcheck=0

[epel-source]
name=Extra Packages for Enterprise Linux 7 - $basearch - Source
baseurl=http://mirrors.aliyun.com/epel/7/SRPMS
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
gpgcheck=0
bash 复制代码
yum makecache

安装parallels-tools

bash 复制代码
/media/cdrom/install



安装完成!

视频地址:Mac M1 Parallels CentOS7.9 Install Parallels Tools

相关推荐
counterxing2 天前
最近发现一个 Mac 工具,有点像把 Raycast、语音输入法、截图和录屏塞到了一起
macos·ai编程·claude
元Y亨H9 天前
MacBook Air 开发神器:IDEA 与 PyCharm 极简安装及环境配置
macos
yuanyxh10 天前
macOS 应用 - 纯对话生成
前端·macos·ai编程
AI创界者12 天前
PilotTTS 一键整合包(Win/Mac):8G 显存畅跑,实测解锁情绪与副语言的精准控制
人工智能·macos·aigc·音视频
AirDroid_cn12 天前
系统终端与iTerm2字体看起来不一样?macOS Sequoia统一渲染指南
macos
JiaWen技术圈12 天前
2026 年的 macOS 磁盘清理方法
macos
lichong95112 天前
让AI自己用电脑!Cua:后台操作鼠标键盘,Mac/Windows/Linux全支持
人工智能·macos·ai·计算机外设·agent·提示词
A尘埃12 天前
批处理命令(Linux/Mac、Windows项目启动脚本)
linux·windows·macos
他们都不看好你,偏偏你最不争气13 天前
【iOS】Runtime - Part 2 && 消息发送:缓存、查找与转发
macos·ios·objective-c·cocoa