You can import the VHD file via our REST API, see https://xen-orchestra.com/docs/restapi.html#vdi-import