[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Network problems (Xen 4 +Debian Squeze 64bits).



Hi again,

I'm uruguayan, so my english is very poor, but you have understood me!

The PCI Passthrough need AMD IOMMU or Inter VT-D technologies to run
(it can be called Direct Virtualization). If one of they are present
in your cpu and enabled in the BIOS, the Xen 4 Hypervisor (xend) turns
it on automatically.

Follow this steps to pass the pci nic to DomU:

1- Run the "lspci" command, you can see all devices with an "pci id",
in the format xx:xx.x

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
02:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709
Gigabit Ethernet (rev 20)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

2- Edit /boot/grub/grub.cfg to hide the network cards in Dom0 (PCI Backend):

Find in the menu entry for XEN 4:

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
### BEGIN /etc/grub.d/20_linux_xen ###
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-xen-amd64 and XEN
4.0-amd64' --class debian --class gnu-linux --class gnu --class os
--class xen {
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Add xen-pciback.hide=(xx:xx.x) in the module vmlinux line:

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
module  /boot/vmlinuz-2.6.32-5-xen-amd64 placeholder
root=UUID=188248c8-f00f-4f50-93c6-84b707ae8264 ro quiet
xen-pciback.hide=(02:00.0)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

After that, comment the vif line in your vm cfg file and add the pci line:

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
pci = [ '02:00.0' ]
# vif = [ 'bridge=eth0, type=ioemu, mac=XXXXXXXX' ]
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Finally reboot the system and turn on the DomU.

See http://wiki.xensource.com/xenwiki/XenPCIpassthrough for more information.

Regards,

Diego

2011/8/23 Oper.ML <oper.ml@xxxxxxxxx>
>
> Hi Diego,
>
>     can you tell me or sugest a tutorial of how can I do this "pass-throught" 
> thing?
>     I only have read about it but never make it happens.
>
> P.S: Você é 'brazuca' (risos)?
>
> Thanks.
> Regards
>
> Tony M.
>
>
>
>
>
>
> On 08/23/2011 07:42 PM, Diego Dave wrote:
>
> Hi Tony,
>
> I have the same problem, over both Xen (3 and 4), in Squeeze Dom0.
>
> Dom0 losts the ssh for few minutes, and DomUs lost the VNC too. I think is a 
> bridge issue, because the DomUs with network pci passthough work fine.
>
> Regards,
>
> Diego
>
> 2011/8/23 Oper.ML <oper.ml@xxxxxxxxx>
>>
>> Hi guys,
>>
>>     i have 4 Xen servers, two with Xen 3.2.1 and the other two with Xen 4. 
>> All four servers with 3 network card attached to different networks, 3 of 
>> these interfaces are bridges (configured in the '/etc/network/interfaces' 
>> config file, NOT in xend-config.sxp file) and one is used for the ISCSI 
>> service, where the virtual machines are loaded.
>>     The problem is, when i try to create/shutdown/destroy a HVM virtual 
>> machine, i lost connection with the Dom0 (via ssh) for a few seconds, in 
>> very rare cases, for couple of minutes.
>>     The virtual machines (HVM) have a mac-address (already cheched that they 
>> are totally different) attached to them.
>>     The access that i lose when executing the create/shutdown/destroy 
>> command is with the Dom0 (connected with ssh) but sometimes, a few virtual 
>> machines (HVM) lose its connection too, machines that i wasn't even working 
>> with.
>>     The network cards are Intel PRO 1000 using the e1000 or e1000e modules.
>>     Have anyone experienced this problems?
>>
>>
>> Best regards,
>> Tony M.
>>
>> _______________________________________________
>> Xen-users mailing list
>> Xen-users@xxxxxxxxxxxxxxxxxxx
>> http://lists.xensource.com/xen-users
>

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.