Showing posts with label Windows Server. Show all posts
Showing posts with label Windows Server. Show all posts

Tuesday, October 6, 2015

Vmware. Windows 2008-2012. На виртуалке появляется лишний дуплицирующий IP адрес

​На виртуалке с Windows 2008, 2012 после настройки статического IP адреса может появится лишний дуплицирующий IP адрес вида 169.254.x.x.
Решение из статьи VMwareKB 1028373 False duplicate IP address detected on Microsoft Windows Vista and later virtual machines on ESX/ESXi when using Cisco devices on the environment (1028373)
  • Выключить виртуалку.
  • Перенастроить сетевой адаптер на vSwitch без рабочего аплинка.
  • Включить виртуалку и залогиниться на нее.
  • Зайти в реестр и задать значение параметра ArpRetryCount = 0 в ветке реестра
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
  • Выключить виртуалку.
  • Перенастроить сеть на vSwitch с рабочим аплинком.
  • Включить виртуалку.
Альтернативное решение - отключить gratuitous ARP на коммутаторах Cisco:
# no ip gratuitous-arps

Vmware. Эталонный образ сервера Windows Server

​
  1. Create virtual machine
    • 4 CPU cores (default)
    • 4 GB RAM (default)
    • 40GB HDD SCSI (0;0) Thin Provision
    • SCSI controller LSI Logic SAS. For VM with high IO load use VMware Paravirtualization (VM PVSCSI)
    • Virtual Machine version 8 (default)
    • use VMXNET3 network adapter
    • Use EFI boot firmware
  2. Install Windows Server 2012
  3. Windows settings
    • install VMware Tools
    • open Control Panel
      • check Date and Time settings
      • check Language Settings (ENG - UKR - RUS)
      • Power Options
        • set High Performance
        • set Turn off the display - Never
      • Region settings
        • check settings
        • Advanced - Copy Settings... - copy settings to welcome screen and New  user account
      • System - Change settings
        • Allow remote connections to this computer
        • set computer name
        • temporary join to Active Directory domain for Windows Update. After updating Windows - remove server form Active Directory
        • Advanced - Startup and Recovery settings - use Small memory dump
    • open cmd with Admin rights and run (it disables hibernation): powercfg -h off
    • select disk C: properties - uncheck Allow files on this drive to have contents indexed in addition to file properties - Apply to C:\ only
    • enable File and Printer Sharing in Windows Firewall for Domain network
    • after installing all Windows Updates
      • cleanup system
        to analyze system run
        dism /Online /Cleanup-Image /AnalyzeComponentStore

        to cleanup system run
        dism /Online /Cleanup-Image /StartComponentCleanup
    • after cleanup system
      • disable swap file and reboot
      • defragment system disk C:
      • enable swap file and reboot
  4. В конце можно финализировать образ
    sysprep /generalize /oobe /shutdown

http://blog.solori.net/2010/09/30/in-the-lab-windows-server-2008-r2-template-for-vmware/
http://www.mikes.eu/index.php/how-to/284-how-to-build-a-windows-2008-r2-vmware-template-2.html
http://willcode4foodblog.wordpress.com/2013/03/22/creating-a-server-2012-golden-image-with-sysprep-and-vmware-workstation-part-2-of-2/