Openhab on lxc (virtualisation)

359 views
Skip to first unread message

gilles.l...@gmail.com

unread,
Jun 8, 2014, 9:04:17 AM6/8/14
to ope...@googlegroups.com
Hi,

As a post isn't used for problem only , here is an usable information.

I use two atom servers in my house one of them is used with openvz and the other by lxc.


As I'm trying lxc, I create a virtual machine on an ubuntu 14.04 lts.

Openhab and habmin works like a charm and If I want to make some heavy tests I can easyly recreate a machine.

As I use Zwave devices essentially, I can say, don't forget to allow the "ttyusbX" for your zwave controller.

For that do in your virtualisation server:

lxc-device -n "machine_name" add /dev/ttyUSB0

If you want to add definitively:

#allow ttyUSB0
lxc.cgroup.devices.allow                = c 188:0 rwm

where "188:0" is known by using this command:

ls -l /dev

search the zwave ttyUSB dongle and find the two numbers after the group name

crw-rw---T 1 root dialout 188,   0 juin   7 22:56 ttyUSB0

Don't forget to change the group name in dialout and it will be ok.


I'm having some problem using Bluetooth binding as it is not seen on virtualisation machine. But I think I have to create a virtual port on bluetooth daemon. I don't know very well bluetooth, but if some one know that, it will be good.

Gilles.

dan cunningham

unread,
Jun 8, 2014, 10:06:23 AM6/8/14
to ope...@googlegroups.com
Hi Gilles,

I'm actually running docker ( http://docker.io ) on one of my Odroids, I have freeswitch (my pbx ) running in a lxc based container on it.  I was planning on doing the same with openhab, but I just have not had the time yet to play.   Thanks for the post, I have not tried accessing /dev resources with containers, so I'm sure I will run into similar issues. 

By the way I'm flying out tonight for DockerCon ( http://www.dockercon.com/ ), anyone else planning on going?


--
You received this message because you are subscribed to the Google Groups "openhab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openhab+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages