https://www.virtualbox.org/manual/ch06.htmlhtml
virtualbox 各网络链接方式的访问性如上图所示linux
vmware和virtualbox的nat网络模式有个很大的区别,在vmware的nat模式下vm可以访问互联网,且host够与vm互通。而virtualbox下host与vm是不通的,须要配置端口转发网络
VBoxGuestAdditions相似于vmware的vmware tools 使用 设备-安装加强功能菜单,挂载安装光盘oracle
#安装依赖项 yum install kernel-devel bzip2 gcc make -y #挂载光盘 mkdir /mnt/cdrom mount /dev/cdrom /mnt/cdrom cd /mnt/cdrom #安装 sh ./VBoxLinuxAdditions.run #卸载 sh ./VBoxLinuxAdditions.run uninstall
Before installing the Guest Additions, you will have to prepare your guest system for building external kernel modules. This works similarly as described in Section 2.3.2, “The VirtualBox driver modules”, except that this step must now be performed in your Linux guest instead of on a Linux host system, as described there.ui
If you suspect that something has gone wrong, check that your guest is set up correctly and try executing the commandthis
rcvboxadd setup as root.spa
Insert the VBoxGuestAdditions.iso CD file into your Linux guest's virtual CD-ROM drive, exactly the same way as described for a Windows guest in Section 4.2.1.1, “Installation”.code
Change to the directory where your CD-ROM drive is mounted and execute as root:orm
sh ./VBoxLinuxAdditions.runhtm
参考:https://docs.oracle.com/cd/E97728_01/E97727/html/guestadd-install.html#additions-linux