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] vlan support in HVM

To: Alvin Starr <alvin@xxxxxxxxxx>
Subject: Re: [Xen-users] vlan support in HVM
From: Tait Clarridge <tait@xxxxxxxxxxxx>
Date: Thu, 12 Nov 2009 13:43:58 -0500
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 12 Nov 2009 10:44:40 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4AFC37B8.4090104@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: <4AFC37B8.4090104@xxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Thu, 2009-11-12 at 11:28 -0500, Alvin Starr wrote:
> I have been trying to get a HVM DomU running and being able to connect 
> to a vlan.
> I am starting to get the feeling that at least the hw emulations I have 
> tried do not supoprt vlans.
> Also all the things I have found online would have me creating the vlans 
> inside the Dom0 and pushing them to the DomU's as regular interfaces.
> 

You could always have a trunk port in your dom0 and create bridges for
each VLAN for xen.

You can even script it so you can add it to boot time.

If you have the VLAN trunk set up, you can create bridges as follows.

For this example, my trunk interface is on eth0 and the vlan I am adding
is 2.

# vconfig add eth0 2
# brctl addbr xenbr2
# brctl addif xenbr2 eth0.2
# ifconfig eth0.2 up
# ifconfig xenbr2 up

Now all you would add in the domU configuration file is:

vif=['bridge=xenbr2']

And you would be on VLAN 2.

Otherwise I'm pretty sure you would have to pass through the network
card to get VLAN access.

You can also script this and give it a space separated list of VLANs and
loop it through. I will leave this up to you though.

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>