关于虚拟机中安装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