xcp-ng / xenopsd-ng

Building a PoC reimplementing xenopsd in another language
GNU Affero General Public License v3.0
7 stars 1 forks source link

Start an XTF guest #17

Open benjamreis opened 3 years ago

benjamreis commented 3 years ago

We're trying to start an XTF guest in our PoC. We've succesfully created the domain but when we try to boot it seems some fields of the HVM context are missing.

We've converted an ELF image (test-hvm32-example from https://xenbits.xen.org/gitweb/?p=xtf.git;a=summary) to a flat binary (the command used is objcopy -O binary test-hvm32-example test-hvm32-example_flat) to keep the PoC as simple as possible.

benjamreis commented 3 years ago

Here are the returns of xl debug-keys q && xl dmesg and xen-hvmctx 1.

> /usr/libexec/xen/bin/xenctx 1
xc_vcpu_getcontext: No data available

The dom-id of the guest we're trying to boot is: 1.

This is how we try to start the guest: https://github.com/xcp-ng/xenopsd-ng/pull/13/files#diff-261d20d677e94cdcc61ef49a6842c7a75b1b7dd895ceb57d97203e4763a0a8ccR254-R367