on Thu May 15 2008, Gerd Hoffmann <kraxel-AT-redhat.com> wrote: > David Abrahams wrote: >> I normally launch my kvm VM from the command line with "-redir tcp:3389:3389" >> but have been unable to find a way to set up virt-manager to launch it the same >> way. Ditto for other qemu options such as "-soundhw all". Is there a way? > > Not directly in the config. Usual trick is to create a wrapper script > like this (for a serial console in that case) ... > > [root@xeni f8-32]# cat /root/bin/qemu-serial > #!/bin/sh > exec /usr/bin/qemu-kvm "$@" -serial telnet::9999,server,nowait,nodelay > > ... then edit the xml config to make the <emulator> tag point to the > wrapper script instead of /usr/bin/qemu-kvm. I thought of that, but was hoping there was a cleaner approach. > Hmm, maybe the emulator tag should get a args attribute, so one can do > that kind of stuff without wrapper scripts, like this: > > <domain type='kvm'> > [ ... ] > <devices> > <emulator args="-redir ...">/usr/bin/qemu-kvm</emulator> > [ ... ] Yes, please. > The usual ones should be supported by libvirt directly of course. > Serial console is in cvs meanwhile, I've seen also sound support > patches. But for unusual configurations and debugging purposes it would > be quite handy to have the additional args directly in the config and > not hidden somewhere in a separate script ... > > comments? Yesplease, please. :-) -- Dave Abrahams BoostPro Computing http://www.boostpro.com -- Libvir-list mailing list Libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list