Difference between revisions of "Howto: Set Up A VDI Server"

From CSLabsWiki
(Fedora 13: added fs layout details)
(yum to use mirror)
Line 11: Line 11:
 
** ext4 partition using the rest of sdb as sdb2 mounted at /storage
 
** ext4 partition using the rest of sdb as sdb2 mounted at /storage
 
* turn off SElinux
 
* turn off SElinux
* configure yum to use [[Mirror]] (does this happen automatically?)
+
* configure yum to use [[Mirror]]
  +
** edit /etc/yum.repos.d/ files. comment out #mirrorlist, uncomment baseurl and change to baseurl=http://mirror.clarkson.edu/fedora/linux/releases/$releasever/Everything/$basearch/os/
 
* configure yum to use spice devel repos
 
* configure yum to use spice devel repos
 
** http://kraxel.fedorapeople.org/spice
 
** http://kraxel.fedorapeople.org/spice

Revision as of 14:35, 29 August 2010

Introduction

Are you a bad enough dude to set up a VDI server?

Fedora 13

I'll assume use of the new Optiplex machines.

Follow these few simple steps:

  • Make a vanilla install of fedora, make sure everything is fully updated. Don't use default partitioning arrangement. Use this arrangement instead:
    • ext4 partition as sda1 (sda is always the WD drive) mounted at /
    • 1GiB swap partition as sdb1 on the second drive (Seagate)
    • ext4 partition using the rest of sdb as sdb2 mounted at /storage
  • turn off SElinux
  • configure yum to use Mirror
  • configure yum to use spice devel repos
  • install packages:
    • qemu-spice
    • spice-server
    • spice-client (why not)
  • set a static IP
  • pull the server-side scripts from SVN:
# mkdir /etc/spice-scripts
# cd /etc/spice-scripts
# svn co http://svn.cslabs.clarkson.edu/svn/platekme/vdi/trunk/server

Notes:

  • For some incomprehensible reason, NetworkManager doesn't start upon login. Until the static IP is set, start it manually as root if you have to reboot.

Ubuntu

The spice server needs to be compiled from source. Good luck with that.

CentOS

RHEL6 rpms are provided in kraxel's repository, so maybe we can use those.