Monday, April 29, 2024
16
rated 0 times [  16] [ 0]  / answers: 1 / hits: 44687  / 2 Years ago, sat, october 1, 2022, 8:42:29

I am using qemu-system-x86_64 to boot virtual machines on kvm running on Ubuntu 12.04 64-bit desktop. I have a few VM's that are currently running. I want to get the list of all VM's booted using qemu-system-x86_64 on this host machine, how do I get this list?



Specifications:




  • qemu-system-x86_64 version 1.0


  • linux 3.2.0-60-generic




P.S.: Just as a side note, I am aware of virsh -c qemu:///system list which would list all VMs booted using virsh. However, this does not seem to give the list of VMs booted using qemu-system-x86_64, it would be great if virsh command could list the VMs booted using qemu-system-x86_64.


More From » virtualization

 Answers
0

Each VM started with qemu-system-x86_64 corresponds to a process on the host machine. This means that a list of qemu-system-x86_64 processes corresponds to the list of VMs that are currently running on the host.



ps -ef | grep qemu-system-x86_64


This will list all the qemu-system-x86_64 processes, their pids and the parameters used to start the VM.


[#26144] Saturday, October 1, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
impisaso

Total Points: 423
Total Questions: 106
Total Answers: 104

Location: Virgin Islands (U.S.)
Member since Tue, Feb 2, 2021
3 Years ago
;