How to change VMX flag on Dell server from CLI

WARNING! HERE BE DRAGONS!

2014/05/16 09:53:21 /usr/local/packer-0.6.0/packer-builder-qemu:
2014/05/16 09:53:21 Qemu stderr: Could not access KVM kernel module: No
such file or directory
2014/05/16 09:53:21 /usr/local/packer-0.6.0/packer-builder-qemu:
2014/05/16 09:53:21 Qemu stderr: failed to initialize KVM: No such file
or directory
2014/05/16 09:53:21 /usr/local/packer-0.6.0/packer-builder-qemu:
2014/05/16 09:53:21 Qemu stderr: No accelerator found!
==> packer-centos-6.5-x86_64: Error launching VM: Qemu failed to start.
Please run with logs to get more info.

That is so SAD.

cat /proc/cpuinfo |grep vmx

But, it seems that even if Intel Virtual Technology extensions (i.e., VT or VT-x) are disabled in the BIOS, the /proc/cpuinfo will report the same flags.

dmesg |grep kvm
[    9.739841] kvm: disabled by bios

I found askubuntu question

I can check directly with the msr-tools More here

$ sudo apt-get update
$ sudo apt-get install msr-tools
$ sudo modprobe msr
$ sudo rdmsr 0x3A

The register should return 5 if the extensions are enabled, and return 1 if disabled.

$ rdmsr 0x3A
1

Unfortunately, VMS is disabled. You should reboot, entry to BIOS and change VMX flag. But normally its much slower than use a cli.

# wrmsr 0x3A 5
wrmsr: CPU 0 cannot set MSR 0x0000003a to 0x0000000000000005

AGAIN! You cannot set flag directly on the Dell servers.

Use a hammer

debian wheezy:
deb   http://linux.dell.com/repo/community/ubuntu wheezy openmanage
apt-get   update
apt-get install syscfg

Now I can set status

/opt/dell/toolkit/bin/syscfg --virtualization=enable
virtualization=enable

next reading: 1 2 3 4