现在是
加载中...
加载中...

Install the packages required

fedora

yum update
yum install gcc kernel-devel make -y

reboot

ubuntu

sudo apt update
sudo apt upgrade
sudo apt install dkms build-essential virtualbox-guest-x11 linux-headers-generic linux-headers-virtual -y

Install Guest Additions via a Terminal

fedora

mount -r /dev/cdrom /media
cd /media/
./VBoxLinuxAdditions.run 

日志

Verifying archive integrity... All good.
Uncompressing VirtualBox 6.0.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.  This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: Kernel headers not found for target kernel
2.6.25-14.fc9.x86_64. Please install them and execute
  /sbin/rcvboxadd setup
VirtualBox Guest Additions: Starting.

ubuntu

sudo mount -r /dev/cdrom /media/cdrom
cd /media/cdrom
sudo ./VBoxLinuxAdditions.run 

重启

reboot

挂载共享文件夹

Windows设置

共享文件夹名称:fedora_share

挂载点:/mnt/fedora

挂载

fedora

mkdir /mnt/fedora
mount -t vboxsf fedora_share /mnt/fedora

ubuntu

sudo mount -t vboxsf ubuntu_share /mnt/ubuntu

作者:Terwer

首发:远方的灯塔

原创内容,转载请注明出处!

文章目录

目录加载中...