Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Providing virtual machine priority in kvm based virtual machines Post 303034640 by SanjayK on Wednesday 1st of May 2019 11:37:54 AM
Old 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

Is there any Virtual data center as we have Virtual Machine?

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

Routing via several interfaces for hosted virtual machines

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

Could not see virtual fc in KVM guest OS

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

Virtual machines in vmware requires reset of the vlan

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

Change hostID of Solaris 10 virtual/guest machine installed by Virtual Box 4.1.12 on Windows-XP host

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

Ping between two virtual machines

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

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

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

IBM Virtual Machine OS on intel x86 and x64? IBM AIX OS on IBM Virtual Machine?

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
KVM(3)							   BSD Library Functions Manual 						    KVM(3)

NAME
kvm -- kernel memory interface LIBRARY
Kernel Data Access Library (libkvm, -lkvm) DESCRIPTION
The kvm library provides a uniform interface for accessing kernel virtual memory images, including live systems and crash dumps. Access to live systems is via /dev/mem while crash dumps can be examined via the core file generated by savecore(8). The interface behaves identically in both cases. Memory can be read and written, kernel symbol addresses can be looked up efficiently, and information about user processes can be gathered. kvm_open() is first called to obtain a descriptor for all subsequent calls. FILES
/dev/mem interface to physical memory COMPATIBILITY
The kvm interface was first introduced in SunOS. A considerable number of programs have been developed that use this interface, making back- ward compatibility highly desirable. In most respects, the Sun kvm interface is consistent and clean. Accordingly, the generic portion of the interface (i.e., kvm_open(), kvm_close(), kvm_read(), kvm_write(), and kvm_nlist()) has been incorporated into the BSD interface. Indeed, many kvm applications (i.e., debuggers and statistical monitors) use only this subset of the interface. The process interface was not kept. This is not a portability issue since any code that manipulates processes is inherently machine depen- dent. Finally, the Sun kvm error reporting semantics are poorly defined. The library can be configured either to print errors to stderr automati- cally, or to print no error messages at all. In the latter case, the nature of the error cannot be determined. To overcome this, the BSD interface includes a routine, kvm_geterr(3), to return (not print out) the error message corresponding to the most recent error condition on the given descriptor. SEE ALSO
kvm_close(3), kvm_getargv(3), kvm_getenvv(3), kvm_geterr(3), kvm_getkernelname(3), kvm_getloadavg(3), kvm_getlwps(3), kvm_getprocs(3), kvm_nlist(3), kvm_open(3), kvm_openfiles(3), kvm_read(3), kvm_write(3) BSD
September 14, 2011 BSD
All times are GMT -4. The time now is 03:18 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy