virtual-box虚拟机挂载目录-ubuntu-16.04

1: 配置源 vim /etc/apt/sources.list 

deb http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse

2: apt-get install virtualbox-guest-utils

3:  sudo mount -t vboxsf data /media/sf_data
sudo mount -t vboxsf config /media/sf_config

总结: 网络上面很多安装virtualbox-guest-utils,这个软件是对的,但是很多源没有Pakage,我使用的这个清华源有的,这个是干货,建议先看下其他人的文档,我的版本是virtual-box 5.2.12

你可能感兴趣的:(virtual-box)