Ask Your Question
0

Openstack + LXC, "Config requested an explict CPU model"

asked 2015-01-11 23:48:04 -0600

TheCrazedLog gravatar image

Hi all:

I'm playing around with RDO OpenStack to get a feel for it and how it all works. Our use case involves LXC: we want to test various daemons running on VM's, but we don't want the overhead that comes with a VM. LXC containers look ideal for what we need and I've been tasked to learn more.

I've gotten RDO up and running on a CentOS 7 VM and I've now got a node (physical) running CentOS 7. I've managed to get a QEMU VM instance up and running using a CentOS 7 ISO image that I created. Now that I've done that, I want to bring up LXC containers. I've googled around and have find various hints about how to do this, but I feel like I'm piecing together an ancient civilisation's history based on their lolly wrappers. I'm not getting anywhere fast :) Even the LXC doco doesn't seem to be much help.

I'm sure I'm missing something somewhere, but damned if I can figure out what or where it is. Everyone else seems to have had success doing this.

So far I've tried: - Setting virt_type=lxc in /etc/nova/nova.conf on the compute node and restarting the nova service. The web interface updates to show that the hypervisor is of type LXC. - A CentOS7 iso image - An ubuntu image - A tar.gz of an LXC chroot environment.

The error message I often run into is this one: "Invalid: Config requested an explicit CPU model, but the current libvirt hypervisor 'lxc' does not support selecting CPU models"

As far as I know I've never set any models. Doing a "glance image-show" shows no CPU information, the only relevant thing that it shows is that I've set hypervisor_type to be lxc.

What am I doing wrong? What should I be doing? Is there any good resources for how to go about creating an LXC image for Openstack?

Thanks

Anthony

edit retag flag offensive close merge delete

Comments

Your intend is to have LXC as Hypervisor for RDO Juno. I have experience with docker containers , e.g. nova-docker driver set up on RDO Juno (CentOS 7, F21)

dbaxps gravatar imagedbaxps ( 2015-01-12 02:32:49 -0600 )edit
dbaxps gravatar imagedbaxps ( 2015-01-12 02:36:57 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-11-18 19:51:37 -0600

Did you ever get an answer to this ?

edit flag offensive delete link more

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: 2015-01-11 23:48:04 -0600

Seen: 438 times

Last updated: Nov 18 '15