六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 186|回复: 0

XEN passthrough NIC on SuSE

[复制链接]

升级  53.65%

673

主题

673

主题

673

主题

探花

Rank: 6Rank: 6

积分
2073
 楼主| 发表于 2013-1-16 18:03:48 | 显示全部楼层 |阅读模式
The idea is to bind the pci device (in your case a nic) to the pcibackmodule in the dom0 guest and then assign it to the target domU.

There are two main ways to achieve that, depending on how long you want the change to last:

a) If you want to assign the pci device to the target domU on a transient basis, do a manual allocation.
The allocation will only last until you reboot the system or the domU guest.

b) If you want the assigment to remain persistent among system reboots,stick to the automatic approach, that basically consists on editing themodprobe conf file, building a new initrd file system and changing theaffected domU guest configuration file so that it includes the PCIdevice id in the pci parameter.

I'll only cover here the transient one.

For illustration purposes I'll use my wireless nic. Adapt the procedure to your system.

a) Manual allocation

Having your system started in Xen mode, from a dom0 bash root session do the following:

-Step 1: Find if your dom0 have support for the pciback module.If you are using open Suse 11, and are using the stock kernel, itshould have it:

<div style="margin: 5px 20px 20px;"><div style="margin-bottom: 2px;" class="smallfont">Code:
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表