Ubuntu 14.04 and Hyper-V

Ubuntu 14.04 (or better Linux kernel 3.13) can now run on Hyper-V Generation 2 virtual machines.
You only need to disable secure boot (run this on Hyper-V machine):

Set-VMFirmware -VMName "DEV03-Ubuntu" -EnableSecureBoot off

Add to /etc/default/grub on kernel parameters the video size you prefer and the I/O scheduler NOOP for better disk performance:

GRUB_CMDLINE_LINUX="video=hyperv_fb:1440x900 elevator=noop"

and run this command for apply the changes:

sudo update-grub

After installation, remember to install these daemons (run this on Ubuntu virtual machine):

sudo apt-get install hv-kvp-daemon-init

Via: http://technet.microsoft.com/en-us/library/dn531029.aspx
http://technet.microsoft.com/en-us/library/dn720239.aspx

Update:
The hv-kvp-daemon-init is deprecated. Install this:

sudo apt-get install Linux-cloud-tools-generic

For copy files from host to VM you can now use powershell:

Copy-VMFile -name Ubuntu-VM -SourcePath "C:\Data\test.txt" -DestinationPath "/home/linuxuser/test.txt" -CreateFullPath -FileSource Host
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s