I have problem with Win10 VMs (with virtio drivers already installed) imported from oVirt. The last VM is just almost clean Win10. VM stops on startup with message “Inaccessible boot device“. Restart in safe mode and disk repair changes nothing.
oVirt is a GUI front-end to KVM and uses same qcow2 images, so I have just copied original ones to /var/tmp on ON v7.01 Debian front-end. “virt-filesystems --long -h --all -a <image.qcow2>” and “qemu-img check <image.qcow2>“ confirms that image on ON side is 100% OK. oVirt by default uses i440FX chipset with BIOS, virtio SCSI Westmere CPU, virtio NET (original VM uses exactly these parameters, I checked it on oVirt side). ON template (made as similar as possible to oVirt environment) attached below.
How to fix this issue? Thanks in advance.
PS. Imported Linux VMs runs just fine.
if you have virtio drivers installed then the disk should already be virtio, but I’m not totally sure. Also, was your image booting on a UEFI VM? I would recommend then to set the machine to q35(secure or not). Note that FIRMWARE may be in a different path and does not need to be secure.
For what it counts, I can paste here the contents of a template for a VERY small image of windows server (console only) that is currently running on my installation:
I have modified VM template upon recommendation by others and now VM fails to boot with meessage:
DEPLOY: error: Failed to create domain from /var/lib/one//datastores/0/25/deployment.0error: XML error: Invalid value for attribute ‘bus’ in element ‘target’: ‘SCSI’.Could not create domain from /var/lib/one//datastores/0/25/deployment.0ExitCode: 255
Its quite strange, since bus now defined as virtio. Previosly BUS = “scsi” also didn’t worked.
Here is my VM template:
NAME = "Win10-BIOS-AV1"
CPU = "2"
VCPU = "2"
MEMORY = "8192"
HYPERVISOR = "kvm"
OS = [
ARCH = "x86_64",
BOOT = "disk0",
MACHINE = "q35",
FIRMWARE = "BIOS",
SD_DISK_BUS = "SCSI"
]
CONTROLLER = [
TYPE = "scsi",
MODEL = "virtio-scsi",
INDEX = "0"
]
DISK = [
IMAGE_ID = "6",
IMAGE = "win10-v2",
DRIVER = "qcow2",
DEV_PREFIX = "vd",
TARGET = "vda",
BUS = "virtio",
CACHE = "none",
IO = "threads",
DISCARD = "unmap",
CLONE = "YES",
SAVE = "NO"
]
NIC = [
MODEL = "virtio"
]
FEATURES = [
ACPI = "Yes",
APIC = "Yes",
LOCALTIME = "Yes",
GUEST_AGENT = "Yes",
HYPERV_OPTIONS = "frequencies=yes,reenlightenment=yes,relaxed=yes,spinlocks=yes,vapic=yes,vpindex=yes"
]
GRAPHICS = [
TYPE = "VNC",
LISTEN = "0.0.0.0"
]
INPUT = [
BUS = "usb",
TYPE = "tablet"
]
CONTEXT = [
NETWORK = "YES"
]
RAW = [
TYPE = "kvm",
DATA = "
<cpu mode='host-passthrough' check='none'/>
<features>
<hyperv>
<relaxed state='on'/>
<vapic state='on'/>
<spinlocks state='on' retries='8191'/>
<vendor_id state='on' value='GenuineIntel'/>
</hyperv>
<kvm>
<hidden state='on'/>
</kvm>
</features>
"
]