欢迎来到天天文库
浏览记录
ID:22372682
大小:57.00 KB
页数:5页
时间:2018-10-28
《ubuntu 7.04下virtualbox安装及网络桥接》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、Ubuntu7.04下Virtualbox安装及网络桥接 一、安装 1.下载安装包。建议下载Deb包。 2.准备依赖。VirtualBox的正常使用需要libxalan110和libxerces27这两个包。所以,你要先行安装它们,可以使用下面的指令: sudoapt-getinstalllibxalan110libxerces27 3.安装编译工具及相关包。在安装过程中,要编译VirtualBox所用的内核模块。为此,你需要准备基本的编译工具及包,你可以使用下列指令来安装它们: sudoapt-getinstallbuild-ess
2、entiallinux-headers-`uname-r` 4.现在,转到所保存VirtualBox安装包的目录,通过下面的指令来安装它: sudodpkg-iVirtualBox_1.x.x_Ubuntu_feisty_i386.deb 在安装的过程中,VirtualBox会要求你接受许可协议。另外,安装程序也会创建vboxusers用户组,并编译所需的内核模块。 5.现在,你还不能启动VirtualBox,因为你的当前用户还不属于vboxusers用户组。你可以使用下面的指令来将当前的用户(请使用你的用户名代替指令中的youruser
3、)添加到vboxusers用户组中: sudoadduseryouruservboxusers virtualbox屏幕下移问题: 如果虚拟机的分辨率接近x的分辨率而导致部分界面在x边沿时,全屏后原来窗口管理器title的地方变为黑色条状区域,屏幕下移,l-utilities和桥接工具bridge-utils: sudoapt-getinstalluml-utilities sudoapt-getinstallbridge-utils 为了使你的虚拟机能够访问网络接口,你必须将运行虚拟主机的用户的用户名(通常是你的ubuntu登录用户
4、名)添加到uml-用户组(请用你的用户名替换其中的vboxuser): sudogpassl- 注意:为了使改动生效,请重新启动你的电脑。 2.向你的Debian或者ubuntu操作系统描述你要添加的虚拟网络设备,编辑/etc//etc/anual upifconfig$IFACE0.0.0.0up doask255.255.255.0 odifyvmMyVM-hostifdev1tap0 最后,配123下一页——感谢阅读这篇文章,..,置主机和虚拟机的网络,使主机和虚拟机在同一个网段,这样主机和虚拟机就成了局域网中地位相同的两台机
5、器了,可以互相访问了。 三、撤销网络桥 1.禁用网桥和虚拟网卡: sudo/sbin/ifdoanenthostinterfaceonaDebianorUbuntuhost,folloodernDebianandUbuntubasedhosts,youmustfirstinstalltheUserModeLinuxutilitiespackage(uml-utilities),themandlineusing sudoapt-getinstalluml-utilities sudoapt-getinstallbridge-utils
6、InorderforVirtualBoxtobeabletoaccesstheinterface,theuserachinemustbeaddedtothegroupuml-,forexampleand(replacevboxusere): sudogpassl- Youmayhavetologoutandloginagainforthechangetotakeeffect. 2.TodescribetheTAPinterfacetoyourDebianorUbuntusystem,addanentrytothefile/etc/esthe
7、theinterfaceandmustalsospecifytheuserachineusingtheinterface.Thefollopleentrycreatestheinterfacetap0fortheuservboxuser(again,replacee): autotap0 ifacetap0imanual upifconfig$IFACE0.0.0.0up dooreumentationinthesefiles: a)/usr/share//uml-utilities/README.Debianand b)/usr/s
8、hare//ifupdoples/eitisused,activatetheneands: sudo/sbin/ifuptap0 s
此文档下载收益归作者所有