Version 3 (modified by aydan, 11 years ago)

--

VLAN Support in the Orca Xen Driver

Back to Phase I task list

User Story

Orca should be able to create a virtual machine with a data network associated with a given, already configured VLAN.

Technical Specification

Here is some information derived from an email conversation with David Becker about xen and vlans:

David Becker wrote:
> First requirement is a xen0 kernel with VLAN tagging
> enabled (CONFIG_VLAN_8021Q, 8021q.ko module).  Also
> dom0 needs the vconfig program (vlan package in debian systems).
>
> I'll use a running example here with vlan77 as the vlan
> to pass into the domU VM, vlan135 as the vlan dom0 uses,
> and port gi1/7 as the port dom0 is connected to.
>
> On dom0, create the vlan nic:
>        modprobe 8021q
>        vconfig add eth0 77
>        ifconfig eth0.77 up
>
> Create a bridge and add the new nic:
>        brctl addbr vlan.77
>        brctl addif vlan.77 eth0.77
>        ifconfig vlan.77 up
>
> For VM creation, specify the bridge explicitly in the
> vif request:
>        vif="mac=aa:00:98:03:8d:ca,bridge=vlan.77"
>
> Once a VM 1 is up, brctl show should display:
>     # brctl show
>          bridge name     bridge id               STP enabled
> interfaces
>          vlan.77         8000.0015c5e8c93e       no              eth0.77
>                                                                  vif1.0
>
>
> On the cisco/IOS side, the port has to be switchmode trunk.
> I also set the native vlan to the vlan that dom0 needs for booting.
> For good measure, this example also sends a bunch of other vlans into
> dom0.
> The interface config we use is:
>
> interface GigabitEthernet1/7
>   description Trunk link to dom0 off port gi1/7
>   switchport trunk allowed vlan 1,77,135-144,146-1005
>   switchport trunk encapsulation dot1q
>   switchport trunk native vlan 135
>   switchport mode trunk
>   no snmp trap link-status
>   spanning-tree portfast
> end
>
>

Implementation Notes

add here notes about the actual implementation of this task

Related Task