Appendix C : R2 Server Core VM Configuration

Virtual Machine Configuration

  1. Name the machine in Hyper-V: Server 2008 R2 Core
  2. Store the machine anywhere on the host
  3. Allocate at least 512 MB of RAM
  4. Make sure the VM is connected to the Private network

General Setup

  1. Start the Windows Server 2008 R2 Installer by booting from the ISO
  2. Install the Enterprise version of Windows Server 2008 Server Core
  3. When the machine reboots set the Administrator password to p@ssw0rd
  4. Once the command prompt for administrator is shown, carry out the following steps:
  5. Rename the computer:

    netdom renamecomputer %COMPUTERNAME% /NewName:Server2008R2

  6. You will need to reboot afterwards:

    shutdown -f -r -t 0

  7. When the machine reboots, log in and at the command prompt verify that the name change did take place by typing:

    echo %COMPUTERNAME%

  8. Change the IP address of the server by typing the following command:

    netsh interface ipv4 set address name="Local Area Connection" static 10.0.0.1 255.255.255.0 10.0.0.1

  9. Enable RDP support as follows:

    cscript \windows\system32\scregedit.wsf /ar 0
  10. Add the student1 user:

    Net user student1 p@ssw0rd /add net localgroup “Administrators” student1 /add logoff <optional>

  11. To set a static IP address

    netsh interface ipv4 show interfaces <make a note of the ‘idx’ column number. Use it in the ID field below.> netsh interface ipv4 set address name="<ID>" source=static address=<StaticIP> mask=<SubnetMask> gateway=<DefaultGateway>

  12. Allow Remote Administration

    netsh advfirewall firewall set rule group="Remote Administration" new enable=yes
  13. Share a drive:

    net share “Drive_C”=c:\ /Grant:student1,Full