Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 287228

Summary: sys-kernel/vserver-sources-2.3.0.36.14-r1: 'hostname in VMs changes hostname globally
Product: Gentoo Linux Reporter: Manuel Nickschas <sputnick>
Component: [OLD] ServerAssignee: Thilo Bangert (RETIRED) (RETIRED) <bangert>
Status: RESOLVED INVALID    
Severity: normal CC: hollow
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Manuel Nickschas 2009-10-01 12:45:47 UTC
Since upgrading to vserver-sources-2.3.0.36.14-r1 (from 2.3.0.35.6), the hostname seems to be global for all VMs and the host machine. This means that setting/changing the hostname in any VM will affect all other VMs as well as the host machine. This makes the whole setup mostly unusable.

Going back to the older kernel fixes the problem again, so it's definitely kernel-related.

Reproducible: Always

Steps to Reproduce:
1. Start a VM with vserver-sources-2.3.0.36.14
2. Inside the VM, run 'hostname abcd.example.net'
3. Exit the VM, check 'hostname' on the host machine

Actual Results:  
The host machine will now display 'abcd.example.net'.

Expected Results:  
Changing the hostname in any VM shouldn't affect others, much less the host machine.
Comment 1 Benedikt Böhm (RETIRED) gentoo-dev 2009-10-03 15:36:28 UTC
you need util-vserver-0.30.216_pre* for proper namespace support in newer kernels