[Top] [All Lists]

[Qemu-devel] What is the best way to control qemu on a remote box?

Subject: [Qemu-devel] What is the best way to control qemu on a remote box?
From: n schembr
Date: Thu, 26 Jul 2007 16:29:19 -0700 PDT
I'm using a command line like:
qemu -vnc :4 -kernel-kqemu -std-vga -no-reboot -monitor 
unix:/vservers/qemu/cms1/cms1.sock,server,nowait -boot c -hda hda1.img -hdb 
swap.img -net nic,vlan=0,macaddr=00:16:3e:00:0f:00 -net 
tap,vlan=0,ifname=br0-cms1,script=/etc/qemu-ifup-br0 -m 256

I'm running linux but would like the system to feel as close to real hardware 
as I can get. 

The the shutdown process is a pain.   

        echo -n "Asking  $GUEST to stop...(sleep $WAIT_FOR_GUEST)" 
        su $USER -c " echo 'sendkey ctrl-alt-delete' |socat - 
unix-connect:/$BasePath/$GUEST/$GUEST.sock "  >/dev/null

With some distros the guest stops and qemu exits.  On Ubuntu the guest will 
shutdown and get to "halt", but qemu will never exit.

What is the correct way to setup a remote system like this.  I would like to 
use the qemu  monitor  mode better.

Note: The host system is 11 hour away, and I will never sit at the hosts 

Thank you for your time.

Nicholas A. Schembri
state college pa usa

<Prev in Thread] Current Thread [Next in Thread>