util-vserver:Howto virtualize an exisiting Linux server

From Linux-VServer

Revision as of 09:55, 1 December 2006 by Hollow (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Virtualize CentOS4

  • Create a regular guest
vserver yourguest build ...
  • Empty the just created guest
rm -rf /vservers/yourguest/*
  • Copy your old server to the previous folder
rsync -rv --progress --partial yourguest:/  /vservers/yourguest/
  • Remove the fstab
rm /vservers/yourguest/etc/fstab
  • Remove the services that makes troubles at start
rm /vservers/yourguest/etc/rc.d/init.d/network
rm /vservers/yourguest/etc/rc.d/init.d/.....
  • Disable Pam authentification for ssh access
edit /vservers/yourguest/etc/ssh/sshd_config  ->  (UsePAM no)
replace # Listen with Listen yourguestip (this has to been done on the host too is your host ip)
  • Remove the useless modules
rm /etc/modprobe.conf
  • Start your vserver !
vserver yourguest start
Personal tools