Ubuntu 12.04 under Hyper-V on Windows 8

Ubuntu 12.04 under Hyper-V on Windows 8

Rate This
  • Comments 16


Recently a number of the Hyper-V drivers for Linux made it into the main kernel branch.  This means that native support for Hyper-V is starting to turn up in a number of Linux distributions.  Ubuntu 12.04 LTS is an example of a new Linux release with Hyper-V support “out of the box”.  To try this out for myself – I grabbed the 32-bit desktop install media from Ubuntu.com and fired up a virtual machine:

ubuntu-12-1

After the initial splash screen, I was pleasantly surprised by the first indication of the improved Hyper-V support.  Before even install Ubuntu, on the first page of setup, I already had integrated mouse support.

Ubuntu-12-2

I chose to Install Ubuntu and was then presented with a page that confirmed that I had enough space, and I had a valid internet connection. This was also interesting to note, as I had not added a legacy network adapter to the virtual machine.  This meant that Ubuntu had already recognized and loaded drivers for the Hyper-V high-performance network adapter.

ubuntu-12-3

After this – the installation was fairly pedestrian…

ubuntu-12-4ubuntu-12-5ubuntu-12-6ubuntu-12-7ubuntu-12-8ubuntu-12-9ubuntu-12-10

The only quirk I encountered was that at the end of the initial installation phase – the virtual machine failed to reboot automatically.  It sat at this page for about a minute until I manually reset it:

ubuntu-12-11

But after that it booted perfectly:

ubuntu-12-12

And I confirmed that applications and network connectivity was working correctly:

ubuntu-12-13

My favorite part of this was seeing this message:

ubuntu-12-14

“No proprietary drivers are in use on this system”.  Correct! The Hyper-V drivers are now part of Linux, under GPL.

Cheers,
Ben

Leave a Comment
  • Please add 7 and 7 and type the answer here:
  • Post
  • What can you do in Ubuntu to get higher screen resolutions? Is there a Hyper-V display driver?

  • This is not new. Linux Kernels have been making use of hv* drivers for a while now. I think it started in 2.6.30 or something. It was just a matter of using the right version and build. Typically, Ubuntu Server made those available since v10 natively (after a few updates of the kernel packages).

  • It's been a while I would like to understand this: what is the difference between the hv_* drivers in the Linux kernel and the Linux Integration Services provided by Microsoft?

  • The resolution in Ubuntu in Hyper-V does not make use of the full resolution of your monitor. Is there a way around this?

  • @ Jonathan, Sepatown

    The Hyper-V console isn't really meant to run and interact with desktop operating systems full-time, it's more to aid in the initial setup and configuration. You will want to use other methods of interaction with the client via some remote desktop software (NoMachine's NX comes to mind since it has integrated audio support, but you could also use XDMCP or VNC) to get alternate screen resolutions.

  • I don't agree with "run and interact with desktop operating systems full-time". There may be multiple reasons why I might want multiple operating systems with the same experience as a full machine even in the virtual enviornment.

    Mouse Integration is crappy, screen resolution is wierd. There is no integration support for debian operating systems. I had a hard time even getting the Intergration service for Redhat, which runs on 95% of Fortune 500 companies.

    Using linux as host and windows on a Oracle VBox run seamlessy.

    Till now I have not had a bad experience with that.

    I really don't get the point of using 'the great' Hyper-V

  • Hi,

    What bothers me is that Ubuntu running in a VMWare Workstation on my Windows 8 computer installed on a MacBook Pro with Retina screen doesn't have any problem exploiting the whole screen when Hyper-V is limited to a poor way tooooo little screen unusable on my Mac :

    root@ubuntu:/home/christophe# xrandr

    Screen 0: minimum 1 x 1, current 2876 x 1577, maximum 8192 x 8192

    Virtual1 connected 2876x1577+0+0 (normal left inverted right x axis y axis) 0mm x 0mm

      2876x1577      60.0*+

      2560x1600      60.0  

      1920x1440      60.0  

      1856x1392      60.0  

      1792x1344      60.0  

      1920x1200      59.9  

      1600x1200      60.0  

      1680x1050      60.0  

      1400x1050      60.0  

      1280x1024      60.0  

      1440x900       59.9  

      1280x960       60.0  

      1360x768       60.0  

      1280x800       59.8  

      1152x864       75.0  

      1280x768       59.9  

      1024x768       60.0  

      800x600        60.3  

      640x480        59.9  

    Virtual2 disconnected (normal left inverted right x axis y axis)

    Virtual3 disconnected (normal left inverted right x axis y axis)

    Virtual4 disconnected (normal left inverted right x axis y axis)

    Virtual5 disconnected (normal left inverted right x axis y axis)

    Virtual6 disconnected (normal left inverted right x axis y axis)

    Virtual7 disconnected (normal left inverted right x axis y axis)

    Virtual8 disconnected (normal left inverted right x axis y axis)

    root@ubuntu:/home/christophe# gtf 2876 1577 60

     # 2880x1577 @ 60.00 Hz (GTF) hsync: 97.92 kHz; pclk: 385.41 MHz

     Modeline "2880x1577_60.00"  385.41  2880 3096 3408 3936  1577 1578 1581 1632  -HSync +Vsync

  • hyper-v is usually use for servers, the "connect" in hyper-v manager is use for admins (I don't expect that to have a good user experience). The best way to utilize hyper-v is thru remote desktop.

    Myself hosted a Linux Ubuntu 12.04 in hyper-v for my web deployment LAMP. The advantage of that instead of virtualbox, is hyper-v is not user/login specific, you you won't be affect of any log-on and off. Resources consumption in hyper-v is also way lower compared using virtualbox.

    if you are thinking using compiz or alike avoid hyper-v.

  • Hi vierx

    OK, how do you RDP to a Ubuntu desktop ?

    I've tried xrdp but I have problems with the keyboard (I'm using French and it stays in English and doesn't offer me anything else...)

    Do you have another solution than XRDP ?

    Thanks

  • For my own setup, if I use the "Connect..." feature of Hyper-V manager, then the graphics works but the resolution is unchangeable. If I use Remote Desktop (by connecting to the IP address of Ubuntu, obtained via "ifconfig"), then the resolution is fullscreen but the graphics is slow.

    I've spent about 3 hours total of trying to get both to work to on avail. Would it have been so difficult for Hyper-V to allow different resolutions?

  • Ok, so Windows 8 requires SLAM (Second Level Access Memory) in order to provide "good video interaction for developers" . At the same time, we, the developers, cannot use it in full screen, since "The Hyper-V console isn't really meant to run and interact with desktop operating systems". So, why do I need SLAM support into my CPU to access the virtual machines via MSTSC?

  • Good, but i have any problem in Ubuntu 12.10 into Hyper-V: social.technet.microsoft.com/.../6828b612-77c2-4f7c-b4df-f1804b6f317a

  • > no integration support for debian operating systems.

    Debian Wheezy (7.0) contain a backport Hyper-V drivers from Kernel 3.4

    But the Hyper-V kernel modules ( as minimum,

    hv_vmbus

    hv_utils

    hv_storvsc

    hv_netvsc

    ) are missing in the installer image of Debian Wheezy created before 2012-11-13

    Solution:

    You need use .iso created after 2012-11-14

    ( or .iso by Arnaud Patard )

    you’ll be able to use paravirt NIC, SCSI disks,

    additionally you’ll get mouse integration and support for more than 1 vCPU.

    Details:

    vvm.blog.tut.by/.../debian-on-hyper-v

  • I'm getting the following event error, are there Linux Integration Services for 4.0 yet?  Its keeping my VM from resetting properly I believe.

    Thanks,

    Devan

    Log Name:      System

    Source:        Microsoft-Windows-Hyper-V-VmSwitch

    Date:          5/19/2013 9:54:46 AM

    Event ID:      27

    Task Category: (1019)

    Level:         Warning

    Keywords:      

    User:          SYSTEM

    Computer:      faimlyroom-PC

    Description:

    Networking driver in MythVM loaded but has a different version from the server. Server version 4.0  Client version 3.2 (Virtual machine ID DD598AEC-684F-4289-A20D-9D1F3B2370E0). The device will work, but this is an unsupported configuration. This means that technical support will not be provided until this problem is resolved. To fix this problem, upgrade the integration services. To upgrade, connect to the virtual machine and select Insert Integration Services Setup Disk from the Action menu.

    Event Xml:

    <Event xmlns="schemas.microsoft.com/.../event">

     <System>

       <Provider Name="Microsoft-Windows-Hyper-V-VmSwitch" Guid="{67DC0D66-3695-47C0-9642-33F76F7BD7AD}" />

       <EventID>27</EventID>

       <Version>0</Version>

       <Level>3</Level>

       <Task>1019</Task>

       <Opcode>0</Opcode>

       <Keywords>0x8000000000000000</Keywords>

       <TimeCreated SystemTime="2013-05-19T13:54:46.322332200Z" />

       <EventRecordID>4602</EventRecordID>

       <Correlation />

       <Execution ProcessID="4" ThreadID="476" />

       <Channel>System</Channel>

       <Computer>faimlyroom-PC</Computer>

       <Security UserID="S-1-5-18" />

     </System>

     <EventData>

       <Data Name="VMNameLen">6</Data>

       <Data Name="VMName">MythVM</Data>

       <Data Name="VMIdLen">36</Data>

       <Data Name="VMId">DD598AEC-684F-4289-A20D-9D1F3B2370E0</Data>

       <Data Name="ServerVersionLen">3</Data>

       <Data Name="ServerVersion">4.0</Data>

       <Data Name="ClientVersionLen">3</Data>

       <Data Name="ClientVersion">3.2</Data>

     </EventData>

    </Event>

  • Great! Where Ubuntu 13.10 Saucy Salamander, Linux Kernel 3.11 and Hyper-V 2012 R2? :)

Page 1 of 2 (16 items) 12