OpenVZ Forum


Home » General » Support » Kernel panic when booting with Ubuntu OpenVZ kernel (Installation failure of OpenVZ on the Ubuntu 14.04)
Kernel panic when booting with Ubuntu OpenVZ kernel [message #51734] Sat, 01 November 2014 00:40 Go to next message
opzfusr is currently offline  opzfusr
Messages: 1
Registered: November 2014
Junior Member
Hello,

I want to use OpenVZ on my Ubuntu 14.04 Trusty platform. I installed the RHEL6 2.6.32 kernel (vzkernel_2.6.32-042stab093.5_amd64 kernel) following the instructions given in
www.howtoforge.com/installing-and-using-openvz-on-ubuntu-13. 04-amd64

When the machine is booted with the vzkernel_2.6.32, I get the following error:
"Kernel panic - not sysncing: Fatal exception"

and the boot freezes. However, I can interrupt the booting and reboot with the original Ubuntu kernel and the machine boots fine.

Please see the attached screen shots (Sorry, I cannot make the URL clickable as this is my first post).
imgur.com/7Veclg7
imgur.com/5VjBZUj

Hardware: Dell PowerEdge T105 (quad core cpu, 8 GB RAM)
OS: Ubuntu 14:04 (Trusty) 64-bit
uname -r: 3.13.0-39-generic

I have installed the following components for the OpenVZ:
ploop-1.12.1-1.x86_64.rpm
vzctl-core-4.8-1.x86_64.rpm
ploop-lib-1.12.1-1.x86_64.rpm
vzkernel-2.6.32-042stab093.5.x86_64.rpm
vzctl-4.8-1.x86_64.rpm
vzquota-3.1-1.x86_64.rpm


I used the following steps for the installation:
$ sudo dpkg -i vz*.deb ploop*.deb

$ sudo vim /etc/default/grub
$ sudo update-grub

$ sudo update-rc.d vz defaults
$ sudo update-rc.d vzeventd defaults

$ sudo ln -s /usr/lib64/libvzctl-4.8.so /usr/lib
$ sudo ln -s /usr/lib64/libploop.so.1.12.1 /usr/lib

$ sudo vi /etc/init.d/vz

Added the following:
$ sudo vi /etc/sysctl.conf
[...]
net.ipv4.conf.all.rp_filter=1
net.ipv4.icmp_echo_ignore_broadcasts=1
net.ipv4.conf.default.forwarding=1
net.ipv4.conf.default.proxy_arp = 0
net.ipv4.ip_forward=1
kernel.sysrq = 1
net.ipv4.conf.default.send_redirects = 1
net.ipv4.conf.all.send_redirects = 0
net.ipv4.conf.eth0.proxy_arp=1
[...]

$ sudo sysctl -p

$ sudo apt-get install vzdump



Any help in fixing this is greatly appreciated.

Thanks
Re: Kernel panic when booting with Ubuntu OpenVZ kernel [message #51737 is a reply to message #51734] Tue, 04 November 2014 18:42 Go to previous messageGo to next message
mmcfarland is currently offline  mmcfarland
Messages: 9
Registered: November 2014
Location: Cincinnati
Junior Member
OpenVZ uses an ancient kernel we can find with the dinosaur fossiles known as 2.6 - ubuntu 14 is leapyears ahead of that kernel version. I would recommend you install openVZ on CentOS 6.3 or 6.4 at the latest. Any later distro of linux may cause a lot of compatability issues due to the ancient kernel openVZ uses.

regards,
Matt
Re: Kernel panic when booting with Ubuntu OpenVZ kernel [message #51741 is a reply to message #51737] Thu, 06 November 2014 00:22 Go to previous messageGo to next message
Ales is currently offline  Ales
Messages: 330
Registered: May 2009
Senior Member
mmcfarland wrote on Tue, 04 November 2014 19:42
... dinosaur fossiles ...

Matt, this is place where mostly professionals come to discuss day to day topics. Trolls are easily spotted and not much appreciated. In other words, you're wasting your time.
Re: Kernel panic when booting with Ubuntu OpenVZ kernel [message #51742 is a reply to message #51741] Thu, 06 November 2014 00:30 Go to previous messageGo to next message
mmcfarland is currently offline  mmcfarland
Messages: 9
Registered: November 2014
Location: Cincinnati
Junior Member
Well pardon me for trying to be humurous. The kernel is rather old and I've recently ran into kernel panic and it was after I tried openvz on a newer system.
Re: Kernel panic when booting with Ubuntu OpenVZ kernel [message #51746 is a reply to message #51734] Thu, 06 November 2014 07:06 Go to previous messageGo to next message
Ales is currently offline  Ales
Messages: 330
Registered: May 2009
Senior Member
Current OpenVZ kernel is based on a recent RHEL 6.5 kernel, 2.6.32-431.29.2.el6, it isn't old at all. If you have a specific issue, start your own thread about it instead of posting randomly all over the place. Or, even better, gather all relevant information and file a bug report.
Re: Kernel panic when booting with Ubuntu OpenVZ kernel [message #51748 is a reply to message #51746] Thu, 06 November 2014 13:11 Go to previous messageGo to next message
mmcfarland is currently offline  mmcfarland
Messages: 9
Registered: November 2014
Location: Cincinnati
Junior Member
Current Linux kernel is 3.19.
Re: Kernel panic when booting with Ubuntu OpenVZ kernel [message #51749 is a reply to message #51748] Fri, 07 November 2014 02:38 Go to previous message
mmcfarland is currently offline  mmcfarland
Messages: 9
Registered: November 2014
Location: Cincinnati
Junior Member
I apologize for coming off brash. However, I still believe without a shadow of a doubt that openvz does not (and should not) support linux operating systems that run on a later kernel version.

Looking at Ubuntu releases -en.wikipedia.org/wiki/List_of_Ubuntu_releases - it appears the Ubuntu 14 runs off of kernel 3.5 - that does mean that apt-get package manager is assuming you are running kernel 3.5, in fact any processes or services running under ubuntu 14 are assuming kernel 3.5 - which has a different architecture than 2.6.

openvz is assuming kernel 2.6 - I don't think you have to be a senior consulting software engineer or lead technical system administrator to understand what I am saying. I never said openvz was terrible, I just said the kernel that it uses as its framework is old. To say that it is not old because RHEL 6.6 uses 2.6 is not relevant to the fact that many linux distros are running on a new kernel. Also you must take into account that as time goes on techniology 'upgrades' faster and faster.

If you look at linux 3.9 it already supports virtualization - so we could theoretically create a much more robust openvz that did not need to hack the kernel. this would be ideal I think.

Anyway, I tried to say it short, but hoping that my explanation above should more than prove that ubuntu 14 and openvz don't mix. I would stick to RHEL 6.6 or perhaps centos 6.4

Thanks

[Updated on: Fri, 07 November 2014 02:47]

Report message to a moderator

Previous Topic: Leaking private IPs of container?
Next Topic: Centos 6.6 IPV6 not working
Goto Forum:
  


Current Time: Thu Oct 03 21:43:06 GMT 2024

Total time taken to generate the page: 0.08510 seconds