[libvirt-users] Usage serial device

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I'm trying to connect the *same* serial device to two KVM Linux machines where one is running KGDB and the other uses the connected serial to interact with the target machine running under KGDB. However, I'm unable to do so. Using a pty port, I am able to use my kgdb setup with host/VM but unable to make it work with VM/VM since it's two different pty created on the two machines. Anyone on this list can help me with that kind of setup ? Unfortunately, I must use libvirtd 0.7.5 for now... I'm aware that it might be a version issue here but still... Thanks! David -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQEcBAEBAgAGBQJOihLOAAoJEELoaioR9I02GawH/1Ux197Pj3F+Qf54LcI3yy+w Vhd8yOGIAreBES7FUIf/7dCFqUz2mXFbtRuo9KZi+M0qs02kEs/nbhgOJLmHdZFA iRdCprzCR4Ue1x8H/tVogfBElfGhlJDaPHx5KIsxDmXwPJYhrPBt8qhyzLSTVQZG /pibv03sQdGRM6ZIyIhbA3ZmZ7Yh0SToGl3Fodw5Yp6YjrxRtpTu/OkHuHweM+nq wxthsgVstAEjJSxwV5O1+GzQ8xVDzjvZTvSRXnU2mTKXTiW2CkbnPbDG7cYfAcdx jICcAOf4AHtuKt5ZTfXFMUT4qSPfEntoXKsjt1IpCOpYH70GNGxLkh96SKjS1+w= =AYT3 -----END PGP SIGNATURE-----

On Mon, Oct 03, 2011 at 03:53:50PM -0400, David Goulet wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi,
I'm trying to connect the *same* serial device to two KVM Linux machines where one is running KGDB and the other uses the connected serial to interact with the target machine running under KGDB.
However, I'm unable to do so. Using a pty port, I am able to use my kgdb setup with host/VM but unable to make it work with VM/VM since it's two different pty created on the two machines.
Anyone on this list can help me with that kind of setup ?
You don't really want to use PTYs to connect 2 VMs together. Instead try using one of the TCP or UDP connection methods http://libvirt.org/formatdomain.html#elementsCharTCP eg, configure one VM with <serial type="tcp"> <source mode="bind" host="127.0.0.1" service="2445"/> <protocol type="raw"/> </serial> and the other with <serial type="tcp"> <source mode="connect" host="127.0.0.1" service="2445"/> <protocol type="raw"/> </serial> Regards, Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
participants (2)
-
Daniel P. Berrange
-
David Goulet