什么是devStack VM(virtualbox)的正确networkingconfiguration?

通常当我安装一个新的Ubuntu虚拟机,我保持eth0在NAT模式获得互联网,我添加一个eth1接口在HostOnly模式,以便我可以SSH。

但是使用这个devStack指南: 在VM中运行一个云 ,看起来它试图使用eth0作为公共接口(由于eth0丢失了networking,所以安装被卡住了)。

我知道一个OpenStack设置通常需要两个NIC,所以我想知道什么是我的虚拟机的正确configuration。

我从指南开始在VirtualBox的Ubuntu 12.04 LTS上试用OpenStack Essex ,这里是我在VirtualBox中完成的设置

在首选项>networking下创build一个名为vboxnet0的主机专用networking。

vboxnet0(也禁用DHCP服务器)

vboxnet0

创build一个新的虚拟机并转到networking部分。

虚拟机本身的适配器。 适配器1适配器2

Ubuntu VM / etc / network / interfaces中的networking设置

 auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet dhcp #Public Interface #auto eth1 #iface eth1 inet static #address 172.16.0.1 #netmask 255.255.0.0 #network 172.16.0.0 #broadcast 172.16.255.255 # Instead of having eth1 in /etc/network/interfaces # we create directly br100 and attach it to eth1 auto br100 iface br100 inet static address 172.16.0.1 netmask 255.255.0.0 network 172.16.0.0 broadcast 172.16.255.255 bridge_ports eth1 bridge_stp off bridge_maxwait 0 bridge_fd 0 

在我的devstack localrc / local.conf文件中,我包含了以下设置:

 HOST_IP=172.16.0.1 FLAT_INTERFACE=br100 PUBLIC_INTERFACE=eth1 FLOATING_RANGE=172.16.0.128/25 

这将允许从主机访问您的实例(当关联到浮动IP时)

希望这也适合你!

埃弗雷特

如果你已经和virtualbox一起安装了vagrant ,你可以使用vagrant-devstack启动devstack :

 $ git clone [email protected]:dolph/vagrant-devstack.git $ cd vagrant-devstack $ vagrant up 

networkingconfiguration由包含的Vagrantfile处理。