Everytime I try to start a Virtual Machine (VM ) using VirtualBox in Ubuntu (right now I'm using Ubuntu 10.04 - Lucid Lynx ) I get an error as follows:
Failed to start the virtual machine UbuntuServer_9.10_32b.
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).
With these details:
Result Code: NS_ERROR_FAILURE (0x80004005)
Component: Console
Interface: IConsole {6375231a-c17c-464b-92cb-ae9e128d71c3}
To solve this We have to disable KVM modules using the following commands:
sudo rmmod kvm_intel
sudo rmmod kvm
Now the VM starts without any problem.
Showing posts with label Virtual Machine. Show all posts
Showing posts with label Virtual Machine. Show all posts
23 Jul 2010
3 Jun 2008
Creating a Minimal CentOS 5.1 VE in OpenVZ
These steps are for those with OpenVZ already installed and running.
Move to the templates directory:
# cd /vz/template/cache
Download CentOS 5.1 template:
# wget http://download.openvz.org/template/precreated/contrib/centos-5-i386-minimal.tar.gz
Create the VE:
# vzctl create --ostemplate centos-5-i386-minimal
Set VE's IP address:
# vzctl set --ipadd --save
Set VE's hostname:
# vzctl set --hostname --save
Set root's password:
# vzctl set --userpasswd root:password
Start the VE:
# vzctl start
Trying to enter the VE now I got an error:
# vzctl enter
enter into VEfailed
Unable to open pty: No such file or directory
We can solve this with:
# vzctl exec /sbin/MAKEDEV tty
# vzctl exec /sbin/MAKEDEV pty
# vzctl exec /sbin/MAKEDEV ptmx
# vzctl exec /sbin/MAKEDEV random
# vzctl enter
Then we remove udev package like this:
# rpm -qf /etc/udev/makedev.d/50-udev.nodes
udev-095-14.9.el5
# rpm -e udev-095-14.9.el5 –nodeps
Now we can restart the VE and we are ready to go.
Move to the templates directory:
# cd /vz/template/cache
Download CentOS 5.1 template:
# wget http://download.openvz.org/template/precreated/contrib/centos-5-i386-minimal.tar.gz
Create the VE:
# vzctl create
Set VE's IP address:
# vzctl set
Set VE's hostname:
# vzctl set
Set root's password:
# vzctl set
Start the VE:
# vzctl start
Trying to enter the VE now I got an error:
# vzctl enter
enter into VE
Unable to open pty: No such file or directory
We can solve this with:
# vzctl exec
# vzctl exec
# vzctl exec
# vzctl exec
# vzctl enter
Then we remove udev package like this:
# rpm -qf /etc/udev/makedev.d/50-udev.nodes
udev-095-14.9.el5
# rpm -e udev-095-14.9.el5 –nodeps
Now we can restart the VE and we are ready to go.
Subscribe to:
Posts (Atom)