Managing Instance resources through kvm based cli/tools

asked 2019-04-02 12:01:34 -0600

sanjay khuntia gravatar image

Hi All, I want to manage instances created in openstack environment with any opensource kvm/qemu hypervisor based tools/cli which should provide options to manage resources of VMs using its commands or UI. Ideally it can set/modify vcpu/memory etc for the running VMs through a set of inbuilt commands or wrappers.

While searching I found virsh commands which can be run on VMs to do a wide variety of tasks.

Is there any other tools available in opensource community which can perform above tasks...

Any additional pointers are highly appreciated.

thanks for your replies. best rgds,

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2019-04-02 17:04:12 -0600

updated 2019-04-02 17:05:20 -0600

When you modify VM properties this way, Nova’s database will contain incorrect information about its instances and hypervisor hosts, which is likely to cause problems. As a minimum, Nova will schedule new instances based on incorrect resource usage data.

Having said that, you could use Virtual Machine Manager, or write your own tools using a libvirt library, or perhaps even kill the qemu process and rerun it manually (not easy given the complexity of its command line options).

I am curious why you want to launch VMs with OpenStack and then manage them with another tool? And why you need an alternative to virsh?

edit flag offensive delete link more

Comments

want to set production and development VM priority when they are created/launched in openstack so that certain VM can have more resource(like vCPUs,memory etc.)allocation contention than other normal VMs. Already checked openstack- no such tool/service available till now.So checking other options...

sanjay khuntia gravatar imagesanjay khuntia ( 2019-04-03 06:10:16 -0600 )edit

The number of vcpus is determined by the flavor, as is the memory size. While memory can be overbooked, you can configure it so that each instance gets the amount it requires at any time.

Bernd Bausch gravatar imageBernd Bausch ( 2019-04-03 07:40:08 -0600 )edit
1

Nova doesn’t allow you to prioritize VMs, but neither does libvirt I think. You could, however, set the nice values of qemu processes. See also https://stackoverflow.com/questions/4....

Bernd Bausch gravatar imageBernd Bausch ( 2019-04-03 07:42:10 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2019-04-02 12:01:34 -0600

Seen: 44 times

Last updated: Apr 02 '19