I managed with about 30 easy steps to get Ubuntu 12.04 running on VPS instances which have old kernels and ‘do not’ support anything higher than 10.04.
Virtualmin runs very nicely on it, with many thanks again to Eric.
My problem now, however is when a reboot occurs, the VPS container rewrites the hostname to another setting. To get around this, I have used a script which works fine under 10.04 but which causes the issue of ‘missing LSB information’ under 12.04:
[ -f /etc/hostname ] && echo $HOSTNAME > /etc/hostname
[ -f /etc/HOSTNAME ] && echo $HOSTNAME > /etc/HOSTNAME
[ -f /etc/sysconfig/network ] && sed -i.hebackup s/HOSTNAME=".*"/HOSTNAME="$HOSTNAME"/
[ -f /etc/my.resolv.conf ] && cp /etc/my.resolv.conf /etc/resolv.conf
[ -f /etc/my.hosts ] && cp /etc/my.hosts /etc/hosts
after creating the script I run
‘chmod +x /etc/init.d/hostname_vps’
‘update-rc.d hostname_vps defaults 09’
Then I get: warning: /etc/init.d/hostname_vps missing LSB information
I must be overlooking something, but there seems to be a very strict reading in the newest Debian.