Ask Your Question
0

Can't Launch VM with 2GB or More

asked 2016-10-12 13:51:06 -0500

Scott MacNeill gravatar image

Hey gang, I’m having trouble with my Openstack Lab. I’ll preface by saying I’m brand new to all this, I’ve been a windows admin for the last 10 years and am trying to learn something new. I’ve been following the install guide at docs . openstack for the kilo release

My issue is when I launch an instance I get the error

Error: No valid host was found. There are not enough hosts available

But when I dig deeper I find this in my /var/log/nova-compute.log.

libvirtError: internal error: process exited while connecting to monitor: qemu: at most 2047 MB RAM can be simulated

As a test I launched an instance using m1.tiny, only using 512MB ram and it works fine. So I believe my problem is my hypervisor. Thinking I should be using KVM not QEMU, however I have configured for KVM.

/etc/nova/nova-compute.conf

compute_driver=libvirt.LibvirtDriver

[libvirt] virt_type = kvm

KVM seems to be loaded..

lsmod | grep kvm

kvm_intel 159744 0 kvm

471040 1 kvm_intel irqbypass

16384 1 kvm

My machine(s) are all: uname -a

Linux compute 4.4.0-42-generic 62~14.04.1-Ubuntu SMP Fri Oct 7 23:16:06 UTC 2016 i686 i686 i686 GNU/Linux

I”ve torn down my 3 machines and rebuilt them 3 times now. At a bit of a loss where to go from here! My machine has tons of RAM available, 24GB free.

Could this be because i have the i686/32bit OS and not a 64?

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
2

answered 2016-10-12 19:28:23 -0500

Yes, you suspect correctly - this is because you've got a 32bit OS, and qemu thus won't go about 2GB. Switching to KVM is the solution as you note - I'm not sure why qemu's starting based on the output you've provided, but the sole change is in the nova-compute.conf file:

[libvirt] 
... 
virt_type = kvm

The only other things you need to do after making that change are toenable the kvm_intel kernel module (which it seems like you've done) and - finally - restart the nova compute service. Nova's full logs should then at least tell you why kvm isn't being used!

edit flag offensive delete link more

Comments

1

+i should add that a 32bit OS on the host will cause you only trouble.

hkominos gravatar imagehkominos ( 2016-10-13 03:12:17 -0500 )edit

Thank you. I will download 16.04 64 bit right now, and rebuild my 3 machines. glad i finally have a lead! been a long couple weeks of troubleshooting!

Scott MacNeill gravatar imageScott MacNeill ( 2016-10-13 06:14:48 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-10-12 13:29:35 -0500

Seen: 361 times

Last updated: Oct 12 '16