[Openstack] devstack, XenServer and networking

John Garbutt John.Garbutt at citrix.com
Wed Sep 5 15:25:00 UTC 2012


Firstly, you can use devstack to generate the DomU Ubuntu image (by doing a network install of ubuntu), which should solve these issues for you:
https://github.com/citrix-openstack/devstack/blob/master/tools/xen/README.md

If you want to go down the route of running devstack yourself on a VM running n XenServer I suggest you try using these settings (not tried them myself, but it should get you closer):

# usual stuff, all good
MYSQL_PASSWORD=secret
RABBIT_PASSWORD=secret
SERVICE_TOKEN=secret
SERVICE_PASSWORD=secret
ADMIN_PASSWORD=secret

# this is correct 
VIRT_DRIVER=xenserver
XENAPI_PASSWORD=secret
IMAGE_URLS=""
MULTI_HOST=1

# You really need this one too
XENAPI_CONNECTION_URL=http://<address_of_your_xenserver_as_used_in_XenCenter>

# assuming a single interface eth0
# mapping to a single XenServer network xenbr0
# not having a separate management network
# allowing a DHCP server to be created at sit on your eth0 network
NET_MAN=FlatDHCPManager
NETWORK_GATEWAY=10.53.6.1
PUBLIC_INTERFACE=eth0
FLAT_NETWORK_BRIDGE=xenbr0
HOST_IP_IFACE=eth0


To understand how the networking works, do take a read of this:
http://docs.openstack.org/trunk/openstack-compute/admin/content/introduction-to-xen.html#xenapi-deployment-architecture

And then have a read of this bit too:
http://docs.openstack.org/trunk/openstack-compute/admin/content/xenapi-flat-dhcp-networking.html

For mapping that to devstack take a look at this:
http://wiki.openstack.org/XenServer/NetworkingFlags


I hope that helps,
John

> -----Original Message-----
> From: openstack-bounces+john.garbutt=citrix.com at lists.launchpad.net
> [mailto:openstack-bounces+john.garbutt=citrix.com at lists.launchpad.net] On
> Behalf Of Teemu Rinta-aho
> Sent: Monday, September 3, 2012 2:27 PM
> To: openstack at lists.launchpad.net
> Subject: [Openstack] devstack, XenServer and networking
> 
> Hi all,
> 
> I am running Ubuntu 12.04.1 on XenServer 6.0.2. I got devstack running without
> a localrc, but then stack.sh defaulted to running KVM/QEMU inside the Xen VM.
> When I started to edit localrc, I ended up with this problem:
> 
> 2012-09-03 16:04:26 CRITICAL nova [req-8bf97707-11f0-42b4-bdfe-
> d51d7724fff2 None None] bridge is required to create a network.
> 
> My localrc looks like this:
> 
> MYSQL_PASSWORD=secret
> RABBIT_PASSWORD=secret
> SERVICE_TOKEN=secret
> SERVICE_PASSWORD=secret
> ADMIN_PASSWORD=secret
> 
> DEST=/devstack
> VIRT_DRIVER=xenserver
> XENAPI_PASSWORD=secret
> IMAGE_URLS=""
> MULTI_HOST=1
> ACTIVE_TIMEOUT=45
> HOST_IP_IFACE=eth0
> PUBLIC_INTERFACE=eth0
> NETWORK_GATEWAY=10.53.6.1
> NET_MAN=FlatManager
> NETINSTALLIP="dhcp"
> NAMESERVERS=""
> NETMASK=""
> GATEWAY=""
> 
> Any ideas how I can get forward?
> 
> BR,
> Teemu
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack at lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp




More information about the Openstack mailing list