Re: [Vserver] Virtualizing a physical server

2006-01-26 Thread Daniel Hokka Zakrisson

Joep Gommers wrote:
If the skeleton method in still to heavy for you to start off with try 
download prebuild virtualmachine guests:
After you installed a (rpm: 
http://www.virtualinfrastructure.nl/downloads/kernel-2.6.11-1.35_FC3.vs2.0.0.0.rc4.i686.rpm) 
kernel just unpak it


I wouldn't even tell my enemies to use that one... It's ancient, won't 
work with util-vserver 0.30.210 unless you build it with 
--enable-apis=NOLEGACY, and full of bugs and security issues.


--
Daniel Hokka Zakrisson
GPG id: 06723412


pgpBSjACvBSGq.pgp
Description: PGP signature
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


RE: [Vserver] Virtualizing a physical server

2006-01-26 Thread Ehab Heikal
So what is the best bet to virtualize a physical server?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Daniel
Hokka Zakrisson
Sent: Thursday, January 26, 2006 10:17 AM
To: vserver@list.linux-vserver.org
Subject: Re: [Vserver] Virtualizing a physical server


Joep Gommers wrote:
 If the skeleton method in still to heavy for you to start off with try
 download prebuild virtualmachine guests:
 After you installed a (rpm: 

http://www.virtualinfrastructure.nl/downloads/kernel-2.6.11-1.35_FC3.vs2
.0.0.0.rc4.i686.rpm) 
 kernel just unpak it

I wouldn't even tell my enemies to use that one... It's ancient, won't 
work with util-vserver 0.30.210 unless you build it with 
--enable-apis=NOLEGACY, and full of bugs and security issues.

-- 
Daniel Hokka Zakrisson
GPG id: 06723412

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Virtualizing a physical server

2006-01-26 Thread Herbert Poetzl
On Thu, Jan 26, 2006 at 10:53:58PM +0200, Ehab Heikal wrote:
 So what is the best bet to virtualize a physical server?

IMHO see Message-ID: [EMAIL PROTECTED]

best,
Herbert

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Daniel
 Hokka Zakrisson
 Sent: Thursday, January 26, 2006 10:17 AM
 To: vserver@list.linux-vserver.org
 Subject: Re: [Vserver] Virtualizing a physical server
 
 
 Joep Gommers wrote:
  If the skeleton method in still to heavy for you to start off with try
  download prebuild virtualmachine guests:
  After you installed a (rpm: 
 
 http://www.virtualinfrastructure.nl/downloads/kernel-2.6.11-1.35_FC3.vs2
 .0.0.0.rc4.i686.rpm) 
  kernel just unpak it
 
 I wouldn't even tell my enemies to use that one... It's ancient, won't 
 work with util-vserver 0.30.210 unless you build it with 
 --enable-apis=NOLEGACY, and full of bugs and security issues.
 
 -- 
 Daniel Hokka Zakrisson
 GPG id: 06723412
 
 ___
 Vserver mailing list
 Vserver@list.linux-vserver.org
 http://list.linux-vserver.org/mailman/listinfo/vserver
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Virtualizing a physical server

2006-01-25 Thread Herbert Poetzl
On Wed, Jan 25, 2006 at 03:12:46AM +0200, Ehab Heikal wrote:
 I need to setup a development or staging server of an existing running
 server. Is there a tool to do so?

just create a new skeleton guest with the -m skeleton
build method, which resembles the physical system 
regarding networking and naming, the copy over the
entire contents of the physical machine, excluding
the /dev and /proc directory to the skeleton dir
(cp -a, dump/restore, tar, rsync, ...)

starting and stopping the guest should work after
that, but you might want to clean up scripts later
to avoid a bunch of failures when the new guest
tries to mess with the hardware ...

HTH,
Herbert

 ___
 Vserver mailing list
 Vserver@list.linux-vserver.org
 http://list.linux-vserver.org/mailman/listinfo/vserver
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Virtualizing a physical server

2006-01-25 Thread Joep Gommers
If the skeleton method in still to heavy for you to start off with try download prebuild virtualmachine guests:After you installed a (rpm: 
http://www.virtualinfrastructure.nl/downloads/kernel-2.6.11-1.35_FC3.vs2.0.0.0.rc4.i686.rpm) kernel just unpak itbash# wget 
http://www.virtualinfrastructure.nl/downloads/precompiled/virtualinfrastructure-11012006-fc3-minimal.tgzbash# tar xvzf virtualinfrastructure-11012006-fc3-minimal.tgzbash# mkdir /etc/vserversbash# mv fc3_minimal /etc/vservers
en start the thing:bash# vserver fc3_minimal startbash# vserver fc3_minimal enterbe aware: This is a fedora core 3 guest and fedora code 3 kernel. For other versions check the vserver website.
Cheers,J-On 1/25/06, Herbert Poetzl [EMAIL PROTECTED] wrote:
On Wed, Jan 25, 2006 at 03:12:46AM +0200, Ehab Heikal wrote: I need to setup a development or staging server of an existing running server. Is there a tool to do so?just create a new skeleton guest with the -m skeleton
build method, which resembles the physical systemregarding networking and naming, the copy over theentire contents of the physical machine, excludingthe /dev and /proc directory to the skeleton dir(cp -a, dump/restore, tar, rsync, ...)
starting and stopping the guest should work afterthat, but you might want to clean up scripts laterto avoid a bunch of failures when the new guesttries to mess with the hardware ...HTH,Herbert
 ___ Vserver mailing list Vserver@list.linux-vserver.org 
http://list.linux-vserver.org/mailman/listinfo/vserver___Vserver mailing listVserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Virtualizing a physical server

2006-01-25 Thread Herbert Poetzl
On Wed, Jan 25, 2006 at 04:48:07PM +0100, Joep Gommers wrote:
 If the skeleton method in still to heavy for you to start off with try
 download prebuild virtualmachine guests:
 After you installed a (rpm:
 http://www.virtualinfrastructure.nl/downloads/kernel-2.6.11-1.35_FC3.vs2.0.0.0.rc4.i686.rpm)
 kernel just unpak it
 bash# wget
 http://www.virtualinfrastructure.nl/downloads/precompiled/virtualinfrastructure-11012006-fc3-minimal.tgz
 bash# tar xvzf virtualinfrastructure-11012006-fc3-minimal.tgz
 bash# mkdir /etc/vservers
 bash# mv fc3_minimal /etc/vservers
 
 en start the thing:
 bash# vserver fc3_minimal start
 
 bash# vserver fc3_minimal enter
 
 be aware: This is a fedora core 3 guest and fedora code 3 kernel. For other
 versions check the vserver website.

well, good idea, but how would that help him with
virtualizing an existing machine?

TIA,
Herbert

 Cheers,
 J-
 
 On 1/25/06, Herbert Poetzl [EMAIL PROTECTED] wrote:
 
  On Wed, Jan 25, 2006 at 03:12:46AM +0200, Ehab Heikal wrote:
   I need to setup a development or staging server of an existing running
   server. Is there a tool to do so?
 
  just create a new skeleton guest with the -m skeleton
  build method, which resembles the physical system
  regarding networking and naming, the copy over the
  entire contents of the physical machine, excluding
  the /dev and /proc directory to the skeleton dir
  (cp -a, dump/restore, tar, rsync, ...)
 
  starting and stopping the guest should work after
  that, but you might want to clean up scripts later
  to avoid a bunch of failures when the new guest
  tries to mess with the hardware ...
 
  HTH,
  Herbert
 
   ___
   Vserver mailing list
   Vserver@list.linux-vserver.org
   http://list.linux-vserver.org/mailman/listinfo/vserver
  ___
  Vserver mailing list
  Vserver@list.linux-vserver.org
  http://list.linux-vserver.org/mailman/listinfo/vserver
 

 ___
 Vserver mailing list
 Vserver@list.linux-vserver.org
 http://list.linux-vserver.org/mailman/listinfo/vserver

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


RE: [Vserver] Virtualizing a physical server

2006-01-25 Thread smagnuson
This is what I did.  Modify as required.

Hope it helps.
sig



Creating a vserver from a non-vserver host (The server was redhat AS 3)

* Clone host1 (non-vserver) to host2:vserver1

calcrs03 -- calvunix02:rhas3template01


ssh calvunix02
sudo /etc/rc.d/rsyncd start
sudo vserver vrhas3template01 build -m skeleton -n vrhas3template01 --context 
30 --hostname vrhas3template01.corporate.net --interface 172.27.XX.XX --netdev 
eth0 --netmask 255.255.248.0 --initstyle plain

ssh calcrs03
cat /home/sig/rsync-exclude.txt
/u01/
/u02/
/u03/
/u04/
/u05/
/u06/
/u07/
/u08/
/u09/
/u10/
/u11/
/u99/
/unix_data/
/proc/
/dev/
/boot/

sudo rsync -avz -e ssh --exclude-from=/home/sig/rsync-exclude.txt / 
172.27.XX.XX:/vservers/vrhas3template01

ssh calvunix02
sudo vi /vservers/vrhas3template01/etc/resolv.conf
sudo vi /vservers/vrhas3template01/etc/fstab
sudo vi /vservers/vrhas3template01/etc/hosts
sudo vi /vservers/vrhas3template01/etc/ssh/sshd_config
X11UseLocalhost no - Needed for vserver x forwarding
sudo vi /vservers/vrhas3template01/etc/sysconfig/network
set hostname
sudo vi /vservers/vrhas3template01/etc/rc.sysinit
remove mtab references
remove tty references
sudo vi /vservers/vrhas3template01/etc/inittab
remove tty references
check over /usr/local/etc/vservers/vrhas3template01/..

sudo vserver vrhas3template01 start
sudo vserver-stat
sudo vserver vrhas3template01 enter










-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Ehab Heikal
Sent: Tuesday, January 24, 2006 6:13 PM
To: vserver@list.linux-vserver.org
Subject: [Vserver] Virtualizing a physical server


I need to setup a development or staging server of an existing running
server. Is there a tool to do so?

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


RE: [Vserver] Virtualizing a physical server

2006-01-25 Thread Ehab Heikal
The section starting with 
sudo vi /vservers/vrhas3template01/etc/resolv.conf
Are these files that I should manually edit?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Wednesday, January 25, 2006 7:02 PM
To: vserver@list.linux-vserver.org
Subject: RE: [Vserver] Virtualizing a physical server


This is what I did.  Modify as required.

Hope it helps.
sig



Creating a vserver from a non-vserver host (The server was redhat AS 3)

* Clone host1 (non-vserver) to host2:vserver1

calcrs03 -- calvunix02:rhas3template01


ssh calvunix02
sudo /etc/rc.d/rsyncd start
sudo vserver vrhas3template01 build -m skeleton -n vrhas3template01
--context 30 --hostname vrhas3template01.corporate.net --interface
172.27.XX.XX --netdev eth0 --netmask 255.255.248.0 --initstyle plain

ssh calcrs03
cat /home/sig/rsync-exclude.txt
/u01/
/u02/
/u03/
/u04/
/u05/
/u06/
/u07/
/u08/
/u09/
/u10/
/u11/
/u99/
/unix_data/
/proc/
/dev/
/boot/

sudo rsync -avz -e ssh --exclude-from=/home/sig/rsync-exclude.txt /
172.27.XX.XX:/vservers/vrhas3template01

ssh calvunix02
sudo vi /vservers/vrhas3template01/etc/resolv.conf
sudo vi /vservers/vrhas3template01/etc/fstab
sudo vi /vservers/vrhas3template01/etc/hosts
sudo vi /vservers/vrhas3template01/etc/ssh/sshd_config
X11UseLocalhost no - Needed for vserver x forwarding
sudo vi /vservers/vrhas3template01/etc/sysconfig/network
set hostname
sudo vi /vservers/vrhas3template01/etc/rc.sysinit
remove mtab references
remove tty references
sudo vi /vservers/vrhas3template01/etc/inittab
remove tty references
check over /usr/local/etc/vservers/vrhas3template01/..

sudo vserver vrhas3template01 start
sudo vserver-stat
sudo vserver vrhas3template01 enter










-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Ehab Heikal
Sent: Tuesday, January 24, 2006 6:13 PM
To: vserver@list.linux-vserver.org
Subject: [Vserver] Virtualizing a physical server


I need to setup a development or staging server of an existing running
server. Is there a tool to do so?

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


RE: [Vserver] Virtualizing a physical server

2006-01-25 Thread smagnuson

yup


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Ehab Heikal
Sent: Wednesday, January 25, 2006 7:30 PM
To: vserver@list.linux-vserver.org
Subject: RE: [Vserver] Virtualizing a physical server


The section starting with 
sudo vi /vservers/vrhas3template01/etc/resolv.conf
Are these files that I should manually edit?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Wednesday, January 25, 2006 7:02 PM
To: vserver@list.linux-vserver.org
Subject: RE: [Vserver] Virtualizing a physical server


This is what I did.  Modify as required.

Hope it helps.
sig



Creating a vserver from a non-vserver host (The server was redhat AS 3)

* Clone host1 (non-vserver) to host2:vserver1

calcrs03 -- calvunix02:rhas3template01


ssh calvunix02
sudo /etc/rc.d/rsyncd start
sudo vserver vrhas3template01 build -m skeleton -n vrhas3template01
--context 30 --hostname vrhas3template01.corporate.net --interface
172.27.XX.XX --netdev eth0 --netmask 255.255.248.0 --initstyle plain

ssh calcrs03
cat /home/sig/rsync-exclude.txt
/u01/
/u02/
/u03/
/u04/
/u05/
/u06/
/u07/
/u08/
/u09/
/u10/
/u11/
/u99/
/unix_data/
/proc/
/dev/
/boot/

sudo rsync -avz -e ssh --exclude-from=/home/sig/rsync-exclude.txt /
172.27.XX.XX:/vservers/vrhas3template01

ssh calvunix02
sudo vi /vservers/vrhas3template01/etc/resolv.conf
sudo vi /vservers/vrhas3template01/etc/fstab
sudo vi /vservers/vrhas3template01/etc/hosts
sudo vi /vservers/vrhas3template01/etc/ssh/sshd_config
X11UseLocalhost no - Needed for vserver x forwarding
sudo vi /vservers/vrhas3template01/etc/sysconfig/network
set hostname
sudo vi /vservers/vrhas3template01/etc/rc.sysinit
remove mtab references
remove tty references
sudo vi /vservers/vrhas3template01/etc/inittab
remove tty references
check over /usr/local/etc/vservers/vrhas3template01/..

sudo vserver vrhas3template01 start
sudo vserver-stat
sudo vserver vrhas3template01 enter










-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Ehab Heikal
Sent: Tuesday, January 24, 2006 6:13 PM
To: vserver@list.linux-vserver.org
Subject: [Vserver] Virtualizing a physical server


I need to setup a development or staging server of an existing running
server. Is there a tool to do so?

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver