Daniel Bauer | 1 Feb 2006 09:25
Picon

openvz and SuSE

Hello  <at> all,

I'm tried to work with XEN3 and SuSE but I've the problem with compiling 
my own kernel (SMP, 64GB). So I've read the artikel about openvz and 
think it's better for me because I only need linux VPS on i386 machines.

Is it possible to patch a running SuSE Box with openvz? And how to setup 
a SuSE VPS on this host, are there any good HowTos for this? German is 
prefered.

Thanks a lot
Daniel 

Kir Kolyshkin | 1 Feb 2006 09:43
Favicon

openvz and SuSE

Which suse version do you have?

Specifically, we do not currently provide suse rpms, but the ones made 
for redhat should be OK. Latest vzctl (an utility to control VPSs) 
version that fixes initscript to work with SuSE will be released today 
or tomorrow.

As for the suse VPS, there is a opensuse-10 precreated VPS template 
available. Unfortunately for its networking to work it requires some 
stuff from kernel (sysfs support from inside a VPS), and this is off by 
default in our kernel. The situation will be fixed with the release of 
068 (or later) kernel there sysfs can be turned on/off per VPS. For now, 
you need to change one config setting and recompile the kernel to get 
opensuse-10 template working.

Our future plans include releasing a custom kernel which is basically 
SuSE kernel (all the SuSE patches and stuff) with OpenVZ functionality 
added. We will also be creating more suse templates.

Kir.

Daniel Bauer wrote:

> Hello  <at> all,
>
> I'm tried to work with XEN3 and SuSE but I've the problem with 
> compiling my own kernel (SMP, 64GB). So I've read the artikel about 
> openvz and think it's better for me because I only need linux VPS on 
> i386 machines.
>
(Continue reading)

Daniel Bauer | 1 Feb 2006 11:06
Picon

openvz and SuSE

Hi Kir,

From: "Kir Kolyshkin" <kir@...>
> Which suse version do you have?

9.3 or 10.0, I prefer 9.3, the VPS should be SuSE 9.3

> Specifically, we do not currently provide suse rpms, but the ones made 
> for redhat should be OK. Latest vzctl (an utility to control VPSs) 
> version that fixes initscript to work with SuSE will be released today 
> or tomorrow.
>
> As for the suse VPS, there is a opensuse-10 precreated VPS template 
> available. Unfortunately for its networking to work it requires some 
> stuff from kernel (sysfs support from inside a VPS), and this is off 
> by default in our kernel. The situation will be fixed with the release 
> of 068 (or later) kernel there sysfs can be turned on/off per VPS. For 
> now, you need to change one config setting and recompile the kernel to 
> get opensuse-10 template working.
>
> Our future plans include releasing a custom kernel which is basically 
> SuSE kernel (all the SuSE patches and stuff) with OpenVZ functionality 
> added. We will also be creating more suse templates.

so is it possible to patch a 9.3 kernel with the sources of OpenVZ for 
the host and build templates von 9.3 for the clients?

Daniel 

(Continue reading)

Kir Kolyshkin | 1 Feb 2006 13:00
Favicon

openvz and SuSE

Daniel Bauer wrote:

> From: "Kir Kolyshkin" <kir@...>
>
>> Daniel Bauer wrote:
>>
>>>> Which suse version do you have?
>>>
>>>
>>> 9.3 or 10.0, I prefer 9.3, the VPS should be SuSE 9.3
>>
>>
>> OK. I remember that somebody created some SuSE templates, search in 
>> forum.openvz.org.
>
>
> I've found this message:
> http://forum.openvz.org/index.php?t=msg&th=190&start=0&
>
> and his site
> http://web150.dd01.profihoster.net/
>
> but there is only a template for SuSE 9.3 64bit server-image for 
> openVZ (155 MB)

Ask the author about x86 (i386) template as well :) if he will have 
enough requests he may consider doing it :)

>> If you are brave enough you can try doing it all yourself. This is 
>> not very complicated -- basically you need to create a chrooted 
(Continue reading)

Daniel Bauer | 2 Feb 2006 12:27
Picon

openvz and SuSE

From: "Kir Kolyshkin" <kir@...>
> Daniel Bauer wrote:
>> From: "Kir Kolyshkin" <kir@...>
>>> Daniel Bauer wrote:
>>>>> Which suse version do you have?
>>>>
>>>> 9.3 or 10.0, I prefer 9.3, the VPS should be SuSE 9.3
>>>
>>>
>>> OK. I remember that somebody created some SuSE templates, search in
>>> forum.openvz.org.
>>
>>
>> I've found this message:
>> http://forum.openvz.org/index.php?t=msg&th=190&start=0&
>>
>> and his site
>> http://web150.dd01.profihoster.net/
>>
>> but there is only a template for SuSE 9.3 64bit server-image for
>> openVZ (155 MB)
>
> Ask the author about x86 (i386) template as well :) if he will have
> enough requests he may consider doing it :)
>
>>> If you are brave enough you can try doing it all yourself. This is
>>> not very complicated -- basically you need to create a chrooted
>>> environment with all the needed stuff installed. All the needed
>>> stuff are libraries, startup scripts and init, some programs (like
>>> ssh) etc. Then you run this in a VPS.
(Continue reading)

Kir Kolyshkin | 2 Feb 2006 13:06
Favicon

openvz and SuSE

Daniel Bauer wrote:

> ok, that sounds good, I'll have a try with SuSE.
>
> I've started now with installing fedora-core 4 and updated the kernel 
> as mentioned, some prebuild VPS are still running. But how can I 
> access now some physical harddiscs? I need to mount /dev/sdd1 (my data 
> partition).

See pages 66-67 of OpenVZ User's Guide. In short, here it is.

You just enable device access for a given VPS, like this:
vzctl set NNN --devnodes sdd1:rw --save

Next, you create the device file (you can just cp /dev/sdd1 
/vz/root/NNN/dev)

Next, you mount your partition from inside a VPS as usual.

> How to enable the second eth interface?

You want it to be dedicated to a single VPS, or you just want to access 
some other network via it?

In the first case, see page 68 of OpenVZ User's Guide. In the second 
case, use it as you would do on a normal Linux box, i.e. add IP, proper 
routes and everything should work.

> so you update this kernel with actual patches and the OpenVZ Users could
> install the new one everytime it's released?
(Continue reading)

Daniel Bauer | 2 Feb 2006 14:36
Picon

openvz and SuSE

From: "Kir Kolyshkin" <kir@...>
> Daniel Bauer wrote:
>
>> ok, that sounds good, I'll have a try with SuSE.
>>
>> I've started now with installing fedora-core 4 and updated the kernel 
>> as mentioned, some prebuild VPS are still running. But how can I 
>> access now some physical harddiscs? I need to mount /dev/sdd1 (my 
>> data partition).
>
> See pages 66-67 of OpenVZ User's Guide. In short, here it is.
>
> You just enable device access for a given VPS, like this:
> vzctl set NNN --devnodes sdd1:rw --save
>
> Next, you create the device file (you can just cp /dev/sdd1 
> /vz/root/NNN/dev)
>
> Next, you mount your partition from inside a VPS as usual.
>
>> How to enable the second eth interface?
>
> You want it to be dedicated to a single VPS, or you just want to 
> access some other network via it?
>
> In the first case, see page 68 of OpenVZ User's Guide. In the second 
> case, use it as you would do on a normal Linux box, i.e. add IP, 
> proper routes and everything should work.

Hi Kir,
(Continue reading)

Daniel Bauer | 3 Feb 2006 04:59
Picon

openvz and SuSE

From: "Kir Kolyshkin" <kir@...>
> Daniel Bauer wrote:
>> ok, that sounds good, I'll have a try with SuSE.

Is there a howto for creating templates, or should I start with building 
the directory tree by myself?

Why is the stuff double in private and root, I thougt that the root is 
only the mounted stuff from private?

>> I've started now with installing fedora-core 4 and updated the kernel 
>> as mentioned, some prebuild VPS are still running. But how can I 
>> access now some physical harddiscs? I need to mount /dev/sdd1 (my 
>> data partition).
>
> See pages 66-67 of OpenVZ User's Guide. In short, here it is.
>
> You just enable device access for a given VPS, like this:
> vzctl set NNN --devnodes sdd1:rw --save
>
> Next, you create the device file (you can just cp /dev/sdd1 
> /vz/root/NNN/dev)
>
> Next, you mount your partition from inside a VPS as usual.

Great!!!

>> How to enable the second eth interface?
>
> You want it to be dedicated to a single VPS, or you just want to 
(Continue reading)

Kir Kolyshkin | 3 Feb 2006 05:20
Favicon

openvz and SuSE

Daniel Bauer wrote:

> From: "Kir Kolyshkin" <kir@...>
>
>> Daniel Bauer wrote:
>>
>>> ok, that sounds good, I'll have a try with SuSE.
>>
> Is there a howto for creating templates, or should I start with 
> building the directory tree by myself?

No, there is no formal howto, but somehow people manage to find out all 
the details. It is probably not that hard, and there are two approaches:

(A)
Currently our template tools can use yum-enabled repositories, so the 
way to go is:
1. Take yum-enabled repo (or create one from a bunch of RPMS using 
createrepo).
2. Take one of the existing OS templates metadata and find out what is it.
3. Create a metadata for your OS template, based on the above.
4. Run vzpkgcache to create a template cache.

(B)
Alternative approach is just to install a set of packages into chrooted 
environment (in RPM world you use 'rpm -i --root' for that, in Debian 
world you use 'debootstrap'), then do some fine tuning and finally tar 
this environment. The final tarball can be placed to /vz/template/cache 
and used as a template. Basically, you need to install some basic stuff 
- system libraries, init scripts, useful binaries etc.
(Continue reading)

Mishin Dmitry | 3 Feb 2006 05:29
Picon

openvz and SuSE

> I've three nics, but only one venet0.
> i.e. eth0 is connected to intranet for use of VPS
>       (10.x.x.x)
>       eth1 is connected to internet for use of VPS
>       (20.x.x.x)
>       eth2 s connected to intranet only for use of the Host
>       (30.x.x.x)
>
> I'd like to use:
>     VPS1: intranet (eth0)
>     VPS2: internet (eth1)
>     VPS3: intranet (eth0) + internet (eth1)
>
> On the host (eth2) I don't want to have an IP of the intranet or
> internet, the nics should be used for the VPS.
>
> As I understand it's not possible to share a real nic with Host and
> diff. VPS, so howto setup this configuration?
You should assign IP from intranet to VPS1, IP for internet to VPS2 and both 
such IPs to VPS3. 

>
> Daniel
>
> _______________________________________________
> Users mailing list
> Users@...
> https://openvz.org/mailman/listinfo/users

--

-- 
(Continue reading)


Gmane