Author Topic: How can I have same Host kernel in the guest Linux VM?, Thanks.  (Read 773 times)

Offline joejac

  • Full Member
  • ***
  • Posts: 169
Hello,

I have VirtualBox 4.1.18 in my host.
1.- I Installed Guest Additions from VirtualBox Menu Devices-Install Guest Additions,
2.- then in a terminal of the guest I run as root from the media disk: sh VBoxLinuxAdditions.run, it removed the old version and installed: VBOXADDITIONS_4.1.18_78361
3.- I rebooted the guest VM
4.- In the guest VM I run $ uname -r  and I get
     2.6.38.8-pclos3.bfs
5.- But in the Host I get: $ uname -r
     3.2.18-pclos1.pae.bfs
6.- Should I install kernel 3.2.18 via Synaptic in the guest Linux VM, or am I doing something wrong?, please let me know.

Thanks and regards
joejac

Offline menotu

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 15296
  • ┌∩┐(◕_◕)┌∩┐
Re: How can I have same Host kernel in the guest Linux VM?, Thanks.
« Reply #1 on: August 16, 2012, 12:30:53 PM »
How much memory are you assigning the the Guest VM ?
PCLinuxOS 32bit KDE 4.10.1; kernel-3.4.11-pclos1.bfs & 64bit 3.2.18bfs; NVidia GeForce 8400GS 1GB 310.19 driver

Sony Vaio SVE1513A4ESI Laptop, Intel Core i5, 2.6GHz, 6GB RAM, 750GB, 15.6" Intel HD Graphics 4000

Online Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10644
  • MLUs Forever!
Re: How can I have same Host kernel in the guest Linux VM?, Thanks.
« Reply #2 on: August 16, 2012, 01:01:59 PM »
Hello,

I have VirtualBox 4.1.18 in my host.
1.- I Installed Guest Additions from VirtualBox Menu Devices-Install Guest Additions,
2.- then in a terminal of the guest I run as root from the media disk: sh VBoxLinuxAdditions.run, it removed the old version and installed: VBOXADDITIONS_4.1.18_78361
3.- I rebooted the guest VM
4.- In the guest VM I run $ uname -r  and I get
     2.6.38.8-pclos3.bfs
5.- But in the Host I get: $ uname -r
     3.2.18-pclos1.pae.bfs

6.- Should I install kernel 3.2.18 via Synaptic in the guest Linux VM, or am I doing something wrong?, please let me know.

Thanks and regards
joejac


The guest OS is using the kernel that is in the ISO you used to install it - 2.6.38.8-pclos3.bfs

The host is using whatever kernel is presently in use in the host - 3.2.18-pclos1.pae.bfs

I don't see any confusion .....  so don't understand your problem.

MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline T6

  • Super Villain
  • ******
  • Posts: 19077
  • xmas is comming!
Re: How can I have same Host kernel in the guest Linux VM?, Thanks.
« Reply #3 on: August 16, 2012, 01:33:49 PM »
if your concern is if you need to have the same kernel on host and guest, no, you don't need that

you can have pae on host and 2.6 or 3.2 in guest

if you see that vm is not working well with a specific kernel, run synaptic on that vm and change that kernel but your real pc doesn't need to change kernel because vm has a different kernel, at least i haven't found specific reports saying that

there could be specific guest additions that might not work with a kernel but this refers to if the vm is working well or not
"If you wish to make an apple pie from scratch, you must first invent the universe."

Carl Sagan

Offline kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3989
Re: How can I have same Host kernel in the guest Linux VM?, Thanks.
« Reply #4 on: August 16, 2012, 01:40:25 PM »
The host and guest are different computers so far as their OSes are concerned. You can use any Linux, any BSD, Windows, Solaris or anything else for x86 (usually including x86_64) in the guest.

However, if you want to use the same kernel in the guest as the host for some reason, just install it from Synaptic. Although the .pae is unlikely to be needed in a guest VM, it probably won't do any harm either.
-----------
KJP
-----------------------------------------------------------
PClos64 RC1 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG (with custom kernel) and Asus eeePC 2G surf

Offline joejac

  • Full Member
  • ***
  • Posts: 169
Re: How can I have same Host kernel in the guest Linux VM?, Thanks.
« Reply #5 on: August 16, 2012, 02:02:36 PM »
Thanks to all for your answers. I understand.

The thing is that I am trying to figure out what is the source of the freeze problem that I have since I purchased this new equipment in May and now it is happening about 2 times a day, with more frequency. This problem do not happen when I boot from the Windows drive, the only difference is the drive and the OS. I did many changes: to use only one monitor, upgrade to proprietary NVidia drivers, and is even worst. Please see here.

Any help is very much appreciated.
Regards
joejac

Offline T6

  • Super Villain
  • ******
  • Posts: 19077
  • xmas is comming!
Re: How can I have same Host kernel in the guest Linux VM?, Thanks.
« Reply #6 on: August 16, 2012, 02:36:48 PM »
the virtual machine does not have direct interaction with the real pc, it depends on virtualbox to join everything

what happens inside the virtual machine doesn't help you diagnose hardware problems, the virtual machine has a virtual video card, a virtual network adapter, a virtual hard disk, a virtual sound card, a virtual amount of ram and a virtual amount of cpu cores but is what virtualbox lets the virtual machine see
"If you wish to make an apple pie from scratch, you must first invent the universe."

Carl Sagan