This page explain how to use Debian under Microsoft Hyper-V (Windows Server 2008).

Running Debian in Windows Server's Hyper-V

Overall Status

Core Components

inline:photo.png

Boot Standard Kernel:

{OK}

LAN network card:

{OK}

Detect CD/DVD:

{OK}

Detect hard drives:

{OK}

Extra Features

Xorg

{i}

- OpenGL

[?]

- Resize-and-Rotate(randr)

{OK}

Sound

n.a

Mouse

{OK}

Legend :?BR {OK} = OK ; {X} Unsupported(No Driver) ; /!\ = Error (Couldn't get it working); [?] Unknown, Not Test ; [-] Not-applicable ?BR {i} = Configuration Required; X-( = Only works with a proprietary driver

Important Note

Debian Etch
Make sure read at least the sections [#kernel-param Kernel Parameters] and [#xorg Xorg Display] before installing Debian.

?BR ?BR


Debian testing and unstable aren't really coverd by this guide, but still, here are a few hints :

Configuration

?Anchor(kernel-param)

Kernel Parameters

Passing vga=XXX may cause some problem when you swith from X11 to console.

Installing Debian

Important Note

Networking

The emulated device is a "Digital Equipment Corporation DECchip 21140 [FasterNet]" PCI id:1011:0009.

Audio

Hyper-V doesn't seems to provide audio emulation, at all.

Installation

?Anchor(step-by-step-installation)

Step by Step Installation

Download Debian ISO image

Pick the Installation that best fits you needs, from [http://www.debian.org/CD/]. I've picked the NetInst CD (at the time of writing, [http://cdimage.debian.org/debian-cd/4.0_r3/i386/iso-cd/debian-40r3-i386-netinst.iso debian-40r3-i386-netinst.iso]).

Create the VM

  • Launch "Microsoft Virtual PC" in Start Menu > Administrative Tools > Hyper-V Manager.

  • The first time you run Hyper-V, you need to accept their specific attachment:EULA.txt: inline:EULA.gif inline:Hyper-V_Console.gif
  • Select the your server (on the left pane)
  • Go to Menu > Action > New > Virtual Machine. inline:wizard_1.gif

  • Choose a name for your Virual Machine inline:wizard2_name.gif
  • Select the amount or RAM for the Vritual Machine (128Mb is enough for text only. 512Mb is recommended for GUI/Desktop). inline:wizard3_ram.gif
  • Select the Network you have created during Hyper-V initial configuration (If the drop down menu is empty, clse the wizard, and go to Menu > Action > Virtual Network Manager). inline:wizard4_net.gif

  • Select a name and location for the disk image. You can change the maximum disk space allocated, but it isn't important since the space is allocated as needed. (Don't go below 6Gb unless you know exaclty what your are doing, not to shoot a bullet in your own foot). inline:wizard5_hd.gif
  • You can select the installation media for your VM, typically select the CDROM iso image you have previously dowwnloaded. inline:wizard6a_install_from_iso.gif
  • Review the summary, and click ok (or back ;). inline:wizard7a_summary.gif

Configure Networking

Enabling networking requires two steps:

  1. Add a virtual switch
  2. Add a (so called) Legacy Network Adapter (The other one, named Network Adapter being some Microsoft shit that requires to install Microsoft's Integration services).

Add Virtual Network

If you don't have one yet, you have to add a virtual network (a kind of virtual switch).

  • In "Hyper-V Manager", go to menu Action > Virtual Network Manager.

  • Select "External" network, then click on "Add". inline:virtual-network_1-add.gif
  • Give it a name, like My Virtual Network. Then select the pyhsical network interface that it should be connected to (i.e bridged). inline:virtual-network_2-property.gif

Add a Network Adapter

The installation wizard don't offer to a a network installation, so you have to add it manually (!) :

  • Select your on Virtual machine in "Hyper-V Manager", then select Settings.
  • On the left panel, select "Add Hardware"
  • Select Legacy Network Adapter. inline:property_add-legacy-nework_1.gif

  • Then select the virtual network (i.e switch) to which the adapter should be connected. inline:property_add-legacy-nework_2-bind.gif

inline:foo That's it.

Installing Hyper-V

If you are reading this page, you probably already have Hyper-V installed ! for the other, you should follow Microsoft's instruction :

Microsoft has already provided an update. Apparently, you must install it to have a supported Hyper-V installation ([http://www.microsoft.com/downloads/details.aspx?FamilyID=F3AB3D4B-63C8-4424-A738-BADED34D24ED&displaylang=en Update for Windows Server 2008 x64 Edition (KB950050)])

Note that for some odd reasons, Microsoft doesn't provides a version of Hyper-V under 32bit platform (even though it [http://www.microsoft.com/windowsserver2008/en/us/scalability-ent.aspx can use 64Gb of RAM]).

That's It !

  • include:logon-screen.png


System Summary

lspci

lsusb

None

Attachements

  • attachment:debian-etch-hyperv6.dmidecode.txt attachment:debian-etch-hyperv6.xorg.conf.txt

Credits