Re: [vbox-users] VBox doesn;t work with 'kvm' loaded

2009-02-04 Thread Frank Mehnert
Amit,

On Wednesday 04 February 2009, Amit k. Saha wrote:
 I have got the Linux 'kvm' module loaded. When I start VBox I get this
 message:

 VirtualBox can't operate in VMX root mode. Please disable the KVM
 kernel extension, recompile your kernel and reboot
 (VERR_VMX_IN_VMX_ROOT_MODE).

 [...]

 Is it because of the fact that when vboxdrv was compiled, the 'kvm'
 was not loaded?

No. The problem is that the kvm modules change the operating mode of
the host CPU (the so-called root mode), even if the modules are only
loaded but not really used. VirtualBox cannot work in that mode. To
use the root mode, this mode has to be initialized by VirtualBox itself,
not by any other instance.

Kind regards,

Frank
-- 
Dr.-Ing. Frank MehnertSun Microsystemshttp://www.sun.com/


signature.asc
Description: This is a digitally signed message part.
___
vbox-users mailing list
vbox-users@virtualbox.org
http://vbox.innotek.de/mailman/listinfo/vbox-users


Re: [vbox-users] VBox doesn;t work with 'kvm' loaded

2009-02-04 Thread Amit k. Saha
On Wed, Feb 4, 2009 at 3:23 PM, Frank Mehnert frank.mehn...@sun.com wrote:
 Amit,

 On Wednesday 04 February 2009, Amit k. Saha wrote:
 I have got the Linux 'kvm' module loaded. When I start VBox I get this
 message:

 VirtualBox can't operate in VMX root mode. Please disable the KVM
 kernel extension, recompile your kernel and reboot
 (VERR_VMX_IN_VMX_ROOT_MODE).

 [...]

 Is it because of the fact that when vboxdrv was compiled, the 'kvm'
 was not loaded?

 No. The problem is that the kvm modules change the operating mode of
 the host CPU (the so-called root mode), even if the modules are only
 loaded but not really used. VirtualBox cannot work in that mode. To
 use the root mode, this mode has to be initialized by VirtualBox itself,
 not by any other instance.

Hmm..How to do that?

Best regards,
-Amit


 Kind regards,

 Frank
 --
 Dr.-Ing. Frank MehnertSun Microsystemshttp://www.sun.com/

 ___
 vbox-users mailing list
 vbox-users@virtualbox.org
 http://vbox.innotek.de/mailman/listinfo/vbox-users





-- 
Amit Kumar Saha
http://amitksaha.blogspot.com
http://amitsaha.in.googlepages.com/
*Bangalore Open Java Users Group*:http:www.bojug.in

___
vbox-users mailing list
vbox-users@virtualbox.org
http://vbox.innotek.de/mailman/listinfo/vbox-users


Re: [vbox-users] VBox doesn;t work with 'kvm' loaded

2009-02-04 Thread Alexander Eichner
Hi Amit,

Am Mittwoch, den 04.02.2009, 19:36 +0530 schrieb Amit k. Saha:
 On Wed, Feb 4, 2009 at 3:23 PM, Frank Mehnert frank.mehn...@sun.com wrote:
  Amit,
 
  On Wednesday 04 February 2009, Amit k. Saha wrote:
  I have got the Linux 'kvm' module loaded. When I start VBox I get this
  message:
 
  VirtualBox can't operate in VMX root mode. Please disable the KVM
  kernel extension, recompile your kernel and reboot
  (VERR_VMX_IN_VMX_ROOT_MODE).
 
  [...]
 
  Is it because of the fact that when vboxdrv was compiled, the 'kvm'
  was not loaded?
 
  No. The problem is that the kvm modules change the operating mode of
  the host CPU (the so-called root mode), even if the modules are only
  loaded but not really used. VirtualBox cannot work in that mode. To
  use the root mode, this mode has to be initialized by VirtualBox itself,
  not by any other instance.
 
 Hmm..How to do that?
 
 Best regards,
 -Amit
 

This depends on the distribution you have but on most it is enough to do
rmmod kvm-intel as root.

Kind regards,
Alexander Eichner


___
vbox-users mailing list
vbox-users@virtualbox.org
http://vbox.innotek.de/mailman/listinfo/vbox-users


Re: [vbox-users] VBox doesn;t work with 'kvm' loaded

2009-02-04 Thread Amit k. Saha
On Wed, Feb 4, 2009 at 9:46 PM, Alexander Eichner
alexander.eich...@sun.com wrote:
 Hi Amit,

 Am Mittwoch, den 04.02.2009, 19:36 +0530 schrieb Amit k. Saha:
 On Wed, Feb 4, 2009 at 3:23 PM, Frank Mehnert frank.mehn...@sun.com wrote:
  Amit,
 
  On Wednesday 04 February 2009, Amit k. Saha wrote:
  I have got the Linux 'kvm' module loaded. When I start VBox I get this
  message:
 
  VirtualBox can't operate in VMX root mode. Please disable the KVM
  kernel extension, recompile your kernel and reboot
  (VERR_VMX_IN_VMX_ROOT_MODE).
 
  [...]
 
  Is it because of the fact that when vboxdrv was compiled, the 'kvm'
  was not loaded?
 
  No. The problem is that the kvm modules change the operating mode of
  the host CPU (the so-called root mode), even if the modules are only
  loaded but not really used. VirtualBox cannot work in that mode. To
  use the root mode, this mode has to be initialized by VirtualBox itself,
  not by any other instance.

 Hmm..How to do that?

 Best regards,
 -Amit


 This depends on the distribution you have but on most it is enough to do
 rmmod kvm-intel as root.

I have done that :-) and got it to work ..

I was wondering if there was a way to tweak VirtualBox to use the root
mode, as Frank earlier mentioned..

Thanks!

-Amit


 Kind regards,
 Alexander Eichner


 ___
 vbox-users mailing list
 vbox-users@virtualbox.org
 http://vbox.innotek.de/mailman/listinfo/vbox-users




-- 
Amit Kumar Saha
http://amitksaha.blogspot.com
http://amitsaha.in.googlepages.com/
*Bangalore Open Java Users Group*:http:www.bojug.in

___
vbox-users mailing list
vbox-users@virtualbox.org
http://vbox.innotek.de/mailman/listinfo/vbox-users


Re: [vbox-users] VBox doesn;t work with 'kvm' loaded

2009-02-04 Thread David Brown
Alexander Eichner wrote:
 Hi Amit,
 
 Am Mittwoch, den 04.02.2009, 19:36 +0530 schrieb Amit k. Saha:
 On Wed, Feb 4, 2009 at 3:23 PM, Frank Mehnert frank.mehn...@sun.com wrote:
 Amit,

 On Wednesday 04 February 2009, Amit k. Saha wrote:
 I have got the Linux 'kvm' module loaded. When I start VBox I get this
 message:

 VirtualBox can't operate in VMX root mode. Please disable the KVM
 kernel extension, recompile your kernel and reboot
 (VERR_VMX_IN_VMX_ROOT_MODE).

 [...]

 Is it because of the fact that when vboxdrv was compiled, the 'kvm'
 was not loaded?
 No. The problem is that the kvm modules change the operating mode of
 the host CPU (the so-called root mode), even if the modules are only
 loaded but not really used. VirtualBox cannot work in that mode. To
 use the root mode, this mode has to be initialized by VirtualBox itself,
 not by any other instance.
 Hmm..How to do that?

 Best regards,
 -Amit

 
 This depends on the distribution you have but on most it is enough to do
 rmmod kvm-intel as root.
 

Is it possible to insmod kvm-intel after starting VirtualBox, so that 
you have both kvm and VirtualBox (without using cpu virtualisation 
extensions) virtual machines on the same host?

Alternatively, is it possible to run VirtualBox within a kvm virtual 
machine?



___
vbox-users mailing list
vbox-users@virtualbox.org
http://vbox.innotek.de/mailman/listinfo/vbox-users