will.ballantyne's blog

Custom kernel for linux-vserver on Fedora 8

Information on getting linux-vserver working on Fedora 8 (F8) seems a bit lacking. While the packages are available (util-vserver), a custom kernel with the appropriate vserver patches must be built or a cryptic "Function not implemented" error will show up when trying to build the vserver guest.

To build the custom kernel, obtain the kernel and corresponding patch from the links provided at the linux-vserver web site. Then bunzip2 and untar the kernel to some appropriate location (I use /usr/src/kernels), e.g.:

  1. cd /usr/src/kernels
  2. bunzip2 linux-2.6.22.14.tar.bz2
  3. tar xvf linux-2.6.22.14.tar
  4. cd xvf linux-2.6.22.14
  5. patch -p1 ../patch-2.6.22.10-vs2.2.0.5.diff

The patch will give you an initial error, but that can be ignored since it corresponds to a mismatch in the kernel version (...14 vs the expected ...10). Edit the Makefile to change the EXTRAVERSION so it has your own string, I used ".14-vs" to remember it was for vserver.

Incompatibility between Fedora 8 (F8) virtualization packages and VMware

Fedora 8 looks and works great overall. I've been running it on my laptop for about two weeks. However, I discovered today a problem between its virtualization packages and VMware Workstation.

I installed the latest F8 software and updates on what will be my new server and, after trying to set up the F8 virtualization packages to see if they were needed for vserver, I noticed that VMware would install and configure correctly but would hang the entire system on start of a guest. I eventually narrowed this down to an incompatibility between the current version of VMware Workstation (6.0.2) and the virtualization packages in F8 rather than any updates to the regular packages.

If your VMware Workstation hangs on guest startup, remove all the F8 virtualization packages and reboot. VMware will then work correctly. Hopefully this will save others some troubleshooting time...

 

 

vserver

svn export 
http://svn.linux-vserver.org/svn/util-vserver/trunk/distrib/f8 f8
 
still does not work correctly, maybe the kernel is wrong.  Xen kernel is out of date
 
 
 

Fedora 8

Using LVM

Encrypting a home partition

yum install pam_mount

edit /etc/security/pam_mount.conf

volume user crypt ...

 

http://www.howtoforge.com/installation-guide-fedora8-desktop

http://www.mjmwired.net/resources/mjm-fedora-f8.html

in particular the

yum-fastestmirror

 

glitches - sound can be disabled for KDE if system-config-soundcard is run.

 

K -> Settings -> Desktop Effects

emerald --replace &

 
install ccsm (compiz configuration settings manager)

 

 

Installing vmware tools for a Solaris 10 guest

VMware tools from the latest versions of VMware will run fine on Solaris 10 and fix an annoying virtual network adapter glitch that ruins network performance on large transfers.  To install VMware tools on Solaris 10:

  1. From the VMware console's VM menu select Install VMware tools.  This will modify the CD device to contain a virtual CD that has the tools package.
  2. If the CD does not mount by itself then create a mount point (in my case I created /mnt/cdrom, e.g. mkdir /mnt/cdrom).
  3. Look at the symbolic link definition for /dev/sr0.  This will most likely be /dev/dsk/c1t0ds2. Mount this device to /mnt/cdrom, e.g. mount /dev/dsk/c1t0ds2 /mnt/cdrom.
  4. Copy the tools to /tmp, unzip them, then run the vmware-install.pl script.

Note that this will change the network device from pcn0 to e1000g0.  There are various ways to reconfigure the network after this, but if the guest does not have anything important in its configuration yet then the easiest is to use the sys-unconfig command and reboot.  This will allow you to define all the configuration settings during the next reboot.

Syndicate content