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
qemuctl(1)																qemuctl(1)

NAME
qemuctl - Graphical control for qemu SYNTAX
qemuctl [-suspend-dir <dir>] [-suspend-file <filename>] [-qemu <qemu>] [-nowakeup] qemu-options DESCRIPTION
qemuctl is a gui that controls a qemu process with the built-in monitor of qemu. So you can change devices, suspend machines, save screen- shots, ... If you suspend a machine it will do the following macro: stop screendump "suspend-dir/suspend-file.ppm" savevm "suspend-dir/suspend-file.vm" commit quit You can afterwards resume the machine with: qemuctl -suspend-dir suspend-dir -suspend-file suspend-file your_qemu_options the suspend-files will then be deleted or qemuctl -loadvm suspend-dir/suspend-file.vm your_qemu_options Be aware that you can't use the "-monitor" option with qemuctl, because it needs the control over the monitor. The option "-serial stdio" can't be used, too. OPTIONS
-suspend-file <filename> This option is normaly used by qemuctl to support suspend and wakeup. qemuctl can then find the vm-state-file in its folders and wakeup the virtual machine. If the file is there the qemuctl waes up the virtual machine and deletes the file afterwards. On suspend the vm-state-file is then stored as the <filename> with the .vm ending and the screenshot is stored as the <filename> with the .ppm ending. Default filename is "suspend". -suspend-dir <dir> This is the dir where the suspend files would be stored or expected. Default is current dir. -nowakeup Don't wake up even if the vm-file is there. Suspend still works. Default is to wake up using the vm-file if it is there. -qemu <qemu> The qemu variation to use. It can be qemu or kvm. Default is qemu. qemu-options Use qemu-options for the launch of qemu. See qemu(1) for further details. FILES
none ENVIRONMENT VARIABLES
none EXAMPLES
To use the suspend file 'Debian 3.1' and store/search it in the '/qemu' dir: qemuctl -suspend-file "Debian 3.1" -suspend-dir "/qemu" -boot c -hda hda.raw Alternativly you can run it with default suspend filenames: qemuctl -boot c -hda hda.raw AUTHORS
Peter Rustler SEE ALSO
qemu(1) qemu-launcher(1) Peter Rustler 0.0.1 qemuctl(1)
All times are GMT -4. The time now is 08:33 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy