Help setting up Xen on Centos with static Ips

2 posts / 0 new
Last post
#1 Sun, 09/07/2014 - 16:34
sphinx99

Help setting up Xen on Centos with static Ips

I'm newbie to Xen & Cloudmin - need advice on setting up Xen GPL on Centos. I've tried doing everything for the past 4 days.

My setup & requirement:
* Server A hosting Webmin/Cloudmin (Dom0) with a static Public IP on em1 interface
* I've 3 other static Public IPs that needs to be assigned to 3 VMs on the same box
* Ability to ssh to all 4 IPs from external
* Run servers on each of these 3 VMs

I tried to create a bridge xenbr0:
DEVICE=xenbr0
IPV6INIT=no
NAME=""
BOOTPROTO=static
NM_CONTROLLED=yes
TYPE=Bridge
NETMASK=255.255.255.248
IPADDR=
NETWORK=
BROADCAST=
GATEWAY=
ONBOOT=yes
DELAY=0

$ brctl show
bridge name bridge id STP enabled interfaces
xenbr0 8000.feffffffffff no vif3.0

$ sudo xl list
Name ID Mem VCPUs State Time(s)
Domain-0 0 1024 1 r----- 97.9
dev-api 3 4096 1 -b---- 12.8

$ cat /xen/dev-api.cfg
memory = 4096
maxmem = 4096
name = 'dev-api'
vif = [ 'ip=192.168.0.235,mac=00:16:3e:2B:EB:1A,bridge=xenbr0' ]
address = '192.168.0.235'
netmask = '255.255.255.0'
disk = ['file:/xen/dev-api.img,xvda1,w']
kernel = "/usr/lib/xen/boot/pv-grub-x86_64.gz"
extra = "(hd0)/boot/grub/grub.conf"

$ sudo egrep -v "^#|^$" /etc/xen/xend-config.sxp
(xend-unix-server yes)
(xend-relocation-server no)
(xend-relocation-hosts-allow '^localhost$ ^localhost\\.localdomain$')
(network-script /bin/true)
(vif-script vif-bridge)
(dom0-min-mem 256)
(enable-dom0-ballooning yes)
(total_available_memory 0)
(dom0-cpus 0)
(vncpasswd '')

What am I missing?

Fri, 09/12/2014 - 15:20
sphinx99

Any help with xenbr setup anyone?

Topic locked