{"action":"created","issue":{"url":"https://api.github.com/repos/lanayotech/vagrant-manager/issues/77","labels_url":"https://api.github.com/repos/lanayotech/vagrant-manager/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/lanayotech/vagrant-manager/issues/77/comments","events_url":"https://api.github.com/repos/lanayotech/vagrant-manager/issues/77/events","html_url":"https://github.com/lanayotech/vagrant-manager/issues/77","id":62761352,"number":77,"title":"LXC support","user":{"login":"borgand","id":103215,"avatar_url":"https://avatars.githubusercontent.com/u/103215?v=3","gravatar_id":"","url":"https://api.github.com/users/borgand","html_url":"https://github.com/borgand","followers_url":"https://api.github.com/users/borgand/followers","following_url":"https://api.github.com/users/borgand/following{/other_user}","gists_url":"https://api.github.com/users/borgand/gists{/gist_id}","starred_url":"https://api.github.com/users/borgand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/borgand/subscriptions","organizations_url":"https://api.github.com/users/borgand/orgs","repos_url":"https://api.github.com/users/borgand/repos","events_url":"https://api.github.com/users/borgand/events{/privacy}","received_events_url":"https://api.github.com/users/borgand/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-18T18:03:25Z","updated_at":"2015-05-27T13:33:54Z","closed_at":null,"body":"Is there a way to add LXC container support? I have a simple setup:\r\n\r\n* A Linux VM (actually itself a Vagrant box, but that's irrelevant) that runs LXC\r\n* My development folder is mounted via NFS to that box, so `.../projectX/Vagrantfile` appears local to the containerhost.\r\n* (A shell alias that prefixes `vagrant` commands w/ relative SSH command. This step is optional, but allows a seamless usage as if LXC was supported on Mac OS X)\r\n\r\nI'm not quite sure what is needed to interface with all the LXC boxes, but I'd  imagine a Preference for LXC container IP address or hostname would be a start. Then such a command would generate a list of Vagrant boxes:\r\n\r\n    % ssh containerhost \"sudo bash -c 'grep -l VAGRANT-BEGIN /var/lib/lxc/*/config | cut -f5 -d/'\"\r\n    projectx_default_1426516465190_1727\r\n    projecty_default_1426695430938_80868\r\n\r\nAfter that `lxc-info` could be used to query the boxes:\r\n\r\n```\r\n% ssh containerhost \"sudo lxc-info -n projectx_default_1426516465190_1727\"\r\nName:           projectx_default_1426516465190_1727\r\nState:          RUNNING\r\nPID:            927\r\nIP:             10.211.55.133\r\nCPU use:        5962.76 seconds\r\nBlkIO use:      737.65 MiB\r\nMemory use:     410.26 MiB\r\nKMem use:       0 bytes\r\n```\r\n\r\nOr other settings could be read directly from the `config` file, e.g. hostname and mount points:\r\n\r\n```\r\nlxc.utsname=projectx.vm\r\nlxc.mount.entry=/sys/fs/pstore sys/fs/pstore none bind,optional 0 0\r\nlxc.mount.entry=/home/laas/prog/projectx srv/projectx none bind 0 0\r\n```\r\n\r\nWould it be possible to add this support?\r\n\r\nPS. I think similar scheme would apply to `vagrant-docker` also."},"comment":{"url":"https://api.github.com/repos/lanayotech/vagrant-manager/issues/comments/105910121","html_url":"https://github.com/lanayotech/vagrant-manager/issues/77#issuecomment-105910121","issue_url":"https://api.github.com/repos/lanayotech/vagrant-manager/issues/77","id":105910121,"user":{"login":"mrjcleaver","id":59202,"avatar_url":"https://avatars.githubusercontent.com/u/59202?v=3","gravatar_id":"","url":"https://api.github.com/users/mrjcleaver","html_url":"https://github.com/mrjcleaver","followers_url":"https://api.github.com/users/mrjcleaver/followers","following_url":"https://api.github.com/users/mrjcleaver/following{/other_user}","gists_url":"https://api.github.com/users/mrjcleaver/gists{/gist_id}","starred_url":"https://api.github.com/users/mrjcleaver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrjcleaver/subscriptions","organizations_url":"https://api.github.com/users/mrjcleaver/orgs","repos_url":"https://api.github.com/users/mrjcleaver/repos","events_url":"https://api.github.com/users/mrjcleaver/events{/privacy}","received_events_url":"https://api.github.com/users/mrjcleaver/received_events","type":"User","site_admin":false},"created_at":"2015-05-27T13:33:54Z","updated_at":"2015-05-27T13:33:54Z","body":"+1 :)\r\n"}}