News for hackers. Stuff that matters.
Re:OpenBSD on Digital Ocean by walterbell on Wednesday July 08, 2015 @07:32PM (#9855316)
What is the technical blocker to installing OpenBSD without a FreeBSD shim, e.g. is there incompatible code in the OpenBSD installer?
Re:OpenBSD on Digital Ocean by TheDong on Thursday July 09, 2015 @03:52AM (#9856654)
On digital ocean you get a very limited set of boot options. You can't provide them your own installer, boot image, kernel, iso, or any of that jazz.

You also don't get a pre-boot console.

For linux, they don't even let you provide your own kernel in userland or the like, so there's actually no way to install a BSD from a linux shim on DO.

FreeBSD on DO is the only way to get an instance that is capable of booting anything non-linux, so it's necessary to start from freebsd.

Edit: It looks like the kernel limitation has been lifted for some linux instances too. See: https://www.digitalocean.com/community/tutorials/how-to-upda...

Re:OpenBSD on Digital Ocean by fxlv on Thursday July 09, 2015 @05:52AM (#9856985)
If yoy want to run your own kernel you can always use kexec (not ideal, but works): https://gist.github.com/cpuguy83/6143347
Re:OpenBSD on Digital Ocean by justincormack on Thursday July 09, 2015 @07:05AM (#9857185)
Has anyone got kexec to boot a non Linux kernel?
Re:OpenBSD on Digital Ocean by api on Wednesday July 08, 2015 @06:56PM (#9855151)
This also probably works on other cloud providers if they support a virtualization layer that OpenBSD will work with. I've heard of successes here too: https://vultr.com/

Just be sure you use miniroot58.fs -- OpenBSD 5.8 wasn't released when this was written.

Re:OpenBSD on Digital Ocean by aaron_m04 on Wednesday July 08, 2015 @11:21PM (#9856000)
Vultr allows installing from ISO, so no need to shim. I can verify that OpenBSD 5.7-stable will run with no issues. One thing to watch out for is that outgoing TCP connections to port 25 are blocked until you ask them to open it up.
Re:OpenBSD on Digital Ocean by protomyth on Thursday July 09, 2015 @08:34AM (#9857445)
"connections to port 25 are blocked until you ask them to open it up"

Thanks for that info, that seems like a fairly reasonable policy.

Re:OpenBSD on Digital Ocean by chrismsnz on Wednesday July 08, 2015 @07:39PM (#9855339)
5.8 is still currently in development/snapshot - not for amateur users.

5.7 is the latest official release. 5.8 is due on Nov 1.

Re:OpenBSD on Digital Ocean by wooger on Thursday July 09, 2015 @07:07AM (#9857191)
Worth noting though that if you use the release, you get no updates, security or otherwise, till the next release in 6 months.

And using -stable (release + patches) is a hassle of manually applying patches and re-compiling - no binary updates are available.

If running snapshots is not for amateurs, neither is running stable.

Re:OpenBSD on Digital Ocean by detharonil on Thursday July 09, 2015 @08:44AM (#9857491)
One can receive updates to binary packages for the current -stable release from M:Tier[0] . They also host binpatches for security vulnerabilities in base which can either be installed manually via pkg_add or automatically with their openup[1] tool.

0: https://stable.mtier.org/

1: http://www.mtier.org/index.php/solutions/apps/openup/

Re:OpenBSD on Digital Ocean by patzerhacker on Thursday July 09, 2015 @09:18AM (#9857645)
That's not entirely accurate. You do get updates, they're just on the patch branch. See http://www.openbsd.org/errata57.html.

Running -stable is fairly simple. If you don't want to rebuild on your DigitalOcean VPS, cut a new release after an update locally, and then apply it on your VPS. See http://www.openbsd.org/faq/faq5.html#Release. This should be fairly simple to automate (and you could even write a script that only packages up changed files if you were so inclined).

Re:OpenBSD on Digital Ocean by protomyth on Thursday July 09, 2015 @08:33AM (#9857440)
If you cannot run stable, then I'm pretty sure you should let others do your system administration for you. Stable is very easy to follow with simple instructions: http://www.openbsd.org/stable.html

If you need binaries there is always http://opensource.mtier.org/binpatchng.html

Re:OpenBSD on Digital Ocean by pakled_engineer on Thursday July 09, 2015 @08:36AM (#9857454)
Stable will cleanly build though, where running current snapshots you could come across something temporarily broken or have to debug a tough build if doing it from source. FWIW I just built 5.7 stable and the whole process took an hour and a half for kernel + userland + xenocara with no build issues. Often for stable security patches you just have to rebuild the kernel which is 15 mins work on my older AMD server.
Re:OpenBSD on Digital Ocean by jlgaddis on Wednesday July 08, 2015 @05:03PM (#9854561)
Okay, I know someone here is trying this... success or failure?
Re:OpenBSD on Digital Ocean by wtn on Wednesday July 08, 2015 @05:51PM (#9854843)
I used these instructions a few weeks ago and they worked. You will need to download miniroot58.fs (not miniroot57.fs).
Re:OpenBSD on Digital Ocean by eloy on Wednesday July 08, 2015 @06:08PM (#9854930)
True indeed, the article was written a week before the release of 5.8...
Re:OpenBSD on Digital Ocean by wooger on Thursday July 09, 2015 @07:00AM (#9857168)
Huh, 5.8 hasn't been released? What you mean is that snapshots / current are now using that version number.
Re:OpenBSD on Digital Ocean by dougb on Thursday July 09, 2015 @09:53AM (#9857824)
I got it installed, but there were problems. A lot of programs fail with SIGILL, illegal instruction. OpenSSL fails in OPENSSL_ia32_cpuid() Anybody get past this ?
Re:OpenBSD on Digital Ocean by geographomics on Friday July 17, 2015 @04:01PM (#9904948)
I also get coredumps from openssl, ssh-keygen, and smtpctl on the first boot. The common factor for all of these is the XGETBV instruction - unfortunately it looks like DigitalOcean's setup of KVM doesn't support it.

This was just on amd64 though - installing OpenBSD for i386 seems to work okay, apart from sometimes hanging on boot (not sure why this is).

Re:OpenBSD on Digital Ocean by elchief on Wednesday July 08, 2015 @10:19PM (#9855840)
Tangentially related at best...anybody here succeed doing PXE with virtualbox's tftp and openbsd? I get an unhelpful error msg.
Re:OpenBSD on Digital Ocean by laumars on Thursday July 09, 2015 @04:55AM (#9856825)
I have done a few bits with PXE booting inc OpenBSD, so I might be able to help if you can provide more detail. (I do feel your pain as PXE error messages are largely pretty vague, but not posting the error message is even less helpful).
Re:OpenBSD on Digital Ocean by voltagex_ on Thursday July 09, 2015 @08:38AM (#9857467)
VirtualBox's PXE implementation is... interesting. I know it sucks, but try using a CD image of iPXE.