# echo "app-emulation/virtualbox-bin additions" >> /etc/portage/package.use
# emerge virtualbox-bin
# emerge virtualbox-modules
# gpasswd -avboxusers
# modprobe vboxdrv
modules_2_6="${modules_2_6} vboxdrv"
module_vboxdrv_args_2_6=""
Networking --->
Networking Options --->
<*> 802.1d Ethernet Bridging
Device Drivers --->
Network device support --->
<*> Universal TUN/TAP device driver support
Дальше в /etc/conf.d/net пишем следующее# For every VM create an interface, # set user to the one who going to use the # interface. tuntap_vbox0="tap" tunctl_vbox0="-uСоздаем символические ссылки на интерфейсы" config_vbox0="null" config_eth0="null" # Add here all interfaces that you want to bridge # eg eth0, but make sure to add config_eth0="null" rc_need_br0="net.vbox0" bridge_br0="vbox0 eth0" # The following will be the host IP, it can be the default router # for the VM in routing mode. # You can use dhcp here if you like, it makes sense if you want # to bridge your VM into the real network. config_br0="dhcp" brctl_br0="setfd 0 sethello 0 stp off" # ln -s net.lo /etc/init.d/net.vbox0 # ln -s net.lo /etc/init.d/net.br0 # rc-update add net.br0 default
Ярлыки: Gentoo, Linux, VirtualBox