WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] config.sxp pain - auto start?

wow again, very very cool approach.

yoda mang!

thanks very much for the info.

- Brian

On Oct 9, 2009, at 1:33 PM, Grant McWilliams wrote:





On Fri, Oct 9, 2009 at 12:50 PM, Brian Krusic <brian@xxxxxxxxxx> wrote:
Wow, thats a great idea.

I never even thought of shutting that stuff down.

Do you keep libvirt off and remove the bridge permanently?

You mind posting some example configs?

I realize they are only a few lines long and I have a few to base others on but I am curious.

This seems like a cool way of doing it.

- Brian

On Oct 9, 2009, at 12:33 PM, Grant McWilliams wrote:

Brian,

You have a couple of choices if you don't want to use the libvirtd bridge. You can edit /etc/libvirt/qemu/networks/autostart/default.xml
file to get rid of (or change the name of) the bridge that's started by libvirt. You can just delete the default.xml file form autostart and it won't create it at all. If xen is the only reason you have libvirtd (probably unless you use more than one virtualizer which isn't likely) then you can just shut the service down altogether. I usually just go for deleting the default.xml file. I started doing this when I noticed that xen would create a bridge and libvirt would create a bridge and they weren't the same bridge.

The line in xend-config.sxp that specifies my bridge is here

(network-script 'network-virtual bridge="classnet0" bridgeip="192.168.1.254/24" brnet="192.168.1.0/24"')

Standard /etc/xen/config file.

name = "classserver"
memory = "1024"
disk = [ 'tap:aio:/srv/xen/classserver-os.img,sda,w','tap:aio:/srv/xen/classserver-data.img,sdb,w',]
vif = [ 'mac=aa:cc:00:00:00:01' ]
bootloader="/usr/bin/pygrub"





Notice that I'm setting the mac address to the DomU but nothing else? With CentOS you can't specify IP addresses in the vif line without recompiling the kernel but you can specify mac addresses. I specify the mac address and then inside the classnet0 network I have a dnsmasq server that gives out IPs based on mac address. That way I can specify IPs inside the CentOS domUs without recompiling.


Grant McWilliams

Some people, when confronted with a problem, think "I know, I'll use Windows."
Now they have two problems.
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users