OpenVZ Forum


Home » General » Support » VE Kernel Version
icon5.gif  VE Kernel Version [message #15139] Thu, 19 July 2007 21:21 Go to next message
frenchyp is currently offline  frenchyp
Messages: 7
Registered: October 2006
Junior Member
Hello all.

I have a couple questions concerning the kernel visible from inside the VEs:

On my hardware node the installed openvz kernel is 2.6.18-ovz028stab023.1.
Inside the VEs the kernel reported by uname -a is 2.6.9.

1) Why isn't that kernel the same as the one on the HN (2.6.18-ovz028stab023.1) ?

2) Is there any way I can 'forge' the kernel version reported by uname inside the VEs (to return 2.6.20 for example) ?

Thank you.
Re: VE Kernel Version [message #15144 is a reply to message #15139] Fri, 20 July 2007 06:49 Go to previous messageGo to next message
khorenko is currently offline  khorenko
Messages: 533
Registered: January 2006
Location: Moscow, Russia
Senior Member
Hello.

0) you are using quite an old kernel, i advise to upgrade it.

1) it's strange if you didn't do anything the kernel version inside a VE should match kernel version (well, may be except for the architecture).

2) yes, there is a possibility to change a kernel version reported inside a VE: /proc/sys/kernel/virt_osrelease handles this.

Cat it and you'll see the kernel version which will be reported inside VEs (yes, it's not per-VE, it's global).

[HN]# cat /proc/version
Linux version 2.6.18-8.1.4.el5.028stab035.1 (root@rhel5-32-build) (gcc version 4.1.1 20061011 (Red Hat 4.1.1-30)) #1 SMP Sat Jun 9 01:43:20 MSD 2007
[HN]# vzctl exec 101 uname -a
Linux dhcp0-56.sw.ru 2.6.18-8.1.4.el5.028stab035.1 #1 SMP Sat Jun 9 01:43:20 MSD 2007 i686 i686 i386 GNU/Linux
[HN]# cat /proc/sys/kernel/virt_osrelease
2.6.18-8.1.4.el5.028stab035.1
[HN]# echo "2.6.9-finist" > /proc/sys/kernel/virt_osrelease
[HN]# cat /proc/sys/kernel/virt_osrelease
2.6.9-finist
[HN]# vzctl start 101
...
[HN]# vzctl exec 101 uname -a
Linux dhcp0-56.sw.ru 2.6.9-finist #1 SMP Sat Jun 9 01:43:20 MSD 2007 i686 i686 i386 GNU/Linux


If your problem is solved - please, report it!
It's even more important than reporting the problem itself...

[Updated on: Fri, 20 July 2007 06:51]

Report message to a moderator

Re: VE Kernel Version [message #15186 is a reply to message #15144] Fri, 20 July 2007 17:39 Go to previous message
frenchyp is currently offline  frenchyp
Messages: 7
Registered: October 2006
Junior Member
You are right. The kernel version I was seeing was controlled by the file you mentioned.
Thank you Smile !
Previous Topic: *SOLVED* SMP kernel vs PAE
Next Topic: Stopping puppet on hn stops it in all VE
Goto Forum:
  


Current Time: Wed Apr 24 23:03:27 GMT 2024

Total time taken to generate the page: 0.01371 seconds