Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Google’s Fuchsia Adds Emulator for Running Linux Apps

#1
Google’s Fuchsia Adds Emulator for Running Linux Apps

<div style="margin: 5px 5% 10px 5%;"><img src="http://www.sickgaming.net/blog/wp-content/uploads/2018/06/googles-fuchsia-adds-emulator-for-running-linux-apps.jpg" width="1500" height="784" title="" alt="" /></div><div><div><img src="http://www.sickgaming.net/blog/wp-content/uploads/2018/06/googles-fuchsia-adds-emulator-for-running-linux-apps.jpg" class="ff-og-image-inserted" /></div>
<p><span><span>Google has added a Guest app to its emergent and currently open source Fuchsia OS to enable Linux apps to run within </span><a href="https://github.com/fuchsia-mirror"><span>Fuchsia</span></a><span> as a virtual machine (VM). The Guest app makes use of a library called Machina that permits closer integration with the OS than is available with typical emulators, according to a recent </span><a href="https://9to5google.com/2018/06/15/fuchsia-friday-machina-brings-support-for-running-linux-on-top-of-fuchsia/"><span>9to5Google</span></a><span> story.</span></span></p>
<p><span><span>Last month, Google announced a </span><a href="https://www.zdnet.com/article/linux-comes-to-chromebooks/"><span>Project Crostini</span></a><span> technology that will soon let </span><a href="https://www.linux.com/news/embedded-mobile/mobile-linux/821193-google-opens-android-to-chrome-app-porting-to-all"><span>Chromebook</span></a><span> users more easily run mainstream Linux applications within a Chrome OS VM. This week, </span><a href="https://www.androidheadlines.com/2018/06/linux-app-support-is-coming-to-acer-chromebook-flip-c101.html"><span>Acer’s Chromebook Flip C101 joined</span></a><span> the short list of Chromebooks that will offer Linux support later this year.</span></span></p>
<p><span><span>While it’s encouraging that Chrome OS will soon support Linux apps is addition to Android, it’s not entirely surprising — since Android and Chrome OS are based on Linux. Yet, one of the first things Google emphasized when it revealed </span><a href="http://linuxgizmos.com/is-fuschsia-googles-answer-to-samsungs-tizen/"><span>Fuchsia</span></a><span> in 2016 was that it’s not based on the Linux kernel. </span></span></p>
<p><span><span>To some, Fuchsia seemed to be something of a betrayal considering how Linux not only forms the basis for Android and Chrome OS but also the Google enterprise platforms. Why add another Windows or iOS when we were getting so close to everyone sharing a common Linux foundation?</span></span></p>
<p><span><span>No doubt, Google has some very good reasons for avoiding Linux. One reason may be the age and complexity of Linux. By starting from scratch, Google can escape that aspect and deliver more elegant, up-to-date code with fewer targets for hackers. Google is also baking secure updates deeply into the OS, and unlike Linux, is isolating applications from having direct kernel access. </span></span></p>
<h3><span><span>Open for now</span></span></h3>
<p><span><span>Back in 2016, we thought Google might be skipping over Linux to shift to a proprietary OS that it could control the way Apple dictates all things iOS. That may still happen, but for now Fuchsia is an open source project. </span></span></p>
<p><span><span>Some also speculated at time that considering the trim little microkernel, Google was bypassing Linux due to its inability to scale downward into the MCU realm. Yet, MCU-based IoT does not appear to be the current focus of Fuchsia. Several reports, including a </span><a href="https://www.techradar.com/news/google-fuchsia"><span>TechRadar</span></a><span> post last week, have said that Fuchsia is intended to replace both Android and Chrome OS, and the combined platform will eventually be called Google Andromeda. </span></span></p>
<p><span><span>Earlier this year, </span><a href="https://9to5google.com/2018/01/23/what-is-google-fuchsia-os/"><span>9to5Google</span></a><span> reported that Fuchsia would include separate UIs — an Armadillo UI for phones and a Capybara UI for desktops — and like </span><a href="https://www.linux.com/blog/2018/5/android-things-10-offers-free-ota-updates-restrictions"><span>Android Things</span></a><span> and other new Android variants, would tightly integrate Google Assistant voice technology. Essentially, this is the same idea that was behind Microsoft’s failed plan to offer a common Windows for phones and laptops, or Canonical’s defunct “convergence” version of Ubuntu. </span></span></p>
<h3><span><span>Guest ex Machina</span></span></h3>
<p><span><span>Whatever Fuchsia’s destiny, Google needs to attract mature applications, as well as developers, and the best way to do that is to add Linux app compatibility. The new Guest app, which initially supports Linux-based platforms including Debian, works with the Machina library to accomplish this in a way that goes beyond what you can get from QEMU, suggests 9to5Google.</span></span></p>
<p><span><span>Google describes Fuchsia’s </span><a href="https://github.com/fuchsia-mirror/garnet/tree/d176feb90a6002f4b90ed81c6404db15ee357ce7/lib/machina"><span>Machina</span></a><span> </span><span>as “a library that builds on top of the Zircon hypervisor to provide virtualized peripherals that integrate with a garnet system.” Zircon is the Fuchsia microkernel, based on Little Kernel (LK), and formerly called Magenta. Garnet is the layer that sits directly atop Zircon and offers device drivers, the Escher graphics renderer, Fuchsia’s Amber updater, and the Xi Core engine for the Xi text and code editor. </span><a href="https://9to5google.com/2018/03/16/fuchsia-friday-the-four-layers-of-fuchsia/"><span>Other layers</span></a><span> include Peridot for app design, and on top, Topaz, a Flutter-supported app layer.</span></span></p>
<p><span><span>Machina adopts the </span><a href="https://wiki.libvirt.org/page/Virtio"><span>Virtio</span></a><span> virtualization standard, which is also used by the </span><a href="https://www.linux-kvm.org/page/Main_Page"><span>Linux Kernel-based Virtual Machine</span></a><span> (KVM). It makes use of Virtio’s vsock virtual socket, “which can open direct channels between a host operating system and its guest, to allow for conveniences that would be otherwise impossible,” says 9to5Google. </span></span></p>
<p><span><span>This extra effort will likely enable enable fast mouse performance, automatically adjusted screen resolution, and support for multiple displays, file transfers, and copy and paste, says the story. This appears to be much like the allegedly superior emulation that is expected with Google’s Project Crostini for running Linux apps on Chrome OS. The news of the Guest app follows </span><a href="https://twitter.com/MishaalRahman/status/989568912768499713"><span>earlier reports</span></a><span> that suggested that Google is building an Android Runtime into Fuchsia rather than depending on emulation to run Android apps.</span></span></p>
<p><span><span>App emulators should be viewed with some skepticism. Most of the mobile Linux OS contenders promised some sort of Android app compatibility, but they have generally failed to deliver. Still, by building emulation deeply into the stack from the start rather than adding an emulator on later, Fuchsia may well offer Linux developers an emulator that they can live with.  </span></span></p>
<p><em><span><span>Join us at </span><a href="https://events.linuxfoundation.org/events/elc-openiot-europe-2018/"><span>Open Source Summit + Embedded Linux Conference Europe</span></a><span> in Edinburgh, UK on October 22-24, 2018, for 100+ sessions on Linux, Cloud, Containers, AI, Community, and more.</span></span></em></p>
</div>
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB Theme © iAndrew 2016