Thanks for reporting this bug.

Your example command says '$ip:$port'.  Is the iscsid running on the host
or in the container?  Is $ip the ip of the host?

If $ip is the host ip and you just want iscsiadm in the guest to talk to iscsid 
on the
host, that should work.

There are several ways depending on your configuration where netlink sockets
might be being attempted.  Could you show strace -f output to show exactly
which fails?  (iscsiadm itself should only fail if you're trying offload, which 
it
doesn't look like you are)

Netlink sockets are per-netns, so if you want to be able to connect to a
netlink socket from another netns, then something will need to open a
socket from the target netns and pass that into the other ns.  (This
could be arranged with setns, but only from the host).


** Changed in: lxc (Ubuntu)
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1226855

Title:
  Cannot use open-iscsi inside LXC container

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1226855/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to