Bug 953907 - virt-sysprep does not correctly set the hostname on Debian/Ubuntu
Summary: virt-sysprep does not correctly set the hostname on Debian/Ubuntu
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libguestfs
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-19 13:43 UTC by Richard W.M. Jones
Modified: 2016-09-22 16:00 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-02-13 15:10:41 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1251499 0 unspecified CLOSED virt-builder --hostname should replace FQDN in /etc/hosts on Ubuntu 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 1372269 0 unspecified CLOSED Builder does not set hostname properly for Debian 8 (Jessie) 2021-02-22 00:41:40 UTC

Internal Links: 1251499 1372269

Description Richard W.M. Jones 2013-04-19 13:43:59 UTC
Description of problem:

See: http://wiki.debian.org/HowTo/ChangeHostname

You have to also edit /etc/hosts.

Currently (just editing /etc/hostname) results in strange
warning messages when using sudo:

sudo: unable to resolve host [new hostname]

Version-Release number of selected component (if applicable):

libguestfs 1.21.31

How reproducible:

100%

Steps to Reproduce:
1. Take a Debian/Ubuntu guest and use virt-sysprep --hostname ...

Comment 1 Pino Toscano 2014-02-13 15:10:41 UTC
This has been fixed with
https://github.com/libguestfs/libguestfs/commit/ab2df2e6598d421067d600f89a3d225162424d9b
which is in libguestfs >= 1.25.35.


Note You need to log in before you can comment on or make changes to this bug.