i see that you solved your problem, so i'm not attempting to assist, just offering
some additional info for the community.
we also had a need for identifying VMware systems, primarily for auto-installing VMware
tools. however, using the MAC address was not an option for us as we can and will change
MAC addresses on our systems, physical and virtual alike. i opted to use `dmidecode` to
check the "Manufacturer" which is something like "VMware, Inc." on
VMware VMs. however, there are many other ways to determine if a system is a VMware. for
instance `lspci` will report the VGA adapter as "VMware SVGA II Adapter" on VMs
as well.
we do our VMware detection outside of cobbler in rc.local so that we can catch VMs and
install the tools on first boot. i'm sure there are other ways of accomplishing the
same goal, but rc.local seemed appropriate at the time. i can provide an example of this
if anyone is interested.
just FYI
byron
-----Original Message-----
From: cobbler-bounces(a)lists.fedorahosted.org
[mailto:cobbler-bounces@lists.fedorahosted.org] On Behalf Of Luc de Louw
Sent: Tuesday, February 23, 2010 9:59 AM
To: cobbler(a)lists.fedorahosted.org
Subject: How to find out the MAC address of a system
Dear all,
I tried the VMWare detection snipped at
https://fedorahosted.org/cobbler/wiki/KickstartSnippets and it fails, no MAC address
found.
$system.interfaces['eth0']['mac_address'] does not show anything.
cobbler system dumpvars --name=blah shows the mac_address as expected.
Used cobbler version: 2.0.3
Any hints?
Thanks,
Luc
_______________________________________________
cobbler mailing list
cobbler(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler