{"action":"created","issue":{"url":"https://api.github.com/repos/lxc/lxd/issues/2667","repository_url":"https://api.github.com/repos/lxc/lxd","labels_url":"https://api.github.com/repos/lxc/lxd/issues/2667/labels{/name}","comments_url":"https://api.github.com/repos/lxc/lxd/issues/2667/comments","events_url":"https://api.github.com/repos/lxc/lxd/issues/2667/events","html_url":"https://github.com/lxc/lxd/issues/2667","id":192371443,"number":2667,"title":"Question: How can I mount a hosts block device into an LXD container?","user":{"login":"sklosedr","id":19538714,"avatar_url":"https://avatars.githubusercontent.com/u/19538714?v=3","gravatar_id":"","url":"https://api.github.com/users/sklosedr","html_url":"https://github.com/sklosedr","followers_url":"https://api.github.com/users/sklosedr/followers","following_url":"https://api.github.com/users/sklosedr/following{/other_user}","gists_url":"https://api.github.com/users/sklosedr/gists{/gist_id}","starred_url":"https://api.github.com/users/sklosedr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sklosedr/subscriptions","organizations_url":"https://api.github.com/users/sklosedr/orgs","repos_url":"https://api.github.com/users/sklosedr/repos","events_url":"https://api.github.com/users/sklosedr/events{/privacy}","received_events_url":"https://api.github.com/users/sklosedr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-11-29T19:10:45Z","updated_at":"2016-11-29T19:36:37Z","closed_at":null,"body":"How can I mount a hosts block device into an LXD container?\r\n\r\nI only found examples how to mount Hosts Directory into the container.\r\n\r\nThe only way I could figure out is to mount a block device ```sdb```  to the Host Server (Mount path ```/mnt/postgres01```) and then add it to the container with:\r\n\r\n```\r\nsudo lxc config device add postgres2 sdb disk source=/mnt/postgres01 path=ssd_drive\r\n```\r\n\r\ncan you please provide an example how to mount the ```sdb``` device into the container directly without a mounting first to the host (or at least suggest a path for the mount dir on the host)\r\n"},"comment":{"url":"https://api.github.com/repos/lxc/lxd/issues/comments/263674858","html_url":"https://github.com/lxc/lxd/issues/2667#issuecomment-263674858","issue_url":"https://api.github.com/repos/lxc/lxd/issues/2667","id":263674858,"user":{"login":"sklosedr","id":19538714,"avatar_url":"https://avatars.githubusercontent.com/u/19538714?v=3","gravatar_id":"","url":"https://api.github.com/users/sklosedr","html_url":"https://github.com/sklosedr","followers_url":"https://api.github.com/users/sklosedr/followers","following_url":"https://api.github.com/users/sklosedr/following{/other_user}","gists_url":"https://api.github.com/users/sklosedr/gists{/gist_id}","starred_url":"https://api.github.com/users/sklosedr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sklosedr/subscriptions","organizations_url":"https://api.github.com/users/sklosedr/orgs","repos_url":"https://api.github.com/users/sklosedr/repos","events_url":"https://api.github.com/users/sklosedr/events{/privacy}","received_events_url":"https://api.github.com/users/sklosedr/received_events","type":"User","site_admin":false},"created_at":"2016-11-29T19:36:37Z","updated_at":"2016-11-29T19:36:37Z","body":"I created ist as \"blank\"  Is formatting necessary?"}}
{"actor":{"display_login":"sklosedr"}}