Your browser is not supported. Please update it.

14 July 2016

Prpl Foundation launches IoT hypervisor in MIPS push

The prpl Foundation has announced the launch of prplHypervisor, which it is billing as the industry’s first light-weight open source hypervisor – designed to provide security through separation for IoT devices. The group argues that the IoT needs such a technology due to the fatal security flaws that plague the IoT – and it’s hard to disagree with that assessment.

Whether or not prpl’s becomes the standard, there are going to be millions of devices that will require a hypervisor or containerization engine to manage the software and applications that need to run at the network edge.

prpl, the group that backs the MIPS processor technology that is pushed in the market by Imagination Technologies, will likely advocate the use of the new hypervisor on MIPS processors, but the concept remains a core one for all manner of devices, regardless of the underlying architecture.

The initial version of the prplHypervisor runs on MIPS processors, but we have been told that it is easily portable to other processor architectures. The only real hardware requirement is support for virtualization, and the Foundation has demoed it running on a MicroChip PIC32MZ (M5150).

For IoT devices, where the cost of a large-scale deployment is inextricable from the BOM cost of the end-devices, the prplHypervisor’s memory requirements should be good news. Currently, the device needs 27KB of flash storage, with 4KB of RAM per VM instance – and there’s no limit in the software that defines the number of VMs that can be run.

With requirements this low, some very small IoT devices will be able to run the new hypervisor, which is good news for developers looking for options that provide better stability and uptime. These are devices that will be found at the furthest edges of the network.

prpl Foundation president Art Swift said “from theft of personal information and financial data to remote takeover of devices which could bring harm to the public, it’s in the interest of every stakeholder in the connected device supply chain to ensure that the devices are designed first for security.”

“PUCRS University is pleased to see their collaboration with the prpl Foundation bear fruit. The prpl Foundation’s support of our Embedded Systems Group team has allowed professorts, students, computer scientists, computer engineers, and undergraduates continue working toward our long-term goal of developing cutting-edge technology to secure the IoT,” said Fabiano Hessel, associate professor at PUCRS.

A hypervisor is a system (usually software, sometimes firmware) that sits above the computer hardware, which manages the virtual machines (VMs) that a user wishes to run on the computer or server. The hypervisor can be thought of as an operating system, which runs and manages the applications (the VMs in this case) needed.

Traditionally, a computer called the host machine would run multiple VMs, managed by the hypervisor. The VMs are separated from each other, but share the same hardware. They are kept separated so that if one VM instance fails, it wouldn’t impact the other VMs – which might happen if you ran the VMs as applications or programs inside an operating system.

The improvements in the capability of multitasking computers has led to a growth in the use of VMs, but they are still predominantly used in large cloud computing deployments – whether that’s a public or private cloud, or a similarly sized on-premises deployment. Essentially, hypervisors are used mostly on servers and in operations centers, not on end-nodes or desktop PCs.

VMware is a leading name in the VM space, but most of the big names in cloud computing and IT have their own offerings – with Microsoft’s Hyper-V, Oracle VM, IBM’s z/VM, Nutanix’s Acropolis, as well as the popular open source implementations of Xen and KVM. Generally, vSphere, Hyper-V, Xen, and KVM are the most frequently deployed.

And speaking of open source, Canonicals’ Ubuntu has been pretty vocal in the VM space in recent months – although more focused on containers than pure hypervisors. Containers are an evolution of sorts for VMs. Led by Docker, containerization is the process of virtualizing only the essential application, rather than an entire operating system instance, as is the case with a VM – which might see you running dozens of Linux instances on top of a single Intel server, for example.

As such, containerization promises to be much more resource efficient – with a much smaller footprint, often quoted in orders of magnitudes less than having to achieve the same workload using pure VMs. The containers themselves house just enough code libraries, user settings, and storage for the application to run on top of the host operating system.

This lets that host OS, LXC if you are using Docker, to essentially run the container as an app – with the ability to spool up new containers or shut down existing ones much more quickly than by using a VM. In the IoT, we have recently spoken to Resin.io about its approach to containerization for IoT devices.

Ubuntu Snappy Core is the Canonical implementation of the container approach, with Ubuntu running as the host OS and its Snappy applications becoming the containerized apps – which house all the required code needed to run on Ubuntu. For regular desktop users, the Snappy app upgrade process should remove a lot of the headaches of updating, as the apps aren’t dependent on other libraries. To alter an app, you only have to update the Snap, and not the multitude of other libraries in the OS.

This containerized approach should also make life easier for developers, as they (in theory) only have to worry about making sure their container works with the host OS – as the containers should all be compatible with each other on top of the host.

But containers don’t have to be used at datacenter-scale. The approach makes a lot of sense for IoT-focused devices that need to have strict uptime guarantees – or machinery that can’t afford to fall over if an application starts plating up. For smaller network-edge nodes, think base stations or gateways, containers make a lot of sense, but with the rise of even smaller IoT devices, even smaller hypervisors and containerization engines are needed.