HP's solution to running GPU-accelerated Linux apps on high-end Z workstations: Rely on Microsoft's WSL2

Because Windows is what Linux users really want, right?

Facing rising demand for high-end Linux boxes but also issues supporting the software on its high-end kit, HP is trying solve the problem for customers by using Windows as a universal shim.

That is, it enables Microsoft's Windows Subsystem for Linux 2 (WSL2) out of the box on some of its own high-end Z workstations, boosted by Nvidia graphics processors.

GPU pass-through features in modern hypervisors, such as Microsoft Hyper-V, make it possible to use GPU-accelerated applications in Linux VMs. This feature extends to Redmond's WSL2. HP is using this to enable customers who want to do fancy GPU-accelerated stuff with Linux apps on the more familiar (familiar to HP, that is) basis of Windows.

What does this really mean? There are two explanations. One is the simple, take-it-at-face-value one. The other needs a bit of knowledge of history.

Nice easy simple we're-all-friends-now, let's-let-bygones-be-bygones explanation

If you want to build or run complex GPU-accelerated computational applications on Linux, using high-end workstations and high-end graphics cards, it can be tricky. For instance, Nvidia cards need a proprietary binary driver from their creator. Some Linux vendors now include this in their distros, and you can install it using their tools – here's how to do it on openSUSE and here on Ubuntu. On Fedora, it's a bit more complicated.

If the driver version you need isn't there, or your distro is too new, it gets harder. You have to get the drivers directly from Nvidia and install them yourself.

The driver has to be linked against your current kernel, so you need the kernel headers installed. Then you need the correct compiler tools installed.

If your kernel is too new, the drivers won't build. If the card is too old, then the drivers don't support current kernel versions, and the drivers won't build. Oh, and you have to deny-list the FOSS Nouveau driver so that it doesn't grab the hardware first and leave the Nvidia drivers unable to control it. Which is fine, the Nvidia installer driver does that for you automatically – but then if the proprietary driver doesn't work and you remove it again, the free driver no longer works and it's 1987 and you're back in VGAville.

Even if a friendly Linux vendor directly supports your kit, this stuff can still be a nightmare. Someone, somewhere, will need it on some distro you've never heard of and if it doesn't work they'll complain in some comments board and it'll be there forever.

So, if there's a way that you can achieve happy contented customers by using some new features of an industry-mainstream OS, then you'd be fools not to use it. Ever since Windows NT, the basis of modern Windows today, came out in 1993, it had a feature called POSIX compatibility.

Originally this gave NT a UNIX-like personality you could recompile your UNIX apps to run on. That turned into the more fully-fledged Windows NT Services for Unix. In the Windows 10 Anniversary Update, it metamorphosed into the Windows Subsystem for Linux: something compatible enough with the Linux kernel that the non-kernel bits of a Linux distro (called the "userland" in the trade) could run on top of it.

But WSL was not actual Linux; it was more like a sophisticated Linux emulator, like WINE in reverse, making it possible to run Linux binaries on Windows, without any trace of an actual Linux kernel. But that doesn't let you run Linux drivers, so it led to WSL2: a dedicated Hyper-V VM with a real Linux kernel inside, meaning real Linux apps on the Windows desktop. And with GPU pass-through, the guest kernel inside the VM can use a real physical graphics card, meaning GPU acceleration for WSL2.

Without the complexity nightmare of supporting dozens of Linux distros.

If you are a friendly sympathetic understanding person who hates cynicism, you might not like the next bit.

Jaded, cynical, embittered explanation with historical context

One of Microsoft's oldest tactics is a move known as "embrace and extend" – or the longer version, "embrace, extend and extinguish." It tried with Java. It tried with HTML. It's tried many times and sometimes it worked.

WSL and WSL2 can be seen as Microsoft attempting to embrace and extend Linux: first by making Linux apps into citizens of the Microsoft ecosystem, and second by using Hyper-V to do the same with the Linux kernel itself. If this allows Microsoft partners to simplify their support offerings, it's a strong selling advantage.

HP has been a close Microsoft partner for decades, but it has also, at points, been a competitor: it sold its own processors, PA-RISC, with its own UNIX for them, HP-UX. It used to sell a high-performance email server called HP OpenMail which was a highly compatible direct competitor of Microsoft Exchange.

Another rival was DEC, which made the first mass-produced 64-bit RISC microprocessor in the business, the Alpha, and had its own UNIX for that, too – DEC OSF/1, later renamed Tru64. And DEC had its own OS, OpenVMS, which ran on the Alpha. By the turn of the century, Alpha was the arch-rival to Intel's 64-bit CPU, the Itanium – co-developed with HP.

But OG PC cloner Compaq bought DEC. Compaq cancelled a 128-bit version of Alpha and then killed the whole Alpha line, subsequently selling the IP to arch-rival Intel.

Then HP bought Compaq, becoming one of the biggest PC vendors around.

Soon afterwards, HP cancelled OpenMail, to customers' surprise and some commentators' suspicion. HP did release some more Alpha machines but decided to cancel efforts to merge Tru64 and HP/UX and just killed off Tru64. To customers' chagrin, little tech made it out. HP also killed off OpenVMS, although it changed its mind and sold it off instead, as it earlier had sold licences to OpenMail.

Bundling WSL2 with Windows, and more to the point supporting it, is good for customers, it's good for HP, and it's good for Microsoft. And it's entirely on-brand for HP, which as you can see from the preceding few paragraphs, has a long history of moves that are good for Microsoft – and as a major partner, that's good for HP, too.

I'm sure it's entirely coincidental that it's not so great for the credibility of desktop Linux. Right? ®

Other stories you might like

  • Lonestar plans to put datacenters in the Moon's lava tubes
    How? Founder tells The Register 'Robots… lots of robots'

    Imagine a future where racks of computer servers hum quietly in darkness below the surface of the Moon.

    Here is where some of the most important data is stored, to be left untouched for as long as can be. The idea sounds like something from science-fiction, but one startup that recently emerged from stealth is trying to turn it into a reality. Lonestar Data Holdings has a unique mission unlike any other cloud provider: to build datacenters on the Moon backing up the world's data.

    "It's inconceivable to me that we are keeping our most precious assets, our knowledge and our data, on Earth, where we're setting off bombs and burning things," Christopher Stott, founder and CEO of Lonestar, told The Register. "We need to put our assets in place off our planet, where we can keep it safe."

    Continue reading
  • Conti: Russian-backed rulers of Costa Rican hacktocracy?
    Also, Chinese IT admin jailed for deleting database, and the NSA promises no more backdoors

    In brief The notorious Russian-aligned Conti ransomware gang has upped the ante in its attack against Costa Rica, threatening to overthrow the government if it doesn't pay a $20 million ransom. 

    Costa Rican president Rodrigo Chaves said that the country is effectively at war with the gang, who in April infiltrated the government's computer systems, gaining a foothold in 27 agencies at various government levels. The US State Department has offered a $15 million reward leading to the capture of Conti's leaders, who it said have made more than $150 million from 1,000+ victims.

    Conti claimed this week that it has insiders in the Costa Rican government, the AP reported, warning that "We are determined to overthrow the government by means of a cyber attack, we have already shown you all the strength and power, you have introduced an emergency." 

    Continue reading
  • China-linked Twisted Panda caught spying on Russian defense R&D
    Because Beijing isn't above covert ops to accomplish its five-year goals

    Chinese cyberspies targeted two Russian defense institutes and possibly another research facility in Belarus, according to Check Point Research.

    The new campaign, dubbed Twisted Panda, is part of a larger, state-sponsored espionage operation that has been ongoing for several months, if not nearly a year, according to the security shop.

    In a technical analysis, the researchers detail the various malicious stages and payloads of the campaign that used sanctions-related phishing emails to attack Russian entities, which are part of the state-owned defense conglomerate Rostec Corporation.

    Continue reading
  • FTC signals crackdown on ed-tech harvesting kid's data
    Trade watchdog, and President, reminds that COPPA can ban ya

    The US Federal Trade Commission on Thursday said it intends to take action against educational technology companies that unlawfully collect data from children using online educational services.

    In a policy statement, the agency said, "Children should not have to needlessly hand over their data and forfeit their privacy in order to do their schoolwork or participate in remote learning, especially given the wide and increasing adoption of ed tech tools."

    The agency says it will scrutinize educational service providers to ensure that they are meeting their legal obligations under COPPA, the Children's Online Privacy Protection Act.

    Continue reading
  • Mysterious firm seeks to buy majority stake in Arm China
    Chinese joint venture's ousted CEO tries to hang on - who will get control?

    The saga surrounding Arm's joint venture in China just took another intriguing turn: a mysterious firm named Lotcap Group claims it has signed a letter of intent to buy a 51 percent stake in Arm China from existing investors in the country.

    In a Chinese-language press release posted Wednesday, Lotcap said it has formed a subsidiary, Lotcap Fund, to buy a majority stake in the joint venture. However, reporting by one newspaper suggested that the investment firm still needs the approval of one significant investor to gain 51 percent control of Arm China.

    The development comes a couple of weeks after Arm China said that its former CEO, Allen Wu, was refusing once again to step down from his position, despite the company's board voting in late April to replace Wu with two co-chief executives. SoftBank Group, which owns 49 percent of the Chinese venture, has been trying to unentangle Arm China from Wu as the Japanese tech investment giant plans for an initial public offering of the British parent company.

    Continue reading
  • SmartNICs power the cloud, are enterprise datacenters next?
    High pricing, lack of software make smartNICs a tough sell, despite offload potential

    SmartNICs have the potential to accelerate enterprise workloads, but don't expect to see them bring hyperscale-class efficiency to most datacenters anytime soon, ZK Research's Zeus Kerravala told The Register.

    SmartNICs are widely deployed in cloud and hyperscale datacenters as a means to offload input/output (I/O) intensive network, security, and storage operations from the CPU, freeing it up to run revenue generating tenant workloads. Some more advanced chips even offload the hypervisor to further separate the infrastructure management layer from the rest of the server.

    Despite relative success in the cloud and a flurry of innovation from the still-limited vendor SmartNIC ecosystem, including Mellanox (Nvidia), Intel, Marvell, and Xilinx (AMD), Kerravala argues that the use cases for enterprise datacenters are unlikely to resemble those of the major hyperscalers, at least in the near term.

    Continue reading

Biting the hand that feeds IT © 1998–2022