[libvirt] [PATCH 0/2] Set hostname in lxc containers

Cédric Bosdonnat cbosdonnat at suse.com
Mon Dec 18 14:56:02 UTC 2017


Hey there,

Here are two commits to set a transient hostname on lxc containers based
on the guest name.

Cédric Bosdonnat (2):
  Add virStringFilterChars() string utility
  lxc: set a hostname based on the container name

 src/libvirt_private.syms |  1 +
 src/lxc/lxc_container.c  | 35 +++++++++++++++++++++++++++++++++++
 src/util/virstring.c     | 24 ++++++++++++++++++++++++
 src/util/virstring.h     |  1 +
 tests/virstringtest.c    | 46 ++++++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 107 insertions(+)

-- 
2.15.1




More information about the libvir-list mailing list