22 Jan

Error : Hyper-V cannot installed. hypervisor already running

Error : Hyper-V cannot installed. hypervisor already running

When you try to install Hyper-V role on a VM, you may face the error message “Hyper-V cannot installed. hypervisor already running”.

Hyper-V cannot installed. hypervisor already running

To resolve this issue, you may need to run the below commands,

Try installing the Hyper-V feature using the below command,

1
Enable-WindowsOptionalFeature –Online -FeatureName Microsoft-Hyper-V –All -NoRestart 

Hyper-V cannot installed. hypervisor already running

Hyper-V cannot installed. hypervisor already running

Next step is to install the RSAT-Hyper-V Tools. To install the Hyper-V RSAT tools, please execute the below command.

1
Install-WindowsFeature RSAT-Hyper-V-Tools -IncludeAllSubFeature


Hyper-V cannot installed. hypervisor already running

If you wish to enable the clustering, then you need to install the RSAT-Clustering also.

1
Install-WindowsFeature RSAT-Clustering -IncludeAllSubFeature

Hyper-V cannot installed. hypervisor already running
Hyper-V cannot installed. hypervisor already running

To install the MPIO in your server, please execute the below command,

1
Install-WindowsFeature Multipath-IO


Hyper-V cannot installed. hypervisor already running
Hyper-V cannot installed. hypervisor already running

To know more about the MPIO, refer the link https://technet.microsoft.com/en-us/library/ee619734(v=ws.10).aspx

To know more about the MPIO usage, please refer the link, https://blogs.msdn.microsoft.com/san/2012/07/20/managing-mpio-with-windows-powershell-on-windows-server-2012/

Now we need to restart the server once. To restart the server, please execute the below command,

1
Restart-Computer

Hyper-V cannot installed. hypervisor already running

After the server restart, please verify the Hyper-V installation. In the server manager, you will be able to see the Hyper-V installed. Open the Hyper-V manager to start your LAB setup.Hyper-V cannot installed. hypervisor already runningHyper-V cannot installed. hypervisor already running

22 Jan

Windows package manager Chocolatey, installation using Powershell

Windows package manager Chocolatey, installation using Powershell

Here, we are discussing about the Windows package manager Chocolatey, installation using powershell. To start the installation process, open the Windows Powershell ISE in your machine, and type the command,

1
iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex 

Windows package manager Chocolatey, installation using Powershell

If you are getting the error “running scripts is disabled in this system“, please follow the below steps.

Open the Windows Powershell ISE as “Administrator” using the “Run as Administrator” option. Once you have opened the  Windows Powershell ISE as “Administrator“, please proceed to execute the below command,

1
Set-ExecutionPolicy RemoteSigned

Windows package manager Chocolatey, installation using Powershell

Press “Yes to All“, if you wish to allow the script execution permanently.

Once the script is executed, please run the installation command once again,

1
iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex

Windows package manager Chocolatey, installation using Powershell

To upgrade the windows package manager, “Chocolatey“, please run the command,

1
choco upgrade chocolatey

Windows package manager Chocolatey, installation using Powershell

You can read more about the package manager installation from the official Chocolatey page, https://chocolatey.org/docs/installation

14 Jan

Domain Join a Hyper-V 2016 host

Domain Join Hyper-V 2016 host

To domain join Hyper-V 2016 host to a windows domain, first you need to login to the server,

Hyper V 2016 Welcome Screen

Once your login is supplied, you will be directed to sconfig.cmd page, where you can modify your domain settings. To join your Hyper-V 2016 host to windows domain, select the option “1” , in the main menu, as shown in the below picture.

domain join hyper-v 2016

Now the sub menu will provide you wit 2 options, (D)omain and (W)orkgroup. Enter the letter “Ddomain join hyper-v 2016

Enter your domain name as as shown above. We have used testdomain.local as our domain. Please replace it with your domain name. Now it will ask you to supply the domain’s administrator user details. Please supply your domain’s administrator user name here.

domain join hyper-v 2016Now it will ask you to enter the password for your domain user account, which you have supplied during the previous step.

If your password is correct, it will join your hyper-V host to your domain.

14 Jan

Configure network in Hyper-V 2016

Login to Hyper V 2016

To configure the network in hyper-V 2016 server, first you need to login to the server. Press Cntrl+Alt+Del and type in your administrator password

Hyper V 2016 Welcome Screen

Configure Network in Hyper-V 2016

Once you are logged in, you will see a sconfig window(blue screen). Then select “Network Settings” by entering the number “8” on the option menu

It will list you the network adapters present in your server. Please note the Index value. In our case, the index value is 0. To select the Network Adapter Index, enter 0(In our case).

Since our aim is to setup an IP address against our network adapter, please select the option 1 in the menu.

To assign a Static IP address to your hyperV host, please enter the letter “S“.

You can set the following parameters under this menu,

  1. Set your static IP address as required.
  2. Enter the subnet mask, if you wish to change it.
  3. Enter the default gateway

Once done, please press “Enter“, so that Hyper V 2016 will start to configure the network settings.

Configure network in Hyper-V 2016

Configure DNS Settings

To configure the DNS settings of your Hyper-V 2016 host server, please select the option “2

Network Hyper-V 2016

Enter your “new preferred DNS server” and “alternate DNS Server” and then press “Enter” twice. It will show a popup window, where you need to press “OK

Network Hyper-V 2016

17 Feb

Calculate memory usage of each VPS node

You can find memory usage of each VPS using  the following steps,

1. Create a file called vpsmemory.sh and paste the following code in it.

Or

# sh vpsmemory.sh