<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Hardware passthrough in LXC (or: running a desktop in a cgroup)</title>
	<atom:link href="http://www.jonnor.com/2010/03/hardware-passthrough-in-lxc-or-running-a-desktop-in-a-cgroup/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jonnor.com/2010/03/hardware-passthrough-in-lxc-or-running-a-desktop-in-a-cgroup/</link>
	<description>My grassy patch in a world of walled gardens</description>
	<lastBuildDate>Thu, 26 Jan 2012 10:57:53 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
	<item>
		<title>By: John</title>
		<link>http://www.jonnor.com/2010/03/hardware-passthrough-in-lxc-or-running-a-desktop-in-a-cgroup/comment-page-1/#comment-490</link>
		<dc:creator>John</dc:creator>
		<pubDate>Fri, 27 Aug 2010 12:00:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.jonnor.com/?p=146#comment-490</guid>
		<description>Hi, just to let you know...

I have two X desktops running independently on two virtual terminals (currently one on the host and one in a container).

I have ALSA working in both for multiple users, but only from either the host or the container at any one time. I am working to try and get over that problem.</description>
		<content:encoded><![CDATA[<p>Hi, just to let you know&#8230;</p>
<p>I have two X desktops running independently on two virtual terminals (currently one on the host and one in a container).</p>
<p>I have ALSA working in both for multiple users, but only from either the host or the container at any one time. I am working to try and get over that problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jonnor</title>
		<link>http://www.jonnor.com/2010/03/hardware-passthrough-in-lxc-or-running-a-desktop-in-a-cgroup/comment-page-1/#comment-488</link>
		<dc:creator>jonnor</dc:creator>
		<pubDate>Mon, 23 Aug 2010 06:50:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.jonnor.com/?p=146#comment-488</guid>
		<description>You will have to create the directory &quot;/srv/lxc/arch/dev&quot; and then possibly a dummy file &quot;/srv/lxc/arch/dev/mem&quot; before you bind mount like that. mknod should not be required. 

Also, I realized that access to /dev/mem should only be necessary when using VESA (and possibly some of the prop. drivers). If you&#039;re using a DRI based driver, access to /dev/dri should be enough, though I have not found the time to verify this.</description>
		<content:encoded><![CDATA[<p>You will have to create the directory &#8220;/srv/lxc/arch/dev&#8221; and then possibly a dummy file &#8220;/srv/lxc/arch/dev/mem&#8221; before you bind mount like that. mknod should not be required. </p>
<p>Also, I realized that access to /dev/mem should only be necessary when using VESA (and possibly some of the prop. drivers). If you&#8217;re using a DRI based driver, access to /dev/dri should be enough, though I have not found the time to verify this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://www.jonnor.com/2010/03/hardware-passthrough-in-lxc-or-running-a-desktop-in-a-cgroup/comment-page-1/#comment-487</link>
		<dc:creator>John</dc:creator>
		<pubDate>Sun, 22 Aug 2010 13:43:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.jonnor.com/?p=146#comment-487</guid>
		<description>Hi, good to see someone else is interested in doing this. If I accept the &quot;risk&quot; of access to /dev/mem (because all the containers are mine and on my own PC) then it would be good to get this to work.

However, I can&#039;t bind mount /dev/mem into the container. I have tried in the container fstab, like this: &quot;/dev/mem /srv/lxc/arch/dev/mem auto rw,bind 0 0&quot; but container startup fails because /dev/mem is not a directory.

I tried giving access via cgroups like this: &quot;lxc.cgroup.devices.allow = c 1:1&quot; but container startup fails.

I tried creating /dev/mem inside the container (as root) &quot;mknod /dev/mem c 1 1&quot; but this gives &quot;mknod: `/dev/mem&#039;: Operation not permitted&quot;

I wondered if you had any luck getting X in an LXC container and could share some guidance...?</description>
		<content:encoded><![CDATA[<p>Hi, good to see someone else is interested in doing this. If I accept the &#8220;risk&#8221; of access to /dev/mem (because all the containers are mine and on my own PC) then it would be good to get this to work.</p>
<p>However, I can&#8217;t bind mount /dev/mem into the container. I have tried in the container fstab, like this: &#8220;/dev/mem /srv/lxc/arch/dev/mem auto rw,bind 0 0&#8243; but container startup fails because /dev/mem is not a directory.</p>
<p>I tried giving access via cgroups like this: &#8220;lxc.cgroup.devices.allow = c 1:1&#8243; but container startup fails.</p>
<p>I tried creating /dev/mem inside the container (as root) &#8220;mknod /dev/mem c 1 1&#8243; but this gives &#8220;mknod: `/dev/mem&#8217;: Operation not permitted&#8221;</p>
<p>I wondered if you had any luck getting X in an LXC container and could share some guidance&#8230;?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jonnor</title>
		<link>http://www.jonnor.com/2010/03/hardware-passthrough-in-lxc-or-running-a-desktop-in-a-cgroup/comment-page-1/#comment-481</link>
		<dc:creator>jonnor</dc:creator>
		<pubDate>Wed, 18 Aug 2010 12:27:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.jonnor.com/?p=146#comment-481</guid>
		<description>Hey John, nice to see some interest. As you probably known, on a single host, running one Xorg session per tty is trivial. But I&#039;m not sure how much more complicated it gets when you want each in its own container. I would imagine it requires access to the framebuffer device at least, but that might be simple. I can only suggest trying it out, asking questions (on the lxc-users mailing-list perhaps) if you get stuck. And report back once you get it working (or know what it would take) ;) 

I&#039;d like to research some more and improve the situation for running desktops in LXC containers, but it&#039;s currently far from the top of my TODO list.</description>
		<content:encoded><![CDATA[<p>Hey John, nice to see some interest. As you probably known, on a single host, running one Xorg session per tty is trivial. But I&#8217;m not sure how much more complicated it gets when you want each in its own container. I would imagine it requires access to the framebuffer device at least, but that might be simple. I can only suggest trying it out, asking questions (on the lxc-users mailing-list perhaps) if you get stuck. And report back once you get it working (or know what it would take) <img src='http://www.jonnor.com/wp/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  </p>
<p>I&#8217;d like to research some more and improve the situation for running desktops in LXC containers, but it&#8217;s currently far from the top of my TODO list.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: john</title>
		<link>http://www.jonnor.com/2010/03/hardware-passthrough-in-lxc-or-running-a-desktop-in-a-cgroup/comment-page-1/#comment-480</link>
		<dc:creator>john</dc:creator>
		<pubDate>Wed, 18 Aug 2010 10:10:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.jonnor.com/?p=146#comment-480</guid>
		<description>Hello Jon. This is interesting and is something that I am also investigating. If LXC can do this then it&#039;s another nail in the coffin for OpenVZ as far as I am concerned.

Now, would it be possible to give one container tty7 and another tty8 and have two completely different distributions running their own X desktop that can be switched between using CTRL+ALT+F8 and CTRL+ALT+F7</description>
		<content:encoded><![CDATA[<p>Hello Jon. This is interesting and is something that I am also investigating. If LXC can do this then it&#8217;s another nail in the coffin for OpenVZ as far as I am concerned.</p>
<p>Now, would it be possible to give one container tty7 and another tty8 and have two completely different distributions running their own X desktop that can be switched between using CTRL+ALT+F8 and CTRL+ALT+F7</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vladimir</title>
		<link>http://www.jonnor.com/2010/03/hardware-passthrough-in-lxc-or-running-a-desktop-in-a-cgroup/comment-page-1/#comment-422</link>
		<dc:creator>Vladimir</dc:creator>
		<pubDate>Thu, 27 May 2010 07:13:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.jonnor.com/?p=146#comment-422</guid>
		<description>Very interesting, I would like to learn more.
I also try to start Xorg in several LXC, but while it failed</description>
		<content:encoded><![CDATA[<p>Very interesting, I would like to learn more.<br />
I also try to start Xorg in several LXC, but while it failed</p>
]]></content:encoded>
	</item>
</channel>
</rss>

