November 15th 2009
I just upgraded the vserver kernel in my test environment to 2.6.31-vs22.214.171.124.23. After rebooting the machine I recognized that the hostname of the host machine was set to the hostname of the last vserver started. Checking all vservers I found out that all had the same hostname.
A quick google search revealed, that I am not the only one having this problem: linux.derkeiler.com. But the search revealed no solution.
Afterwards I remembered that I masked util-vserver-0.30.216_pre2841 as I described in util-vserver-0.30.216_pre2841 vserver startup fails. So I removed the mask and installed the newer version of util-vserver. Afterwards everything was normal and the vservers, as well as the host machine had the correct hostnames.
It is important to use the version of util-vserver matching the vserver kernel version running. The vserver kernel 2.6.31-vs126.96.36.199.23 seems to work with util-vserver-0.30.216_pre2841 and the vserver-kernel 2.6.28-vserver-188.8.131.52.4 works with util-vserver-0.30.215-r3.
July 17th 2009
A while ago during regular upgrades my gentoo box serving as test environment for vservers updated to util-vserver-0.30.216_pre2841. Some weeks later, when I restarted the box I recognized that it could not start any vserver:
# vserver ubuntu start
vcontext: pivot_root(): Invalid argument
An error occured while executing the vserver startup sequence; when
there are no other messages, it is very likely that the init-script
(/etc/init.d/rc 3) failed.
Common causes are:
* /etc/rc.d/rc on Fedora Core 1 and RH9 fails always; the ‘apt-rpm’ build
method knows how to deal with this, but on existing installations,
appending ‘true’ to this file will help.
The box is running vserver-sources kernel 2.6.28-vs184.108.40.206.4-gentoo #2 SMP.
Since I did not find any useful information regarding his error in the web I tried downgrading to util-vserver-0.30.215-r3. For gentoo users this is accomplished by including
in /etc/portage/package.mask. Afterwards everything reverted to normality.
If you also experience the “pivot_root(): Invalid argument” error, try downgrading util-vserver and hope for the best 😉