<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div>You can export the uio device to the container in its config file using its device major and minor number, such as:</div>
<div><br>
</div>
<div>
<div>lxc.cgroup.devices.allow = c 247:0 rwm</div>
<div>lxc.mount.entry = /dev/uio0 dev/uio0 none bind,create=file</div>
</div>
<div><br>
</div>
<div>Where, you get the 247:0 from the output of </div>
<div>ls -l /dev/uio0</div>
<div><br>
</div>
<div>If you are trying to run DPDK app inside the container, you will also need to do the following to get the huge pages working:</div>
<div><br>
</div>
<div>
<div>mkdir -p /var/lib/lxc/$container_name/rootfs/mnt/huge</div>
<div><br>
</div>
<div>lxc.mount.entry=/mnt/huge /var/lib/lxc/test/rootfs/mnt/huge none rw,bind 0 0</div>
</div>
<div><br>
</div>
<div>Anjali</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span><Murthy>, Krishna J <<a href="mailto:krishna.j.murthy@intel.com">krishna.j.murthy@intel.com</a>><br>
<span style="font-weight:bold">Reply-To: </span>LXC users mailing-list <<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a>><br>
<span style="font-weight:bold">Date: </span>Thursday, September 25, 2014 6:04 AM<br>
<span style="font-weight:bold">To: </span>LXC users mailing-list <<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a>><br>
<span style="font-weight:bold">Subject: </span>[lxc-users] Accessing /dev file system from container<br>
</div>
<div><br>
</div>
<div>
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
<div><font face="Monaco" size="2"><span style="font-size:10pt;">
<div>I have a Ethernet device which is attached to the container. I have installed the driver module for this device on the host. When I run the application on the container it complains it is unable to find the device in the /dev file system. Infact I use
UIO based driver. So in container I get message unable to access /dev/uio0: No such file or directory.
</div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;"> </span></font></div>
<div>Regards,</div>
<div>Krishna </div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;"> </span></font></div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;"> </span></font></div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;"> </span></font></div>
</span></font>
<p>--------------------------------------------------------------<br>
Intel Shannon Limited<br>
Registered in Ireland<br>
Registered Office: Collinstown Industrial Park, Leixlip, County Kildare<br>
Registered Number: 308263<br>
Business address: Dromore House, East Park, Shannon, Co. Clare</p>
<p>This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all
copies.</p>
<p></p>
</div>
</div>
</span>
</body>
</html>