OpenVZ is total crud. I thought about giving this thread the title, "No kernel no problem - no Brain no pain", but that really wouldn't help someone who purchased a crummy OpenVZ VPS from some cut-rate provider now would it?
There are plenty of freeshell providers out there who will give you a chroot'd environment or a BSD jail to work from - so why pay for some fake vps that claims to be its own machine when it's really just a container above a jail shell?
Well, I don't get it, but people buy them. I have to sleep at night and since I prefer to do so without having to take lots of valium I don't offer OpenVZ - Only Xen, KVM, and VMware VPS/Cloud services.
Oh, some people still want a dedicated physical server. I sell co-location too - not because I think it's hardly ever a good idea, but because it is a good, although expensive solution.
I understand the vanity of being able to say "Hey I own my own server in a rack somewhere", but not really the reason for it, unless they're going to use that server to host virtualization technologies LOL!
But I digress. This is a quick, down and dirty, cookbook tutorial for getting Slackware up and running on one of those cruddy OpenVZ VPS systems.
I'm writing this because we get a lot of folks asking why they're having so many problems with their Slackware, Gentoo, and firewalls for all kinds of distributions.
The reason in a nutshell is: No kernel no problem! um... no brain no pain! er... You're sharing your kernel and some other stuff with every other person on that box!!!!
Okay, here's what happens. your provider creates or downloads a "Minimal" template from somewhere. That's okay with the netinstall for CentOS and debian, but Slackware likes to have pretty much a full install.
Sure, you don't have to, but you'll end up installing all kinds of libs, one by one, until you hammer out the significance as to why you should, even though you're not going to use certain parts of it. But you will.
That's why Slackware is one of those, "It just works" distros. Because you have a huge amount of libraries to support most of what you are going to install, and unlike distros like CentOS, you're not hemmed into being two years behind the software curve, and then locked in.
Okay. Real quick. "Why doesn't my firewall work?" Answer: Don't install any mods as part of your firewall - just keep it simple, stupid, lame, and ineffectual. Sure, you're vulnerable, but that's okay because your machine doesn't have a brain, I mean, it's own kernel, anyway
You're limited to whatever the provider has compiled their kernel to support and that is it buddy!
Most of them won't tell you how they've set things up, but there are ways which you can glean this info (beyond the scope of this tutorial).
You clicked on that SolusVM button in your VPS Control Panel that says, install OS...
You've given it a few minutes now and your dashboard is green. That's good! You now have a shiny new OS that people are already scanning and preparing to cr4ck.
You might want to think about that firewall now... And read my article on securing SSH too.
Since your providers template was a Slackware-minimal, it is quite likely that you don't even have the tools installed to install the tools you need! And you need Slackpkg to install the rest of your operating system before you start getting down to what you wanted to do with your box, like... maybe run an email and webserver?
The first thing you're probably going to need to get on your system is Curl. You're going to have to SCP that over. You can locate everything you need from HERE for Slackware and HERE for Slackware64. I'll focus on the 32bit version of Slackware for the purposes of this tutorial. After all, we're talking OpenVZ aren't we?
Just look in the file named, FILE_LIST and it will tell you exactly where you need to download your packages from.
Here's the problem. You don't have wget. you don't have lynx, elinks, you don't even have the crypt libs that you need to use wget and run Slackpkg to get the rest of your OS.
So you're going to have to get creative. Download it to another box (along with a few other things in the list below) and then scp it on over. Then you can use curl to get the rest until you have enough to run wget and Slackpkg.
Now we need to configure and prepare sbopkg for usage.
edit /etc/sbopkg/sbopkg.conf and change the following:
Now run sbopkg from the command line,
accept the creation of the new dirs by entering 'c'.
Once that has finished, allow a sync with the SBo repo.
You can quickly install software with a single flick of the wrist by typing:
# sbopkg -i bmon
And bmon will automagically be installed!
use '-s' if you want to search for something by name, without installing it, and '-g' to search with a little bit of fuzzy logic. Running sbopkg by itself opens an interactive graphical session and you can search and queue up several packages, but that is another tutorial, and probably more appropriate for another forum other than a VPS tutorial that explains how to finish installing your operating system once you buy your OpenVZ VPS (Like this tutorial does!).
Anyway, now you have a fully installed, complete, and current Slackware Linux Operating system