Usually when I setup a new Ubuntu VM, i keep the eth0
in NAT mode to get the internet & I add a eth1
interface in HostOnly
mode so that I can ssh.
But using this devStack guide : Running a Cloud in a VM, it looks like it tried to use eth0
as the public interface (install got stuck because eth0
lost the network).
I know an OpenStack setup usually requires two NICs, so I'm wondering what is the correct configuration for my VM.
I started with the guide Experimenting with OpenStack Essex on Ubuntu 12.04 LTS under VirtualBox and here are the settings I wound up with in VirtualBox
Under Preferences > Network create a Host-only network called vboxnet0.
vboxnet0 (disable DHCP Server too)
Create a new VM and go to the Network section.
The Adapters for the VM itself.
Network settings in the Ubuntu VM /etc/network/interfaces
And in my devstack localrc / local.conf file I've included the following settings:
This will allow to access your instances (when associated to a floating IP) from your host machine
Hope this works for you too!
Everett
If you have vagrant installed along with virtualbox, you can start devstack using vagrant-devstack:
Networking configuration is handled by the included
Vagrantfile
.