Error: "xenopsd internal error: Unix.Unix_error(Unix.ENODEV, "write", "") importing VM on XenServer

Error: "xenopsd internal error: Unix.Unix_error(Unix.ENODEV, "write", "") importing VM on XenServer

book

Article ID: CTX217566

calendar_today

Updated On:

Description

After exporting a VM into an xva format and trying to import the VM, VM import is successful, but when trying to start the VM, it fails with the following error in the /var/log/xensource.log

xenopsd internal error: Unix.Unix_error(Unix.ENODEV, "write", "")

 

Resolution

  1. Check the VM's pci device setting:  #xe vm-list uuid=<VM UUID> | grep pci
  2. Remove or correct to the new pci id using the following command:   #xe vm-param-set other-config:pci=0/0000:[PCI address for the device] uuid=[UUID of VM]

Problem Cause

Issues happen when you have added other devices to the virtual machine (like PCI passthrough or vgpu passthrough) referring to the PCI devices on the other hosts.