OpenVZ Forum


Home » General » Support » display "old" kernel version (physical to virtual)
display "old" kernel version [message #38019] Mon, 09 November 2009 11:55 Go to next message
shatter is currently offline  shatter
Messages: 18
Registered: September 2009
Location: Germany
Junior Member
Hi *,

I'm the lucky guy to migrate serveral company servers to virtual machines. I decided to use OpenVZ and Proxmox (Debian with 2.6.24-7-pve kernel) as a base machine.

One of the servers to be virtualized is the bookeeping system, an old Suse Linux 6.3.

I succeded is so far as I can boot the virtual server and log onto it with putty.

The installed bookkeeping software posts the next problem: it seems to retrieve the os version for it's check whether it is legally installed. I think it uses "uname -r" to retrieve the os version, at least it is bitching about an "unknown OS version 26247pve" - which is the kernel version of my VM host.

Now, is there a way to force the VM to answer with the old kernel version?

old machine:
Welcome msg Welcome to SuSE Linux 6.3 (i386) - Kernel 2.2.13 (pts/1).
hostname dh6
uname -a Linux dh6 2.2.13 #1 Mon Nov 8 15:51:29 CET 1999 i686 unknown
uname -r 2.2.13


new machine:
hostname dhsrv08
uname -a Linux dhsrv08 2.6.24-7-pve #1 SMP PREEMPT Tue Jun 2 08:00:29 CEST 2009 x86_64 unknown
uname -r 2.6.24-7-pve


Kind regards,

Joachim
Re: display "old" kernel version [message #38036 is a reply to message #38019] Tue, 10 November 2009 18:02 Go to previous messageGo to next message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

Hi,

two proposals:

1) you can set the /proc/sys/net/virt_osrelease to another "uname -r" like:

# echo "2.2.13" > /proc/sys/net/virt_osrelease
# vzctl restart <CTID>

!!! to remember after restarting, plz reset the virt_osrelease to
!!! default, some containers wont start anymore if the
!!! virt_osrelease is set below 2.6.x

# uname -r > /proc/sys/net/virt_osrelease

2) create simple uname wedge script

Hope this helps.

Bye,
Thorsten
Re: display "old" kernel version [message #38050 is a reply to message #38036] Thu, 12 November 2009 06:49 Go to previous message
shatter is currently offline  shatter
Messages: 18
Registered: September 2009
Location: Germany
Junior Member
Smart ideas ... thanx a million!

Joachim
Previous Topic: Traffic shaping not working
Next Topic: Using OpenSuse 10.x Server as VZ Host
Goto Forum:
  


Current Time: Thu Jul 18 23:36:31 GMT 2024

Total time taken to generate the page: 0.02533 seconds