Hyper-V (Hypervisor), virtual machine management services, is part of Window 8 and Windows 10 operating system. But this service is not enabled/installed by default. In order to install or enable virtual machine management services in windows 8/10, we need follow below steps
1.
First we need to enable
virtual technology hardware at processor level by accessing BIOS steps
- BIOS is basic input output system. BIOS configuration
defines operating system behavior.
- In order to access BIOS, we need to restart the
computer from “settings à change pc settings à update and recovery à recovery à Advanced Startup (and restart now) à troubleshoot à Advanced options à startup settings….. then when it’s being restarted,
keep enter pressed
- Once BIOS is open, you can enable virtual technology
from configuration tab
2.
Once VT is enabled from
BIOS, go to add/remove programs in the control panel, and click “turn windows
features on or off” and select all Hyper-V options and click on. It will
install Hyper-V
3.
From Hyper-V manager ,
you can create new virtual machine and select install OS later while creating
virtual machine
4.
Download linux mint iso
file from https://www.linuxmint.com/download.php
5.
Then start the virtual
machine from Hyper-V manager and choose the ISO file for OS installation and
follow the installation steps.
6.
OpenSuse can be
installed after downloading ISO file. But we need a network connection from
virtual machine for this installation. In order to establish the network
connection from virtual machine, create virtual external switch using virtual
switch manger and share the external virtual switch while creating the virtual
machine
Now
connecting this virtual machine unix box from host putty session
1. Check virtual machine unix box ip address
Ip add show
à eth0: this is the network name in
which inet ip address is the ip address we are looking for
2. Using the above ip address we can
connect via putty using SSH connection type. But before this we need to install
SSH in the guest linux OS (in virtual machine). We can do this using “sudo
apt-get install openssh-server” command
3. Once SSH is installed, we need to
open the port 22. (this can be done by editing file “sudo vi
/etc/ssh/sshd_config” and un comment 22 port).. then stop and start the ssh
service as “sudo /sbin/service sshd
stop” and “sudo /sbin/service sshd
start”
4. Check if SSH is enabled and running
using the command “netstat –lnpt | grep 22”
5. You can test if SSH is working fine
by running “ssh <vm ip>” in virtual machine itself
6. If any issues in order to establish
SSH connection from host computer to hyper-v virtual machine, we need to
configure virtual machine with static ip. To do this, open YaST control center
and go to SYSTEMà NETWORK SETTINGS, then in overview tab edit the ip address
as static and give some ip address. Then give this same ip address as default
IP4v gateway in routing tab. This will cause internet connection not working in
virtual machine, but enable SSH connection from host to virtual machine.
7. Once successfully connected using ip
via SSH connection, revert the static ip to dynamic using the YaST control
center. This time both internet and putty SSH connection will work.
No comments:
Post a Comment