All,
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
host runs
* 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:
Quote:
/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 \
-vnc :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:
Quote:
<domain type='kvm'>
<name>BogatzaFedora7m01</name>
<uuid>b1b4fa10-927b-fde1-c6de-eabfbbd8ecf0</uuid>
<memory>229376</memory>
<currentMemory>229376</currentMemory>
<vcpu>1</vcpu>
<os>
<type>hvm</type>
<boot dev='hd'/>
</os>
<features>
</features>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash>
<devices>
<emulator>/usr/bin/qemu-kvm</emulator>
<disk type='block' device='disk'>
<source dev='/dev/NoRaidVolGroupB/BogatzaFedora7m01_RootFs'/>
<target dev='hda'/>
</disk>
<interface type='network'>
<mac address='00:16:3e:56:4b:5a'/>
<source network='bogatza'/>
<target dev='vnet0'/>
</interface>
<graphics type='vnc' port='-1'/>
|
<!-- <console tty='/dev/pts/0'/> --> # WHAT DOES ONE DO WITH THIS?
Urca Braz