1. Ismerkedés a Hyper-V-vel, virtuális gépek telepítése és konfigurálása 1.1. Új virtuális gép és a Windows Server 2012 R2 Datacenter alap lemez létrehozása 1.2. A differenciális lemezek és a két új virtuális gép létrehozása a szerverekhez 1.3. A két szerver alap konfigurálása (név, tűzfal, hálózat) 1.4. Új virtuális gép létrehozása és a Windows Server 2012 R2 Core telepítése 1.5. Új virtuális gép és Windows 10 alap lemez létrehozása 1.6. A differenciális lemezek és a két új virtuális gép létrehozása a kliensekhez 1.7. A két kliens alap konfigurálása (név, tűzfal, hálózat) Előfeltételek Ehhez a gyakorlathoz a Windows Server 2012 R2 és a Windows 10 telepítő fájlokon (.iso) kívül szükség lesz egy virtuális hálózatra, aminek segítségével a virtuális gépeinket összekötjük: 20410_Lab, típus: Internal. 1.1. Új virtuális gép és a Windows Server 2012 R2 Standard alap lemez létrehozása Új virtuális gép létrehozása 1.1.1. Start -> Administrative Tools -> Hyper-V manager 1.1.2. Action menű -> New -> Virtual Machine... 1.1.3. Specify Name and Location: Name: W2012_base Location: \VPC\ 1.1.4. Generation: 2. generation 1.1.5. Assign Memory: 1024MB, ne használjunk dinamikus memóriát, 1.1.6. Configure Networking: 20410_Lab, 1.1.7. Connect Virtual Hard Disk: Create a virtual hard disk: Name: w2012_base_disk Location: \VPC\ Size: 100GB 1.1.8. Installation Options: Install an operating system from a boot CD/DVD-ROM Image file (.iso): \install\en_windows_server_2012_r2_x64.iso 1.1.9. Completing the New Virtual Machine Wizard: Finish 1.1.10. Indítsuk el a virtuális gépet: Válasszuk ki a Hyper-V Manager-ben az imént létrehozott virtuális gépet -> jobb gomb -> Start Válasszuk ki a Hyper-V Manager-ben az imént létrehozott virtuális gépet -> jobb gomb -> Connect 1
A windows telepítése 1.1.11. Install Windows: Language: English Time and currency format: Hungarian (Hungary) Keyboard or input method: Hungarian 1.1.12. Install now 1.1.13. Select the operating system you want to install Windows Server 2012 R2 Datacenter (Server with GUI) 1.1.14. I accept the license terms, 1.1.15. Which type of installation do you want? Custom: Install Windows only (advanced) 1.1.16. Where do you want to install Windows? Drive 0 Unallocated Space 100.0GB 1.1.17. A telepítés során a virtuális gép többször újra fog indulni. (telepítési idő: kb. 3perc (SSD esetén)) 1.1.18. Ha végzett a telepítő, akkor a jelszó módosító üzenet fogad minket. 1.1.19. Type a pasword for the built-in administrator account that you can use to dign into this computer. User name: Administrator Password: Password1 Reenter password: Password1 Finish 1.1.20. Ctrl+Alt+Del Password1 1.1.21. Server Manager: Manage -> Server Manager properties: Do not show me this console at logon -> És zárjuk be ezt az ablakot. 1.1.22. Nyissunk egy parancssort és futtassuk az alábbi parancsot: C:\Windows\System32\Sysprep\sysprep.exe /generalize /oobe /shutdown 1.1.23. A Hyper-V Manager-ben válasszuk ki a virtuális gépet majd jobb gomb -> Delete 1.2. A differenciális lemezek és a két új virtuális gép létrehozása a szerverekhez Differenciális lemezek létrehozása 1.2.1. Hyper-V Manager -> Action -> New -> Hard Disk... 1.2.2. Chose Disk Format: VHDX, 1.2.3. Choose Disk Type: Differencing, 1.2.4. Specify Name and Location: Name: DC01 Location: \VPC\DC01\ 1.2.5. Configure Disk: Location: \VPC\W2012_base_disk.vhdx, 1.2.6. Completing the New Virtual Hard Disk Wizard: Finish 1.2.7. Hyper-V Manager -> Action -> New -> Hard Disk... 1.2.8. Chose Disk Format: VHDX, 1.2.9. Choose Disk Type: Differencing 1.2.10. Specify Name and Location: 2
Name: SRV01 Location: \VPC\SRV01\ 1.2.11. Configure Disk: Location: \VPC\W2012_base_disk.vhdx, 1.2.12. Completing the New Virtual Hard Disk Wizard: Finish A két szerver létrehozása 1.2.13. Action menű -> New -> Virtual Machine... 1.2.14. Specify Name and Location: Name: DC01 Location: \VPC\DC01 1.2.15. Generation: 2. generation 1.2.16. Assign Memory: 1024MB, ne használjunk dinamikus memóriát, 1.2.17. Configure Networking: 20410_Lab, 1.2.18. Connect Virtual Hard Disk: Use an existing hard disk Name: dc01.vhdx Location: \VPC\dc01\dc01.vhdx 1.2.19. Completing the New Virtual Machine Wizard: Finish 1.2.20. Action menű -> New -> Virtual Machine... 1.2.21. Specify Name and Location: Name: SRV01 Location: \VPC\SRV01 1.2.22. Generation: 2. generation 1.2.23. Assign Memory: 1024MB, ne használjunk dinamikus memóriát, 1.2.24. Configure Networking: 20410_Lab, 1.2.25. Connect Virtual Hard Disk: Use an existing hard disk Name: srv01.vhdx Location: \VPC\srv01\srv01.vhdx 1.2.26. Completing the New Virtual Machine Wizard: Finish 1.3. A két szerver alap konfigurálása (név, tűzfal, hálózat) A két szerver elindítása 1.3.1. Indítsuk el a DC01-et Válasszuk ki a Hyper-V Manager-ben a DC01-et -> jobb gomb -> Start Válasszuk ki a Hyper-V Manager-ben a DC01-et -> jobb gomb -> Connect 1.3.2. Indítsuk el a SRV01-et Válasszuk ki a Hyper-V Manager-ben a SRV01-et -> jobb gomb -> Start Válasszuk ki a Hyper-V Manager-ben a SRV01-et -> jobb gomb -> Connect 3
A DC01 szerver alap konfigurálása 1.3.3. Jelentkezzünk be a DC01 gépre Felhasználó: Adminsitrator Jelszó: Password1 1.3.4. Start -> Control Panel -> View by: Small icons -> Network and Sharing Center -> Change adapter settings 1.3.5. Ethernet 2 -> jobb gomb: Properties -> vegyük ki a pipát az IPv6-nál 1.3.6. Válasszuk ki az Internet Protocol Version 4-et -> Properties Use the following IP address IP address: IP address: 10.1.1.1 Subnet mask: 255.0.0.0 Preferred DNS server: 10.1.1.1 -> Close 1.3.7. Start -> Control Panel -> View by: Small icons -> Windows Firewall -> Turn Windows firewall on or off Private network settings: Turn off Windows firewall (not recommended) Public network settings: Turn off Windows firewall (not recommended) 1.3.8. Start -> Control Panel -> View by: Small icons -> System -> Change settings 1.3.9. System Properties: Change... 1.3.10. Computer Name/Domain Changes: Computer name: DC01 1.3.11. Restart: 1.3.12. System Properties: Close 1.3.13. Restart now Az SRV01 szerver alap konfigurálása 1.3.14. Jelentkezzünk be az SRV01 gépre Felhasználó: Adminsitrator Jelszó: Password1 1.3.15. Start -> Control Panel -> View by: Small icons -> Network and Sharing Center -> Change adapter settings 1.3.16. Ethernet 2 -> jobb gomb: Properties -> vegyük ki a pipát az IPv6-nál 1.3.17. Válasszuk ki az Internet Protocol Version 4-et -> Properties Use the following IP address IP address: IP address: 10.1.1.2 Subnet mask: 255.0.0.0 Preferred DNS server: 10.1.1.1 -> Close 1.3.18. Start -> Control Panel -> View by: Small icons -> Windows Firewall -> Turn Windows firewall on or off Private network settings: Turn off Windows firewall (not recommended) Public network settings: Turn off Windows firewall (not recommended) 1.3.19. Start -> Control Panel -> View by: Small icons -> System -> Change settings 1.3.20. System Properties: Change... 1.3.21. Computer Name/Domain Changes: Computer name: SRV01 1.3.22. Restart: 1.3.23. System Properties: Close 1.3.24. Restart now 4
Megjegyzés: A tartományt csak azután tudjuk megadni, miután a DC01-en a tartományvezérlő szerepkört telepítettük. Lásd 2. Gyakorlat 1.3.25. Ha mind a két gép újra indult, mentsük el őket: Válasszuk ki a Hyper-V Manager-ben a DC01-et -> jobb gomb -> Save Válasszuk ki a Hyper-V Manager-ben a SRV01-et -> jobb gomb -> Save 1.4. Új virtuális gép létrehozása és a Windows Server 2012 R2 Core telepítése Új virtuális gép létrehozása a Core változathoz 1.4.1. Start -> Administrative Tools -> Hyper-V manager 1.4.2. Action menű -> New -> Virtual Machine... 1.4.3. Specify Name and Location: Name: Core01 Location: \VPC\core01 1.4.4. Generation: 2. generation 1.4.5. Assign Memory: 1024MB, ne használjunk dinamikus memóriát, 1.4.6. Configure Networking: 20410_Lab, 1.4.7. Connect Virtual Hard Disk Create a virtual hard disk: Name: Core01.vhdx Location: \VPC\ Size: 50GB 1.4.8. Installation Options: Install an operating system from a boot CD/DVD-ROM Image file (.iso): \install\en_windows_server_2012_r2_x64.iso 1.4.9. Completing the New Virtual Machine Wizard: Finish 1.4.10. Indítsuk el az imént létrehozott virtuális gépet: Válasszuk ki a Hyper-V Manager-ben a Core01-et -> jobb gomb -> Start Válasszuk ki a Hyper-V Manager-ben a Core01-et -> jobb gomb -> Connect A Core változat telepítése 1.4.11. Install Windows Language: English Time and currency format: Hungarian (Hungary) Keyboard or input method: Hungarian 1.4.12. Install now 1.4.13. Select the operating system you want to install Windows Server 2012 R2 Datacenter (Server Core Installation) 1.4.14. I accept the license terms, 1.4.15. Which type of installation do you want? 5
Custom: Install Windows only (advanced) 1.4.16. Where do you want to install Windows? Drive 0 Unallocated Space 50.0GB 1.4.17. A telepítés során a virtuális gép többször újra fog indulni. (telepítési idő kb. 3perc (SSD esetén)) 1.4.18. Ha végzett a telepítő, akkor a jelszó módosító üzenet fogad minket. 1.4.19. The user s password must be changed before signing in. 1.4.20. New password: Password1 Confirm password: Password1 Enter 1.4.21. Your password has been changed. 1.4.22. Ha a parancssor megjelent, ezt a gépet is mentsük el: Válasszuk ki a Hyper-V Manager-ben a Core01-et -> jobb gomb -> Save 1.5. Új virtuális gép és a Windows 10 alap lemez létrehozása Új virtuális gép létrehozása a kliens gépek alap lemezéhez 1.5.1. Start -> Administrative Tools -> Hyper-V manager 1.5.2. Action menű -> New -> Virtual Machine... 1.5.3. Specify Name and Location: Name: W10_base Location: \VPC\w10 1.5.4. Generation: 2. generation 1.5.5. Assign Memory: 1024MB, ne használjunk dinamikus memóriát 1.5.6. Configure Networking: 20410_Lab, 1.5.7. Connect Virtual Hard Disk Create a virtual hard disk: Name: w10_base_disk Location: \VPC\w10 Size: 50GB 1.5.8. Installation Options: Install an operating system from a boot CD/DVD-ROM Image file (.iso): \install\en_windows_7_ultimate_x86_dvd_x15-65921.iso 1.5.9. Completing the New Virtual Machine Wizard: Finish 1.5.10. Válasszuk ki a Hyper-V Manager-ben az imént létrehozott virtuális gépet -> jobb gomb -> Start 1.5.11. Válasszuk ki a Hyper-V Manager-ben az imént létrehozott virtuális gépet -> jobb gomb -> Connect 6
A Windows 10 telepítése 1.5.12. Install Windows: Language: English Time and currency format: Hungarian (Hungary) Keyboard or input method: Hungarian 1.5.13. Install now 1.5.14. Select operating system: Windows 10 Pro, 1.5.15. I accept the license terms, 1.5.16. Which type of installation do you want? Custom (advanced) 1.5.17. Where do you want to install Windows? Drive 0 Unallocated Space 50.0GB 1.5.18. A telepítés során a virtuális gép többször újra fog indulni. (telepítési idő kb. 3perc (SSD esetén)) 1.5.19. Ha végzett a telepítő, akkor kérheti a termékkulcsot, halasszuk későbbre. 1.5.20. Következő lépésben a felhasználónevet, jelszót és gépnevet kell megadnunk, ez tetszőleges lehet és később is módosíthatjuk. 1.5.21. User name: admin Password: Password1 1.5.22. Nyissunk egy parancssort és futtassuk az alábbi parancsot: C:\Windows\System32\Sysprep\sysprep.exe /generalize /oobe /shutdown 1.5.23. A Hyper-V Manager-ben válasszuk ki a virtuális gépet majd jobb gomb -> Delete -> Delete 1.6. A differenciális lemezek és a két új virtuális gép létrehozása a kliensekhez A differenciális lemezek létrehozása 1.6.1. Hyper-V Manager -> Action -> New -> Hard Disk... 1.6.2. Chose Disk Format: VHDX, 1.6.3. Choose Disk Type: Differencing, 1.6.4. Specify Name and Location: Name: Client01 Location: \VPC\Client01\ 1.6.5. Configure Disk: Location: \VPC\W10_base_disk.vhdx, 1.6.6. Completing the New Virtual Hard Disk Wizard: Finish 1.6.7. Hyper-V Manager -> Action -> New -> Hard Disk... 1.6.8. Chose Disk Format: VHDX, 1.6.9. Choose Disk Type: Differencing, 1.6.10. Specify Name and Location: Name: Client01 Location: \VPC\Client02\ 1.6.11. Configure Disk: Location: \VPC\W10_base_disk.vhdx, 1.6.12. Completing the New Virtual Hard Disk Wizard: Finish 7
A virtuális gépek létrehozása a kliensekhez 1.6.13. Action menű -> New -> Virtual Machine... 1.6.14. Specify Name and Location: Name: Client01 Location: \VPC\DC01 1.6.15. Generation: 2. generation 1.6.16. Assign Memory: 1024MB, ne használjunk dinamikus memóriát, 1.6.17. Configure Networking: 20410_Lab, 1.6.18. Connect Virtual Hard Disk: Use an existing hard disk Name: Client01.vhdx Location: \VPC\Client01\ Client01.vhdx 1.6.19. Completing the New Virtual Machine Wizard: Finish 1.6.20. Action menű -> New -> Virtual Machine... 1.6.21. Specify Name and Location: Name: Client02 Location: \VPC\DC01 1.6.22. Generation: 2. generation 1.6.23. Assign Memory: 1024MB, ne használjunk dinamikus memóriát, 1.6.24. Configure Networking: 20410_Lab, 1.6.25. Connect Virtual Hard Disk: Use an existing hard disk Name: Client02.vhdx Location: \VPC\Client02\ Client01.vhdx 1.6.26. Completing the New Virtual Machine Wizard: Finish 1.7. A két kliens alap konfigurálása (név, tűzfal, hálózat) Az első kliens konfigurálása 1.7.1. Indítsuk el a Client01-et: Válasszuk ki a Hyper-V Manager-ben a Client01-et -> jobb gomb -> Start Válasszuk ki a Hyper-V Manager-ben a Client01-et -> jobb gomb -> Connect 1.7.2. Jelentkezzünk be a Client01 gépre Felhasználó: Adminsitrator Jelszó: Password1 1.7.3. Start -> Control Panel -> View by: Small icons -> Network and Sharing Center -> Change adapter settings 1.7.4. Ethernet 2 -> jobb gomb: Properties -> vegyük ki a pipát az IPv6-nál 1.7.5. Válasszuk ki az Internet Protocol Version 4-et -> Properties Use the following IP address IP address: 10.1.1.4 Subnet mask: 255.0.0.0 8
Preferred DNS server: 10.1.1.1 -> Close 1.7.6. Start -> Control Panel -> View by: Small icons -> Windows Firewall -> Turn Windows firewall on or off Private network settings: Turn off Windows firewall (not recommended) Public network settings: Turn off Windows firewall (not recommended) 1.7.7. Start -> Control Panel -> View by: Small icons -> System -> Change settings 1.7.8. System Properties: Change... 1.7.9. Computer Name/Domain Changes: Computer name: Client01 1.7.10. Restart: 1.7.11. System Properties: Close 1.7.12. Restart now A második kliens konfigurálása 1.7.13. Indítsuk el a Client02-et: Válasszuk ki a Hyper-V Manager-ben a Client02-et -> jobb gomb -> Start Válasszuk ki a Hyper-V Manager-ben a Client02-et -> jobb gomb -> Connect 1.7.14. Jelentkezzünk be a Client02 gépre Felhasználó: Adminsitrator Jelszó: Password1 1.7.15. Start -> Control Panel -> View by: Small icons -> Network and Sharing Center -> Change adapter settings 1.7.16. Ethernet 2 -> jobb gomb: Properties -> vegyük ki a pipát az IPv6-nál 1.7.17. Válasszuk ki az Internet Protocol Version 4-et -> Properties Use the following IP address IP address: 10.1.1.5 Subnet mask: 255.0.0.0 Preferred DNS server: 10.1.1.1 -> Close 1.7.18. Start -> Control Panel -> View by: Small icons -> Windows Firewall -> Turn Windows firewall on or off Private network settings: Turn off Windows firewall (not recommended) Public network settings: Turn off Windows firewall (not recommended) 1.7.19. Start -> Control Panel -> View by: Small icons -> System -> Change settings 1.7.20. System Properties: Change... 1.7.21. Computer Name/Domain Changes: Computer name: Client02 1.7.22. Restart: 1.7.23. System Properties: Close 1.7.24. Restart now 9
Virtuális gépeink A gyakorlat végére az alábbi virtuális gépekkel kell rendelkeznie mindenkinek: Server neve IP címe Mask DNS IPv6 Windows Firewall DC01 10.1.1.1 255.0.0.0 10.10.1.1 off off SRV01 10.1.1.2 255.0.0.0 10.10.1.1 off off Core01 10.1.1.3 255.0.0.0 10.10.1.1 off off Client01 10.1.1.4 255.0.0.0 10.10.1.1 off off Client02 10.1.1.5 255.0.0.0 10.10.1.1 off off 10