查看Ubuntu VirtualBox服务器配置

系统 Linux
在Ubuntu VirtualBox中创建名为winshare的数据空间,然后在ubuntu中以root身份运行:mkdir /mnt/winshare mount -t vboxsf {VB中的共享名} {mnt设备名}, 如:mount -t vboxsf vbshare /mnt/winshare

对大家推荐很好使用的VirtualBox系统之前,像让大家对Ubuntu VirtualBox系统有所了解,然后对Ubuntu VirtualBox系统全面讲解介绍,希望对大家有用。

配置apt-get代理

1. Export the environment variable before your starting apt-get.
http_proxy=http://yourproxyaddress:proxyport

2. Edit or create the file /etc/apt/apt.conf and add the following entry into the file.
Acquire::http::Proxy

折腾了好久。安装完linux-libc-dev.deb后,再安装libc6-dev_2.7-10ubuntu3_i386.deb时Package Installer就没有响应了,整个guest也失去了响应,检查发现deb文件保存在VB的数据空间里,可能会有问题。把deb拷贝到本地目录再安装就没问题了。
结论:VB的数据空间最好是只为数据交换所用。

引用一篇文章,直接在desktop上就可以配置好网络,确实很方便,在我的机器上DHCP取到的IP是10网段的。

受够了VMware Server的低下效率,转向了使用Ubuntu VirtualBox。 不过马上也遇到了Ubuntu虚拟机不能上网的问题。当然,在Ubuntu VirtualBox官方论坛上面找到了配置方法。下面就是本人对原文的一点粗浅翻译,仅供参考。

1. 在host上面查看DNS服务器配置。在Windows host上面,打开开始菜单|附件|命令提示符,然后输入ipconfig /all。回车开始执行。用笔记录DNS服务器的信息以备后面使用。

2. 将Ubuntu VirtualBox的网络设置设为NAT类型。启动Ubuntu Linux guest。打开System|Administration|Network菜单,选择Wired Connection,单击Properties按钮,将其中配置改为DHCP,保存。重启Ubuntu。

3. 在重启后的Ubuntu中打开System|Administration|Network Tools菜单。将对话框中间部位的下拉列表选到Ethernet Interface,然后可以看到对话框下面显示出Ubuntu VirtualBox给Ubuntu分配的IP,记录IP和子网掩码。

4. 在同一个对话框内,选择Netstat标签,然后点击绿箭头获取Routing Table Information。注意表格中有一列为Gateway,请记录其中不是全零的那一个IP地址。

5. 回到2中间打开的Network对话框,打开属性,将类型从DHCP改为Static IP。输入刚才3中记录的IP地址和子网掩码。再输入4步骤中记录的Gateway的IP地址。

6. 保存,退出Properties,但不要关闭Network对话框。切换到DNS标签,删除这里自动设置的DNS服务器信息。然后添加1中间记录的DNS服务器。重启Ubuntu。

做完上面几步,你的Ubuntu应该又可以连上网络了。

原文地址http://forums.VirtualBox.org/viewtopic.php?t=2430

1.在Ubuntu VirtualBox中建立ISO的两个网卡,一个为Host,一个为NAT(注意选择物理网卡).
2.以root身份编辑:vim /etc/network/interfaces如下:
view plaincopy to clipboardprint?
auto lo  
iface lo inet loopback  
auto eth0  
iface eth0 inet dhcp  
auto eth1  
iface eth1 inet static 
address 192.168.1.x  
netmask 255.255.255.x  
gateway 192.168.x.x 
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
auto eth1
iface eth1 inet static
address 192.168.1.x
netmask 255.255.255.x
gateway 192.168.x.x
3. 保存,重启网络: /etc/init.d/networking restart
4. ping测试Internet网络

在Ubuntu VirtualBox中创建名为winshare的数据空间,然后在ubuntu中以root身份运行:mkdir /mnt/winshare
mount -t vboxsf  {VB中的共享名} {mnt设备名}, 如:mount -t vboxsf vbshare /mnt/winshare

    【编辑推荐】

    1. 启用Ubuntu FrameBuffer系统编辑文件
    2. 安装Ubuntu系统文件步骤

    【责任编辑:鹏程 TEL:(010)68476606】

    责任编辑:佚名 来源: CSDN
    相关推荐

    2010-01-04 16:46:44

    Ubuntu DNS

    2010-01-04 16:54:00

    Ubuntu DNS

    2018-10-12 10:10:58

    Ubuntu服务器Oracle Virt

    2010-07-27 10:28:44

    2013-03-11 10:51:03

    VirtualBox服务器虚拟化

    2010-05-25 09:45:06

    SVN服务器环境配置

    2015-11-09 13:23:49

    PXEUbuntu 14.0Linux

    2010-01-04 13:26:51

    Ubuntu安装

    2017-03-17 14:05:48

    LinuxUbuntuFTP服务器

    2009-08-18 11:12:34

    Ubuntu下Virt桥接网络配置

    2011-11-21 14:18:51

    日志

    2009-12-30 10:09:08

    Ubuntu Apac

    2010-08-04 11:04:48

    UbuntuNFS服务器

    2010-01-05 16:14:54

    Ubuntu mysq

    2011-03-18 13:41:50

    2010-02-06 15:35:31

    Ubuntu DNS

    2010-03-04 14:15:38

    Ubuntu MySQ

    2010-08-03 11:49:26

    Ubuntu nfs服

    2009-08-19 13:57:13

    telnet服务器配置

    2015-07-08 09:21:29

    SNMP网络管理简单网络管理协议
    点赞
    收藏

    51CTO技术栈公众号