VMware Explore happening NOW!

Enabling Nested KVM In Devstack on Fusion

There are times (like when you’re figuring out a post like this) that you will need to fire up devstack in a VM, and in said VM ensure KVM is running. Here’s how to do that:

  1. Add ‘vmv.allow = TRUE’ to the VMX file. I do this in vagrant like so:
# VMware Fusion
config.vm.provider "vmware_fusion" do |vmware, override|
    override.vm.box = "trusty64_fusion"
    ... snip ...
    vmware.vmx["memsize"] = "6144"
    vmware.vmx["numvcpus"] = "2"
    vmware.vmx["vhv.enable"] = "TRUE"
end
  1. Install KVM into the VM:

sudo apt-get update && sudo apt-get install -y kvm libvirt-bin virtinst

  1. Run kvm-ok
~# kvm-ok
INFO: /dev/kvm exists
KVM acceleration can be used
  1. Finally, run ./stack.sh

2 thoughts on “Enabling Nested KVM In Devstack on Fusion

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.