Create Linux General Image for Hyper-V

By | May 11, 2018

Prepare Ubuntu general image for Hyper-v deployment is more easy process than Windows, there not SID etc… .

After installation of Ubuntu VM on Hyper-V just delete “ssh_host_*” keys  and re-generate new server keys.

First step:

Login as the root and type the following command to delete “ssh_host_*” keys :

# rm /etc/ssh/ssh_host_*

Second step:

dpkg-reconfigure openssh-server

After regenerated new ssh server keys just restart ssh server

systemctl restart sshd