Page MenuHomeVyOS Platform

DHCP server doesn't work from a live CD
Open, Requires assessmentPublic


DHCP server fails to start when running from a live CD. That limits the usefulness of the live CD for testing.


Difficulty level
Unknown (require assessment)
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)

Related Objects

Event Timeline

The possible reason, that it can't get the lease file, because that directory not present in the LiveCD

lease_file = "/config/dhcpd.leases"
vyos@vyos:~$ show dhcp server leases 
WARNING: DHCP server is configured but not started. Data may be stale.
Traceback (most recent call last):
  File "/usr/libexec/vyos/op_mode/", line 224, in <module>
    leases = get_leases(conf, lease_file, args.state, args.pool, args.sort)
  File "/usr/libexec/vyos/op_mode/", line 107, in get_leases
    leases = IscDhcpLeases(lease_file).get()
  File "/usr/lib/python3/dist-packages/isc_dhcp_leases/", line 120, in get
    with open(self.filename) if not self.gzip else as lease_file:
FileNotFoundError: [Errno 2] No such file or directory: '/config/dhcpd.leases'