Get Paid to Participate - up to $1 per post!     Twitter     Facebook
Hosting Discussion
 

Hosting Discussion > Web Hosting Forums > Web Hosting Discussion > Single VPS with Publicly Accessible Containers
forgot password?



FORUM SUPPORTERS:

Reply


Old
  Post #1 (permalink)   05-06-2018, 12:03 PM
HD Newbie
 
Join Date: May 2018
Posts: 1

Status: Boric is offline
First off, let me start by saying I am no expert in server talk. I've been teaching myself as I go along, and I really only know some basics.

I am trying to consolidate all of my many single instance VPS's and put them into a single VPS.

Each VPS I currently have runs a simple stack for serving WordPress.

- Ubuntu 18.04 LTS
- PHP/7.2
- MySQL
- Caddy HTTPS/2 server engine
- Fail2Ban

Each runs with 25gb SSD drive (I only need ~5gb per website) && 1GB of resource RAM. For me, these resources are great. But running close to 10 websites is around 55$ a month (Vultr) . Instead, I would like to try out a service (SSD Nodes) that is offering these specs/price:

16GB RAM
80GB SSD
04 vCores
8.0TB Bandwidth
40GB I/O

All for ~ 9$ a month (if you purchase a 3 year plan) ~11$ a month (if you purchase a 1 year plan)

I would use this single VPS to run Ubuntu 18.04 and then use LXD/LXC to provision containers that can then house each website individually.

Each container can then be limited to whatever resources I would like (within the single VPS limits). This would save me money, allow me room for more websites/projects down the road, and create a more manageable interface for maintenance.

Here's a sample overview of what I'd like to accomplish.


Host Machine--

[container01]
[container02]
[container03]
[container04]

[snapshot of clean stack install for easy resetting/re-deployment]

________________________

I have tried this set-up in a local test environment as well as a test live environment and I cannot seem to find a fix for my issue.

My only issue with trying this set-up is that I cannot get my newly created containers to be passed through the main IP address to be able to access each container publicly. I created each container and changed the default bridge to utilize 'macvlan' which effectively assigns them 'physical' addresses. However, these 'physical' addresses are only useful for internal use as they are '10' based IP addresses and cannot be accessed publicly.

This is where I get lost and I have not been able to find a solution

Would anyone here be able to advise me in this particular case? Or do I have to scrap this whole idea since it just would not work?

Thank you,
Boric
 
 
 


Old
  Post #2 (permalink)   05-08-2018, 01:07 PM
HD Newbie
 
Join Date: Apr 2018
Location: Birmingham, AL
Posts: 32

Status: KnownHost is offline
Is there any particular reason you need that level of complexity with your setup?

Not saying it's wrong as having them in individual containers will give you far more control than anything else but you do then have multiple containers to keep patched, updated and secured.

Are you using public IP address space for both the host machine and the containers, or are you trying to NAT them?
__________________
KnownHost® your premium managed hosting provider. Contact us today so that we can handle your hosting needs. Offering Cloud based Shared and Reseller hosting services, OpenVZ and KVM VPS product lines and a full array of Managed Dedicated Servers! Contact us today. https://www.knownhost.com
 
 


Old
  Post #3 (permalink)   06-28-2018, 08:23 AM
HD Community Advisor
 
ughosting's Avatar
 
Join Date: Jan 2011
Location: London
Posts: 683

Status: ughosting is offline
An openVZ box like SolusVM or ProxMox should do what you are after out of the box.
OpenVZ will run install Xen, KVM or VMWare etc
__________________
UnixGuru High Performance, Low Contention, Litespeed Hosting
Elastic Sites (HIgh Powered Hosting Accounts) with 1 to 20 CPU Cores, 4 to 42GB of RAM. (Power of a VPS with the ease of Shared Hosting)
PHP and Node.JS on Shared, Reseller, & VPS hosting
 
 
 


Old
  Post #4 (permalink)   06-30-2018, 01:16 PM
HD Newbie
 
Join Date: Jun 2018
Posts: 7
Send a message via Skype™ to dineshsma

Status: dineshsma is offline
From what I understood, you want flexibility over the resources so you want to go for containers.

I suggest you to disable the default LXC bridge and try to create bridge on the host machine with static IP and then configure the containers to use the new bridge.
__________________
TRY OUT FREE!!! -- Expert in Server Management, Server Hardening & Server Optimization.
https://www.servermanagementadmins.com
IM (skype): servermanagementadmins Email: sales[at]servermanagementadmins[dot]com
 
 
 
Reply

Thread Tools

New Post New Post   Old Post Old Post
Posting Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Sponsored By: