VMware Communities > VMTN > Desktop Products > VMware Workstation > Discussions

This Question is Answered

2 "helpful" answers available (6 pts)
6 Replies Last post: Dec 23, 2008 12:39 PM by JurgenD
Reply

Old PITA - Change the MAC adress in VMware Workstation 6.5 ?!

Dec 9, 2008 11:11 AM

Click to view JurgenD's profile Novice JurgenD 8 posts since
Dec 7, 2008
Some versions of VMware Workstation did allow to set manually the MAC address of the virtual adapter.
This possibility has changed for several reasons.

My personal opinion is clear. A virtual machine needs to mirror as best as possible a hardware machine.

On VMware Workstation You can not change the MAC adress, or You are bound to a limited possibility, were the first hex adresses are fixed,
so it shows on the outside, it is a virtual machine. Response of VMware is, You need to run the Server Edition. Well.....

Currently I saw, the recent version of Virtual Box does allow to enter manually the MAC address
for the Virtual Interfaces based on Intel NIC. You can enter any MAC address, including MAC of existing, hardware Intel NIC.

So my opinion, the locked-out possibility to change FULLY the mac adress of the virtual machine,
should be enabled again for all versions of VMware, as it is the possibility with other software.
Reply Re: Old PITA - Change the MAC adress in VMware Workstation 6.5 ?! Dec 9, 2008 11:17 AM
Click to view continuum's profile Guru continuum 12,253 posts since
Dec 18, 2003
It never was possible to assign ANY MAC-address to a VM by editing the vmx-file.
You were always restricted to use an address out of a VMware-address pool.

Response of VMware is, You need to run the Server Edition. Well.....

I can't believe that ...


___________________________________

description of vmx-parameters: http://sanbarrow.com/vmx.html
VMware-liveCD: http://sanbarrow.com/moa.html

Reply Re: Old PITA - Change the MAC adress in VMware Workstation 6.5 ?! Dec 9, 2008 11:33 AM
in response to: continuum
Click to view JurgenD's profile Novice JurgenD 8 posts since
Dec 7, 2008
Well, You could on some versions, with some hack and stuff.
But this is not important.

Important is, other virtualization software does allow to enter Your own MAC adress ! Without limits on the HEX numbers ( range, pool )

So this limit should be removed on the versions of VMware.
Maybe it is an advantage for some people, but not for those who need to perform MAC spoofing
or those who need to run and develop software, which does licensing based on a MAC address.

A vitual machine needs to be as compatible as possible.
Reply Re: Old PITA - Change the MAC adress in VMware Workstation 6.5 ?! Dec 9, 2008 11:40 AM
in response to: JurgenD
Click to view RDPetruska's profile Guru RDPetruska 15,853 posts since
Jan 11, 2005
Moderator

JurgenD wrote:Well, You could on some versions, with some hack and stuff.
But this is not important.

Important is, other virtualization software does allow to enter Your own MAC adress ! Without limits on the HEX numbers ( range, pool )

So this limit should be removed on the versions of VMware.
Maybe it is an advantage for some people, but not for those who need to perform MAC spoofing
or those who need to run and develop software, which does licensing based on a MAC address.

A vitual machine needs to be as compatible as possible.


If others are doing it, then they are in violation of Internic policies! VMware allows you to change the MAC addresses of their network adapters only within the range they were assigned by Internic. If other vendors allow you to change willy-nilly, then they are breaking the law!!

If you want to do spoofing, then do it inside the guest OS at that level (there are tools to allow you to do this for *nix and Windows environments, at least.

Reply Re: Old PITA - Change the MAC adress in VMware Workstation 6.5 ?! Dec 9, 2008 11:41 AM
Click to view jameslin's profile Master jameslin 1,057 posts since
Jan 31, 2005
VMware
JurgenD wrote:
Some versions of VMware Workstation did allow to set manually the MAC address of the virtual adapter.
This possibility has changed for several reasons.

Hm? AFAIK we haven't added any restrictions. We don't provide a UI for it, but manually editing the .vmx file and changing ethernet0.addressType and ethernet0.address to a MAC address from a different vendor seems to work for me.

http://sanbarrow.com/vmx/vmx-network-advanced.html#mac

I don't believe static MAC addresses are actually limited to the 00:50:56 range.
Reply Re: Old PITA - Change the MAC adress in VMware Workstation 6.5 ?! Dec 15, 2008 9:47 AM
in response to: RDPetruska
Click to view JurgenD's profile Novice JurgenD 8 posts since
Dec 7, 2008
I do not agree. The RFC are not a law. They are recommendations.

There is nothing wrong to clone a MAC address on a virtual NIC from an internal hardware NIC.
The virtual NIC is not a hardware NIC, so it is not bound to the uniqueness of assigning MAC address.

Mac spoofing is well discussed into many topics.
In unix / linux / xxxBsd You can very easy do that with some settings to Your configuration.

As many routers, gateways, hardware firewall, repeaters or software do provide the ability to
clone a MAC from an internal host. So if some user decide to perform routing, packet filtering, intrusing detection
or even stress-security testing inside a virtual machine, he can not be excluded to do the same.

So You can discuss endless arround this matter. But my points stands.

It is a commercial disadvantage if You are excluded to make those changes, but You can with other opensource software. Of course, You
can force them to do the same as You have decided in Your policies. But this can be very easy made undone by changing the source and compiling the package by Your own.

And secondly, as said, a virtual machine does need, to 'emulate' as best as possible a real machine. So the user should and could choose,
which NIC he wants to emulate, including it's MAC address.

And if that's a violation, well, this is the responsibility of the user.
You can mention it in the EULA of Your software.

But I agree on this, those changes should and could only be done in the system-wide section,
so only a superuser can change them to protect an internal network from inside attacks.
The same superuser can decide to block communication to the public networks by firewall rules,
if he feels it is a violation of the RFC. I repeat, IF this is the case (which is NOT, in case of running routing software in a VM, etc).
Reply Re: Old PITA - Change the MAC adress in VMware Workstation 6.5 ?! Dec 23, 2008 12:39 PM
in response to: jameslin
Click to view JurgenD's profile Novice JurgenD 8 posts since
Dec 7, 2008
yes, indeed. This behaviour seems to be changed at VMware Workstation 6.5
I could spoof the mac adress by modification of the vmx configuration file of the virtual machine,
and beyond the old limit of 00:50 etc.

I removed:


ethernet0.addressType = "generated"
ethernet0.generatedAddress = "00:0c:29:8d:b5:f5"
ethernet0.generatedAddressOffset = "0"


And appended:


ethernet0.addressType = "static"
ethernet0.address = "00:14:4F:28:5E:01"
ethernet0.noForgedSrcAddr = "FALSE"
ethernet0.checkMACAddress = "FALSE"
ethernet0.downWhenAddrMismatch = "FALSE"
ethernet0.noPromisc = "FALSE"

Et voila ! This works finally. Perfect. Thanks.

Actions