1

I have a server running multiple kvms. These are two to three vms so I consider libvirt somewhat oversized for management. And I'm completely comfortable with that setup. I actually just need the kvm monitoring console to send a 'system_powerdown' so that I can issue a system shutdown from the master host. I'm aware that I could (and currently do) use a pipe, unix sockets, udp, tcp, ... but the pty option seems most attractive to me.

I've spent several hours browsing the internet on this /dev/ptmx device and its association with the /dev/pts/X, but it looks like nobody has ever written something towards a solution.

So maybe somebody here has an idea how to find out the associated pseudo tty device that is automagically created upon kvm startup? (I know that it is printed to stdout on startup, but the vm might run several months and I simply want to determine that device from the kvm process.)

Has anybody ever done that? Has anybody a solution how to find that device?

Oren Milman
  • 103
  • 4
gabriel
  • 11
  • 1

1 Answers1

0

Can you use qm list to see the list of VMs and qm monitor {vmid} to go into the monitor? Or do you not have qm? I use KVM via Proxmox VE and qm is already installed.

jlp
  • 401
  • 2
  • 5
  • I'm not using proxmox, I prefer plain Debian, but as far as i can see proxmox uses a database configuration backend in which it stores the vm information. So qm will lookup the db for corresponding monitoring channel for vmid. – gabriel Feb 02 '13 at 21:44