OpenVZ Forum


Home » Mailing lists » Users » Openvz Application
Openvz Application [message #9340] Wed, 27 December 2006 13:39 Go to next message
David Baron is currently offline  David Baron
Messages: 3
Registered: December 2006
Junior Member
What I am thinking of trying is:

Virtual machine will handle all internet access (router/proxy). It would have
apache running as a webserver, possibly SMTP server as well. Sites may or may
not be opened to the rest of the world. Maybe testing only on this v-server.
Would likely use the Debian stable cache provided.

Host machine will access the internet using this router, the web through the
proxy with Dansgardian (or would this be on the virtual as well). Running
Debian Sid with patched 2.6.18 most recent kernel.

How do I set this up? Internet connection is ADSL but NOT PPPOEA. Would I
simply move relevant files to the VE?

Caveats:
1. I only have 512m memory, PIII 575mhz junker.
2. I only have one, dynamic IP (but as I said, the ve would use this and be a
router to the host).
Re: Openvz Application [message #9341 is a reply to message #9340] Wed, 27 December 2006 16:50 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

David Baron wrote:
> What I am thinking of trying is:
>
> Virtual machine will handle all internet access (router/proxy). It would have
> apache running as a webserver, possibly SMTP server as well. Sites may or may
> not be opened to the rest of the world. Maybe testing only on this v-server.
> Would likely use the Debian stable cache provided.
>
> Host machine will access the internet using this router, the web through the
> proxy with Dansgardian (or would this be on the virtual as well). Running
> Debian Sid with patched 2.6.18 most recent kernel.
>
> How do I set this up? Internet connection is ADSL but NOT PPPOEA. Would I
> simply move relevant files to the VE?
>
> Caveats:
> 1. I only have 512m memory, PIII 575mhz junker.
> 2. I only have one, dynamic IP (but as I said, the ve would use this and be a
> router to the host).
dynamic IP means DHCP? if so, then you will need to use veth networking for
being able to use broadcasts.
in other regards, I see no much problems.
if you want to use it as a router, I would add ethernet adapters and
granted them to VE for exclusive usage.

Kirill
Re: Openvz Application [message #9343 is a reply to message #9341] Wed, 27 December 2006 17:28 Go to previous messageGo to next message
David Baron is currently offline  David Baron
Messages: 3
Registered: December 2006
Junior Member
On Wednesday 27 December 2006 18:58, Kirill Korotaev wrote:
> David Baron wrote:
> > What I am thinking of trying is:
> >
> > Virtual machine will handle all internet access (router/proxy). It would
> > have apache running as a webserver, possibly SMTP server as well. Sites
> > may or may not be opened to the rest of the world. Maybe testing only on
> > this v-server. Would likely use the Debian stable cache provided.
> >
> > Host machine will access the internet using this router, the web through
> > the proxy with Dansgardian (or would this be on the virtual as well).
> > Running Debian Sid with patched 2.6.18 most recent kernel.
> >
> > How do I set this up? Internet connection is ADSL but NOT PPPOEA. Would I
> > simply move relevant files to the VE?
> >
> > Caveats:
> > 1. I only have 512m memory, PIII 575mhz junker.
> > 2. I only have one, dynamic IP (but as I said, the ve would use this and
> > be a router to the host).
>
> dynamic IP means DHCP? if so, then you will need to use veth networking for
> being able to use broadcasts.
Dynamic IP means that every time I log onto the provider or the network goes
down and come back up, I am "assigned" a different IP number.
What is veth networking?

> in other regards, I see no much problems.
> if you want to use it as a router, I would add ethernet adapters and
> granted them to VE for exclusive usage.
There is one t10 card connected to an ADSL modem (not a router). This is eth0
on the host machine right now. There is a non-connected venet0 defaulted on
bootup with openvz started.

I sort of need step by step since I do not fully understand the paradigm
(quite different from vmware, qemu, etc).

I suppose I need to create the VE with the Debian3.1
Add apache, inetd, et al or are they already there?
Configure the VE's bootup scripts for the ethernet card, etc.
Re: Openvz Application [message #9345 is a reply to message #9343] Wed, 27 December 2006 19:16 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

David Baron wrote:
> I sort of need step by step since I do not fully understand the paradigm
> (quite different from vmware, qemu, etc).
>

A good start could be http://wiki.openvz.org/Category:Networking
Re: Openvz Application [message #9351 is a reply to message #9343] Thu, 28 December 2006 08:02 Go to previous message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

David,

it would help a lot if you could draw a network configuration you want to get
with interfaces, it's names, hosts, etc.
right now, I'm bit confused about which interfaces you have.
one, according to you, is ADSL which is visible as eth0.
But router usually should have some other interfaces where to route to :)
So a good description would immideately helped.

venet/veth is 2 types of networking available to VE in OpenVZ.
venet is a secure IP-level networking, while veth is ethernet-like
device working with broadcasts etc. (additional to IP).

Thanks,
Kirill

> On Wednesday 27 December 2006 18:58, Kirill Korotaev wrote:
>
>>David Baron wrote:
>>
>>>What I am thinking of trying is:
>>>
>>>Virtual machine will handle all internet access (router/proxy). It would
>>>have apache running as a webserver, possibly SMTP server as well. Sites
>>>may or may not be opened to the rest of the world. Maybe testing only on
>>>this v-server. Would likely use the Debian stable cache provided.
>>>
>>>Host machine will access the internet using this router, the web through
>>>the proxy with Dansgardian (or would this be on the virtual as well).
>>>Running Debian Sid with patched 2.6.18 most recent kernel.
>>>
>>>How do I set this up? Internet connection is ADSL but NOT PPPOEA. Would I
>>>simply move relevant files to the VE?
>>>
>>>Caveats:
>>>1. I only have 512m memory, PIII 575mhz junker.
>>>2. I only have one, dynamic IP (but as I said, the ve would use this and
>>>be a router to the host).
>>
>>dynamic IP means DHCP? if so, then you will need to use veth networking for
>>being able to use broadcasts.
>
> Dynamic IP means that every time I log onto the provider or the network goes
> down and come back up, I am "assigned" a different IP number.
> What is veth networking?
>
>
>>in other regards, I see no much problems.
>>if you want to use it as a router, I would add ethernet adapters and
>>granted them to VE for exclusive usage.
>
> There is one t10 card connected to an ADSL modem (not a router). This is eth0
> on the host machine right now. There is a non-connected venet0 defaulted on
> bootup with openvz started.
>
> I sort of need step by step since I do not fully understand the paradigm
> (quite different from vmware, qemu, etc).
>
> I suppose I need to create the VE with the Debian3.1
> Add apache, inetd, et al or are they already there?
> Configure the VE's bootup scripts for the ethernet card, etc.
Previous Topic: Installing BIND on VE's
Next Topic: Some VE on one HW node cannot communicate each other (getting Time to live exceeded)
Goto Forum:
  


Current Time: Tue Feb 27 15:07:17 GMT 2024

Total time taken to generate the page: 0.02618 seconds