C2: Insanely Affordable x86-64 Servers
-
Basically a hosted home lab
Basic Web Server
OwnCloud
JumpboxEtc
-
-
@aaronstuder said:
Basically a hosted home lab
Basic Web Server
OwnCloud
JumpboxEtc
Well. Let's use 20VMs. If you are talking $5 instances, that's going to be $100/mo. You could buy a small server and go to colo for that price.
-
For cost effective, a box at home is the best, obviously.
-
If you don't want VMs, containers are lighter and faster. So pretty much any system where you can run LXC will do nicely.
-
@scottalanmiller said:
If you don't want VMs, containers are lighter and faster. So pretty much any system where you can run LXC will do nicely.
Yup. Exactly what I do on Vultr, and I have a VM at home for LXC. XO runs in LXC and when a new version comes out, Ansible clones it and updates it for me but leaves the old container. I don't have to do any work at all. Then if a bug happens like the recent backup to NFS bug, I just use the old container.
-
LXC or LXD?
-
-
With containers I might not need nearly as much RAM
-
@scottalanmiller said:
@aaronstuder said:
LXC or LXD?
LXD is an LXC interface.
Ubuntu is working on live migration with LXD. That will be awesome.
-
That will be awesome! How do you backup containers?
-
@aaronstuder said:
That will be awesome! How do you backup containers?
Just tar the container folder. You can also do file level backups of the containers. LXC by default stores everything in
/var/lib/lxc/
so if you want to restore a file tocontainer1
you could just cp it back to/var/lib/lxc/container1/root/pathtofolder/
-
@johnhooks Can I do that with the containers running?
-
Can I run different Distros in containers or just the same as the host?
-
@aaronstuder said:
@johnhooks Can I do that with the containers running?
Which file level restore or using tar?
-
@aaronstuder said:
Can I run different Distros in containers or just the same as the host?
You can run different distros. But I think you need to match systemd and init between host and container though.
-
@johnhooks tar. I assume rsync would work too?
-
@aaronstuder said:
@johnhooks tar. I assume rsync would work too?
I think you have to stop the container to do that. Ya rsync works also.
-
@johnhooks said:
You can run different distros. But I think you need to match systemd and init between host and container though.
How would check that? I am a huge CentOS7 fan
-
@johnhooks should be super easy to write a script to stop containers, tar them and start them again.