esSJae's Virtualization Blog

Virtualization and other IT topics

Posts Tagged ‘Windows Server 2012’

Setting up an All-In-One Windows AD Test Environment (VirtualBox Edition)

Posted by essjae on January 17, 2019

Build a basic all-in-one lab in VirtualBox. This how-to shows you how to build a virtual Windows Active Directory environment isolated from your home or work network.  See my follow-up post using VMware Workstation here: https://smudj.wordpress.com/2019/01/23/setting-up-an-all-in-one-windows-ad-test-environment-vmware-workstation-edition/

Note: I’m no AD expert, there are better, worse, and different ways to do this and you’re not required to use VirtualBox.

Requirements:
16GB RAM minimum
SSD or multiple HDDs
Quad-core or better CPU with hardware virtualization enabled

 

  1. Download the necessary software. Download the ISOs for the OSes you’ll be installing. For this example, I’ll be using IPFire and MSDN versions of Windows Server 2012R2 and Windows 10 Pro.
    1. VirtualBox: https://www.virtualbox.org/wiki/Downloads
    2. Windows OS Evaluation: https://www.microsoft.com/en-us/evalcenter/
    3. IPFire: https://www.ipfire.org/download/ipfire-2.21-core124
  2. Create your IPFire router VM
    1. Click New, enter the name of your router, ie “IPFire”
    2. Change the OS to Linux, Ubuntu 64bit is fine as the version. Click Next.
    3. Enter 512MB for memory. Click Next.
    4. Click Create for a new virtual HDD and select VDI. Click Next.
    5. Select Dynamically allocated and click Next.
    6. Change the location here if necessary. The 10GB default is large enough, click Create.
    7. Once created, click Settings and then click Network. We need to modify the networking options.
      1. Adapter 1 should be set to NAT or Bridged.
      2. Adapter 2 needs to be enabled and set to Internal Network. **Make note of the MAC address for adapter 2. You can find it by expanding the Advanced tab.** 
      3. Click OK.

 

  1. Mount the IPFire ISO and install
    1. Click Settings on the IPFire VM. Click Storage.
    2. Click “Empty” next to the CD icon. Click the CD icon next to the far right to mount the ISO.
    3. Select “choose a virtual optical disk file” and browse to the ISO’s location.
    4. Select to mount. Click Ok to close the window.
    5. Power on the VM.
    6. Follow the IPFire prompts. Press enter to select, tab to move between selections, and the space bar to select check boxes.
    7. All defaults can be used.
  2. Configure IPFire
    1. Select the keyboard mapping. I’m using “us.” Press Enter to accept.
    2. Set your timezone. By pressing the first letter of your timezone, you can jump to that section. Select the correct timezone via the arrow keys and press Enter to accept.
    3. Enter a host name, the default is fine for our lab. Press Enter twice.
    4. The default domain is fine for our lab, press Enter twice to continue.
    5. Enter the root password and press Enter each time and once more to continue.
    6. Do the same for the admin password. Password can be the same for both for our lab purposes.–Network Configuration–
      1. Press Enter for “network configuration type”
      2. Select “Green + Red” and press Enter
      3. Arrow down to “drivers and card assignments.” and press Enter.
      4. Green: This is our internal network. Press Enter to select. Compare the MAC and select the correct interface. Press Enter to select the Interface.
      5. Red: This is our internet facing network, NAT or Bridged. Select RED, press Enter, and press Enter again to select the remaining interface.
      6. Tab over to done and press Enter.–Address Settings–
        Press Enter to select.
        GREEN:
        1. Select GREEN and press Enter.
        2. This is a new private, virtual network for our lab. Select a different IP subnet than your host network to avoid confusion.
        3. The IP warning can be ignored as we are not logged in remotely. In this example, the subnet is 192.168.211.1/24. Since this will be the gateway, we can use 192.168.211.1. The subnet mask does not need to change.
        4. Press Enter until you return to the GREEN/RED menu.
        RED:
        1. Select RED and press Enter.
        2. Select DHCP. This interface will get the IP from the VBox NAT or your physical network’s DHCP server. You can modify the hostname here if necessary.
        3. Tab to Done and press Enter.
        –DNS and Gateway settings–
        1. DNS and Gateway settings are only needed if using a static IP. Since we are using DHCP, there is nothing to change here.¬†Tab to Done and press Enter.–DHCP Configuration–
        We will be using Windows DHCP instead of IPFire’s. Tab to OK and press enter without enabling DHCP. Press Enter to close setup.
  3. Create Windows Server 2012 R2 VM
    1. From the VBox main men, click New.
    2. Enter a name, ex: “WS2012R2”, select the appropriate type (Windows 2012) and version (64-bit). Click Next.
    3. Set RAM to 4096MB. If you have more than 16GB of RAM, you can increase to 6 or 8GB, if needed. Click Next.
    4. Create a new virtual hard disk, click Create.
    5. Select VDI and click Next.
    6. Select Dynamically allocated, and click Next.
    7. Enter 80GB and click Create.
    8. Click Settings, then click Network.
    9. Select Internal Network.
    10. Select Storage. Click the CD under storage devices, then click the CD icon to the left of Optical Drive.
    11. Select Choose virtual optical disk file. Browse and select your Windows Server ISO.
    12. Click OK.
  4. Install Windows Server 2012
    1. Install Windows as you normally would.
  5. Configure Windows Server and Domain
    1. Enter the IP information. The IP needs to be on the same subnet as configured for the GREEN network. EX: 192.168.211.200, GW: 192.168.211.1, DNS: 127.0.0.1 since we’ll be creating a domain controller with DNS and DHCP services.
    2. You should be able to ping an IP address, but not a DNS name.
    3. Change the name of your server and reboot.Start the Add Roles and Feature Wizard
      1. Add the following roles:
      –Active Directory Domain Services
      –DHCP Services
      –DNS Services
      2. Follow the wizard’s steps.
      3. Promote: Add a new forest.
      4. Enter your domain name and follow the wizard.¬†¬†–you will get a warning about DNS, this will be resolved later.
  6. Configure DNS and DHCP

DNS.  We need to add a forwarder for our DNS settings.

1. From Administrative Tools, open DNS
2. Right-click on your server and click Properties.
3. Click the Forwarders tab
4. Click Edit, and add your external DNS servers like 4.2.2.1, 4.2.2.2, 8.8.8.8, and 8.8.4.4.

DHCP
1. Double-click DHCP from Administrative Tools
2. Expand IPv4 and right-click, click New Scope from the menu.
3. Enter an IP range, ex: 192.168.211.50 to 192.168.211.100
4. The remaining settings can be default for now.
5. When asked to configure scop options, verify “Yes” and click Next.
6. Router/Default gateway will be the IP we used to configure the GREEN NIC, ex: 192.168.211.1
7. Domain name and DNS should be pre-configured. You should see the server’s IP in IP address box, ex: 192.168.211.200
8. WINS does not need to be configured at this time.
9.When prompted to activate scope, verify “Yes” and click Next.
10. Click Finish to complete the wizard.

Right-click on the server’s name under DHCP, and click Authorize from the menu. Refresh and IPv4 should have a green circle with a white check mark.

9. Managing IPFire via web interface

You can access IPFire’s management console via a web browser.
Enter https://ipfire_ip-address:444, ex: https://192.168.211.1:444
Use “admin” and the password entered during step 4.

Note: You will get a certificate error when accessing the IPFire management page.

9. Adding Client VMs.

Nothing special here.¬† Install Windows/Linux as usual.¬† Make sure to select Internal Network for the VM’s network

10. Completion!

Here’s the money shot:
-VirtualBox
-IPFire VM
-WS2012R2 VM – domain controller for sw.net, DHCP and DNS roles
-Win10 VM – joined to sw.net, displaying IPFire’s web management page and network settings.

Advertisements

Posted in Computers, Networking, VirtualBox, Virtualization, VM OS Install, W2012, Windows 10, Windows 2012, Windows 2012 r2 | Tagged: , , , , , , | Leave a Comment »

Switching from Public to Private network via PowerShell

Posted by essjae on February 11, 2016

Here’s a quick way to get rid of the “public” network on Windows and switch it to a more usable private network type.

    1. Open a PowerShell Window.
    2. Get the list of network profiles on the system. ¬†Note the InterfaceIndex number listed, you’ll need it for the final step.
      Get-NetConnectionProfile
    3. Change the network interface to private, use the network interface index number from the previous command.
Set-NetConnectionProfile -InterfaceIndex xx -NetworkCategory Private

Posted in Networking, Windows 2012 | Tagged: , , , | Leave a Comment »

Configuring/Removing Password Policies in Windows Server 2012 for Lab/Demo environments

Posted by essjae on June 24, 2015

The default password policies are pretty strict for a lab or demo environment. ¬†If you’re not in a domain, it’s easy to modify these settings from the Local Security Policies:

  1. Run gpedit.msc
  2. Under Computer Configuration–>Windows Settings–>Security Settings–>Account Policies–Password Policy
    1. Change the Policy Security Settings you want.

Under a domain controller, you can do this via the Active Directory Administrative Center

  1. Run dsac.exe, or via the GUI it’s under Administrative Tools–>Active Directory Administrative Center
  2. Go to YourDomain(local)–>System–>Password Settings Container
  3. Click New from the Tasks menu
  4. Create your Password Settings

Here’s the window, note that I’ve already created a password policy. ¬†A new forest/domain will not have anything populated in it.

dsac

I don’t recommend disabling all these settings if you’re in a production environment.

Posted in Sysadmin, Windows 2012 | Tagged: , | Leave a Comment »

Updated: Hyper-V 3.0 Supported Guest OSes and max vCPUs

Posted by essjae on February 21, 2013

Updated 2013Jan04
http://technet.microsoft.com/library/hh831531.aspx

  Guest operating  system (server)

Max vCPU

Notes

Windows Server 2012

64

Integration services do not require a separate installation because they are built-in.
Windows Server 2008 R2 with SP1

64

Datacenter, Enterprise, Standard and Web editions. Install the integration services after you set up the operating system in the virtual machine.
Windows Server 2008 R2

64

Datacenter, Enterprise, Standard and Web editions. Upgrade the integration services after you set up the operating system in the virtual machine.
Windows Server 2008 with SP 2

8

Datacenter, Enterprise, Standard and Web editions (32-bit and 64-bit). Install the integration services after you set up the operating system in the virtual machine.
Windows Home Server 2011

4

Edition information is not applicable. Install the integration services after you set up the operating system in the virtual machine.
Windows SBS 2011

***

***Essentials edition ‚Äď 2. Standard edition ‚Äď 4.¬† Essentials and Standard editions. Install the integration services after you set up the operating system in the virtual machine.
Windows Server 2003 R2 with SP2

2

Standard, Web, Enterprise, and Datacenter editions (32-bit and 64-bit). Install the integration services after you set up the operating system in the virtual machine.
Windows Server 2003 with SP2

2

Standard, Web, Enterprise, and Datacenter editions (32-bit and 64-bit). Install the integration services after you set up the operating system in the virtual machine.
CentOS 5.7 and 5.8

64

Download and install Linux Integration Services Version 3.4 for Hyper-V.
CentOS 6.0 ‚Äď 6.3

64

Download and install Linux Integration Services Version 3.4 for Hyper-V.
Red Hat Enterprise Linux 5.7 & 5.8

64

Download and install Linux Integration Services Version 3.4 for Hyper-V.
Red Hat Enterprise Linux 6.0 ‚Äď 6.3

64

Download and install Linux Integration Services Version 3.4 for Hyper-V.
SUSE Linux Enterprise Server 11 SP2

64

Integration services do not require a separate installation because they are built-in.
Open SUSE 12.1

64

Integration services are built-in and do not require a separate download and installation.
Ubuntu 12.04

64

Integration services are built-in and do not require a separate download and installation.

 

   Guest operating system (client)

Max  vCPU

Notes

Windows 8

32

Integration services do not require a separate installation because they are built-in.
Windows 7 with SP1

4

Ultimate, Enterprise, and Professional editions (32-bit and 64-bit). Upgrade the integration services after you set up the operating system in the virtual machine.
Windows 7

4

Ultimate, Enterprise, and Professional editions (32-bit and 64-bit). Upgrade the integration services after you set up the operating system in the virtual machine.
Windows Vista with SP2

2

Business, Enterprise, and Ultimate, including N and KN editions. Install the integration services after you set up the operating system in the virtual machine.
Windows XP with SP3

2

Professional. Install the integration services after you set up the operating system in the virtual machine.
Windows XP x64 Edition with SP2

2

Professional. Install the integration services after you set up the operating system in the virtual machine.
CentOS 5.7 and 5.8

64

Download and install Linux Integration Services Version 3.4 for Hyper-V.
CentOS 6.0 ‚Äď 6.3

64

Download and install Linux Integration Services Version 3.4 for Hyper-V.
Red Hat Enterprise Linux 5.7 and 5.8

64

Download and install Linux Integration Services Version 3.4 for Hyper-V.
Red Hat Enterprise Linux 6.0 ‚Äď 6.3

64

Download and install Linux Integration Services Version 3.4 for Hyper-V.
SUSE Linux Enterprise Server 11 SP2 64 Integration services do not require a separate installation because they are built-in.
Open SUSE 12.1 64 Integration services do not require a separate installation because they are built-in.
Ubuntu 12.04 64 Integration services do not require a separate installation because they are built-in.

 

Posted in Computers, Hyper-V, Virtualization, W2012, Windows 2012, Windows 8 | Tagged: , , , , , | 3 Comments »

Hyper-V 2012 Supported OSes/Max vCPU/Notes

Posted by essjae on November 13, 2012

While not exactly hot off the presses (updated 2012Oct23) it is not super visible.

http://technet.microsoft.com/library/hh831531.aspx

Guest operating system (server)
Max # of virtual processors
Notes
Windows Server 2012 64 Integration services do not require a separate installation because they are built-in.
Windows Server 2008 R2 with Service Pack 1 (SP 1) 64 Datacenter, Enterprise, Standard and Web editions. Install the integration services after you set up the operating system in the virtual machine.
Windows Server 2008 R2 64 Datacenter, Enterprise, Standard and Web editions. Upgrade the integration services after you set up the operating system in the virtual machine.
Windows Server 2008 with Service Pack 2 (SP 2) 8 Datacenter, Enterprise, Standard and Web editions (32-bit and 64-bit). Install the integration services after you set up the operating system in the virtual machine.
Windows Home Server 2011 4 Edition information is not applicable. Install the integration services after you set up the operating system in the virtual machine.
Windows Small Business Server 2011 Essentials ed. – 2Standard ed. – 4 Essentials and Standard editions. Install the integration services after you set up the operating system in the virtual machine.
Windows Server 2003 R2 with Service Pack 2 (SP2) 2 Standard, Web, Enterprise, and Datacenter editions (32-bit and 64-bit). Install the integration services after you set up the operating system in the virtual machine.
Windows Server 2003 with Service Pack 2 2 Standard, Web, Enterprise, and Datacenter editions (32-bit and 64-bit). Install the integration services after you set up the operating system in the virtual machine.
CentOS 5.7 and 5.8 64 Download and install Linux Integration Services Version 3.4 for Hyper-V.
CentOS 6.0 ‚Äď 6.3 64 Download and install Linux Integration Services Version 3.4 for Hyper-V.
Red Hat Enterprise Linux 5.7 and 5.8 64 Download and install Linux Integration Services Version 3.4 for Hyper-V.
Red Hat Enterprise Linux 6.0 ‚Äď 6.3 64 Download and install Linux Integration Services Version 3.4 for Hyper-V.
SUSE Linux Enterprise Server 11 SP2 64 Integration services do not require a separate installation because they are built-in.
Open SUSE 12.1 64 Integration services are built-in and do not require a separate download and installation.
Ubuntu 12.04 64 Integration services are built-in and do not require a separate download and installation.

Guest operating system (client)
Max # of virtual processors
Notes
Windows 8 32 Integration services do not require a separate installation because they are built-in.
Windows 7 with Service Pack 1 (SP 1) 4 Ultimate, Enterprise, and Professional editions (32-bit and 64-bit). Upgrade the integration services after you set up the operating system in the virtual machine.
Windows 7 4 Ultimate, Enterprise, and Professional editions (32-bit and 64-bit). Upgrade the integration services after you set up the operating system in the virtual machine.
Windows Vista with Service Pack 2 (SP2) 2 Business, Enterprise, and Ultimate, including N and KN editions. Install the integration services after you set up the operating system in the virtual machine.
Windows XP with Service Pack 3 (SP3) 2 Professional. Install the integration services after you set up the operating system in the virtual machine.
Windows XP x64 Edition with Service Pack 2 (SP 2) 2 Professional. Install the integration services after you set up the operating system in the virtual machine.

Posted in Hyper-V, Virtualization, Windows | Tagged: , , , , , | Leave a Comment »