community postPlatform, DevOps & Performancecommunity - not Microsoftreviewed - checked by Opus

Business Central on Linux? Here, hold my beer!

Running Business Central on Linux via Wine required implementing missing Windows APIs and HTTP.sys functionality in Wine's compatibility layer. The experiment achieved 65% faster build times on optimized Linux containers compared to Windows, though it remains a proof-of-concept not suitable for production use.

post SShadowS

Torben Leth · 2026-01-31 · 1,880 words · about 9 min

"BC has Windows baked into its DNA."

Key points

  • Business Central cannot run natively on Linux because it depends deeply on Windows APIs, Active Directory, and Windows authentication
  • Wine compatibility layer was extended by implementing missing HTTP.sys functions and other Windows APIs through debugging and reverse engineering
  • Custom implementations were required for SQL Server encryption, user management, Kerberos authentication, and Event Log functionality
  • Linux builds achieved significant performance improvements: 27% faster initially, 65% faster with optimization, and 5 minutes vs 16 minutes for container startup
  • Web client and management endpoints do not function; extensions using exotic .NET interop will crash

Quotes

  • “BC has Windows baked into its DNA.” (Explains the fundamental challenge: Business Central was designed exclusively for Windows with deep OS dependencies throughout the codebase)
  • “The server literally didn’t know how to release a connection once it was established.” (Highlights the specific technical barrier that prevented HTTP responses from working in Wine’s partial HTTP.sys implementation)

Heads up

  • warning: “The moment you try to start the BC service tier on Linux, it crashes while looking for Windows APIs.”
  • warning: “The web client doesn’t work yet. I haven’t put much effort into it since it wasn’t the main goal.”
  • warning: “The management endpoints don’t function. We had to write custom AL code to run tests via OData instead.”
  • warning: “Some extensions that use uncommon .NET APIs crash immediately. If your extension does something exotic with Windows interop, it won’t work here.”

Context

  • Features: Wine compatibility layer, HTTP.sys implementation, OData endpoints, Service tier, Extension compilation, Application testing

Source: SShadowS, community blog. Summary, key points and quotes are derived (CONTENT-NOTICE.md); read the original for the full text.