Tag: xen
PTY allocation request failed on channel 0
by ac3bf1 on Aug.13, 2010, under Tech Junk
When installing a new virtual machine (Lenny) you may get this error:
PTY allocation request failed on channel 0 stdin: is not a tty
To fix this do the following:
Add the following line to /etc/fstab (in the domU):
none /dev/pts devpts defaults 0 0
Then run:
mkdir /dev/pts mount /dev/pts
Enjoy!
Volume by UUID and adding the disk to a xen Virtual Machine
by ac3bf1 on May.08, 2010, under Tutorials
Get the drive UUID by using the command vold_id
vol_id /dev/sda1
The string after “ID_FS_UUID=” is the UUID of the drive. Now open your /etc/fstab file and add the following line to the end. Replace the UUID string with your string, your mount point, and customize the other parameters if needed.
UUID=THE-UUID-HERE /mnt/USBDrive ext3 user,auto,rw 0 0
To then pass a disk to a xen virtual machine, look at the following lines of the domain config file:
disk = [ #...root partition and other partitions here... 'phy:/dev/disk/by-uuid/89b976bc-2f66-4b93-abfb-358d6227f8be,sda,w', 'phy:/dev/disk/by-uuid/1871b9a1-8055-4392-8a94-f5407ff37483,sdb,w', ]
basically instead of passing the disk as a /dev/sda1 device, pass it by UUID using the path:
/dev/disk/by-uuid/<the uuid>
Enjoy!
Lenny domU on xen with debootstrap
by ac3bf1 on Mar.12, 2010, under Tutorials
This is a HowTo on installing Lenny on a xen system using the debootstrap method
xen error: “you need to load the kernel first”
by ac3bf1 on Feb.26, 2010, under Tutorials
Some people seem to be getting this error when installing xen 3.2 on Lenny.
It has been referenced as Bug #505517. The following should help you fix the problem
Xen 3.2 on Debian Lenny
by ac3bf1 on Feb.26, 2010, under Tutorials
Notes taken from another blog post on installing xen 3.2 on Lenny.
apt-get update; apt-get upgrade
The following is all one line!
apt-get install xen-hypervisor-3.2-1-amd64 xen-linux-system-2.6.26-2-xen-amd64 xen-utils-3.2-1 xenstore-utils xenwatch xen-shell xen-tools
iFolder on Debian Lenny (as xen DomU)
by ac3bf1 on Feb.05, 2010, under Tutorials
![]()
UPDATE: Simple way for me to deploy iFolder on a Debian systems was though xen and an installation of Ubuntu as follows…
NOTE: I can get everything to install and run. Problem so far is logging in as admin that does not work (seems to be a common problem with no precise solution so far)
Step 1:
Intall Debian Lenny on a clean machine (plenty of tutorials online for this!)
Step 2:
Setup Xen on the lenny installation (this tutorial is a good place to start. Ensure you are on a 64bit machine for this one. IF you are on a 32-bit machine, it is not too different)
Step 3:
Intall Ubuntu 10.04 (lucid) – Follow this tutorial with following modifications:
After installation, open the config file for the Virtual Machine and:
Comment out the “kernel” and “ramdisk” options
Add:
bootloader = '/usr/bin/pygrub'
Make sure you invert the disk options as mentioned in the tutorial
Step 4:
Before installing iFolder run the following (all one line):
apt-get install apache2 automake autoconf libtool liblog4net-cil-dev mono-xsp2-base cli-common-dev uuid-dev libxml2-dev gsoap libflaim-dev mono-devel
mkdir -p /var/www/.config/.mono/
chown -R www-data:www-data /var/www/.config/
apt-get install apache2 libapache2-mod-mono
(answer Y to the question)
Configuration file `/etc/apache2/mods-available/mod_mono.conf' ==> File on system created by you or by a script. ==> File also in package provided by package maintainer. What would you like to do about it ? Your options are: Y or I : install the package maintainer's version N or O : keep your currently-installed version D : show the differences between the versions Z : background this process to examine the situation The default action is to keep your current version. *** mod_mono.conf (Y/I/N/O/D/Z) [default=N] ? Y
Install iFolder on the Ubuntu Virtual Machine following the official Ubuntu tutorial
Run (if needed to reconfigure admin password)
dpkg-reconfigure simias-server
Enjoy!
Backing up xen domains
by ac3bf1 on Jan.26, 2010, under Tutorials
Nice article on backing up xen domains here:
http://www.johnandcailin.com/blog/john/backing-your-xen-domains
enjoy
Mythtv on Ubuntu with IR Remote and extras. Mythtv backend on xen
by ac3bf1 on Jan.26, 2010, under Tutorials
Have been looking for a while for a decent howto/tutorial on mythtv on xen, and finally I crashe donto this one. I have not yet tried it, but it seems promising!
http://netti.nic.fi/~icewood/mythtv/index.php
Happy xen-ing!

