r/devops • • Dec 12 '21

Why Linux is needed for DevOps in 2021?

This question come of course from a total noob. Please, do not be harsh on me. I just could not find detailed answer and some people that I know, don't use linux at all and while they are not 100% time DevOps, they never needed a linux on their PC. Maybe this is true only if you are doing only some basic stuff and you are not full DevOps guy?

As far as I know, most stuff just works on Windows right now (docker, kubernetes, ansible etc). Do they works much better on Linux tho? Is there anything that just does not work on Windows and just require Linux?

I know that most of the cloud run on Linux but if you are working with AWS or Azure, you still work with everything by using either AWS or Azure portal or this looks different and for example you need to use console a lot and thus ssh to the server etc?

0 Upvotes

61 comments sorted by

45

u/gauz Dec 12 '21

Use whatever os you are comfortable with. But basically automation on windows is still a joke. Wsl does a lot for productivity on windows afaik but haven't used it so can't tell if it's actually better. Macos is fine for a dev machine.

Most containers are still built for Linux so running them on a windows host requires a VM and that is not equal performance to running it natively. I would turn the question around and ask, why is windows needed in DevOps? Everything runs perfectly on Linux. In my company we have 0 windows machines.

21

u/BoringWozniak Dec 12 '21

Consider that WSL is needed for DevOps on Windows because it is Linux running in a VM.

WSL allows you to carry out normal DevOps activities in spite of Windows, not because of it. It is a glorified work-around.

Windows is not a value-add for this sort of work, it is only ever an impediment.

-2

u/ph1294 Dec 13 '21

WSL isn’t a VM. https://www.whitewaterfoundry.com/what-is-wsl

Windows is not an impediment for devops. You can’t build Linux infrastructure for services that cannot run in Linux.

Let’s not pretend it’s realistic to tell companies with 20+ years investment in Microsoft AD to ‘just move to Samba’ as if that is trivial or effective.

4

u/rswwalker Dec 13 '21

Shit Windows and Linux live very nicely together. The world is not black and white, just shades of grey and it doesn’t have to be all Windows or Linux a mix of both works well.

WSL2 actually does run the Linux kernel in a VM for performance reasons and if you want a performant Kubernetes cluster you are best to host it on Linux.

4

u/Lattenbrecher Dec 13 '21

https://docs.microsoft.com/en-us/windows/wsl/compare-versions

WSL 2 uses the latest and greatest in virtualization technology to run a Linux kernel inside of a lightweight utility virtual machine (VM). However, WSL 2 is not a traditional VM experience.

2

u/ph1294 Dec 13 '21

Huh I stand corrected.

40

u/[deleted] Dec 12 '21

Linux is much easier to automate and the cloud mostly runs on Linux. It's just a natural fit. Windows was designed for end-user convenience, not automation. It was meant to have buttons clicked by humans.

Most DevOps practitioners aren't using the AWS/Azure consoles to do their work. They're using tools to automate the provisioning of infrastructure like Terraform and Cloud Formation. The key is repeatability, and humans are notoriously horrible at doing things consistently.

Linux also has much smaller resource demands, and when you're running these operating systems in VMs at scale, it matters.

Lastly, Linux is (mostly) free.

3

u/Cramster Dec 12 '21

Free as in beer or free as in speech?

15

u/extra_rice Dec 12 '21

In most cases, both.

1

u/MaToP4er Dec 13 '21

Free as the actual meaning of the word free! But the support for each distro a different story

32

u/[deleted] Dec 12 '21

That is a really triggering question tbh. The (web)server world runs on linux. Even microsofts azure cloud partly runs with linux. The question could rather be why windows is needed in 2021.

Just because some tools can run on windows, doesn't mean that it's viable for production.

7

u/extra_rice Dec 12 '21

I think I'm normally patient when it comes to someone asking for information, but this just struck a nerve with me, especially because I'm currently forced to use Windows for development. I personally dislike Windows as a platform because, IMO, it's clunky and poorly designed.

At least with macOS there's some level of interoperability so the environment isn't as alien relative to GNU/Linux. There just doesn't seem to be a place for Windows in a Linux dominated cloud infrastructure world. Even Microsoft recognise this.

2

u/BoringWozniak Dec 12 '21

As someone who has previously been forced to use Windows for this kind of work, I’m sorry you’re having to deal with this and I feel your pain.

It’s incredibly depressing to get blank stares from the higher-ups who can’t possibly fathom why your Dell Inspiration Whatever isn’t well-suited to your job role.

1

u/yuriydee Dec 13 '21

but this just struck a nerve with me, especially because I'm currently forced to use Windows for development

I just started a new job recently and after 5 years of working with Mac + Linux, I am now forced to use Windows. Really tough getting used to it, everything is more difficult but can be done. Essentially simple tasks take twice a long for me to do with Windows. Even though I spun up a linux ec2, its still pain in the ass to have to ssh every time and switch contexts between Windows and Linux. At the end of the day my productivity will be lower, but the company suffers from this, not me.

3

u/[deleted] Dec 12 '21

For the most part Windows is religated to one job and one job only: Active Directory.

0

u/livebeta Dec 13 '21

windows is needed in 2021.

Because non-technical users don't know how to use Linux and corporate won't spring for Macs for everyone.

Fkkk any org that issues windows machines.

Corporate puts the corp in corpophagy

31

u/[deleted] Dec 12 '21

As far as I know, most stuff just works on Windows right now

Docker requires a Linux kernel. This can be done with a VM or WSL but it's not native on WIndows. Kubernetes relies on a OCI runtime which again would require Linux kernel features.

Is there anything that just does not work on Windows and just require Linux

Pretty much any containerised workload you deal with will be running on Linux and you will strongly benefit from knowing how to operate it, specially if you start using containers and scripts for CI. You don't need to be running Linux to manage Linux infrastructure though and if you are more comfortable using Windows as a desktop OS then you can always fall back to WSL if you need to do Linux shell operations.

11

u/rolandofghent Dec 12 '21

This is why so many developed now use Macs. You have Linux(like) OS with a real user interface and support for most major applications like Office 365, etc.

4

u/volvo64 Dec 13 '21

God I feel this

Many of my colleagues use Linux as a daily driver, and good for them! But I use macOS and do you know what I never have to do? I never have to troubleshoot why audio on Zoom suddenly stopped working 5 minutes before a meeting…

1

u/whenhellfreezes Dec 13 '21

Which is why every web teleconference software nowadays should support webrtc in a browser as an option.

1

u/zenmaster24 YAML Jockey Dec 13 '21

you're lucky - driver stuff happens on mac too, especially stuffing up dp over usb-c docks especially in i think catalina where they changed some way the video is rendered to an external monitor

21

u/sean_shuping Dec 12 '21

I think it boils down to this. Majority of games "just work" in windows. You can make them work on Linux or Mac, but there's some 'fiddling' that needs to be done. Conversely, majority of DevOps tools "just work" on Linux. You can make them work in Windows, but there's some 'fiddling' involved.

5

u/bravosierrasierra Dec 12 '21

Windows needs mature package manager to install and update many automation tools, programming languages and libraries. Linux and Mac OS with brew package manager already solved that problem.

2

u/[deleted] Dec 12 '21

Check out “Chocolatey.” Not perfect but it’s better than nothing.

5

u/Puzzleheaded_Row9260 Dec 12 '21

Windows containers are literally garbage

1

u/supirman Dec 13 '21

Even containerd in Windows?

3

u/Puzzleheaded_Row9260 Dec 13 '21

5GB containers ...I am good

1

u/[deleted] Dec 13 '21

I remember installing docker on windows on a system with 8gb ram, docker was using 1gb doing absolutely nothing, no containers running or stopped

4

u/CorpT Dec 12 '21 edited Dec 12 '21

Why would you limit yourself by not learning something that is widely used and in wide demand?

7

u/goldenchild731 Dec 12 '21 edited Dec 12 '21

I agree Linux is more automation friendly but with powershell and winrm you can automate almost anything in Windows in the same fashion as ssh and python/bash. Unfortunately containers and in return container orchestration with Kubernetes is not supported natively on Windows. SCCM and configuration management has been around since 1994 and modern configuration management Linux tools like ansible and puppet have only been around since early 2010s. To say Windows automation is a joke is disingenuous at best. I have always worked in hybrid environments and both operating systems serve their purpose. While I agree Linux is a superior OS for web servers, if you have to install out of the box 3rd party back office software Windows server is your best best since they are mostly .net Applications.

3

u/SLAMDUNKWizard420 Dec 13 '21

while there are similar tools that allow windows to mimic linux workflows... its slow, clunky and expensive in comparison.

packer via winrm can take like 5 minutes to get going because windows is so slow. and at the end you have over 10gb of windows OS files you have to pay for, per image. Plus a flat licensing fee per running host. Plus sizing up your compute resource a bunch so windows doesnt crash under the weight of its garbage heap of core services.

Windows is not a value add, its something you work around and pay lots of money (licences, time, extra compute resources) to do so.

Linux servers dont need config management 3rd party tools since you can prebake your config with docker, and anything you wont want to prebake you can pass as environment variables on launch or include in the entrypoint script. e. g. linux is self configuring. You can also do this with windows, but it just costs lots more money.

Microsoft/windows is just very very very behind for the majority of "devops work". I would argue if your role as a "devops" is to configure/update/manage a bunch of windows devices with "3rd party back office software" then... youre just doing traditional IT work. Nothing wrong with that but that sort of work maps to a sub-sub-section of the devops field as a whole.

There are some organizations that dont have the capacity to move from windows infrastructure to linux. Usually because they are slow/cautious/highly bureaucratic. Other organizations greenfield everything in linux and containers, or are working towards retiring their legacy systems that dont run on linux.

2

u/goldenchild731 Dec 13 '21

I agree with all these points. One pain point I think happens is when you need to provide remote access to end users working remotely. If Linux is the one stop solution why aren’t majority of end users using their chromebooks to do their jobs. The reality is we do not all live in some fancy technology company where everyone has there own laptop and everything can be accessed over the web. Remote Desktop services still need to be provided to run all those desktop apps and whether not that’s is running on prem or the cloud. I do not know of any Linux distro that is being distributed to end users for them to work remotely. All I have seen is chromebooks used to access windows workstation or servers to run apps or using remote app via Citrix or VMware workspace one. I am not going to argue that if I wanted a web app I am not going to use windows server and IIS. Unfortunately this one huge area Linux does not cover that Windows does is very well. I agree that this is traditional IT work but advents like desktop as a service and using the cloud for RDS services like Amazon Workspaces and Azure RDS. That means managing the images and automation around joining the domain, installing applications, security settings, and other numerous operating system deployment task involved in configuration management. The automation of these task and there devops practices are the same as of this was managing any Linux system in the cloud. Using APIs and tools to manage these services programmatically. This can be done with terraform, ansible, or powershell but in the end it does not matter. The question is will there a place for windows in the future with the cloud will think it is obvious that it has too big a footprint to go anywhere. Microsoft is banking on hybrid world were majority of companies with have all different type of server operating systems whether it is Linux or windows or a combination like wsl. Just like I believe the future is multicloud. I think the future is multi OS.

0

u/SLAMDUNKWizard420 Dec 13 '21

For the engineering side of an organization (UI/UX, product, devs, qa, devops/ops) I dont think its cost efficient to give them remote desktops to do their work. I think the majority and general idea of devops work is related to that sphere of an organization.

The type of work youre talking about is traditional IT for organizations with lots of non-technical people. And specific organizations where a chromebook + virtual machine is desirable to a 500 dollar laptop.

feels like a very narrow/specific thing to draw long term conclusions about.

Microsoft's market share is 1 FOSS LDAP federated identity suite away from offering literally nothing. By this I mean... if someone comes up with a really good *nix LDAP ecosystem with a pay-for-support model, Microsoft will need a full strategy realignment to avoid being pushed out completely.

Honestly, wouldnt be shocked if it was microsoft who ports AD to a windows server linux just to scare off any competition.

The only guys in microsofts corner seem to be green or grey IT people. It would not take much to convert a large portion of that group, or court/tempt their managers.

1

u/goldenchild731 Dec 13 '21

I agree with you on Active directory point. Much like Microsoft ported over sql server to Linux, they may see value in porting AD to Linux. I think that is more plausible than some other company coming out with an identity provider that does what AD does for the Microsoft ecosystem. The point I was making is that the majority of companies are non technical and the technologies we support are mainly to serve those non technical people. IT is not simply web applications ran on Linux. Remote Desktop services and VDI is just one aspect of the Microsoft ecosystem that Linux community has not found a better solution too. You named another area which is LDAP and identity management. 3rd Party software will always be the biggest caveat. No one is running auto cad on Linux. To say Microsoft which operates the 2nd largest cloud in the world and own GitHub the leader in source control management is behind in devops is not paying attention to the shifts in the industry.

2

u/ph1294 Dec 13 '21

Microsoft already runs *nix AD for Azure AD.

Other companies have tried and failed to compete with ADDS, take a look at Novell. You could use Linux based tools like Samba, but they’re nerfed because windows limits access to some features to only ADDS.

Microsoft has a strong grip on its economy, it won’t be letting go for a while. Linux could maybe compete if someone made a distro capable of many of the key attractive features of windows, but nobody has done it yet.

1

u/goldenchild731 Dec 13 '21

Right they have managed ad in aws as well. I was saying like an on-prem ad equivalent like freeipa or open ldap but is Microsoft ad that can be installed via wget or package manager like yum or apt-get.

1

u/ph1294 Dec 13 '21

You can use samba in that way. I don’t think Microsoft would create a domain controller that would do that tho, tbh a huge number of windows server licenses are sold for ADDS, MS probably doesn’t want to let that go. They’ve been reluctant enough about integrating Linux into their systems, even in Azure.

0

u/ph1294 Dec 13 '21

Let’s not forget the level of control that windows grants which isn’t there in the mainstream Linux world because of the design intent of the different OSes.

If linux could provide the same level of control as ADUC/Group Policy, I’m sure more organizations would consider it, but neither the mainstream linux distros nor Macintosh offer the same corporate controls. What would you suggest infrastructure that needs to support users subject to that level of control do, without patronizing them for being “less technical”?

1

u/SLAMDUNKWizard420 Dec 13 '21

I dont really consider provisioning and controlling non-technical user workstations a typical responsibility of devops, either as a role or culture.

For compliance, financial, technical or other reasons its very common for businesses to use Active Directory and windows workstations. These kinds of calls are usually outside the power of anyone in the engineering/technicals team (e. g. lawyers, managers, accountants etc are more likely to decide this).

For all the tasks/responsibilities of a typical devops... windows is bad. If youre at a company where the devops team is managing workstations, monitors, printers etc... 🦆🦆🦆

1

u/ph1294 Dec 13 '21

Ah, I see. So it doesn’t take large scale engineering skill to manage thousands of windows work stations and servers to host windows applications?

1

u/SLAMDUNKWizard420 Dec 13 '21

building a bridge takes large scale engineering skill, but thats not the kind of work typically associated with devops in 2021.

Again, theres nothing wrong with traditional IT. And traditional IT can use similar patterns.

Managing Windows hosts at scale is done by both DevOps and traditional IT. In the case of the former... windows is only downsides. In the latter (where the product is a workstation) there are advantages (namely AD and familiarity).

I think we're much closer to having a linux distribution with a strong federated identity manager than we are to getting a windowsOS thats fast and free. But thats just speculation.

1

u/ph1294 Dec 13 '21

I mean, I've seen plenty of use of explicitly devops tools (Ansible, Chef, Puppet, Terraform) to manage windows workstations and servers.

Of course you're not going to be using Docker/Kubernetes, containerization, or container orchestration in a windows environment. But I still firmly believe that there is a strong need for devops both as a culture and job title in the windows world. Brushing windows admin management off as 'traditional IT' will just cause the community as a whole to further stagnate IMO.

That being said, I also agree fully with your assessment on a federated linux distro because there will never be a Windows OS that is fast and free, and especially as we move towards a decentralized web those both will become requirements going forward.

1

u/SLAMDUNKWizard420 Dec 13 '21

Sure, I guess. I cant say whether or not those tools fit -- probably in some cases?

But just using a tool for X doesnt make the process X. For example, I could terraform an email or clock alarm, but calling that devops would be a stretch.

DevOps is already a very large tent. There are divisions between disciplines for a reason. Software development has Product, Dev, QA and DevOps. At some point in the past DevOps had less definition, but largely it means "help ship code" in 2021.

My personal opinion that traditional IT shouldnt be classified as DevOps is not to brush it aside, gatekeep, or belittle the professionals in those roles. I just think that field and its workers would be better served with a more specific discipline name. Like... DeskOps Engineer, or Workstation Reliability Engineer.

Unimaginative suggestions aside, specific and descriptive naming is helpful! It helps you and your organization understand what your responsibilities are and what value you deliver. Even in the 4 broad software development groupings (product, dev, qa, devops) there are tons and tons of titles/specializations.

DevOps, as a job/role in 2021, is about communication as much as tools and processes. Everyone involved in the SDLC plans and cooperates to improve the value pipeline (working, maintainable code-based products usually). Traditional IT involves a different group of people, with different rules and different outcomes.

I think some IT people feel pressured to rebrand as DevOps. I also think in the long run, those who lean into working with the unique stuff in IT will be the ones to revolutionize/push IT forward. What exactly that means/looks like, Im not totally sure. But it wont be JUST traditional IT with automation tools. It will also require changing attitudes, knowledge sharing, and bringing stake holders together.

If every team in an organization had 1 or 2 people who can troubleshoot the printer, router, and preform other junior IT tasks all of a sudden your IT team goes from 10 people to 25, 50, 100. Traditional IT has lots of easy gains to make, but not necessarily through Automation, the cloud, ML/AI etc etc.

IT has been automating things longer than DevOps has existed as an idea.

→ More replies (0)

2

u/Comedynerd Dec 14 '21

This might be an unpopular opinion on this sub, but I prefer powershell to bash. It's way easier to look at and easily understand what is going on. And since it's object oriented, it's easier to select and filter properties that you want to use

However, python comes stock with most popular Linux distros and remediates most of the problems I have with reading and writing bash, so...

Anyway, powershell is great for automating windows, but I wouldn't use it for Linux, that I'd usually use python or ansible

2

u/Soverance Dec 12 '21

Yeah all I see in these threads are lots of devops folks who have never really tried automation in modern windows environments. They're still stuck in 2010.

1

u/zenmaster24 YAML Jockey Dec 13 '21

i have, and its windows stuck in the early 2000's. why is sysprep a thing for non ad joined ephemeral instances in 2021? automation is an afterthought for many windows apps - its still click-ops for mostof them, and core only came out in what, 2016? hell, most apps still require the gui and wont even install on core.

coming from a previous windows engineer/devops practitioner.

5

u/SarcasmoSupreme DevOps Dec 12 '21

Typically Linux has less overhead than Windows (windows has a lot of bloat).
Windows is much more vulnerable to attacks, malware etc - linux by it's nature is harder to penetrate.
Automation is easier and more efficient on Linux than on Windows.

3

u/tnjeditor Dec 12 '21

The overhead is a big issue. A Linux container can be VERY small in part because it doesn’t need a graphics subsystem in order to function. Linux can run headless, Windows needs to fire up a UI even if nobody ever sees it. A Linux kernel can be stripped down to run just what is needed to perform a function. Its why a lot of embedded systems run Linux, it simply doesn’t need all the bits that Windows does.

By way of example, a linux based container running on a linux host is a very simple setup, because containers are native to Linux. This also means they start/stop so fast that you could practically rely on a containerized app to do command line functions and get responses in real time. For Windows… you need a Windows host with a container emulator - things that are not supported natively… start the container, go get coffee unless you realize you have to stop and add memory to the computer to essentially run windows in windows.

I know there is some support for Windows nodes/containers in Kubernetes but its still so inefficient that we still run Windows based workloads in VMs. It just doesn’t scale as well as Linux does.

2

u/keftes Dec 12 '21

most stuff just works on Windows right now

Only it doesn't. At least not that easy. There's always random problems.

1

u/extra_rice Dec 12 '21

As far as I know, most stuff just works on Windows right now (docker, kubernetes, ansible etc). Do they works much better on Linux tho? Is there anything that just does not work on Windows and just require Linux?

I think most of these "work" on Windows by some level of visualisation. Minikube, for example, requires VirtualBox that runs a Linux distribution under the hood. Docker runs on Windows via the Linux kernel Microsoft built if I understand correctly.

Linux's isolation mechanism is currently the de facto standard, and this is partly due to GNU/Linux's robust design. It's also relatively cheaper to run GNU/Linux because it's free and open source. There are vendors out there, sure, but you're also free to run it yourself.

3

u/calagan800xl Dec 12 '21

Docker runs on Windows via the Linux kernel Microsoft built if I understand correctly.

Nah, not really, MS didn't build much: it's just a skinned down Ubuntu installation running in Hyper-V. As a VMware user with a large collection of VMs (I like the ability to share VMs between Mac and Windows hosts) I find it really annoying because Hyper-V and VM Workstation won't install on the same Windows machine.

1

u/[deleted] Dec 12 '21

Solely because Windows will fight you tooth and nail when you try to automate it. The moment Windows actually becomes as easy to automate as Linux the landscape will change, but not really until then.

1

u/[deleted] Dec 12 '21

Yeah. Docker and Kubernetes don’t work on Windows. They both require a Linux kernel.

So even if you use it on Windows, MacOS, Unix, you are running Linux in a VM somewhere.

1

u/gramoun-kal Dec 12 '21

There was a baby once that figured most things can be done crawling, so why learn to walk.

Yes you could just find a way to make things work without Linux. But do yourself a favor. Linux isn't hard, and it just so much better than windows. Putting it off is just making your life harder.

1

u/ph1294 Dec 13 '21

It’s important to remember that these tools were built for Linux first, not the other way around.

I would recommend learning Linux, if you want to do devops. Trying to do devops without Linux is like trying to learn to drive by careening onto the freeway immediately after learning the gas from the brake.

The windows world needs devops engineers for sure, but windows devops is MORE advanced, not less. You’ll understand that once you get started with the fundamentals, which will ultimately be Linux.

1

u/_lonely_sysadmin Dec 13 '21

Some CLI tools are easier to work with under linux, but that's about it. At the moment, I suggest you take Windows 10 with WSL or a Mac, Linux desktops in production aren't great.

1

u/Locupleto Dec 13 '21

Licensing and overhead are big factors. When you use windows, you need to license it. Linux is free.

Windows takes CPU and RAM resources. If you are just running containers, you can run more without a Windows layer in there. Containers are isolated Linux processes. For distributed and scalable computing, you need less resources when you are not using Windows as a layer.

If you want to move a process to the cloud, to run Windows you need a licenses windows virtual machine. If you want to run a container, then that's all you need and you can pay a cloud service provider much less to run that.

1

u/m4nf47 Dec 12 '21 edited Jan 10 '26

distinct joke melodic aware start follow oatmeal close cagey makeshift

This post was mass deleted and anonymized with Redact

1

u/zenmaster24 YAML Jockey Dec 13 '21

mainframes run windows? embedded firmware is running windows?