Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 ours browsing the internet on this /dev/ptmx device and its association with the /dev/pts/X but it looks like as 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?

Thanks a lot in advance.

share|improve this question

1 Answer 1

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.

share|improve this answer
    
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 2 '13 at 21:44

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.