Trouble shooting VMware Virtual Center failing to start

Trouble shooting VMware Virtual Center failing to start

We restarted the Virtual Center server during a routine maintenance window.

As a rough / quick test we then tried to connect via the client. To our shock, it didn’t connect

Client connection fails

How to Trouble shoot …..Where should you look next ?

Services?

Manual Service

Check for a stopped service on the vCenter server.

Start vcenter service

start vc service

In this scenario, check SQL , in the log you can see there is a SQL DB connection issue

VC no SQL connection

 

 

For Loop command to list users with sessions on servers

Problem :  Users/Admins disconnect from sessions on servers. How to get a list of users logged on to server active and disconnected

Simple Solution!

Create a file call servers.txt   – save in c:\temp

(possibly dsquery computer -name * >servers.txt    note your will need to delete all detail except server name)

Create a batch file call : listloggedinUsers.bat   – save in c:\temp

In the listloggedinUsers.bat type the following

for /f %%s in (servers.txt) do (echo %%s & qwinsta /server:%%s)

Save the bat file

Load command prompt as administrator.

Type
c:\temp\listloggedinusers.bat >> users_date_time.txt

This out put shows all 3389 connections. ie. RDP sessions

 

Disable inactive computers in AD

I would be tempted to run it manually in two parts.. that sounds a little cautious I know..

From your DC you can run

CMD ( as admin )
dsquery computer -inactive 8
(this lists the inactive computers- this list can include serveres!!!)

This will list the computers which have been inactive for 8 weeks or more.

Then you can choose to manually select the highlighted computers (from the query) in AD right click disable.
Or run    dsquery computer -inactive 8 | DSMOD computer -disabled yes

This will error if there is nothing to update “dsquery computer -inactive 8 | DSMOD computer -disabled yes”

I would not schedule this to run automatically.. Just in case it bins a server.. even though servers should never been offline for 8 weeks

Veeam Backup & Replication example

In this example we have VMware vSphere and Hyper-V in Veeam Backup & Replication.
vSphere And HyperV

In vCenter we can see two data center and the VMs running.

In Microsoft Hyper-V we have one Hyper-V server and VMs running.

Unfortunately we have deleted a VM. Ooops. But we can recover using Veeam Backup & Replication to recover the VM

VeeamVMrecover

Another VM recovered thanks to Veeam.

 

Veeam Explorer for Microsoft® Active Directory®

“Easy, fast, granular recovery of individual AD objects and entire containers.
And it’s absolutely FREE!” Veeam

Veeam Explorer is a part of Veeam Backup™ Free Edition

 

Veeam Explorer

“With Veeam Explorer™, you can look directly into your backups to zero in on the

exact items you need to recover and restore from:

NEW! Microsoft Active Directory: Restore individual Active Directory (AD)

objects quickly and export AD objects directly from an image-level backup for

use with the LDIFDE utility

ENHANCED! Microsoft Exchange: Get instant visibility into Exchange 2010 and

2013 backups, advanced search capabilities and quick recovery of individual

Exchange items (emails, contacts, notes, etc.), Online Archive mailboxes and

hard-deleted items

• Microsoft SharePoint: Browse SharePoint 2010 and 2013 backups and

databases, search for specific SharePoint files and quickly recover them

NEW! Microsoft SQL Server: Save time and restore SQL databases without

having to search for individual database files

ENHANCED! Storage Snapshots*: Recover single files or entire VMs from HP and

NetApp snapshots in 2 minutes or less—without staging or intermediate steps”

veeam_backup_8_free_edition_datasheet_en.pdf

 

 

Amazon Web Services (AWS) – PoC

  • Created an account – http://aws.amazon.com/
  • Setup a Windows 10 client
  • Installed using the download 3.4.3 x86 msi and ticked install paths.
    Tried x64 installed and had a few errors trying 3.5 version
  • The EB  Command Line Interface (CLI), used the following the guide
  • Followed the Amazon Install procedure below:

The Python Software Foundation provides installers for Windows that include pip.

To install Python 3.4, pip, and the EB CLI on Windows

  1. Install Python 3.4 from the downloads page of Python.org.
  2. Add the Python home and scripts directories to the Windows Path system variable:
    C:\WINDOWS\system32;C:\WINDOWS;C:\Python34;C:\Python34\Scripts
  3. Open the Windows Command Processor from the Start menu.
  4. Verify that Python and pip are both installed correctly with the following commands:
    C:\Windows\System32> python --version
    Python 3.4.3
    C:\Windows\System32> pip --version
    pip 6.0.8 from C:\Python34\lib\site-packages (python 3.4)
  5. Install the EB CLI using pip:
    C:\Windows\System32> pip install awsebcli
    Collecting awsebcli
      Downloading awsebcli-3.2.2.tar.gz (828kB)
    Collecting pyyaml>=3.11 (from awsebcli)
      Downloading PyYAML-3.11.tar.gz (248kB)
    Collecting cement==2.4 (from awsebcli)
      Downloading cement-2.4.0.tar.gz (129kB)
    Collecting python-dateutil<3.0.0,>=2.1 (from awsebcli)
      Downloading python_dateutil-2.4.2-py2.py3-none-any.whl (188kB)
    Collecting jmespath>=0.6.1 (from awsebcli)
      Downloading jmespath-0.6.2.tar.gz
    Collecting six>=1.5 (from python-dateutil<3.0.0,>=2.1->awsebcli)
      Downloading six-1.9.0-py2.py3-none-any.whl
    Installing collected packages: six, jmespath, python-dateutil, cement, pyyaml, awsebcli
      Running setup.py install for jmespath
      Running setup.py install for cement
      Running setup.py install for pyyaml
        checking if libyaml is compilable
        Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat).
        skipping build_ext
      Running setup.py install for awsebcli
        Installing eb-script.py script to C:\Python34\Scripts
        Installing eb.exe script to C:\Python34\Scripts
        Installing eb.exe.manifest script to C:\Python34\Scripts
    Successfully installed awsebcli-3.2.2 cement-2.4.0 jmespath-0.6.2 python-dateutil-2.4.2 pyyaml-3.11 six-1.9.0
  6. Verify that the EB CLI is installed correctly:
    C:\Windows\System32> eb --version
    EB CLI 3.2.2 (Python 3.4.3)

Install Python, pip, and the EB CLI on Windows

AWSome Day event in Manchester

Notes based on Amazon AWS – AWSome Day event in Manchester
These are unverified notes taken at the event. Detail may be incorrect, but hopefully provide a rough guide to AWS.

Covers AWS foundational services

  • Gain a deeper understanding of AWS core and application services
  • Learn how to deploy and automate infrastructure on the AWS
  • CloudAmazon certification / accreditation ., platform accredited. Easier to accredit PCI DSS. Platform already done. You only need to accredit application
  • AWS has different levels and costs of storage.
  • Aws.amazon.com/blogs/aws
  • Control the permissions of users and what they can spin up.
  • S3 storage for the Internet. http or https, natively online, highly scalable, fast and reliable and fast    Use case , OS, backups, databases
  • EFS – multi attachment points – currently in preview mode
  • AWS STORAGE GATEWAY backups. Local machine , virtual machine which interacts with the cloud
  • Import and export supported USB devices or snowball a rack of storage.
  • Move to the cloud -> EC2 auto scaling and ELB
  • Cloud metrics will help size your EC2
  • Trusted advisor basic is free (Cost optimisation advice)
  • Auto scaling – schedule the scaling up and down.
  • Scaling is free, you only pay for additional EC2s
  • Cloud watch auto enabled when you spin up an EC2 for the hyper visor
  • Tag each EC2 instance ( who built it, what’s does it do )
  • Security Security groups, instance firewalls, VPC – Subnet control
  • Cloud trail- enabled per region. This will monitor and track all Api calls. Everything in AWS is an API call.
  • RDS – managed by AWS, backups & HA ( multi AZ required for no down time during patching)
  • ElastiCache – put in front of an RDS for better performance
  • Visual OPS third party app can create a formation template . Give it read  access to map.. Give it write to create
  • Cloud formation template and snapshot. Can restore and recover from an outage. Cloud formation gathers info on all VMs, networks & users and the template can recreate the full environment
  • Amazon redshift – petabyte scale DB service
  • Dynamo DB – no limits, Fast using SSD disks
  • AWS Database
  • Amazon route 53 is now a DNS registrar
  • Most common issue is Security permissions as everything is blocked by default.
  • user accounts – individual AWS credentials
  • SSL endpoint – secure transmission
  • Purchasing on demand, reserved or spot instances
  • Oracle
  • AWS marketplace
  • EC2 VMs are tied to the location you created it under. You will not see the VM in another location.
  • Start up- only pay when you start using
  • Compute
  • A way of posting data to AWS.
  •  Volumes can be resized, snapshot and create a new volume of another. You can also shrink if required and data / space allows.
  • EBS elastic storage, snapshots, single attachment. Can be detached & attached to another location
  • Glacier storage.. Storage of stuff you hope you never see again but you need to keep., like tax documents for seven years. Costs more to retrieve the data back. Encrypted.
  • Lamba websites, takes uploaded images, watermarks and optimises and uploads
  • AWS Simple money calculator
  • Create unique buckets for each of your projects
  • Learn identity & access management
  • Amazon RDS. Managing the patching, high availability. Reduces engineer time spent wasted patching. It’s done automatically. Same as spinning up services in other Zones for resilience
  • Register for aws for free and get Ec2 free tier for a year
  • Aws.amazon.com/new

PowerActions for vSphere Web Client

PowerActions 1.5.0 is now available for vSphere 6.0 Web Client

http://blogs.vmware.com/PowerCLI/2015/06/good-news-poweractions-now-available-vsphere-6-0-web-client.html

“PowerActions integrates the vSphere Web Client and PowerCLI to provide complex automation solutions from within the standard vSphere management client.

PowerActions is deployed as a plugin for the vSphere Web Client and will allow you to execute PowerCLI commands and scripts in a vSphere Web Client integrated Powershell console.”

Download PowerActions 1.5.0 here
https://labs.vmware.com/flings/poweractions-for-vsphere-web-client

 

How to Disable Windows Defender

1) Open Control Panel
2) Open up Windows Defender
3) Click Tools on the top menu
4) Click on Options
5) Find the Administrator section, uncheck the box for “Use this program”
6) Click the Save button.

Now open services.msc

7) Select Windows Defender
8) Right click and select properties
8) Stop the service
9) Change Startup type to Disabled.

VMware vCenter 5 – NFC Server error

Issue

NFC Error

In vSphere 5 we moved an ISO from a local drive to a datastore using the VMware Infrastructure Client. Upon instigating the upload it immediately failed.

Error message :  Failed to log into NFC server.

Possible DNS issue with servers for the host?

Solution:
We found missing DNS entries for the ESXi hosts. The servers specified were referencing DNS IP addresses that had no entries for the ESXi hosts being administered.