How To Run Your First Program in a Nano Virtual Machine

Written by mvuksano | Published 2020/05/30
Tech Story Tags: kvm | virtualization | x86 | virtual-machine | cpu | linux | linux-and-unix | hardware | web-monetization

TLDR We will use KVM (https://www.linux-kvm.org/page/Main_Page) to run our code. This means that in order to execute this code you will need a Linux machine with KVM installed. Alternatively you can use Google Cloud Compute Engine with nested virtualization enabled. Using KVM_GET_API_VERSION to check if API version is exactly 12. We will allocate a chunk of memory and place our code into it. We add "0" (ASCII value of character zero) to al register so we can display correct character zero.via the TL;DR App

no story

Written by mvuksano | PSS - Pragmatic problem solver @ Facebook
Published by HackerNoon on 2020/05/30