====== Using Linux as a Hyper-V Guest ======
See also **[[https://virtualarchitects.com/wiki/doku.php?do=search&id=start&q=hyper-v|more Hyper-V pages]]**
Linux Integration Services: http://www.microsoft.com/en-us/download/details.aspx?id=34603
http://blog.zwiegnet.com/linux-server/install-hyper-v-integration-services-on-centos-6/
Howto: http://blog.shawnhyde.com/post/2012/10/20/Step-by-Step-install-of-CentOS-63-on-Microsoft-Hyper-V-Server-with-Linux-Integration-Services-Version-34.aspx
http://www.altaro.com/hyper-v/linux-on-hyper-v/
http://www.clearfoundation.com/component/option,com_kunena/Itemid,232/catid,40/func,view/id,48176/
===== Install and Update the Linux VM =====
:!: Be sure to choose "Legacy Network Adapter" when creating the Linux VM as there is no support for the standard "Network Adapter" until the 'tools' are installed.
yum update -y
reboot
:!: Don't forget to update. Tools installation may fail otherwise!
===== Install Integration Services (Tools) =====
==== Copy an ISO image file to the Linux guest VM ====
Once networking is working on the Linux guest VM, you can install ''wget'' and then grab the tools:
yum install wget
wget http://mirrors.zwiegnet.com/LinuxIC/3.4%202012/LinuxICv34.iso
Alternately, you can just copy the ISO image to the Hyper-V server.
On the source PC:
scp Desktop/LinuxICv34.iso root@192.168.1.3:~
==== Install Linux Integration Services ====
First we mount the ISO image in the Linux guest VM:
mount -o loop LinuxICv34.iso /mnt
Then we install the tools:
cd /mnt/RHEL63
./install
==== Activate Advanced Network Adapter ====
Determine the MAC address and copy it:
ifconfig -a eth0 | grep "HWaddr" | cut -d " " -f 11
Shut down the VM:
shutdown now -h
:!: Now using Hyper-V Manager, delete the old Legacy Network Adapter and add the new (synthetic) Network Adapter specifying the same MAC address.