I can confirm that the 2.6.24-16 kernel compiled from the ubuntu kernel git, boots and works as expected.
http://kernel.ubuntu.com/git?p=ubuntu/ubuntu-hardy.git;a=summary
$ git-clone git://kernel.ubuntu.com/ubuntu/ubuntu-hardy.git openvz
$ cd openvz
$ AUTOBUILD=1 NOEXTRAS=1 /usr/bin/fakeroot debian/rules custom-binary-openvz
$ cd ..
$ sudo dpkg -i linux-image-2.6.24-17-openvz_2.6.24-17.31_i386.deb
Thanks for making this happen ;-)
Karoly
In order to run a guest, you need a template.
The openvz wiki has a Hardy TODO page with some usefull information, including a link to a already precreated template.
download a Hardy Heron template from above mentioned wiki page
ln -s /var/lib/vz /vz
move above downloaded gzip file in the /vz/template/cache directory
vzctl set 101 --hostname blackpearl.computerhok.nl --save
vzctl set 101 --ipadd 10.0.0.201 --save :
Adding IP address(es): 10.0.0.201
vps-net_add WARNING: Function proxy_arp for eth0 is set to 0. Enable with 'sysctl -w net.ipv4.conf.eth0.proxy_arp=1'. See /usr/share/doc/vzctl/README.Debian.
Saved parameters for VE 101
set DNS :
root@hood:~# vzctl set 101 --nameserver 195.18.114.5 --save
File resolv.conf was modified
Saved parameters for VE 101
After the initial start of the blackpearl (10.0.0.201), we clone it to 102 (backup), we will do this more often in between to have some nice checkpoints, so that in case of failures, we can quickly fallback by copying 102 back to 101.
apt-get update and apt-get upgrade
cloned VE 101 to VE 102 : rm -rf /vz/private/102/*;cp -pR /vz/private/101/* /vz/private/102
backed out to previous checkpoint : rm -rf /vz/private/101/*;cp -pR /vz/private/102/* /vz/private/101
I found out that this failing java 6 instal was due to the too strict set beancounters (privvmpages), so I increased several UBC's, see above). Now Java6 works fine
metskem@blackpearl:~$ mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 26
Server version: 5.0.51a-3ubuntu5 (Ubuntu)
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> create user '*********'@'localhost' identified by "*********";
Query OK, 0 rows affected (0.00 sec)
mysql> create user '*********'@'localhost' identified by "*********";
Query OK, 0 rows affected (0.00 sec)
mysql> grant select,insert,update,delete on krmdb.* to kruimeluser;
Query OK, 0 rows affected (0.00 sec)
root@hood:/tmp# dpkg -i webmin_1.410_all.deb
Selecting previously deselected package webmin.
(Reading database ... 34833 files and directories currently installed.)
Unpacking webmin (from webmin_1.410_all.deb) ...
dpkg: dependency problems prevent configuration of webmin:
webmin depends on libnet-ssleay-perl; however:
Package libnet-ssleay-perl is not installed.
webmin depends on libauthen-pam-perl; however:
Package libauthen-pam-perl is not installed.
webmin depends on libio-pty-perl; however:
Package libio-pty-perl is not installed.
webmin depends on libmd5-perl; however:
Package libmd5-perl is not installed.
dpkg: error processing webmin (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
webmin
root@hood:/tmp# apt-get install libmd5-perl libio-pty-perl libauthen-pam-perl libnet-ssleay-perl
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
libauthen-pam-perl libio-pty-perl libmd5-perl libnet-ssleay-perl
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 266kB of archives.
After this operation, 1339kB of additional disk space will be used.
Get:1 http://nl.archive.ubuntu.com hardy/main libnet-ssleay-perl 1.30-1 [186kB]
Get:2 http://nl.archive.ubuntu.com hardy/universe libauthen-pam-perl 0.16-1 [32.2kB]
Get:3 http://nl.archive.ubuntu.com hardy/universe libio-pty-perl 1:1.07-1 [42.3kB]
Get:4 http://nl.archive.ubuntu.com hardy/universe libmd5-perl 2.03-1 [5680B]
Fetched 266kB in 1s (217kB/s)
Selecting previously deselected package libnet-ssleay-perl.
(Reading database ... 49948 files and directories currently installed.)
Unpacking libnet-ssleay-perl (from .../libnet-ssleay-perl_1.30-1_i386.deb) ...
Selecting previously deselected package libauthen-pam-perl.
Unpacking libauthen-pam-perl (from .../libauthen-pam-perl_0.16-1_i386.deb) ...
Selecting previously deselected package libio-pty-perl.
Unpacking libio-pty-perl (from .../libio-pty-perl_1%3a1.07-1_i386.deb) ...
Selecting previously deselected package libmd5-perl.
Unpacking libmd5-perl (from .../libmd5-perl_2.03-1_all.deb) ...
Setting up libnet-ssleay-perl (1.30-1) ...
Setting up libauthen-pam-perl (0.16-1) ...
Setting up libio-pty-perl (1:1.07-1) ...
Setting up libmd5-perl (2.03-1) ...
Setting up webmin (1.410) ...
Webmin install complete. You can now login to https://hood:10000/
as root with your root password, or as any user who can use sudo
to run commands as root.
the problem should be solved by first installing the gd libraries, then gallery, then you can activate the required GD plugin (required for creating thumbnails and so on)
Now that the basic server setup is complete, and we switched to the new server, it is time to clone it for backup purposes.
The basic idea is to copy the whole partitions.
The following steps have to be done :
boot the new pc from a (Ubuntu Hardy) liveCD
partition your harddisk using gparted (make it 5 GB for the HN, the rest voor VE's)
mount the 5 GB partition on /tmp/ff
install sshd: apt-get install openssh-server
now run the following 'copy' commands to clone the HN:
cd /;tar -c bin boot etc home initrd* lib media mnt opt root sbin srv usr vmlinuz* | ssh -c blowfish 10.0.0.201 tar -x -C /tmp/ff
cd /var;tar -c cache local lock log mail opt run spool tmp webmin www | ssh -c blowfish 10.0.0.201 tar -x -C /tmp/ff/var
cd /var/lib;tar -c apparmor defoma initscripts mlocate sgml-base urandom x11 apt dhcp3 libuuid nagios2 snmp vim xml-core aptitude dpkg locales ntop ucf belocs exim4 logrotate ntp ufw vzctl dbus initramfs-tools misc python-support update-manager vzquota | ssh -c blowfish 10.0.0.201 tar -x -C /tmp/ff/var/lib
find out the UUID with sudo vol_id -u /dev/sda1
edit the menu.lst in /tmp/ff to reflect the right partition number,partition UUID and kernel name
install GRUB in the MBR : grub-install --root-directory=/tmp/ff /dev/sda
boot it..........:
This kernel requires the following features not present on the CPU:
0:6
Please use a kernel that is compatible with your system.
This is explained in Bug 222253.
This Intel Centrino does not have PAE, while the older Pentium 4 laptop does:
root@blackpearl:/var/jspwiki/pages# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 2
model name : Intel(R) Pentium(R) 4 CPU 2.60GHz
stepping : 7
cpu MHz : 2599.358
cache size : 512 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe up pebs bts sync_rdtsc cid
bogomips : 5209.52
clflush size : 64
Recompile to get PAE out :
install gcc-4.1
run make menuconfig
turn off PAE (and I found out that you have to explicitly modify the .config and set the option to CONFIG_X86_PAE=n, instead of leaving it a comment)
run debian/rules updateconfigs
run AUTOBUILD=1 NOEXTRAS=1 fakeroot debian/rules custom-binary-openvz
make sure you have a backup of your kernel, initramdisk and grub menu.lst
run cd ..;dpkg -i linux-image-2.6.24-18-openvz_2.6.24-18.32_i386.deb
check /boot/config-2.6.24-18-openvz to see if it has PAE off
add acpi=off to all your boot parameters in menu.lst
reboot
after booting the non-pae laptop, it still complains with the same error, anyway, the laptop had a bad harddisk and has been switched by an TECRA 9100 512 MB Pentium IIII (with PAE :-) )
new try:
tar -c bin boot etc initrd* lib media mnt opt root sbin srv usr var vmlinuz* |ssh -c blowfish 10.0.0.152 tar -x -C /tmp/sda1
grub-install --root-directory=/tmp/sda1 /dev/sda
vol_id -u /dev/sda1 ==> inkleuren in /tmp/sda1/boot/grub/menu.lst
created /usr/share/gallery2/php.ini with contents : upload_max_filesize = 8M (I bought myself a new digcam).
set the proper timezone:
root@blackpearl:~# dpkg-reconfigure tzdata
Current default timezone: 'Europe/Amsterdam'
Local time is now: Fri Oct 31 21:49:38 CET 2008.
Universal Time is now: Fri Oct 31 20:49:38 UTC 2008.
The fan blows almost all of the time, making an irritating noise.
http://www.lesswatts.org has some nice tips.
I did the following to get CPU frequency scaling to work :
Although the scaling_available_governors does not mention ondemand I did echo this string to scaling_governor, doing cat /proc/cpuinfo|grep MHz shows that the frequency does switch between 1200 MHz and 1800 MHz when under load.
Inrichten server hood#
Table of Contents
I thought it was time to upgrade my current openvz system to a newer one, preferably an Ubuntu server.
Here is a summary of the steps:
Base install#
Kernel compile#
General instructions on howto compile an Ubuntu Linux kernel
:
If you want to change your kernel config, you should modify ./debian/binary-custom.d/openvz/config.i386
Then I got the following instructions from https://bugs.edge.launchpad.net/ubuntu/+source/linux/+bug/210672/comments/17
OpenVZ#
See the Installation Docs
Templates#
In order to run a guest, you need a template.
with some usefull information, including a link to a already precreated template.
The openvz wiki has a Hardy TODO page
- set DNS :
==> modified sysctl.conf : net.ipv4.conf.default.proxy_arp=1Setup blackpearl (VE guest)#
After the initial start of the blackpearl (10.0.0.201), we clone it to 102 (backup), we will do this more often in between to have some nice checkpoints, so that in case of failures, we can quickly fallback by copying 102 back to 101.
Cloning to other hardware#
Now that the basic server setup is complete, and we switched to the new server, it is time to clone it for backup purposes.
The basic idea is to copy the whole partitions. The following steps have to be done :
This is explained in Bug 222253
.
This Intel Centrino does not have PAE, while the older Pentium 4 laptop does:
Recompile to get PAE out :
Miscellaneous tweaks#
Power saving#
The fan blows almost all of the time, making an irritating noise.http://www.lesswatts.org
I did the following to get CPU frequency scaling to work :
Although the scaling_available_governors does not mention ondemand I did echo this string to scaling_governor, doing cat /proc/cpuinfo|grep MHz shows that the frequency does switch between 1200 MHz and 1800 MHz when under load.
Now the average temperature drops from 46 to 41 degrees.
TO DO#
SVN#
Ok, that was for svnserver, now for SVN over https with webDAV:
Done the same on blackpearl
SVN Resources#
Backup VPS procedure#
Regularly I take a full backup of all VPS's.