OpenVZ Forum


Home » General » Support » rpm -q kernel (What's the OpenVZ CentOS equivalent)
rpm -q kernel [message #51373] Tue, 29 April 2014 20:10 Go to next message
amayem is currently offline  amayem
Messages: 6
Registered: April 2014
Junior Member

I am trying the methods mentioned here: http: //www.linfo.org/find_kernel_version.html.

Im wondering what the OpenVZ CentOS equivalent to "kernel" here would be:

[ahmed@amayem ~]$ rpm -q kernel
package kernel is not installed

Thanks
Re: rpm -q kernel [message #51374 is a reply to message #51373] Tue, 29 April 2014 20:32 Go to previous messageGo to next message
amayem is currently offline  amayem
Messages: 6
Registered: April 2014
Junior Member

Or is it because if I could query the kernel using rpm then I could also potentially change the kernel using rpm, which is not allowed for a container?
Re: rpm -q kernel [message #51375 is a reply to message #51374] Wed, 30 April 2014 12:11 Go to previous messageGo to next message
Ales is currently offline  Ales
Messages: 330
Registered: May 2009
Senior Member
amayem wrote on Tue, 29 April 2014 22:32
Or is it because if I could query the kernel using rpm then I could also potentially change the kernel using rpm, which is not allowed for a container?

It's not clear from your posts if you're working from inside a container (CT) or from a hardware node (HN)? Do you have access to HN?

In any case, there is no kernel package installed within the CT as it doesn't need one. Even if you do install it, it won't have any effect on the working kernel.

To find out your current kernel version, execute 'uname -a'. This works under both HN and CT.
Re: rpm -q kernel [message #51376 is a reply to message #51373] Wed, 30 April 2014 14:16 Go to previous message
amayem is currently offline  amayem
Messages: 6
Registered: April 2014
Junior Member

Yes I'm working from inside a container and don't have access to the hardware node.
Previous Topic: apt-get dist-upgrade not working for 042stab085.20-amd64
Next Topic: 2.6.32-042stab088.4 Issues
Goto Forum:
  


Current Time: Fri Mar 29 01:50:31 GMT 2024

Total time taken to generate the page: 0.01746 seconds