On Sat, Aug 20, 2005 at 10:46:46PM -0400, jamal wrote: > > Your script should be able to get all the information it needs from the MAC > > address. You can either hardcode addresses or do pattern matching. > > The guest MAC address is arbitrary, so you can choose whatever numbering is > > convenient. For example you could use the last digit of the address to > > encode your ID field. > > The only problem is that would tie the two things (MAC + ID) together. > i.e it would not be possible to just pass the ids without specifying > macs. >
As it should be. A macaddr identified each NIC in the virtual computer uniquely. Both within the guest and across guests (if you are running multiple qemu VMs with tuntap networking). A discussion on IRC before lead to the idea that, if a script should handle multiple guests, qemu should pass the macaddr in $2 to allow the script to identify the guest NIC. That is the only thing needed to uniquely identify a guest, there should be no need for a separate ID. -- Infinite complexity begets infinite beauty. Infinite precision begets infinite perfection. _______________________________________________ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel