Title: Installing Debian 5.0 in Virtual PC 2007
Slug: installing-debian-5-0-in-virtual-pc-2007
Date: 2009-02-18 12:48:00
Author: Kartones
Lang: en
Tags: Virtualization, Systems-IT, Linux
Description: A guide on installing Debian 5.0 in Virtual PC 2007, addressing common issues like processor errors, sound, internet, and resolution settings.

 <p>I've spent most of this morning installing the newly released <a href="http://www.debian.org/">Debian 5.0</a> under <a href="https://www.microsoft.com/en-us/download/details.aspx?id=4580">Virtual PC 2007</a> (SP1). </p>  <p align="justify">As usual with VPC, all non-Windows OS installs usually give headaches, but this one has been a real pain.</p>  <p align="justify">Just after creating a new VM and launching the install, I got this terrifying message: "<i>An unrecoverable processor error has been encountered. The virtual machine will reset now</i>". Trying the non-graphical install throws the same result.</p>  <p align="justify">After some digging on the net, I found that <a href="http://groups.google.com/group/linux.debian.bugs.dist/browse_thread/thread/d5aa2c606ce4b154">it is a problem of the latest linux kernel builds and Virtual PC</a>, which can be solved by selecting "<i>Graphical Install</i>" but instead of pressing ENTER, pressing TAB and adding the following at the end of the command line:</p>  <p align="justify"><b>noapic nolapic noreplace-paravirt</b></p>  <p align="justify">Also, modify "<b>vga=788</b>" parameter to "<b>vga=791</b>" to avoid strange resolutions.</p>  <p>Then you can install it as you would do with a physical/real install (a standard + web server install takes only about 2GB of space counting swap partition).</p>  <p>Once installed, this parameters will stay and you no longer will get the VPC error, but the problems are far from finished.</p>  <ul>   <li>To enable sound, go to<i> System –&gt; Preferences –&gt;</i> Sound and change all to ALSA sound system </li>    <li>To enable internet, change your VM settings to use <i>Shared Networking (NAT)</i> and configure it under Linux as <i>DHCP</i>/<i>automatic. </i>I couldn't configure a standard ethernet card mapping without NAT.</li>    <li>To enable higher resolutions (at least standard ones), modify the <b>/etc/X11/xorg.conf</b> file (with <b>nano</b> for example) and replace the three sections "<i>Device</i>" "<i>Monitor</i>" and "<i>Screen</i>" with this new content: </li> </ul>  <p><font face="Courier New">Section "Device"     <br>    Identifier        "Configured Video Device"      <br>    Driver            "vesa"      <br>    BusID             "PCI:0:8:0"      <br>EndSection </font></p>  <p><font face="Courier New">Section "Monitor"     <br>    Identifier        "Configured Monitor"      <br>    Option            "DPMS"      <br>    HorizSync         30-70      <br>    VertRefresh       50-160      <br>EndSection </font></p>  <p><font face="Courier New">Section "Screen"     <br>    Identifier        "Default Screen"      <br>    Monitor           "Configured Monitor"      <br>    DefaultDepth      16      <br>    SubSection "Display"      <br>        Depth         16      <br>        Modes         "1280x1024" "1024x768" "800x600"      <br>    EndSubSection      <br>EndSection</font></p>  <p> </p>  <p>Save, restart Linux and finally you have a decent Debian 5 virtual machine! Mouse still gets hooked into the VM, but not being able to install the VM Additions you can live with it.</p>