Different qemu mashines networking- mac adress
When I try to start several qemu mashines I get problems with the networking.
Normal I start mashines with
qemu -boot c -net nic,vlan=0 -net tap,vlan=0,ifname=tap0 image.img
But starting severel mashines, they would get the same ip from the dns-dhcp server because of the mac adresses.
So I start with
qemu -boot c -net nic,vlan=0,macaddr=52:54:00:12:34:56 -net tap,vlan=0,ifname=tap0 image1.img
and
qemu -boot c -net nic,vlan=0,macaddr=52:54:00:12:34:57 -net tap,vlan=0,ifname=tap1 image2.img
I am searching for a script with automatic sets a free mac adress and a free tapX number.
mfg
Matthias Taube