From: Paolo Pedaletti <paolo.pedaletti@gmail.com>
To: "Alberto Treviño" <alberto@byu.edu>
Cc: KVM List <kvm@vger.kernel.org>
Subject: Re: howto control VM from outside (shutdown...)
Date: Tue, 20 Jan 2009 23:16:43 +0100 [thread overview]
Message-ID: <49764D4B.4060505@gmail.com> (raw)
In-Reply-To: <200901200855.28307.alberto@byu.edu>
ciao Alberto,
> -monitor telnet::[port],server,nowait
ok
> For interactive control I use telnet:
> $ telnet localhost [port]
ok, it works, thank you
> To send commands through a script, I use netcat:
> echo "system_powerdown" | netcat -T -c localhost [port]
no, it doesn't work :-(
$ while : ; do echo "info name" | netcat -T lowdelay -C \
127.0.0.1 10101 ; sleep 1 ; done
��\x01��\x03����QEMU 0.9.1 monitor - type 'help' for more information
(qemu) info name��\x01��\x03����QEMU 0.9.1 monitor - type 'help' for more
information
(qemu) info name��\x01��\x03����QEMU 0.9.1 monitor - type 'help' for more
information
(qemu) info name��\x01��\x03����QEMU 0.9.1 monitor - type 'help' for more
information
(qemu) info name��\x01��\x03����QEMU 0.9.1 monitor - type 'help' for more
information
(qemu) info name��\x01��\x03����QEMU 0.9.1 monitor - type 'help' for more
information
(qemu) info name��\x01��\x03����QEMU 0.9.1 monitor - type 'help' for more
information
(qemu) info name��\x01��\x03����QEMU 0.9.1 monitor - type 'help' for more
information
command line: (kvm-82, ubuntu 8.10 2.6.27-9-server x86_64)
/usr/local/bin/qemu-system-x86_64 -name marco \
-vnc :10 -monitor telnet:127.0.0.1:10101,server,nowait \
-cpu qemu64 -m 512 -smp 1 -vga std \
-drive file=/dev/mapper/vm-vm_marco,if=virtio,cache=off,boot=on\ -k it
-usb -usbdevice tablet -localtime -daemonize \
-net nic,vlan=1,model=e1000,macaddr=52:10:11:01:01:01 \
-net vde,vlan=1,sock=/var/run/vde2/kvm1_vde.ctl \
-net nic,vlan=2,model=virtio,macaddr=52:10:11:02:01:01 \
-net vde,vlan=2,sock=/var/run/vde2/kvm2_vde.ctl \
-pidfile /home/vm/marco/marco.pid
do you know/understand why it doesn't works for me?
> I also have a PHP script that opens a socket connection to the telnet port,
> sends the command, and parses the output for errors. I'll be happy to share
> it. Let me know if you want it.
yes, thank you.
--
/* Paolo Pedaletti,
* paolo@pedaletti.it www.pedaletti.it */
prev parent reply other threads:[~2009-01-20 22:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-19 20:23 howto control VM from outside (shutdown...) Paolo Pedaletti
2009-01-19 21:40 ` David Mair
2009-01-20 13:10 ` paolo pedaletti
2009-01-20 15:55 ` Alberto Treviño
2009-01-20 22:16 ` Paolo Pedaletti [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49764D4B.4060505@gmail.com \
--to=paolo.pedaletti@gmail.com \
--cc=alberto@byu.edu \
--cc=kvm@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.