Bug 890027
| Summary: | virt-sysprep: Setting hostname, domain name and pretty name on Fedora 18 correctly | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Community] Virtualization Tools | Reporter: | Richard W.M. Jones <rjones> | ||||
| Component: | libguestfs | Assignee: | Richard W.M. Jones <rjones> | ||||
| Status: | CLOSED UPSTREAM | QA Contact: | |||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | unspecified | CC: | amcnabb, dyasny, mbooth, pbonzini | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2013-05-21 13:02:29 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
You should use noatime to get a relevant diff. Looking at actual mtime changes and ignoring changes to /tmp, the affected files are hostname (for the "static" hostname), machine-info (for the "pretty" hostname) and resolv.conf (for the domain name). Fixed in: 0daa83cc9116a537cf154088a5a47c5c43ee6444 d2abdddf61c7bd0c6fc79dd83aa4332e213dc7ba |
Created attachment 668479 [details] hostnamectl.diff Description of problem: virt-sysprep cannot set the hostname on Fedora 18, since Fedora 18 introduced a stupidly over-complicated way to set the hostname. Version-Release number of selected component (if applicable): libguestfs 1.20 How reproducible: 100% Additional info: I ran the 'hostnamectl' command on a snapshot and diff'd the two images to find out what it was doing. The diff is attached, but note that it contains a lot of extraneous changes because I rebooted the machine in between.