windows - How to connect guest Ubuntu 12.10 server in Hyper-V to my network on the host machine?

04
2013-08
  • srodriguex

    I'm using Windows 8 Pro with Hyper-V 6.2 I successfully installed Ubuntu 12.10 server into the Hyper-V, but until now way I'm not able to connect it to my network. I created internal and external virtual switch, both pointing to the the physical adapter on the host machine, and nothing.

    Maybe there is some step I didn't do, or software i need to install.

    Hope some of you can give me a hint.

  • Answers
  • MDMoore313

    I recommend using the Hyper-V management console to manage your virtual machine. I haven't had the privilege of using Windows 8 Hyper-V, but I manage a couple of Hyper-V servers. You can download the Windows 8 RSAT tools from Microsoft, which comes with the Hyper V management console. Once you have that installed point it to your localhost.

    Now, make sure you external network is set to the proper network card of your hyper-v server. In my example my external network is connected to the gigabit ethernet nic of my physical machine. To get to this menu, right click on your hyper v server from the management console, and select 'Virtual Network Manager'.

    enter image description here

    After that, for your VM settings, select the same Network that you configured for external access in the previous step.

    enter image description here

    And last (or first?) make sure That the physical computer has access to the network.


  • Related Question

    windows xp - Why do my virtual machines slow down/freeze under Hyper-V Server 2008
  • Brlja

    I have recently installed Microsoft Hyper-V Server 2008 and have 2 VM's running on it.

    Everything works fine until some "nice looking" (could be WPF or .NET) application is executed. In that case all virtual machines hang or totally slow down.

    I have read some articles about host slowing down and hanging but my host works, my VMs freeze. I have tried with default display drivers, and with NVidia drivers but no good.

    Also virtual display driver have only 4MB of memory? Could this be the problem? And is there any way to increase it? It seems not from what I have found.

    My hardware is:

    • Core i5
    • 8 GB DDR RAM
    • NVidia something graphics

    VMs are Windows XP x64. Hardware virtualization is enabled. Hyper-V is up to date.

    VM's halt when I star "Acronis true image" or "Avast" Antivirus.


  • Related Answers
  • Joel Coehoorn

    There is a known issue running WPF in a virtual machine. The most common complaint is related to Visual Studio. See this article for a potential fix:

    http://weblogs.asp.net/kdente/archive/2009/10/19/visual-studio-2010-beta-2-editor-performance-fix-running-on-a-virtual-machine.aspx

    And to summarize in case the link ever becomes stale, you just need to set the following registry entry to '1':

    HKEY_CURRENT_USER\SOFTWARE\Microsoft\Avalon.Graphics\DisableHWAcceleration

    Note that this will disable hardware acceleration, and so depending on what you are doing you might want to think it through carefully first.

  • paradroid

    It sounds like you have installed graphics drivers on the Hyper-V host, when you should be using the standard Windows drivers. I have seen the same problem in the past, with the same symptoms as you describe. I am not sure if the problem is related to Joel's answer, which could be a solution I did not know about at the time.

    Remove the drivers and it should work properly again. Are you sure you were using the default Windows drivers before? You can access the XP VMs through RDP, from another machine (used as a thin client).

    Virtual machines on Hyper-V (and other Type 1 hypervisors like VMware ESX/ESXi) usually run server operating systems and the hosts are headless, so the VMs are accessed remotely.

    Desktop OSs are best virtualised either with Type 2 hypervisors like VirtualPC and VMware Workstation, or using VDI desktop virtualisation systems, like Citrix XenDesktop, Microsoft MED-V and VMware View (you still access the VMs using a remote client machine with these, but the local resources can be used).

  • Chris S

    In addition to Joel's answer, there's known issues with Server 2008 with Hyper-V and graphics heavy programs (being displayed on the host). MS's suggestion is to upgrade to R2, which doesn't have the problem.