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

Cédric Bosdonnat posted 2 patches 6 years, 4 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20171218145604.20670-1-cbosdonnat@suse.com
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(+)
[libvirt] [PATCH 0/2] Set hostname in lxc containers
Posted by Cédric Bosdonnat 6 years, 4 months ago
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

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [PATCH 0/2] Set hostname in lxc containers
Posted by Michal Privoznik 6 years, 3 months ago
On 12/18/2017 03:56 PM, Cédric Bosdonnat wrote:
> 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(+)
> 

ACK

Michal

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list