关于虚拟机中安装redhat请参考其他教程:

1.点击虚拟机菜单:设备--安装增强功能....



2.ssh连接到redhat,执行以下操作:

[root@rhel-server ~]# mount /dev/cdrom /mnt/
mount: block device /dev/sr0 is write-protected, mounting read-only
[root@rhel-server ~]# cd /mnt/
[root@rhel-server mnt]# ls
32Bit autorun.sh runasroot.sh VBoxSolarisAdditions.pkg VBoxWindowsAdditions-x86.exe
64Bit cert TRANS.TBL VBoxWindowsAdditions-amd64.exe
AUTORUN.INF OS2 VBoxLinuxAdditions.run VBoxWindowsAdditions.exe
[root@rhel-server mnt]# ./VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 5.2.4 Guest Additions for Linux........
VirtualBox Guest Additions installer
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel modules.
VirtualBox Guest Additions: Starting.
You may need to restart the Window System (or just restart the guest system)
to enable the Guest Additions.


安装结束,重启即可

[root@rhel-server mnt]# reboot







Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐