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?

To: Brian Krusic <brian@xxxxxxxxxx>
Subject: Re: [Xen-users] config.sxp pain - auto start?
From: Grant McWilliams <grantmasterflash@xxxxxxxxx>
Date: Fri, 9 Oct 2009 13:33:53 -0700
Cc: James Pifer <jep@xxxxxxxxxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 09 Oct 2009 13:35:00 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=VLZ2CwolUcVLnRyGTbNz/3Kbye7FYoDIQX74MrCl/6o=; b=Zg093Hfb0FFC8Luq2LyovYYtjcoeoiHK+InmhU7rDJzvYKpppWAJn4aYexKQmWgttw fuDYyas+fXL80nyA/qH0o/490uXuSVk1RkIV3zicmwHtOGDvIBLIgStL9keipnokKHHI 7kXNI0/t4zeQeZlAeajPNYRJwbunu6J20WqJA=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=n3vwPv3h07W7OEYOY7H4a3/OnJ0Bg0IKb3a/kKmuwDep0EhefBi32rn9EttTeiv1p7 WE6O5+0nuj9VXTJjyxRjHDgvAyQYjRA86PRzlM1tCiXD2wxzvCEuXuaBqlHNGFFbLCUS mJptkzo7GZj2VUkmd2RNGKnxHEV1z0DfW2eeQ=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <63916357-A95B-452A-B931-882A4CAC5A8A@xxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <C72F1C34-24F8-4DDD-90E8-6D7936C31C7A@xxxxxxxxxx> <1255116167.7244.40.camel@xxxxxxxxxxxxxxxxxxxxxxxx> <ed123fa30910091233h5136c0d6hc1764251bc1bc15f@xxxxxxxxxxxxxx> <63916357-A95B-452A-B931-882A4CAC5A8A@xxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx




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