Comprehensive Debian (pion).pdf

(419 KB) Pobierz
Comprehensive Debian
Wheezy Xen Tutorial
Table of Contents
The following guide is comprised of my personal
documentation and excessive filtering for human
consumption. It details the series of steps I took to
successfully install and compile a custom Linux Kernel,
Xen 4.2 unstable, and run three virtual machines to
perform unique tasks all on a single physical computer.
To achieve the desired functionality, I used IOMMU for
PCI Passthrough with a multimedia operating system,
granting complete access to a graphics card for GPU
Acceleration.
1036738797.044.png 1036738797.045.png 1036738797.046.png 1036738797.047.png 1036738797.001.png 1036738797.002.png 1036738797.003.png 1036738797.004.png 1036738797.005.png 1036738797.006.png 1036738797.007.png 1036738797.008.png
I am a college student, not a trained professional, and I
am sharing this documentation for educational purposes.
Blind use of this document for a production environment
in a business setting would be ill-advised.
To quickly summarize my experiences, I decided to try
Xen and began researching in early January 2012.
I purchased equipment in March 2012, and began what I
thought would take "at most two weeks".
By late April I finally had a ( mostly ) functional system.
I have been fine tuning the system and my process since
then to produce this guide for others.
The purpose of this guide is to turn a 6 month project into
a series of steps that can be reproduced inside the time
frame of 1-2 days.
I wanted a single physical computer, that could handle
three computers worth of separated activities at all times,
including these four specifics:
Router/Firewall (PFSense)
DNS & Web Development (Debian Squeeze)
Application Development (Debian Wheezy)
Multimedia & Gaming (Windows 7)
I investigated alternative software, including VMWare's
ESXi and Citrix's XenServer.
I had come from a VMWare platform having used both
VMware Server 2 and VMWare Workstation 8 for the
same key objectives previously but with a Windows
1036738797.009.png 1036738797.010.png 1036738797.011.png 1036738797.012.png 1036738797.013.png 1036738797.014.png 1036738797.015.png
Host, subject to Windows Updates which let to my
investigation.
ESXi was easy to install, but missing numerous drivers
for hardware components. I quickly ruled it out as I
wanted a home-use system, and there was no
convenient or well-documented method to installing or
even launching a virtual machine from their on-server
interface.
Citrix's XenServer was easily my favorite of the options,
it's design made for a great user experience. Everything
was easy to find and do. However it came with a
minimum price tag of $1000, and if I wanted PCI
passthrough for graphics cards $2500. This was beyond
my reach as a college student.
I chose Xen since it had support for my hardware, was a
free open-source project, and had a great community
with lots of activity.
Things you Will Need:
Compatible Hardware
ATI Graphics Card
Motherboard with UEFI & VT-d & Onboard
Graphics
Latest Ubuntu Live DVD
Debian Wheezy Beta1 (Or Newer) Installer
nVidia Cards can be made to work, with extensive
patching, in Windows XP and supposedly Windows 8
Preview, for more information visit David Techer's blog .
If you plan to pass your graphics card to a virtual
machine, you will need either a second graphics card,
onboard graphics, or a second computer to manage your
Dom0 system and install virtual machines over VNC.
1036738797.016.png 1036738797.017.png 1036738797.018.png
UEFI compatible boot DVD will save you an
undocumented step for setting up a UEFI boot loader.
Xen is picky, different hardware may yield different
results, both at compile time and runtime. If you want to
save yourself some hassle, here is my hardware list and
some suggestions to avoid:
Motherboard:
ASRock Z68 Extreme4 Gen3
CPU:
Intel Core i2600
RAM:
12GB 1333Mhz Corsair XMS (2x2G + 2x4G)
Boot Disk:
240GB OCZ Vertex 3
GPU:
ATI Radeon HD 6870
LAN:
Onboard Broadcom BCM57781
PCIe EXPI9301CTBLK
Hardware and Configurations to Avoid:
NF200 Chipsets are not IOMMU compatible
nVidia Graphics Cards
RAID5 yields horrible performance
NF200 is a PCI Switch for motherboards sporting SLI
and CrossFire, avoid it if you want be able to use those
PCI slots for passthrough.
These instructions are for an Intel CPU and ASRock
1036738797.019.png 1036738797.020.png 1036738797.021.png 1036738797.022.png 1036738797.023.png 1036738797.024.png 1036738797.025.png 1036738797.026.png 1036738797.027.png 1036738797.028.png 1036738797.029.png 1036738797.030.png 1036738797.031.png 1036738797.032.png 1036738797.033.png 1036738797.034.png 1036738797.035.png 1036738797.036.png 1036738797.037.png 1036738797.038.png 1036738797.039.png 1036738797.040.png 1036738797.041.png
UEFI Motherboard, and may vary depending on your
manufacturer as well as your choice of CPU. If you are
unfamiliar with motherboard configuration, you may want
to watch the video for a visual walk through.
Before starting reset your CMOS so you have a clean
slate to work from.
List of key settings:
Turn Legacy USB 3.0 off
Turn on VT-x and VT-d
Set drives to ACHI Mode
Change default video to Onboard
Justification:
Consider yourself warned, if you leave Legacy USB on
and leave a backup USB drive connected, your system
will fail to boot. To my surprise that is because it is trying
to boot from that USB drive ( even if that drive is USB
2.0 ), which threw me off so I recommend disabling that
feature.
Most motherboards will have Intel Virtualization enabled
by default (VT-x), but that is not the same as IOMMU, be
sure to look for VT-d or check the manual for details. For
my system VT-x was in the CPU configuration area, and
VT-d was in the Northbridge configuration area.
ACHI is a superior choice for performance with modern
hard drives, and while RAID is an alternative that uses
ACHI as its underlying type, it increases boot time by
checking RAID configurations, and most onboard RAID
is software RAID that is built for Windows and rarely
helpful for Linux.
ASRock boards will use a PCI GPU by default if it is
plugged into a PCI slot, regardless of if any video cables
are connected, and if you plan to pass that device to a
1036738797.042.png 1036738797.043.png
Zgłoś jeśli naruszono regulamin