CentOS

Installing Fedora 10 on RHEL/CentOS 5.3 as a Xen DomU

Please be aware that I was not 100% successful using this method:
Note that you cannot install Fedora 10 on RHEL/CentOS 5.2 using virt-install since the image structure has changed. You will need to use the new virt-install in 5.3

  • Prepare LVM with:
    lvcreate -L 5G -n vm_fred vg
    lvcreate -L 1G -n vm_fred_swp vg
    /sbin/mkswap /dev/vg/vm_fred_swp
  • for installation under RHEL/CentOS (note that 32 bit domU's can only run under 32 bit dom0's)
  • Set up the install location with:

Xorg problems and resolution

The best resources I found were:
How to create a modeline: http://xtiming.sourceforge.net/cgi-bin/xtiming.pl
Some general tips: http://www.x.org/wiki/FAQVideoModes
A complex example: http://www.mail-archive.com/fedora-list@redhat.com/msg12682.html
Some detailed debugging tips: http://redhatcat.blogspot.com/2007/09/xorg-for-sharp-aquos-and-nvidia-88...

Using the last link, I found that there were three video ports on the card (DVI0, VGA0 and VGA1) and all my settings were being applied to the wrong one.

Here is the first part of redhatcat, on how to do debugging:

Mounting an FTP/SMB site as a Linux Share


sudo apt-get install curlftpfs
mkdir mntdir #make mountpoint
FTPPW=12345678
FTPUSER=username%40site.org # if contains @ then use %40
sudo curlftpfs -o allow_other,uid=1000 ftp://$FTPUSER:$FTPPW@ftp.site.org mntdir

The uid is needed if you want write access for a non-root user. Find it by typing id at the console.
You will have to edit /etc/fuse.conf to allow_other and also make sure the current user is a member of the fuse group:

adduser andrewf fuse

Add to /init/fstab using:

How to install an Ubuntu Hardy VM under CentOS/Red Hat Xen

My process is to create the VM under Ubuntu/Hardy and then move it across

Resources

There is an article at: http://www.howtoforge.com/ubuntu-8.04-server-install-xen-from-ubuntu-rep... which is the basis, but *don't do the wget and dpkg steps* since the patches are now in hardy

fuse filesystem with SSH

#install fuse on Ubuntu:
apt-get install sshfs

#install fuse on CentOS
# to install rpmforge, see: http://wiki.centos.org/AdditionalResources/Repositories/RPMForge
# see also: http://www.centos.org/modules/newbb/viewtopic.php?topic_id=14292

yum install kernel-devel
yum install --enablerepo=rpmforge fuse dkms dkms-fuse

#make a directory and mount a remote file system on it
mkdir /music
sshfs -o allow_other root@sv.isnew.org:/backups/music /music

#unmount system
fusermount -u /music

#information taken from: http://www.linuxjournal.com/article/8904

Creating a new Xen Windows XP VM in CentOS 5.1

  1. /usr/sbin/lvcreate -L 10G -n vm_mymachine VolGroup00 #first create a logical volume for the machine
  2. dd if=/dev/scd0 of=/var/lib/xen/images/media/winxp.iso #create an ISO image of the XP cd-rom
  3. run the graphical virtual machine manager
  4. make the source of the installation: /var/lib/xen/images/media/winxp.iso
  5. format partition to FAT since then it is editable from within CentOS host
  6. the first reboot will fail. Before restarting, do the following:

Set hostname

To set the hostname in Red Hat / CentOS 5:
vi /etc/sysconfig/network #change it here
echo server1.example.com > /etc/hostname #and here
hostname server1.example.com #and here for good measure
/sbin/service network restart #restart the network

How to install an Ubuntu VM under CentOS/Red Hat Xen

My process is to create the VM under Ubuntu/Gutsy and then move it across

Resources

There is an article at: http://www.howtoforge.com/ubuntu-7.10-server-install-xen-from-ubuntu-rep... which unfortunately has a number of flaws. For more information, see:

Creating a new Xen VM in CentOS 5.1

I would recommend not using LVM within a VM because it makes it harder to back up the files within the VM

Installing Drupal on RimuHosting.com

Here is how to install Drupal on a CentOS 5.4 Linux installation, hosted on http://RimuHosting.com

Syndicate content