Bug 1908421 - [v2v] [VM import RHV to CNV] Windows imported VM boot failed: INACCESSIBLE BOOT DEVICE error
Summary: [v2v] [VM import RHV to CNV] Windows imported VM boot failed: INACCESSIBLE BO...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: V2V
Version: 2.5.2
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
: 2.6.0
Assignee: Fabien Dupont
QA Contact: Daniel Gur
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-12-16 16:37 UTC by Khaoula Ben Sghaier
Modified: 2021-03-10 11:23 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-03-10 11:22:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Importer pod logs (56.67 KB, application/rtf)
2020-12-16 16:37 UTC, Khaoula Ben Sghaier
no flags Details
importer pod (16.04 KB, application/rtf)
2020-12-16 16:39 UTC, Khaoula Ben Sghaier
no flags Details
Windows VM (6.13 KB, application/rtf)
2020-12-16 16:40 UTC, Khaoula Ben Sghaier
no flags Details
VM instance (5.47 KB, application/rtf)
2020-12-16 16:41 UTC, Khaoula Ben Sghaier
no flags Details
dv and pvc (6.93 KB, application/rtf)
2020-12-16 16:44 UTC, Khaoula Ben Sghaier
no flags Details
Screenshot (62.57 KB, image/png)
2020-12-22 12:36 UTC, Ilanit Stein
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2021:0799 0 None None None 2021-03-10 11:23:19 UTC

Description Khaoula Ben Sghaier 2020-12-16 16:37:27 UTC
Created attachment 1739699 [details]
Importer pod logs

Description of problem:

When I try to import a Windows VM (Win Server 2019) from RHV (works fine on RHV) on CNV, the import is successful and the VM powers on but starts with a blue screen with error "INACCESSIBLE_BOOT_DEVICE"

Version-Release number of selected component (if applicable):

Openshift 4.6.6 and RHV 4.4 (Self-hosted engine), with OpenShift Virtualization 2.5.2


How reproducible:

Always

Steps to Reproduce:
1. Import Windows VM from RHV to CNV with default template values  
2.
3.

Actual results:

Blue screen with error "INACCESSIBLE_BOOT_DEVICE"

Expected results:

VM boots successfully 

Additional info:

Comment 1 Khaoula Ben Sghaier 2020-12-16 16:39:26 UTC
Created attachment 1739700 [details]
importer pod

Comment 2 Khaoula Ben Sghaier 2020-12-16 16:40:47 UTC
Created attachment 1739702 [details]
Windows VM

Comment 3 Khaoula Ben Sghaier 2020-12-16 16:41:42 UTC
Created attachment 1739703 [details]
VM instance

Comment 4 Khaoula Ben Sghaier 2020-12-16 16:44:50 UTC
Created attachment 1739705 [details]
dv and pvc

Comment 5 Sebastian Soto 2020-12-16 16:51:31 UTC
@ksghaier
This is assigned to the wrong component, it seems like it should be under the CNV project.
This component deals with running Windows container workloads with https://github.com/openshift/windows-machine-config-operator/

Comment 6 Khaoula Ben Sghaier 2020-12-16 16:55:54 UTC
(In reply to Sebastian Soto from comment #5)
> @ksghaier
> This is assigned to the wrong component, it seems like it should be under
> the CNV project.
> This component deals with running Windows container workloads with
> https://github.com/openshift/windows-machine-config-operator/

I could not pick the CNV project, it says that I'm not authorized to submit a bug for it, how can I get this fixed?

Comment 7 Aravindh Puthiyaparambil 2020-12-16 17:01:50 UTC
@ksghaier I have moved the bug for you. Please ensure details like version and component are accurate.

Comment 8 Khaoula Ben Sghaier 2020-12-16 17:04:19 UTC
@

Comment 9 Khaoula Ben Sghaier 2020-12-16 17:05:57 UTC
@aravindh Thank you, much appreciated.

Comment 10 Khaoula Ben Sghaier 2020-12-16 23:32:51 UTC
I also tried with adding VirtIO container to windows VM and I had the same issue:

[root@ocp4-bastion ~l]# oc get vm win2k19 -o yaml 
apiVersion: kubevirt.io/v1alpha3
kind: VirtualMachine
metadata:
  annotations:
    comment: ""
    kubevirt.io/latest-observed-api-version: v1alpha3
    kubevirt.io/storage-observed-api-version: v1alpha3
    sso: guest_agent
  creationTimestamp: "2020-12-16T22:26:39Z"
  generation: 15
  labels:
    app: win2k19
    flavor.template.kubevirt.io/medium: "true"
    origin: rhev
    os.template.kubevirt.io/win2k19: "true"
    tags: ""
    vm.kubevirt.io/template: windows2k19-server-medium-v0.12.3
    vm.kubevirt.io/template.namespace: openshift
    vm.kubevirt.io/template.revision: "1"
    vm.kubevirt.io/template.version: v0.12.4
    workload.template.kubevirt.io/server: "true"
  managedFields:
  - apiVersion: kubevirt.io/v1alpha3
    fieldsType: FieldsV1
    fieldsV1:
      f:metadata:
        f:annotations:
          .: {}
          f:comment: {}
          f:sso: {}
        f:labels:
          .: {}
          f:app: {}
          f:flavor.template.kubevirt.io/medium: {}
          f:origin: {}
          f:os.template.kubevirt.io/win2k19: {}
          f:tags: {}
          f:vm.kubevirt.io/template: {}
          f:vm.kubevirt.io/template.namespace: {}
          f:vm.kubevirt.io/template.revision: {}
          f:vm.kubevirt.io/template.version: {}
          f:workload.template.kubevirt.io/server: {}
      f:spec:
        .: {}
        f:template:
          .: {}
          f:metadata:
            .: {}
            f:creationTimestamp: {}
            f:labels:
              .: {}
              f:flavor.template.kubevirt.io/medium: {}
              f:kubevirt.io/domain: {}
              f:kubevirt.io/size: {}
              f:os.template.kubevirt.io/win2k19: {}
              f:vm.kubevirt.io/name: {}
              f:workload.template.kubevirt.io/server: {}
          f:spec:
            .: {}
            f:domain:
              .: {}
              f:clock:
                .: {}
                f:timer: {}
                f:utc: {}
              f:cpu:
                .: {}
                f:cores: {}
                f:sockets: {}
                f:threads: {}
              f:devices:
                .: {}
                f:autoattachGraphicsDevice: {}
                f:autoattachSerialConsole: {}
                f:inputs: {}
              f:features:
                .: {}
                f:acpi: {}
              f:firmware:
                .: {}
                f:bootloader:
                  .: {}
                  f:bios: {}
              f:machine:
                .: {}
                f:type: {}
              f:memory: {}
              f:resources:
                .: {}
                f:limits:
                  .: {}
                  f:memory: {}
                f:requests:
                  .: {}
                  f:memory: {}
            f:evictionStrategy: {}
            f:networks: {}
            f:terminationGracePeriodSeconds: {}
    manager: vm-import-controller
    operation: Update
    time: "2020-12-16T22:26:47Z"
  - apiVersion: kubevirt.io/v1alpha3
    fieldsType: FieldsV1
    fieldsV1:
      f:spec:
        f:template:
          f:spec:
            f:domain:
              f:devices:
                f:disks: {}
                f:interfaces: {}
            f:volumes: {}
    manager: Mozilla
    operation: Update
    time: "2020-12-16T23:20:12Z"
  - apiVersion: kubevirt.io/v1alpha3
    fieldsType: FieldsV1
    fieldsV1:
      f:spec:
        f:running: {}
    manager: virt-api
    operation: Update
    time: "2020-12-16T23:20:47Z"
  - apiVersion: kubevirt.io/v1alpha3
    fieldsType: FieldsV1
    fieldsV1:
      f:metadata:
        f:annotations:
          f:kubevirt.io/latest-observed-api-version: {}
          f:kubevirt.io/storage-observed-api-version: {}
      f:spec:
        f:template:
          f:spec:
            f:domain:
              f:firmware:
                f:uuid: {}
      f:status:
        .: {}
        f:conditions: {}
        f:created: {}
        f:ready: {}
    manager: virt-controller
    operation: Update
    time: "2020-12-16T23:21:11Z"
  name: win2k19
  namespace: default
  resourceVersion: "3901753"
  selfLink: /apis/kubevirt.io/v1alpha3/namespaces/default/virtualmachines/win2k19
  uid: 39a989a8-8408-4096-be52-84681ddb45a4
spec:
  running: true
  template:
    metadata:
      creationTimestamp: null
      labels:
        flavor.template.kubevirt.io/medium: "true"
        kubevirt.io/domain: win2k19
        kubevirt.io/size: medium
        os.template.kubevirt.io/win2k19: "true"
        vm.kubevirt.io/name: win2k19
        workload.template.kubevirt.io/server: "true"
    spec:
      domain:
        clock:
          timer: {}
          utc: {}
        cpu:
          cores: 1
          sockets: 1
          threads: 1
        devices:
          autoattachGraphicsDevice: true
          autoattachSerialConsole: false
          disks:
          - bootOrder: 1
            disk:
              bus: virtio
            name: dv-win2k19-062b5bfe-c048-4cfa-8159-3c1674db1c30
          - bootOrder: 2
            cdrom:
              bus: sata
            name: windows-virtio
          inputs:
          - bus: usb
            name: tablet
            type: tablet
          interfaces:
          - macAddress: 56:6f:2c:d0:00:01
            masquerade: {}
            model: virtio
            name: nic1
        features:
          acpi: {}
        firmware:
          bootloader:
            bios: {}
        machine:
          type: q35
        memory: {}
        resources:
          limits:
            memory: 2Gi
          requests:
            memory: 2Gi
      evictionStrategy: LiveMigrate
      networks:
      - name: nic1
        pod: {}
      terminationGracePeriodSeconds: 3600
      volumes:
      - dataVolume:
          name: win2k19-062b5bfe-c048-4cfa-8159-3c1674db1c30
        name: dv-win2k19-062b5bfe-c048-4cfa-8159-3c1674db1c30
      - containerDisk:
          image: registry.redhat.io/container-native-virtualization/virtio-win
        name: windows-virtio
status:
  conditions:
  - lastProbeTime: null
    lastTransitionTime: "2020-12-16T23:21:06Z"
    status: "True"
    type: Ready
  created: true
  ready: true

Comment 11 Fabien Dupont 2020-12-17 13:17:57 UTC
Isn't it a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1903585 ?

Comment 12 Ilanit Stein 2020-12-22 12:35:57 UTC
I reproduced this bug by importing a Windows2019 with virtio-scsi to CNV.
After a successful import, start the VM on CNV, and got 
Stop code: INACCESSIBLE BOOT DEVICE.
See attached "Screenshot".
Once bug 1903585 will be fixed, it will be possible to verify if it solves the issue.

Comment 13 Ilanit Stein 2020-12-22 12:36:35 UTC
Created attachment 1741367 [details]
Screenshot

Comment 14 Amos Mastbaum 2021-01-21 11:34:08 UTC
Verification is Blocked by a vmimport crashloopback issue:

[amastbau@amastbau totp2]$ oc logs pods/importer-win20191-9de75658-e59b-48db-b7ac-06e79087e98c --follow
I0121 10:06:22.930567       1 importer.go:52] Starting importer
I0121 10:06:22.931242       1 importer.go:121] begin import process
E0121 10:06:24.833751       1 importer.go:137] Fault reason is "Operation Failed". Fault detail is "[Cannot transfer Virtual Disk. The relevant Storage Domain's status is Unknown.]". HTTP response code is "409". HTTP response message is "409 Conflict".
Error sending transfer image request
kubevirt.io/containerized-data-importer/pkg/importer.getTransfer
	/remote-source/app/pkg/importer/imageio-datasource.go:272
kubevirt.io/containerized-data-importer/pkg/importer.createImageioReader
	/remote-source/app/pkg/importer/imageio-datasource.go:184
kubevirt.io/containerized-data-importer/pkg/importer.NewImageioDataSource
	/remote-source/app/pkg/importer/imageio-datasource.go:60
main.main
	/remote-source/app/cmd/cdi-importer/importer.go:135
runtime.main
	/usr/lib/golang/src/runtime/proc.go:203
runtime.goexit
	/usr/lib/golang/src/runtime/asm_amd64.s:1373
[amastbau@amastbau totp2]

will link to BZ once opened

Comment 15 Pan Ousley 2021-02-12 16:42:50 UTC
Fabian, does this bug need to be documented in the CNV 2.6 release notes? It came up in my search due to the requires_doc_text? flag. Thanks!

Comment 16 Fabien Dupont 2021-02-15 08:08:06 UTC
Pan, I don't think it requires documentation. It's very likely that it's a duplicate of BZ#1903585 and the fix is part of 2.6.0.

Comment 19 errata-xmlrpc 2021-03-10 11:22:41 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Virtualization 2.6.0 security and bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:0799


Note You need to log in before you can comment on or make changes to this bug.