Category Archives: Server

– Microsoft Windows Server

My HP Proliant DL380 G6 (2u)

Hp

Due to the lack of resources of my Lab-station (Amd ryzen3 with 16gb) build, I have decided to build a new Lab-station for Data Center, SD-WAN, Virtualization, Net-dev & Cloud reps. Package includes 5-extra sas drive and door-to-door delivery. With this server I can get 6core/12threads per cpu, total of 24t. It has 18 ram slots(max) but I’m only using 6 slots 8gb per slot (48gb in total) and with supported raid 0, 1, 5, 10 feature.

Specs: https://support.hpe.com/hpsc/doc/public/display?docId=emr_na-c01714721

71644076_241911193413618_4127634412370132992_n

Powering-up HP Proliant DL380 G6. After the post you need to configure/setup the raid(redundant array of independent disks).

I. RAID Configuration

> Press F8 to move to Option Rom Configuration for Array (ORCA). If after pressing the F8 and you get redirected to the bios option you’ll just need to exit and press the F8 again.

Issue pops up regarding “Invalid drive movement” this was possible due to missing old raid config, So I just tried clearing the existing raid config and re-create a new one for the installed drives. Select raid 5.

Once the raid configuration has been completed. I moved to OS/ESXI installation.

II. ESXI Installation

a. Download esxi 6.7 version from exsi website (need to register to download).

b. Create a bootable usb drive using rufus 2.7 version.
https://rufus.ie/

c. Connect the USB drive onto server usb port then select F11 to manually specify the boot option. Select 3.

d. Read the installation Guide for reference.71394848_771652239923983_5570224591776776192_n.jpg
https://docs.vmware.com/en/VMware-vSphere/6.7/vsphere-esxi-67-installation-setup-guide.pdf

Once completed, You can now access you esxi server using the web management. From my old lab-station I have exported all my Virtual machine and import to the new ESXI server.

HP2.jpg

Pending: Next, I need to convert my Physical machine w/ Ubuntu OS to OVF. This can be done using Vmware vCenter Converter Standalone.

Converter.PNGFrom my old lab-station, I have created a new root acct. and make sure to run the sudo command w/out password prompt.

visudo or sudo visudo
sudoer ALL=(ALL) NOPASSWD:ALL
%sys ALL=(ALL) NOPASSWD: ALL
sudoer ALL=(ALL) NOPASSWD: /bin/kill
https://linuxize.com/post/how-to-create-a-sudo-user-on-ubuntu/

How to Run ‘sudo’ Command Without Entering a Password in Linux

My New Lab Station:

HP3

 

Converter.PNG

Windows Server

Planning, Installation, Roles Upgrade

  • You can only upgrade from Windows 2008 & 2008 r2 x64 bit.
  • Windows server 2012 is only available on 64bit.

Planning Installation & Roles

  • Practice in VM & get accustomed to GUI, Test software.
  • Prepare Hardware (Map toolkit) 0 identifying whether your desktop or server is upgradable.

Minimum Requirements
server1

(Windows server 2012 system requirements PDF)

  • A good time for upgrades
  • Drivers > Mass Storage > Unsigned
  • Pre-learn Power Shell
  • Watch for removed (cbt.gg/mccc) Clustering Hyper-v changes etc.
  • Backup & Have Contingency. Test and Restore.
  • Roll out in stages

Installation Levels

  • Full GUI
  • Core (default)
    • Minimal attack surface
    • Small foot print
    • Highly Reliable
    • Easily Managed Winr2/WinRM, Powershell, server manager remotely administrating core.
  • Feature on demand
  • Minimal server interface

Windows Server Migration Tools

  • Migrate from W2k3 SP2/R2, W2K8 Full, R2 Win-12 Full/Core (Cannot W2k8 Core no .net frame work(
  • Physical to Virtual ; V to P
  • Only same UI language
  • Admin on both machines
  • PS Scripts
  • Migrate roles, Features, System settings, shares, data…..

Server > Dashboard

Manage

  • Add role and Features
  • Remove Rules and Features
  • Add server
  • Create Server Group
  • Server Manager Properties

Tools

  • Administrative tools etc.

Power Shell install  -windowsfeature migration

Configuring Server Core

Netsh interface ipv4 show interfaces

Set Static IP on the machine (ADMINISTRATOR P.S.)

Change IP address

Netsh interface ipv4 set address name=Ethernet source=static address=10.10.10.82 mask=255.255.255.0 gateway=10.10.10.1

Add Dns

Netsh interface ipv4 add dnsserver name=Ethernet address=10.10.10.70 index=1

Change hostname

Netdom renamecomputer %computer% /newname:yourname /userd:Administrator /password  /reboot:0

Connect to domain

Netdom join %computername% /domain:nuggetlab.com /userd:Administrator /Passwordd:/reboot:5

Add user

Net user Trainer /add *

Add user to a group

Net localgroup Administrators /add Trainer

Verify

Net user trainer

Sconfig (Server Config) 

Enabling For remote core

#Netsh advfirewall firewall set rule group=”remote administrator” new enable=yes

#Netsh advfirewall set allprofile state off

Reset initial config (Out of the box firewall)

Netsh advfirewall reset

Remote Management Methods

  • WNRM(Windown Remote Management)
  • QC (Quick Config)
  • Userful at CMD line

#winrm quickconfig

#winrm id –remote:( destination name)

#winrm g wnicimv2/Win32_OperatingSystem –fragment:FreePhysicalMemory –r:(Destination name)

#winrs  –r:(destination Name) ipconfig /all

Remote Server Administration Tool (RSAT)

Tool: Remote Desktop Manager & Server Manager

http://cbt.gg/18QmGdP

Manage Non-Domain Joined

  • Appllies When:
  • One or Both are in workgroup
  • Both in different domain w/ no trust relationship
  • Target Added Via IP Address
  • Add Target to trustedhost list
  • If target not in same Subnet not “Private” Profile
  • Change FW inbound “windows Remote Management(http-in)” & add management coputer by computername

Non Domain join

set-item wsman:\localhost\client\trustedhosts (Domain Name) -concatenate -force

Add/Edit Bat file

A batch file is an unformatted text file that contains one or more commands and has a .bat or .cmd file name extension. When you type the file name at the command prompt, Cmd.exe runs the commands sequentially as they appear in the file. You can include any command in a batch file.

How edit or Add Bat File

-My Network Places
-Entire Network
-Microsoft Windows Netowrk
-MYDOMAIN (domain)
-COMMONFOLDER (AD)
-Netlogon

edit Bat file.

How to verify user bat file
-User
-Properties
-Profile
-Logon Script (.Bat)