I have successfully installed WinXP and Fedora 7 virtual machines within my Fedora 7 (x86_64) and am fairly happy so far. I am using:
* QEMU/KVM to run virtual instances (not Xen)
* using 'virsh' to launch virtual machines at host boot-up (from rc.local)
* using 'virt-manager'/'virsh' to bring up/stop virtual machines while
* maintaining virtual machine configurations in /etc/libvirt/qemu/*.xml
* maintaining virtual network configurations in /etc/libvirt/qemu/networks/*.xml
* using VNC to view and interact with virtual machines displays
WHAT I NEED/WANT: to be able to mount/unmount CD-ROMs, make other configuration changes while the virtual machines are running
I've found that to do that, while one is using the VNC, one should press the Ctrl+Alt+2 keys to reach the QEMU per-virtual-machine monitor
(references: file:///usr/share/doc/qemu-0.9.0/*.html on Fedora 7 install, http://www.kidsquid.com/cgi-bin/moin.cgi/QEMU_Monitor
, thread culminating in http://lists.xensource.com/archives/.../msg00254.html
When I try the Ctrl+Alt+2 thing in VNC, I get a screen with a display "serial0", with no "(qemu)" prompt as was implied in documentation. From what I gather from the aforementioned thread, the Ctrl+Alt+2 thing is disabled by default
, won't get you to a QEMU Monitor. Once in the QEMU monitor I should be able to eject CD-ROMs, mount CD-ROMs from host system, etc.
From QEMU documentation I believe the "qemu-kvm" program should be running with the "-serial vc" and perhaps "-monitor vc" to let the VNC session control these. The "qemu-kvm" command line I see with "ps -aef" for the machine in question, as launched by 'virt-manager', appears like this:
/usr/bin/qemu-kvm -M pc -m 224 -smp 1 -monitor pty -no-acpi \
-boot c -hda /dev/NoRaidVolGroupB/BogatzaFedora7m01_RootFs \
-net nic,macaddr=00:16:3e:56:4b:5a,vlan=0 -net tap,fd=11,script=,vlan=0 \
... no appearance of a '-serial' anywhere.
I've seen references for those using Xen on how to use "monitor=yes" configuration, but I don't think that's an option for me, as I don't use Xen configuration. The libvirt (underlying virtualization library for 'virsh' and 'virt-manager') mentions a declaration "console" that might possibly enable the Ctrl+Alt+2 thing. I'm not a Linux/UNIX guru, so I'm not sure quite how to use this or whether it will help.
My current machine configuration, along with the 'console' element, appears like this in /etc/libvirt/qemu/BogatzaFedora7m01.xml:
<!-- <console tty='/dev/pts/0'/> --> # WHAT DOES ONE DO WITH THIS?
<disk type='block' device='disk'>
<graphics type='vnc' port='-1'/>