Re: With -vnc option, can I still use "ctrl+alt + n"?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dongsheng Song schrieb:
2009/2/19 Alexander Graf <agraf@xxxxxxx>:
You could pass -monitor stdio to qemu. That gives you the monitor on the
shell you started qemu from.


So if I run kvm as daemon:

kvm -name Linux-x64 -smp 2 -m 2048M -hda hda.img \
    -cdrom ../../var/iso/debian-500-amd64-DVD-1.iso \
    -net nic,vlan=0,macaddr=52:54:00:12:34:00,model=e1000 \
    -net tap,vlan=0,ifname=tap00,script=no \
    -net nic,vlan=1,macaddr=52:54:00:12:34:10,model=e1000 \
    -net tap,vlan=1,ifname=tap10,script=no \
    -vnc :10 -daemonize

After logout the host, I can't get the qemu system console anymore?

You could use:

-monitor unix:/var/run/qemu-server/103.mon,server,nowait

And connect i.e. with minicom to /var/run/qemu-server/103.mon.

If you put a "minirc.yourguest" file in /etc/minicom/ with content:

pu port             unix#/var/run/qemu-server/103.mon
pu minit
pu mreset


You will be able to connect to that monitor with:

minicom yourguest

For example:

# minicom web3-mon

Welcome to minicom 2.2

OPTIONS: I18n
Compiled on Jan  7 2007, 19:01:49.
Port unix#/var/run/qemu-server/105.mon

Press CTRL-A Z for help on special keys

QEMU 0.9.1 monitor - type 'help' for more information
(qemu) help
help|? [cmd] -- show the help
(...)

Note: this will "quit the emulator" and your guest:

(qemu) quit


So most likely you will just want to exit with minicom's "ctrl-a z x" combination.

--
Tomasz Chmielewski
http://wpkg.org

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux