Howto: Set Up A VDI Server
|This is an archived article or section.
This page is a legacy practice, project, or tutorial, and the information may not be up to date. See the talk page for more information about the page's status.
|This article discusses a deprecated technology or practice.
Visit the talk page for more information.
Are you a bad enough dude to set up a VDI server?
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. Edit all files in /etc/yum.repos.d/. For each repository:
- Comment out the line beginning with mirrorlist
- Replace the line beginning with baseurl with baseurl=http://mirror.clarkson.edu/fedora/linux/releases/$releasever/Everything/$basearch/os/
- Configure yum to use spice-devel repo (found at http://kraxel.fedorapeople.org/spice)
# cd /etc/yum.repos.d # wget http://kraxel.fedorapeople.org/spice/spice-unstable.repo
- install packages:
- set a static IP using system-config-network
- Kill NetworkManager
- Go to System>Administration>Services and disable 'networkmanager', then enable 'network'
- Go to System>Administration>Network
- Under the devices tab, create a new Ethernet device
- Select "Statically set IP address"
- Enter the following information:
- Address: 128.153.14*.*** (this will depend on what static IP is allocated for the server's use)
- Subnet Mask: 255.255.254.0
- Default Gateway: 128.153.14*.1 (depends on whether the 144 or 145 subnet is being used)
- Primary DNS: 188.8.131.52
- Secondary DNS: 184.108.40.206
- Hit continue and finish.
- Go to the DNS tab and enter the hostname (depends on server, probably vdi-**)
- File>Save (answer yes to everything) and reboot
- 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
- pull test images from vr-cosi-01
# cd /storage # scp -r firstname.lastname@example.org:/images .
- 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.
The spice server needs to be compiled from source. See the SPICE page for details on how to perform this operation.
RHEL6 rpms are provided in kraxel's repository, so maybe we can use those.