Рубрики
esx*

Смена MAC адреса сетевушки в ВМ на VMware ESXi

Действия:

На попытки сменить вручную, выдает следующее: The MAC Address entered is not in the valid range…
0. Останавливаем ВМ 
1. в настройках включаем использование статического MAC адреса (при изменении ВМ стартовать не будет)
2. скачиваем файл  имя_ВМ.vmx с нашего хоста.
3. На хосте файл имя_ВМ.vmx переименовываем например ИМЯ_ВМ.vmx.z
4. редактируем скаченный файл имя_ВМ.vmx
проверить строку ethernet0.addressType
должно быть ethernet0.addressType = "static"
добавить  ethernet0.checkMACAddress = "false"
в самый конец файла добавить ethernet0.Address = "00:0c:29:f0:ce:31"
5. скачиваем  на хост в папку с ВМ и запускаем ВМ

Пример конфига имя_ВМ.vmx

.encoding = "UTF-8"
config.version = "8"
virtualHW.version = "8"
nvram = "windows7 testing.nvram"
pciBridge0.present = "TRUE"
svga.present = "TRUE"
pciBridge4.present = "TRUE"
pciBridge4.virtualDev = "pcieRootPort"
pciBridge4.functions = "8"
pciBridge5.present = "TRUE"
pciBridge5.virtualDev = "pcieRootPort"
pciBridge5.functions = "8"
pciBridge6.present = "TRUE"
pciBridge6.virtualDev = "pcieRootPort"
pciBridge6.functions = "8"
pciBridge7.present = "TRUE"
pciBridge7.virtualDev = "pcieRootPort"
pciBridge7.functions = "8"
vmci0.present = "TRUE"
hpet0.present = "TRUE"
displayName = "windows7 testing"
extendedConfigFile = "windows7 testing.vmxf"
virtualHW.productCompatibility = "hosted"
numvcpus = "4"
cpuid.coresPerSocket = "4"
memSize = "2048"
scsi0.virtualDev = "lsisas1068"
scsi0.present = "TRUE"
ide1:0.startConnected = "FALSE"
ide1:0.deviceType = "cdrom-raw"
ide1:0.clientDevice = "TRUE"
ide1:0.fileName = "emptyBackingString"
ide1:0.present = "TRUE"
ethernet0.virtualDev = "e1000"
ethernet0.networkName = "VM Network"
ethernet0.addressType = "static"
ethernet0.present = "TRUE"
ethernet0.checkMACAddress = "false"
scsi0:0.deviceType = "scsi-hardDisk"
scsi0:0.fileName = "windows7 testing.vmdk"
scsi0:0.present = "TRUE"
guestOS = "windows7-64"
toolScripts.afterPowerOn = "TRUE"
toolScripts.afterResume = "TRUE"
toolScripts.beforeSuspend = "TRUE"
toolScripts.beforePowerOff = "TRUE"
uuid.bios = "56 4d 84 9b 02 42 de b3-a2 f6 fb d9 3b 70 a9 35"
uuid.location = "56 4d 84 9b 02 42 de b3-a2 f6 fb d9 3b 70 a9 35"
vc.uuid = "52 c3 14 d0 b4 3c f1 70-12 66 3d ac a3 cb aa c0"
sched.swap.derivedName = "/vmfs/volumes/546baa89-c8ec4331-609f-00259076018e/windows7 testing/windows7 testing-6edbbdb1.vswp"
replay.supported = "FALSE"
replay.filename = ""
scsi0:0.redo = ""
pciBridge0.pciSlotNumber = "17"
pciBridge4.pciSlotNumber = "21"
pciBridge5.pciSlotNumber = "22"
pciBridge6.pciSlotNumber = "23"
pciBridge7.pciSlotNumber = "24"
scsi0.pciSlotNumber = "160"
ethernet0.pciSlotNumber = "32"
vmci0.pciSlotNumber = "33"
scsi0.sasWWID = "50 05 05 6b 02 42 de b0"
floppy0.present = "FALSE"
ethernet0.address = "00:0C:29:F0:CE:30"