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] Network problems (Xen 4 +Debian Squeze 64bits).

To: "Oper.ML" <oper.ml@xxxxxxxxx>
Subject: Re: [Xen-users] Network problems (Xen 4 +Debian Squeze 64bits).
From: Diego Dave <diego.dave.s@xxxxxxxxx>
Date: Wed, 24 Aug 2011 10:05:18 -0300
Cc: xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 24 Aug 2011 06:06:50 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=dU7spXzEF5w0l8JWAmHyQrs401mPUfZTng++CWxmAhE=; b=T8tNVrEXk0syEyy2cHGA9uPA59PpdqTw8vELR+qrDVKnhBdMzNjOMSB0+t6KchBZEm aUm24yqQYSo0H1Fb+sZMHmqwK8OyuEcn/N7Kacjtr1wO0rfN/A+j2JIllS+RHftbbjvT XFBYdneEwQuaQg67hbotC+ERId46VQhCd2lgs=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4E54448B.7080305@xxxxxxxxx>
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: <4E541D7A.6070605@xxxxxxxxx> <CAPbp-Bn5wVVL=KbKUyqRMCvKJ6R+-Rv0xxL__E1ysPP31DQhWw@xxxxxxxxxxxxxx> <4E54448B.7080305@xxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
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