OVH Community, your new community space.

Virtualbox error KVM


Berilac
06-04-2010, 23:08
Ah cheers guys, were up and running, thank you derchris and Myatu.

Myatu
06-04-2010, 00:02
Look in the How-To's of this forum for a guideling to compile a kernel at OVH. When you obtain the config file from ftp://ftp.ovh.net/made-in-ovh/bzImage, take care to select the proper bit version (32 or 64 bit). So for example, if you have a 64-bit system and need IPv6, use 2.6-config-xxxx-std-ipv6-64. You can either use the "make menuconfig" or manually edit the config file, specifically you need to disable the following:

Code:
CONFIG_HAVE_KVM=y
CONFIG_HAVE_KVM_IRQCHIP=y
CONFIG_VIRTUALIZATION=y
CONFIG_KVM=y
CONFIG_KVM_INTEL=y
CONFIG_KVM_AMD=y
(just comment each of these lines out with a # sign).

PS: You can also give this a try - http://forum.ovh.co.uk/showpost.php?...6&postcount=10 - I haven't touched this script in a long time, but probably still works (use the -m option, so "./bok.sh -m"). The only thing it does not do is "initrd".

Berilac
05-04-2010, 23:03
Ah thanks again derchris

Have carried out a complete re-install of server with Ubuntu 9.10 and re-installed virtualbox 3.1. This time installed grub first, all dependacies seemed to install, no failed to compile errors and DKMS is there.

Still having issues with:

Virtualbox cant operate VMX in root mode. Please disable the KVM kernel extension, recompile your kernel and reboot
(VERR_VMX_IN_VMX_ROOT_MODE).

when starting a virtual machine?

lsmod | grep kvm reports nothing and rmmod kvm states:

ERROR: Module kvm does not exist in /proc/modules

Strange if it dont exist how can it be causing a problem, or am I being stupid?

derchris
05-04-2010, 15:08
Install grub (as it seems to be missing), and then install the kernel first.
Once that is done, install dksm.

If you are still running the OVH kernel, then there is no modul support, and kvm would be linked into the kernel.

Berilac
05-04-2010, 12:03
thanks derchris, but have tried that and there is nothing listed with

lsmod | grep kvm

I have noticed that I have an incomplete install of DKMS and associated files, could this be the issue. I cant seem to get the installation of DKMS to complete.

using: apt-get install dkms
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
linux-image linux-image-2.6.28-18-generic linux-image-generic
Suggested packages:
linux-doc-2.6.28 linux-source-2.6.28
The following NEW packages will be installed
dkms linux-image linux-image-2.6.28-18-generic linux-image-generic
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 24.3MB/24.4MB of archives.
After this operation, 113MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get: 1 ftp://mir1.ovh.net jaunty-updates/main linux-image-2.6.28-18-generic 2.6.28-18.60 [24.3MB]
Get: 2 ftp://mir1.ovh.net jaunty-updates/main linux-image-generic 2.6.28.18.23 [3644B]
Get: 3 ftp://mir1.ovh.net jaunty-updates/main linux-image 2.6.28.18.23 [3628B]
Fetched 24.3MB in 1s (12.5MB/s)
Selecting previously deselected package linux-image-2.6.28-18-generic.
(Reading database ... 193146 files and directories currently installed.)
Unpacking linux-image-2.6.28-18-generic (from .../linux-image-2.6.28-18-generic_2.6.28-18.60_amd64.deb) ...
Done.
Selecting previously deselected package linux-image-generic.
Unpacking linux-image-generic (from .../linux-image-generic_2.6.28.18.23_amd64.deb) ...
Selecting previously deselected package linux-image.
Unpacking linux-image (from .../linux-image_2.6.28.18.23_amd64.deb) ...
Selecting previously deselected package dkms.
Unpacking dkms (from .../dkms_2.0.21.1-0ubuntu3_all.deb) ...
Processing triggers for man-db ...
Setting up linux-image-2.6.28-18-generic (2.6.28-18.60) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.28-18-generic
Could not find postinst hook script [update-grub].
Looked in: '/bin', '/sbin', '/usr/bin', '/usr/sbin'
dpkg: error processing linux-image-2.6.28-18-generic (--configure):
subprocess post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-generic:
linux-image-generic depends on linux-image-2.6.28-18-generic; however:
Package linux-image-2.6.28-18-generic is not configured yet.
dpkg: error processing linux-image-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image:
linux-image depends on linux-image-generic (= 2.6.28.18.23); however:
Package linux-image-generic is not configured yet.
dpkg: error processing linux-image (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of dkms:
dkms depends on linux-image; however:
Package linux-image is not configured yet.
Package linux-image-2.6.28-18-generic which provides linux-image is not configured yet.
dpkg: error processing dkms (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because MaxReports is reached already
Errors were encountered while processing:
linux-image-2.6.28-18-generic
linux-image-generic
linux-image
dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)


Cant get rid of dkms and associated files either, if I do an uninstall that gets stuck recompiling 2.6.28-18?
I cant understand why apt cant find 2.6.32.2 as that is my installed kernel.
Might do a clean re-install, shame I think I be nearly there.

derchris
05-04-2010, 05:27
PHP Code:
lsmod grep kvm 
If module is showing

PHP Code:
rmmod kvm 

Berilac
05-04-2010, 02:58
Have installed virtualbox3.1 on a Ubuntu 9.04 server.
I can run virtualbox, but when I try to start a virtual machine I get an error stating:

Virtualbox cant operate VMX in root mode. Please disable the KVM kernel extension, recompile your kernel and reboot
(VERR_VMX_IN_VMX_ROOT_MODE).

Details:

Result Code: NS_ERROR_FAILURE (0x80004005)
Component: Console
Interface: IConsole {6375231a-c17c-464b-92cb-ae9e128d71c3}


I have gone into the kernel I have compiled in /usr/src/linux-2.6.32.2 and tried menu_config and looked all thru the options, but cant seem to find the right part to alter. I did disable the KVM option in virt but that just froze up the whole server when a virtual machine was attempting to start so I re-enabled that option.

I am using a self compiled kernel linux-2.6.32.2-xxxx-grs-ipv6-64-mod using the instructions at http://forum.ovh.co.uk/showthread.ph...=vmware+player, but substituting my version for those in the TUT

Any one have any ideas where I need to look?