[lxc-users] Can‘t use lxc container as PXE server

Mike Ziegner Ziegner at montessoriverein-chemnitz.de
Fri Apr 22 06:19:22 UTC 2016


Hi,


my problem is already described above. I have a Debian Jessie host (lxc
version 1.1.5-1~bpo8+1) running a few containers. The containers with an
apache webserver and a dhcp server are doing fine.
To a tftpd-hpa server in a third container I can only connect from the
lxc host.
Please help.

lxc host - /etc/network/interfaces:

auto br0
iface br0 inet static
bridge_ports eth2
bridge_fd 0
address 192.168.1.202
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.201

pxe client configuration:

# Common configuration
lxc.include = /usr/share/lxc/config/debian.common.conf

# Container specific configuration
lxc.rootfs = /var/lib/lxc/linbo/rootfs
lxc.mount = /var/lib/lxc/linbo/fstab
lxc.utsname = linbo
lxc.arch = amd64
lxc.autodev = 1
lxc.kmsg = 0

# Network configuration
lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = br0
lxc.network.name = eth0

tftp server configuration:

# /etc/default/tftpd-hpa
RUN_DAEMON="yes"
TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/var/lib/tftpboot"
TFTP_ADDRESS="0.0.0.0:69"
TFTP_OPTIONS="-l -s"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20160422/3ef9f5b9/attachment.html>


More information about the lxc-users mailing list