XEM HVM guest

e.g. Devuan

cd /data/guests/
mkdir devuanhvm
cd devuanhvm

qemu-img-xen create -f qcow2 devuanhvm.qcow2 10G

vi devuanhvm

type = "hvm"
sdl = 1

name = "devuanhvm"
memory = 1024
vcups = 2
disk = ['tap:qcow2:/data/guests/devuanhvm/devuanhvm.qcow2,xvda,w',
        'file:/data/ISO-IMAGES/devuan.iso,hdc:cdrom,r']
vif = [ 'vifname=devuanhvm.0' ]

ready to go,

xl create devuanhvm

additional notes

other options,

arch = 'x86_64'
maxmem = 1024
maxcups = 2
boot = "cd"
hap = 1
acpi = 1
usb = 1
usbdevice = "tablet"
shadow_memory = 16
audio=0