|
|
|
|
|
|
|
Re: Kernel Version Error? [message #31398 is a reply to message #31351] |
Thu, 26 June 2008 20:02 ![Go to previous message Go to previous message](/theme/ovz3/images/up.png) ![Go to next message Go to next message](/theme/ovz3/images/down.png) |
![](https://forum.openvz.org/images/custom_avatars/125.jpg) |
dowdle
Messages: 261 Registered: December 2005 Location: Bozeman, Montana
|
Senior Member |
|
|
Ok, I think I can solve this.
yum isn't doing a uname -a to see what the kernel version is, it is checking the rpm database... and finding no kernel installed. Same goes for a missing hal... or other packages. What you will have to do is install the missing packages... but doing so takes up unneeded diskspace, and in the case of udev can sometimes cause container boot problems.
I have built a number of Fedora OS Templates with complete GUI desktops (KDE, GNOME, XFCE, etc) and have had to do a number of work arounds to bypass the same problems you are having.
The elegant way to solve the problem would be to create and use dummy packages for the problematic packages BUT sometimes I'm lazy and in a hurry so I haven't done it the elegant way yet.
What you do is you download the kernel, udev and hal rpm packages (and also possibly module-init-tools) and install them with rpm using the --justdb flag. You might also have to use --force or --nodeps if they gripe about deps. Once those are installed you might want to add an exclude for them in the /etc/yum.conf so future system updates won't try to upgrade to newer versions of those packages.
Once you have have tricked rpm into thinking it has those packages installed, you are pretty much free to install whatever you want without breaking anything.
I kinda cover this topic in the following article on my website:
http://www.montanalinux.org/fedora-9-preview-into-openvz-os- template.html
I have since updated to release version of Fedora 9. I haven't contributed my OS Templates "withGUI" because they are quite big... but if anyone wants them I can give you a URL.
I uploaded to the contrib pre-created OS Templates section the following OS Templates 2 days ago for anyone interested. They all include yum too!
http://download.openvz.org/template/precreated/contrib/cento s-4-i386-default-20080624.tar.gz
http://download.openvz.org/template/precreated/contrib/cento s-4-x86_64-default-20080624.tar.gz
http://download.openvz.org/template/precreated/contrib/cento s-5-i386-default-20080624.tar.gz
http://download.openvz.org/template/precreated/contrib/cento s-5-x86_64-default-20080624.tar.gz
http://download.openvz.org/template/precreated/contrib/fedor a-8-i386-default-20080624.tar.gz
http://download.openvz.org/template/precreated/contrib/fedor a-9-i386-default-20080624.tar.gz
Those are all current as of the date shown (20080624) and CentOS 4 is 4.6, CentOS 5 is 5.2. I haven't made any x86_64 Fedora OS Templates but if someone wants them I can.
--
TYL, Scott Dowdle
Belgrade, Montana, USA
|
|
|
|
|
|
|
|
|
|
|
Re: Kernel Version Error? [message #34329 is a reply to message #34327] |
Wed, 24 December 2008 00:40 ![Go to previous message Go to previous message](/theme/ovz3/images/up.png) ![Go to next message Go to next message](/theme/ovz3/images/down.png) |
![](https://forum.openvz.org/images/custom_avatars/125.jpg) |
dowdle
Messages: 261 Registered: December 2005 Location: Bozeman, Montana
|
Senior Member |
|
|
Ok, got it done. I probably installed a lot more than you wanted (GNOME, KDE, all other desktops too, games, etc) but I did create a test user and start up GNOME just fine... and was able to connect and run applications just fine. I cleaned it up when done... removed the user, etc.
Here's the fake install package list I came up with:
rpm -ivh --justdb --nodeps --force http://img.cs.montana.edu/linux/fedora/updates/9/x86_64.newk ey/hal-libs-0.5.11-2.fc9.x86_64.rpm http://img.cs.montana.edu/linux/fedora/updates/9/x86_64.newk ey/hal-0.5.11-2.fc9.x86_64.rpm http://img.cs.montana.edu/linux/fedora/updates/9/x86_64.newk ey/kernel-2.6.27.7-53.fc9.x86_64.rpm http://img.cs.montana.edu/linux/fedora/updates/9/x86_64.newk ey/udev-124-2.fc9.x86_64.rpm http://img.cs.montana.edu/linux/fedora/releases/9/Everything /x86_64/os/Packages/module-init-tools-3.4-13.fc9.x86_64.rpm http://img.cs.montana.edu/linux/fedora/updates/9/x86_64.newk ey/fuse-2.7.4-1.fc9.x86_64.rpm
Here's a link... again it'll take forever to download because the system rate limits outside of the lan:
http://img.cs.montana.edu/linux/openvz/fedora-9-x86_64-withG UI.tar.gz
It is 1437MB so make sure the config you use to create the container with has a big enough diskspace to accommodate it. Darn it I forgot to check how much disk was used before I destroyed it. I'd give it 10G just to have plenty of room.
--
TYL, Scott Dowdle
Belgrade, Montana, USA
|
|
|
|
|
Re: Kernel Version Error? [message #34362 is a reply to message #34330] |
Wed, 24 December 2008 19:30 ![Go to previous message Go to previous message](/theme/ovz3/images/up.png) |
ovznewbie
Messages: 4 Registered: December 2008
|
Junior Member |
|
|
Hello again,
First of all a very Merry Christmas to you and your dear ones.
I did download the template and thank you again.
I tried to build it on an HyperVM platform and it built the server but when it tried to start it received the following error:
Alert: Could Not Start Vps, Reason: vzquota : (warning) quota usage is invalid for id 180, recalculating disk usage...: vzquota : (error) quota check : stat /vz/private/180.tmp: No such file or directory: vzquota on failed [1]:
I do not know if this is realted to the template or not.
As you suggested i allocated 15GB disk space and 512 MB guaranteed RAM to the template.
I then tried to create it with unlimited diskspace (160GB SATA maximum) and unlimited (4GB RAM maximum) on a Pentium D 3.0 GHz platform running HyperVM and it worked fine.
Kindest regards and thanks for all,
|
|
|