|
|
|
|
|
|
|
|
|
|
xen-users
Re: [Xen-users] vlan support in HVM
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.
signature.asc
Description: This is a digitally signed message part
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|
|
|
|
|