Adding Microsoft PowerShell on Linux Mint

Microsoft PowerShell is a very powerfull tool sys admin need to master. Best thing is it is open source now and can run on Mac and Linux as well. (Hint: That gives you an idea where Microsoft heading)

This particualr blog post mainly focus on serting up PowerShell on Mint Linux platform which is avariant of Debian.

Packages for Linux can be found in the GitHub. Download appropriate for your operating system.

In above picture for Mint Linux I have choosen “powershell_6.2.2-1.ubuntu.18.04_amd64.deb” If you’re insize the Mint Linux platform just click the package downlaod and let the Application Manager do the needful. Once compelted open the terminal and type “pwsh”

If you like to enjoy doing above task from the terminal (Who doens’t like to get hands dirty inside a Linux platform) try below commands

  1. Download the Microsoft repository GPG keys

wget -q

2. Register the Microsoft repository GPG keys

sudo dpkg -i packages-microsoft-prod.deb

3. Update the list of products

sudo apt-get update

4. Enable the “universe” repositories

sudo add-apt-repository universe

5. Install PowerShell

sudo apt-get install -y powershell

6. Start PowerShell


That’s it. Now you have two major worlds cobined under one roof to control!

Linux Integration Services Version 4.1 for Hyper-V


Microsoft released the latest Linux Integration Services (LIS) for the guest Linux VM’s running on HYPER-V. With this latest update following improvement has been introduced.

•Expanded Releases: now applicable to Red Hat Enterprise Linux, CentOS, and Oracle Linux with Red Hat Compatible Kernel versions 5.2, 5.3, 5.4, and 7.2.
•Hyper-V Sockets.
•Manual Memory Hot Add.
•Uninstallation scripts.

You can get the latest LIS from here.

setting up Linux getting more easier in HYPER-V

With the latest RedHat version release (6.4) RedHat team has integrated the required device drivers to Run the OS in HYPER-V. Below mention drivers has been added to the kernel of the RedHat during their shipments,

a network driver (  hv_netvsc)
a storage driver (  hv_storvsc)
an HID-compliant mouse driver (  hid_hyperv)
a VMbus driver (  hv_vmbus)
a util driver (  hv_util)
an IDE disk driver (  ata_piix)
a clock source (i386, AMD64/Intel 64:  hyperv_clocksource)


RedHat Linux on HYPER-V

Few days back I mention about the latest version availability of Linux IC for HYPER-V. Soon after that got a chance to test this on RH 6.1. Below steps will guide through the setup process of RH 6.1 along with Linux IC. Once completed you have the mouse drivers setup properly. Some of the latest improvements of the Linux IC’s are,

First I went ahead and created a VM with default settings. Important part is to add a Legacy network card initially,


Adding legacy card will allow the Linux OS to have network communication without Linux  IC (Integrated components)

Rest of the process is typical Linux installation and will be shared with you’ll with screen captures,

image image

image image

image image

image Make sure you’re tick “Connect automatically” for the NIC in bootup.

image image

Make sure you select customize now and add the desktop component Smile


At this moment Linux setup is completed. After the boot up you’ll have the chance to register with RedHat Network. This will help you to get the latest updates. Since I didn’t had a RH account I have skip this option,

image image

Now we go ahead and mount the Linux IC iso file which we have downloaded from Microsoft web site.

image image

Go ahead and open the Terminal and login under root account by typing “su –“

image image

Mount the CD Rom to the system, once mounted you can type “ls” and view the files in the CD Rom,

image image

Now it’s time to install the integrated components, depend on your operating system 32bit or 64bit execution files will be different,

For 64-bit versions:

# yum install /media/x86_64/kmod-microsoft-hyper-v-rhel6-60.1.x86_64

# yum install /media/x86_64/microsoft-hyper-v-rhel6-60.1.x86_64

# reboot

For 32-bit versions:

# yum install /media/x86/kmod-microsoft-hyper-v-rhel6-60.1.i686

#yum install /media/x86/microsoft-hyper-v-rhel6-60.1.i686

# reboot

I had a 32bit version of RH 6.1 ,

image image

image image

To see if Linux IC setup properly,


After this completes you can reboot the system and then check the mouse integration and also the functionality of the second NIC.

Latest Linux IC can be downloaded from here.