[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#867594: cloud.debian.org: vms lease the same dhcp ipv4 address in kvm/libvirt



Package: cloud.debian.org
Severity: important

official debian/stretch64 v9.0.0 vagrant box has wrong dhcp configuration.

As far as I understand, Stretch switched to using DHCP Client Identifier (DUID)
by default, which is generated from /etc/machine-ip, which should be different
due to installation procedure. As Vagrant boxes have no regular installation
procedure, machine_id is embedded into the box, and so, is the same for
all vms and Client Identifier also. As libvirt uses that DUID for assigning
IPv4 addresses, all stretch vms get the same initial IP - new one
makes unusable all previously started.

As DHCP client has an option to use MAC for DUID (or instead DUID?), I propose
to update network config inside vagrant box to use MAC.

-- System Information:
Debian Release: 9.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-3-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
ANSI_X3.4-1968), LANGUAGE=en_US.utf8 (charmap=locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)


Reply to: