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/
Home Products Support Community News


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

Hi Grant,

I moved one of my domUs from an older system having the /etc/xen/domU config format onto the newer system which uses the config.sxp format and I can't see the domU.

I restarted xend, etc... to no avail.  No strange errors in the xen logs either.

Were you able to get older domUs into Xen3.4.1?

- 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:


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="" brnet=""')

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' ]

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 mailing list