VPS v. Cloud hosting

I know FreeBSD runs on Oracle cloud since I have 2 free tier instances there running since 13.1-RELEASE
How did you install it? First Ubuntu and then dd the image of openbsd installer on what raw device?

And how do you avoid 80% idle? I am running bionc in a ubuntu vm, but openbsd does not support it.

I do not want to expend too much time end effort if Oracle will take it away after 2 weeks. It needs real effort to deal with the oci.
 
balanga, this gives one way to run a jail but using one public IP. (In answer to You clone lo1 (that's L o One, not lol), write a simple pf.conf and run the jails on one IP that goes to your router. If running it from home, use dynDSN or similar. The article is old but still works well.


I use this to run a mirror of my site (srobb.net) off of a computer at home (www.scottro.net). I've been doing it for awhile now, if I remember correctly, the original article didn't use ezjail, and I just made a simple jail, called, oddly enough, webjail.
 
How did you install it? First Ubuntu and then dd the image of openbsd installer on what raw device?

And how do you avoid 80% idle? I am running bionc in a ubuntu vm, but openbsd does not support it.

I do not want to expend too much time end effort if Oracle will take it away after 2 weeks. It needs real effort to deal with the oci.
I used an image from the marketplace. I found the https://blogs.oracle.com/cloud-infrastructure/freebsdarm64-now-available-in-oci and https://github.com/oracle-quickstart/oci-freebsd - I am running an ultra-low-volume nginx which basically does not do anything, however, so far it has never been reclaimed, probably the webcrawlers are good for me :-D ... alternative: https://github.com/2Shad/OCI-Idle-Avoidance
 
Aye, that's one of the neat things about a VPS or cloud, it can easily scale. So start small, keep an eye on your performance metrics and scale up if necessary.
 
What should I keep an eye for measuring performance?
CPU, memory and storage, the standard metrics are the most important. CPU load is interesting to watch but should be averaged out over a longer period of time. It's not that useful to add more cores if you only have an incidental CPU load spike for example. If you have more frequent spikes or if the overal average CPU load increases then it might be useful to add more cores. But this is also depended on what's actually running on that host. Certain application loads don't really benefit from more cores, while others can gain a lot.
 
I used an image from the marketplace.
I would not trust an image of unknown origin. OpenBSD is easy to install, but it will necessary to trick a little to get it there.

Did you get an arm VM? I tried many times and gave up, now I am with Ubuntu in the mini AMD VM, and have a second.
Perhaps I try later with OpenBSD.

I am loading the CPU for a good purpose, no vicious loop, and works very good till now:

 
I would not trust an image of unknown origin. OpenBSD is easy to install, but it will necessary to trick a little to get it there.

Did you get an arm VM? I tried many times and gave up, now I am with Ubuntu in the mini AMD VM, and have a second.
Perhaps I try later with OpenBSD.

I am loading the CPU for a good purpose, no vicious loop, and works very good till now:

well, I have no problem with trusting a cloud image from the FreeBSD Foundation, for me it is more of a question what data is unimportant enough so I can host it on a cloud infrastructure where the provider has access any time they want. I also have an arm VM which works great and is much faster than an x86, and so far I have not had any problems with upgrades since 13.1.
 
I also have an arm VM which works great and is much faster than an x86, and so far I have not had any problems with upgrades since 13.1.
How did you get it? :)
I tried to get it many times, but I get error, it seems the demand is very big, at least in Frankfurt.

This is what I get:
API Error Out of capacity for shape VM.Standard.A1.Flex in availability domain AD-1. Create the instance in a different availability domain or try again later.If you specified a fault domain, try creating the instance without specifying a fault domain. If that doesn’t work, please try again later.Learn more about host capacity.
 
I think it's impossible by now ... I have tried many times for two years now, and always got the same error like you did.
 
I think it's impossible by now ...
Hence, I installed now a mini AMD VM running FreeBSD. For me very usable.
I pay 1 EUR/Month for something much smaller (500MB Ram and 20 GB Disk, no possibility to run *BSD).

The real problem is to keep it loaded with work. And to put a DNS reverse pointer without having to pay later to delete it.
And to make it allow connections to port 25 on outside world. Paying has advantages.
 
The question is

1) If Free- / OpenBSD runs on them. I just installed ubuntu what they offer.

2) If you do not use it, they take it away. Better to pay and have no stress.
#2 you can trick oracle into thinking you are using the system regularly. Install and use the program called 'stress' and create a crontab entry like this:
Code:
crontab -e
  */15 * * * * stress -c 1 -t 15

That will load up the CPUs to 100% usage for 15 seconds every 15 minutes.
 
I have my VPS now, and would like to know how to ssh into from my home without entering a password.

Can anyone give me a clue?

I've never understood SSH KEYs.
 
SSH keys aren't, IMHO, that complicated. (Of course, most things are easy when you know how to do them). Anyway, here's a DigitalOcean guide that seems pretty straight forward.


The stuff at the beginning might prove useful to you for better understanding it, but I think you might be able to skip right to the section Generating and Working With SSH Keys. There's a table of contents on the left and you can just go to that part. I just skimmed the article, so, in case it doesn't mention it, in my opinion set up the key for a username and have that user be able to su to root (or use sudo, doas or mdo--assuming you're using FreeBSD, if using Linux sudo is probably easiest) rather than setting up an ssh key for root.
 
SSH keys aren't, IMHO, that complicated. (Of course, most things are easy when you know how to do them). Anyway, here's a DigitalOcean guide that seems pretty straight forward.

My problem is that I tend to get overwhelmed when confronted with numerous options such as rsa, ecsda etc. none of which I understand.
 
After trying to ssh into my VPS I get:-

Permission denied (publickey,keyboard-interactive).

Looks like I haven't configured it correctly. I think I just used the defaults.
From what I have read I need to edit sshd_config but how can I do that if I can't login?

Do I need to reinstall FreeBSD on the server?
 
From what I have read I need to edit sshd_config
No, by default sshd(8) will accept both passwords and ssh keys. No need to configure anything.

Did your VPS have a ready-made FreeBSD image? Or did you do the install remotely yourself? If it's a pre-made VPS image from that provider it may have been configured with a default username/password combination. Something you regularly seem to skip entirely, read their documentation.
 
Back
Top