A little something about everything

internet marketing and website development made simple..

Step by Step install on Debian Linux on Microsoft Hyper-V Server

Create Generation 1 VHD and set to boot from  Debian~.iso

Start VHD and run Install

select options, 

  • personally I unselect the Debian desktop option and leave the rest default.

login as root or use sudo for the following commands.

now you'll need to add the webmin sources list by editing /etc/apt/sources.list by using nano, vi or another method.

vi /etc/apt/sources.list

then use i to edit the file and (esc) then :wq to write the file to memory.

once you've done that you can add the Webmin PGP key

wget http://www.webmin.com/jcameron-key.asc

then

apt-key add jcameron-key.asc

now update using 

apt update

I like to also install perl as it seems to prevent some issues

apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python

and finally install webmin 

apt install webmin

continue (y)

Now you can login with https://(server-IP/domain):10000 

That's it, your done.

How to limit IP assignments to a guest OS and setup IP security using ACLs on Hyper-V Server

Limiting the use of IPs by each Guest OS is an important step in securing your network from accidental or intentional abuse of IP resources. 

You can limit IPs in Hyper-V 2012 using ACL rules much like any router or managed switch would provide via ACLs.

No Gui is currently available to manage ACLs so you will need to open Windows Powershell if you are in GUI mode. Lets assume you have VM named "Poject1" and you would like to limit this client/gues VM so they can only use 10.0.0.75 as an IP address.

 

Here are the commands:

 Add-VMNetworkAdapterAcl -VMName Project1 -LocalIPAddress 10.0.0.75 -Direction Both -Action Allow

 Add-VMNetworkAdapterAcl -VMName Project1 -LocalIPAddress any -Direction Both -Action Deny

That is it, your done.

 

Now you can check the rules with:

 Get-VMNetworkAdapterAcl -VMName Project1

 

or you can remove the rules using:

 Remove-VMNetworkAdapterAcl -VMName Project1 -LocalIPAddress 10.0.0.75 -Direction Both -Action Allow

 Remove-VMNetworkAdapterAcl -VMName Project1 -LocalIPAddress any -Direction Both -Action Deny