[kvm-devel] Mac-Address uniqueness

2007-05-31 Thread Axel Kittenberger
Hello List! Im not sure if this better kvm or qemu code that is responsible, but since my binary is called "kvm" I'll try this list first, tell me if its wrong. I now have 3 virtual machines on my host (Windows 2003 server, Ubuntu etch, an old Suse) and have bridged networking setup. I used -n

Re: [kvm-devel] Mac-Address uniqueness

2007-05-31 Thread Dor Laor
>Im not sure if this better kvm or qemu code that is responsible, but >since my binary is called "kvm" I'll try this list first, tell me if its >wrong. > >I now have 3 virtual machines on my host (Windows 2003 server, Ubuntu >etch, an old Suse) and have bridged networking setup. >I used -nic,model=

Re: [kvm-devel] Mac-Address uniqueness

2007-05-31 Thread Axel Kittenberger
Thanks for the quick answer. > It works for me. > You should have all the -nic parameters in the same option, for example: > "-net nic,macaddr=$MAC,model=rtl8139" otherwise qemu sets the nic for > another vlan object. > Oh! This explains why lspci showed 3 network cards, stupid me :-) Still spec

Re: [kvm-devel] Mac-Address uniqueness

2007-05-31 Thread H. Peter Anvin
Axel Kittenberger wrote: > > Unfortunally all machines detect the same ethernet address > '52:54:00:12:34:56'. Which you can guess what i means, networking comes > and goes whatever machine last the ethernet address got hold of from the > gateway. I tried specifing an ethernet-adress with "-net

Re: [kvm-devel] Mac-Address uniqueness

2007-05-31 Thread H. Peter Anvin
Avi Kivity wrote: > H. Peter Anvin wrote: >> Axel Kittenberger wrote: >> >>> Unfortunally all machines detect the same ethernet address >>> '52:54:00:12:34:56'. Which you can guess what i means, networking comes >>> and goes whatever machine last the ethernet address got hold of from the >>>

Re: [kvm-devel] Mac-Address uniqueness

2007-05-31 Thread Avi Kivity
H. Peter Anvin wrote: > Axel Kittenberger wrote: > >> Unfortunally all machines detect the same ethernet address >> '52:54:00:12:34:56'. Which you can guess what i means, networking comes >> and goes whatever machine last the ethernet address got hold of from the >> gateway. I tried specifing

Re: [kvm-devel] Mac-Address uniqueness

2007-06-01 Thread Axel Kittenberger
> That tends to consume dhcp leases quickly, if you start guests often (as > I do). Also, some distributions use the mac address as a key for naming > interfaces; if it changes, the guest gets confused > Couldn't we do some sort of hash on the image path+filename? So same image starts always

Re: [kvm-devel] Mac-Address uniqueness

2007-06-01 Thread Daniel P. Berrange
On Thu, May 31, 2007 at 11:43:43PM -0700, H. Peter Anvin wrote: > Avi Kivity wrote: > > H. Peter Anvin wrote: > >> Axel Kittenberger wrote: > >> > >>> Unfortunally all machines detect the same ethernet address > >>> '52:54:00:12:34:56'. Which you can guess what i means, networking comes > >>>