Jump to content

How to VDS a dedicated server?


Recommended Posts

  • Premium

Hmm , i don't know if you understood what i mean from the title of this topic but :

I got a dedicated server from ovh.ie , and i want to have 2 servers on it ,with 2 different ips .

1 to have 64 gbs of ram and 8 cores of cpu , another 1 the same.  And i don't know how to do it.

do you have any suggestions ?

 

Any tutorial can help me , just express your opinion .

 

Edited by Dr3Ame3r
Link to comment
Share on other sites

  • Premium

Easiest way to do that: So called FreeBSD Jails.

They're like a virtual environment where you can run your services at. Oh, and you need at least two ips pointing to your server. With PF you can forward everything to your jails, so if you don't have 2 ips you can also forward ports to one of your servers :)

​Yes but how do i assing an ip to that vm , how should i forward that "everything"

Link to comment
Share on other sites

You can work with aliases

http://www.cyberciti.biz/tips/freebsd-how-to-setup-2-ip-address-on-one-nic.html

And then let a firewall, ipfw or pf do the forwarding. For example set up a jail, assign a local ip adress to it and then use pf to forward the traffic from one of your ip addresses to this exact local ip address. pf can do NAT, so it'd be no problem to set it up.

For this you may look for NAT. For example here's something for PF http://www.openbsd.org/faq/pf/nat.html

It's a OpenBSD manual but it should work here too :)

Link to comment
Share on other sites

  • Premium

It's kinda complicated for me to make this work because it's my first time doing this and .. yea , it's hard . But i'll try my best. If i will encounter any problems i would be glad to ask you . Thanks again

If you need help, feel free to ask further questions :)

​I have one little question , how is this jail thing works ? I'll want to have 2 databases on the same machine . I mean , what that jail thing really do ? Just forward some port things to an ip? If yes , it's kinda not what i'm searching . I want like , 2 vds . And i'm wondering how to do that.

Edited by Dr3Ame3r
Link to comment
Share on other sites

A jail is a FreeBsD environment based on chroot. You create a subsystem which is seperated from the rest of your system: Just like a vm.

You can install services on those jails. So you can for sure install mysql twice on your machine if you're running jails. Jails are like the virtual machines but only for FreeBSD and they're already implemented. So you won't have to deal with third party applications, you can create your own jail without the need of vmware, virtualbox or anything else.

 

NAT is for forwarding traffic to your internal ip. Let's check on the following scenario:

1. You have two jails which run at 192.168.0.50 and 192.168.0.51 for example.

2. Your own system listens on the following ips 87.65.43.21 and 87.65.43.22 and 87.65.43.23

If you want to connect to your jails, you're going to have a bad time. Connecting to one of the three ips always results into a connection to your main server but not to your jails! To make them accessable to public you can use NAT. Your firewall then deals with the connection and forwards them. For example:

1. Let your firewall forward connections to ip 87.65.43.22 to 192.168.0.50

2. Let your firewall forward connections to ip 87.65.43.23 to 192.168.0.51

Which results in the following behaviour:

1. Connecting to 87.65.43.22 will be forwarded so you land on your first jail

2. Connecting to 87.65.43.23 will be forwarded so you land on your second jail

3. Connecting to 87.65.43.21 will not be forwarded and you land on your main system.

That's a brief showcase what NAT can do for you. NAT does not represent jails, it's only (like the name tells you) a network translation service.

 

I hope I explained it well this time :)

Edited by Alina
Link to comment
Share on other sites

  • 2 weeks later...
  • Premium

A jail is a FreeBsD environment based on chroot. You create a subsystem which is seperated from the rest of your system: Just like a vm.

You can install services on those jails. So you can for sure install mysql twice on your machine if you're running jails. Jails are like the virtual machines but only for FreeBSD and they're already implemented. So you won't have to deal with third party applications, you can create your own jail without the need of vmware, virtualbox or anything else.

 

NAT is for forwarding traffic to your internal ip. Let's check on the following scenario:

1. You have two jails which run at 192.168.0.50 and 192.168.0.51 for example.

2. Your own system listens on the following ips 87.65.43.21 and 87.65.43.22 and 87.65.43.23

If you want to connect to your jails, you're going to have a bad time. Connecting to one of the three ips always results into a connection to your main server but not to your jails! To make them accessable to public you can use NAT. Your firewall then deals with the connection and forwards them. For example:

1. Let your firewall forward connections to ip 87.65.43.22 to 192.168.0.50

2. Let your firewall forward connections to ip 87.65.43.23 to 192.168.0.51

Which results in the following behaviour:

1. Connecting to 87.65.43.22 will be forwarded so you land on your first jail

2. Connecting to 87.65.43.23 will be forwarded so you land on your second jail

3. Connecting to 87.65.43.21 will not be forwarded and you land on your main system.

That's a brief showcase what NAT can do for you. NAT does not represent jails, it's only (like the name tells you) a network translation service.

 

I hope I explained it well this time :)

I still searched for about 1 almost 2 weeks and i've found nothing .. no one can properly explain how this works .. If i'll have mysql installed , all other vps will have it ..

I talked to the hosting provider and they can provide me

 

VMware ESXi 6.0
VMware ESXi 5.5
VMware ESXi 5.0
Citrix Xen Server 6.5
Proxmox VE 3
SolusVM (Master)
SolusVM (Slave)
Windows Server 2008 R2 SP1 Datacenter Edition + Virtuozzo 4.6
Windows Server 2008 R2 SP1 Standard Edition + Virtuozzo 4.6
Windows Server 2008 Datacenter SP2 + Virtuozzo 4.6
Windows Server 2008 R2 SP1 Enterprise Edition + Virtuozzo 4.6
Microsoft Hyper-V Server 2008 R2
Windows Hyper-V Server 2012

 

As virtualisation softwares , but i can't use them because i want freebsd and some with centos / linux  ( metin2 works only on freebsd as i understood )

So .. it's a bit retarded situation ..

 

I'm looking forward for solusvm who can handle openvz , i think that is the best solution.

 

Edited by Dr3Ame3r
Link to comment
Share on other sites

  • 8 years later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.