05-01-2019
Providing virtual machine priority in kvm based virtual machines
Hi All,
Is there any way I can prioritize my VMs when there is resource crunch in host machine so that some VMs will be allocated more vcpu, more memory than other VMs in kvm/qemu hypervisor based virtual machines?
Lets say in my cloud environment my Ubuntu 16 compute hosts are running some development and production VMs. When there is resource crunch, I want my production VMs to utilize more vcpu and memory than development VMs. Here the host machine should decide which VMs to give priority in terms of resource allocation so as to increase or decrease vcpu, memory of the hosted VMs.
Tried with virsh command line to set vcpucount. However it needs to reboot the VM to effect the config change which I do not want for my VMs.
I can think of changing nice value of the qemu process (using nice/renice/chrp command options) for my VM instances, but not sure whether it will work properly or not when the actual resource crunch happens as nice is just a scheduler hint to the linux kernel.
Similar question is posted in stackoverflow under "understanding-kvm-cpu-scheduler-algorithm" subject line.
Please let me know is there any linux command line utility or tool available to increase or decrease resource of the VMs based on the resource utilization in host.
thank you for your replies and pointers.
regards,
Sanjay
This User Gave Thanks to SanjayK For This Post:
9 More Discussions You Might Find Interesting
1. Solaris
Do we have any Virtual Data Center software as we have Virtual Machine?
I want to practice everything of Solaris practically but i don't have resources like data center which includes Servers, Data storages, switches, and other things. (2 Replies)
Discussion started by: karman0931
2 Replies
2. Linux
My setup consists of a hardware node, which hosts several virtual machines (OpenVZ, to be precise). The hardware node has two network interfaces (<ifA>, <ifB>) connected to different subnets (<networkA>, <networkB>). I want to route the traffic of certain VEs over <ifB> while routing the other VEs... (0 Replies)
Discussion started by: bakunin
0 Replies
3. Red Hat
Hi All,
I have RHEL 5u4 physical system with 2 Qlogic fc cards. It hosts 2 KVM virtual machines which are also running RHEL 5u4 OS. After all these I have created a virutal HBA (refered in google) successfully on the base OS. But the same is not visible to guest OS.
My question here is,
... (1 Reply)
Discussion started by: Vichu
1 Replies
4. Virtualization and Cloud Computing
I have virtual machines in the vmware environment that run either windows or linux that loose conncetivity and every time i have to change their vlan to vm network and latter join them to original vlan to gain connectivity.
Advice (0 Replies)
Discussion started by: amwai
0 Replies
5. Solaris
Trying to set or modify the randomly set hostID of a Solaris 10 virtual/guest machine that I installed on a Windows-XP host machine (using Virtual Box 4.1.12).
I was able to set/modify the hostname of the Solaris 10 virtual/guest machine during installation as well as via the Virtual Box... (4 Replies)
Discussion started by: Matt_VB
4 Replies
6. Ubuntu
Hello,
I installed two virtual machines ubuntu10 on VM VirtualBox .
Please, what are the steps to make a ping from one of these two machines on the other (the configurations )?
Thank you. (4 Replies)
Discussion started by: chercheur111
4 Replies
7. UNIX and Linux Applications
Help with Install KVM and Create Virtual Machines VMWare In PC.
I want to lean KVM bios Logical Volume Management by KVM and other problem fix remotely.So,I want to practice on my PC.It,s Possible then how?
Thank you (0 Replies)
Discussion started by: domaingood
0 Replies
8. Red Hat
My RHEL virtual Machine Does not have Virtual Machine Manager Desktop Tool
Hi,
I don't seem to have the Virtual Machine Manager Desktop tool set up on my RHEL6 Machine. The Linux machine runs off VMWare player and I'm not sure whether it is a VMWare software issue or a problem with the RHEL6... (2 Replies)
Discussion started by: accipiter1
2 Replies
9. AIX
Hi There,
I have zero information and zero knowledge for IBM virtual machine except Amazon cloud and VMware ESXi (Only Linux OS available).
Anyone could provide me the following answer -
Can IBM VM been deploy on X86 and X64 (Intel Chip)?
If answer is yes any chance to deploy AIX OS... (13 Replies)
Discussion started by: chenyung
13 Replies
LEARN ABOUT DEBIAN
onetemplate
ONETEMPLATE(1) onetemplate(1) -- manages OpenNebula templates ONETEMPLATE(1)
NAME
onetemplate
SYNOPSIS
onetemplate command [args] [options]
OPTIONS
-n, --name vm_name Name of the new Virtual Machine. When instantiating
multiple VMs you can use the"%i" wildcard to produce
different names such as vm-0, vm-1...
-m, --multiple x Instance multiple VMs
-l, --list x,y,z Selects columns to display with list command
-d, --delay x Sets the delay in seconds for top command
-x, --xml Show the resource in xml format
-n, --numeric Do not translate user and group IDs
-v, --verbose Verbose mode
-h, --help Show this message
-V, --version Show version and copyright information
COMMANDS
o create file
Creates a new Template from the given template file
o delete range|templateid_list
Deletes the given Image
o instantiate templateid
Creates a new VM instance from the given Template. This VM can be
managed with the 'onevm' command
valid options: vm_name, multiple
o publish range|templateid_list
DEPRECATED, use chmod instead. Publishes the given Template. A public
Template can be seen and instantiated by other users in the Template's
group.
o unpublish range|templateid_list
DEPRECATED, use chmod instead. Unpublishes the given Template. A private
Template can't be instantiated by any other user.
o chgrp range|templateid_list groupid
Changes the Template group
o chown range|templateid_list userid [groupid]
Changes the Template owner and group
o chmod range|templateid_list octet
Changes the Template permissions
o update templateid
Launches the system editor to modify and update the template contents
o list [filterflag]
Lists Templates in the pool
valid options: list, delay, xml, numeric
o show templateid
Shows information for the given Template
valid options: xml
o top [filterflag]
Lists Templates continuously
valid options: list, delay, xml, numeric
ARGUMENT FORMATS
o file
Path to a file
o range
List of id's in the form 1,8..15
o text
String
o groupid
OpenNebula GROUP name or id
o userid
OpenNebula USER name or id
o templateid
OpenNebula VMTEMPLATE name or id
o templateid_list
Comma-separated list of OpenNebula VMTEMPLATE names or ids
o filterflag
a, all all the known VMTEMPLATEs
m, mine the VMTEMPLATE belonging to the user in ONE_AUTH
g, group 'mine' plus the VMTEMPLATE belonging to the groups
the user is member of
uid VMTEMPLATE of the user identified by this uid
user VMTEMPLATE of the user identified by the username
LICENSE
OpenNebula 3.4.1 Copyright 2002-2012, OpenNebula Project Leads (OpenNebula.org)
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may
obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
April 2012 ONETEMPLATE(1)