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. -- Alvin Starr || voice: (416)585-9971x690 Interlink Connectivity || fax: (416)585-9974 alvin@iplink.net || _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
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. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi Alvin,> 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.I''ve similar experiences... I managed to get it going once but it seemed very erratic (odd?), usually didn''t work but sometimes it did? I''ve given up on trying to use VLANs in domU. The only way seems to be (as Tait suggested) to setup VLANs in dom0 and bridge them to your domU''s. cheers, Jan _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users