Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IESZu-0003II-JE for qemu-devel@nongnu.org; Fri, 27 Jul 2007 12:22:10 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IESZt-0003HI-Ra for qemu-devel@nongnu.org; Fri, 27 Jul 2007 12:22:10 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IESZt-0003HA-Np for qemu-devel@nongnu.org; Fri, 27 Jul 2007 12:22:09 -0400 Received: from web54105.mail.re2.yahoo.com ([206.190.37.240]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1IESZt-0007qO-Da for qemu-devel@nongnu.org; Fri, 27 Jul 2007 12:22:09 -0400 Date: Fri, 27 Jul 2007 09:22:08 -0700 (PDT) From: n schembr Subject: Re: [Qemu-devel] What is the best way to control qemu on a remote box? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-ID: <811169.10529.qm@web54105.mail.re2.yahoo.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org socat - unix-connect:/vservers/qemu/cms1/cms1.sock works well. =0ACtrl-d = stops socat.=0A=0AI'd prefer not to have vnc running unless I needed it,but= some of my guests hang when -nographic is used. Note : the guest has X r= unning and the host is running headless.=0A=0AIs system_powerdown a better = way to stop the host?=0AIs system_powerdown a soft operation like the atx p= owersupply? It did not work with a smoothwall guest.=0A=0AI can see addin= g '-serial unix:/vservers/qemu/cms1/ttyS0.sock,server,nowait' for better co= ntrol.=0A=0AIf I have '-no-reboot' on the command line and I reboot with s= end ctrl-alt-delete why is it just getting to halt? It never reboots and q= emu continues to run. I'll build a clean guest and try to give a bug repor= t.=0A=0AIs there a way to use the monitor and see what the guest is doing? = =0A=0A=0A=0A=0A=0A=0A=0A=0A=0A----- Original Message ----=0AFrom: Ben Taylo= r =0ATo: n schembr =0ASent: Friday, J= uly 27, 2007 8:45:46 AM=0ASubject: Re: [Qemu-devel] What is the best way to= control qemu on a remote box?=0A=0A=0Awhy are you using a socket for the m= onitor? YOu can easily go into monitor=0Amode when using VNC, and I amd us= ing ubuntu 7.04 as a guest and=0Avnc it to my main workstation all the time= . Yes, you run shutdown, and it leaves=0Asomething still there, but once i= n the monitor, you type "quit" and it ends.=0A=0AI supposed using your sock= et method, you could wait some predefined time=0Aand then send "quit" using= the send-key method you used.=0A=0AJust seems convoluted to send a ctrl-al= t-del via send-key as opposed to being=0Alogged in via SSH, or just shutdow= n from the VNC window.=0A=0ABen=0A=0A=0A---- n schembr = wrote: =0A> I'm using a command line like:=0Aqemu -vnc :4 -kernel-kqemu -s= td-vga -no-reboot -monitor unix:/vservers/qemu/cms1/cms1.sock,server,nowait= -boot c -hda hda1.img -hdb swap.img -net nic,vlan=3D0,macaddr=3D00:16:3e:0= 0:0f:00 -net tap,vlan=3D0,ifname=3Dbr0-cms1,script=3D/etc/qemu-ifup-br0 -m = 256=0A=0AI'm running linux but would like the system to feel as close to re= al hardware as I can get. =0A=0AThe the shutdown process is a pain. =0A= =0A echo -n "Asking $GUEST to stop...(sleep $WAIT_FOR_GUEST)" =0A = su $USER -c " echo 'sendkey ctrl-alt-delete' |socat - unix-connect:/$= BasePath/$GUEST/$GUEST.sock " >/dev/null=0A=0A=0AWith some distros the gue= st stops and qemu exits. On Ubuntu the guest will shutdown and get to "hal= t", but qemu will never exit.=0A=0A=0AWhat is the correct way to setup a re= mote system like this. I would like to use the qemu monitor mode better.= =0A=0A=0ANote: The host system is 11 hour away, and I will never sit at the= hosts console. =0A=0A=0AThank you for your time.=0A=0ANicholas A. Schembr= i=0Astate college pa usa=0A=0A=0A> =0A> =0A=0A=0A=0A