I'm working on debian wheezy and use avahi to communicate with test hardware. For a renewal of the test suite I had to change to a chroot environment (jessie). Is there any possibility to find an 'avahi on chroot' solution, so that I can communicate with the test hardware as before?
Asked
Active
Viewed 447 times
1 Answers
0
Found a way to solve this issue:
In your host machine (wheezy in my case) do:
sudo vi /etc/schroot/default/fstab
and add the line
/var/run/avahi-daemon /var/run/avahi-daemon none rw,bind 0 0
In the chroot environment (jessie in my case) do:
sudo apt-get install libnss-mdns
and
sudo vi /etc/nsswitch.conf
there make sure the line for the hosts looks like this:
hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4

Will Hardy
- 14,588
- 5
- 44
- 43

fidelitas
- 1,113
- 2
- 12
- 14
-
Instead of editing the default profile, it might be a better idea to create your own profile and edit it there. `cp -R /etc/schroot/default /etc/schroot/myprofile` and then set `profile=myprofile` in your `schroot.conf`. – Will Hardy Jan 15 '15 at 13:23