Saturday, April 19, 2008

Qemu networking part 3

Finally I have worked out how to network multiple guests together. Its done through a socket interface. The first guest listens and the others connect. I havn't tried with more than two guests at this stage but it did work.

Add the following net switches to the startup command.

start first guest.
-net nic,macaddr=52:54:00:12:34:56 -net tap,vlan=0 -net socket,listen=:1234

start second guest.
-net nic,macaddr=52:54:00:12:34:57 -net tap,vlan=0 -net socket,connect=localhost:1234
And thats it then. Time to start playing with domain controllers et. al.