Creating our File Server

The next server we are going to be building is our File server. This will provide shared storage for our Environment. From Shared drives, to home profiles, and much more.

 

So, run through the same build from template process we did when creating our Domain Controller instead obviously call the server something else.

fsname

Assign the required resources to the VM.

fsresources

At this point we want to make sure our VM has the required drives. This can be done after it is built, but I’m going to do it now.

I’ve created 2 50GB drives and a 100GB drive.

fssharedstorage

Share drive – 50GB

Home drive – 50GB

ISO drive – 100GB

Run through the sysprep build settings with your desired configurations.

Next we want to Rename the VM.

Reboot when prompted.

Now we want to join the machine to the domain: Use the full domain name. You can use the NetBIOS Domain name if required.

fsdomain

Often I get an error saying there are no DCs available, or cannot be contacted:

fserror

This is because the VM has a router assigned the IP address and the VM is using the router/default gateway for DNS, and obviously, the Router doesn’t have our named server records. So, if you didn’t disable DHCP on your router we will need to manually point the VM to the DC.

You need to set your VM NIC to the DNS server.

fsdns

Now try to join the VM to the Domain. It should now join

fsdomainjoin

Reboot again when prompted.

 

We need to assign an IP to the File server now, this can be done prior to joining the domain, so we need to set up DHCP and DNS records for this server. So, if you go to the Network tab on Xenconsole:

fsuipaddress

Copy the MAC address of the vNIC

Go to your domain controller, open DHCP, expand the domain, IPv4, and our Scope, right click on Reservations and New.

fsdhcp

Open up DNS Manager, Expand the DC, Forward Lookup Zones, Domain Name, Right click and add New Host (A or AAAA record). Add the server host name and IP address, ensure PTR record is selected.

fsdnsadd

Reboot again

The vNIC in XenConsole should show our IP address we assigned.

fsipcheck

Now we have our VM with a static IP assigned in DHCP, you can check DHCP to ensure it has been assigned. Go to the DHCP console and check Addresses Leased – Should show as active.

dhcpactive

So now we want to format the drives we added earlier:

Right click the start menu, and select Disk Management.

fsdiskmanagement

 

The VM should show there are 3 disks that require initializing. Select OK.

fsdiskinitialisation

Select each disk and right click “New Simple Volume”

fssimplevol

Select Next

Confirm the amount you want to create from the available storage.

 

Select which Drive letter you wish it to have:

fsassigndrive

Give a name:

fsdrivename

Next and completed, the drive should then turn Blue in the Disk management console, after a quick format.

Complete the same for the next two drives

If you are not able to remember which drives are what, you can look back at the XenConsole under Storage and it will tell you what position the drives fall.

fsxenconsolecheck

They should now appear in Disk Management as below:

fsdiskamangementcheck

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s