<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Aug 23, 2015 at 4:58 PM, Kai Hendry <span dir="ltr"><<a href="mailto:hendry@webconverger.com" target="_blank">hendry@webconverger.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi there,<br>
<br>
I've managed to get Firefox running like so:<br>
<br>
sudo systemd-nspawn --setenv=DISPLAY=:0 \<br>
--setenv=XAUTHORITY=~/.Xauthority \<br>
--bind-ro=$HOME/.Xauthority:/root/.Xauthority \<br>
-D ~/containers/firefox \<br>
firefox<br>
<br>
<br>
However I want to have network isolation so I can calculate Web page<br>
loads accurately. When I use --network-veth switch I get:<br>
<br>
"""Error: Can't open display: :0""" type errors.<br>
<br>
I assume it's because Xorg can't network to my local host's Xorg server.<br>
Any tips how to manage this mapping?<br>
<br>
I need network isolation going for accurate measurements from $(grep<br>
firefox /proc/net/dev), with hopefully _no Xorg traffic_ shown. :}<br></blockquote><div><br></div><div>Try adding --bind=/tmp/.X11-unix, for the named X11 sockets.</div></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Mantas Mikulėnas <<a href="mailto:grawity@gmail.com" target="_blank">grawity@gmail.com</a>></div></div>
</div></div>