Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Hello, Xen!

Let’s kick things off with the canonical “Hello World” example in Xen. Open a new file and add the following to it:

include io;

io.println("Hello, Xen!");

Save it as hello_xen.xen and close it.

Now open a terminal and enter the following:

$ xen hello_xen.xen

You should see “Hello, Xen!” printed to your console. That’s it!