ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    KVM: create new guest from existing qcow2

    IT Discussion
    kvm virt-manager qcow2
    5
    21
    5.5k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • FATeknollogeeF
      FATeknollogee
      last edited by FATeknollogee

      Boot order is set correctly in virt-manager.
      The image worked in a previous Fedora 25 install.
      I re-installed the o/s (F25 to F26), the qcow2 images were on a separate disk.

      1 Reply Last reply Reply Quote 0
      • stacksofplatesS
        stacksofplates
        last edited by

        Did you try passing through the host CPU type?

        FATeknollogeeF 2 Replies Last reply Reply Quote 0
        • FATeknollogeeF
          FATeknollogee @stacksofplates
          last edited by

          @stacksofplates said in KVM: create new guest from existing qcow2:

          Did you try passing through the host CPU type?

          Have not tried that yet

          1 Reply Last reply Reply Quote 0
          • stacksofplatesS
            stacksofplates
            last edited by

            I would also try switching to a non pv driver. If it boots with a normal SCSI driver then it's probably virtio.

            FATeknollogeeF 1 Reply Last reply Reply Quote 1
            • PenguinWranglerP
              PenguinWrangler
              last edited by

              Do you have access to the original host?

              FATeknollogeeF 1 Reply Last reply Reply Quote 0
              • Emad RE
                Emad R @FATeknollogee
                last edited by Emad R

                @fateknollogee

                In Virt Manager you have the following options:

                https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Virtualization_Getting_Started_Guide/images/virt-manager_create_step1.png

                choose Import existing disk image, instead of re-creating the VM then selecting the disk image.

                That never failed me, and if it fails on your machine, what is the error ?
                sometimes the console of Virt Manager will be blank, it happens, close it and re-open it.

                FATeknollogeeF 1 Reply Last reply Reply Quote 0
                • FATeknollogeeF
                  FATeknollogee @PenguinWrangler
                  last edited by

                  @penguinwrangler said in KVM: create new guest from existing qcow2:

                  Do you have access to the original host?

                  The orig host is no more.

                  PenguinWranglerP 1 Reply Last reply Reply Quote 0
                  • FATeknollogeeF
                    FATeknollogee @Emad R
                    last edited by

                    @emad-r said in KVM: create new guest from existing qcow2:

                    @fateknollogee

                    In Virt Manager you have the following options:

                    https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Virtualization_Getting_Started_Guide/images/virt-manager_create_step1.png

                    choose Import existing disk image, instead of re-creating the VM then selecting the disk image.

                    That never failed me, and if it fails on your machine, what is the error ?
                    sometimes the console of Virt Manager will be blank, it happens, close it and re-open it.

                    This ^^ is exactly what I did.
                    Error is "System BootOrder not found"

                    Emad RE 1 Reply Last reply Reply Quote 0
                    • PenguinWranglerP
                      PenguinWrangler @FATeknollogee
                      last edited by

                      @fateknollogee okay. I was going to suggest if it was available that you do an export: virsh dumpxml vmname > vmname.xml then move the hard drives and the xml to the new host and do an import: virsh net-define vmname.xml

                      1 Reply Last reply Reply Quote 1
                      • Emad RE
                        Emad R @FATeknollogee
                        last edited by Emad R

                        @fateknollogee said in KVM: create new guest from existing qcow2:

                        System BootOrder not found"

                        System BootOrder not found seems to be EFI related.

                        Can you try playing with those setting in Virt manager, there was an option to alternate between both (EFI and legacy BIOS)

                        And if you are testing and have free time , and the VM you are importing was EFI, can you try re-creating in standard BIOS mode and try again to import and see if that changes anything.

                        FATeknollogeeF 1 Reply Last reply Reply Quote 0
                        • FATeknollogeeF
                          FATeknollogee @Emad R
                          last edited by FATeknollogee

                          @emad-r said in KVM: create new guest from existing qcow2:

                          @fateknollogee said in KVM: create new guest from existing qcow2:

                          System BootOrder not found"

                          System BootOrder not found seems to be EFI related.

                          Can you try playing with those setting in Virt manager, there was an option to alternate between both (EFI and legacy BIOS)

                          And if you are testing and have free time , and the VM you are importing was EFI, can you try re-creating in standard BIOS mode and try again to import and see if that changes anything.

                          In BIOS mode, it says "Booting from Hard Disk..." with a flashing cursor...no progress after that.

                          The image was definitely created as EFI.

                          1 Reply Last reply Reply Quote 0
                          • FATeknollogeeF
                            FATeknollogee @stacksofplates
                            last edited by

                            @stacksofplates said in KVM: create new guest from existing qcow2:

                            I would also try switching to a non pv driver. If it boots with a normal SCSI driver then it's probably virtio.

                            No go, same error.

                            1 Reply Last reply Reply Quote 0
                            • FATeknollogeeF
                              FATeknollogee @stacksofplates
                              last edited by

                              @stacksofplates said in KVM: create new guest from existing qcow2:

                              Did you try passing through the host CPU type?

                              Yes, error is still the same.

                              1 Reply Last reply Reply Quote 0
                              • F
                                Francesco Provino
                                last edited by

                                Have you tried virt-install and its switches?

                                FATeknollogeeF 1 Reply Last reply Reply Quote 0
                                • FATeknollogeeF
                                  FATeknollogee @Francesco Provino
                                  last edited by

                                  @francesco-provino said in KVM: create new guest from existing qcow2:

                                  Have you tried virt-install and its switches?

                                  I tried virt-install & created a new vm using the qcow2 image, that did not work either.

                                  1 Reply Last reply Reply Quote 0
                                  • Emad RE
                                    Emad R @FATeknollogee
                                    last edited by

                                    @fateknollogee

                                    I tried installing Centos on UEFI and then enabling KVM to trouble-shoot your issue, however when I wanted to create new EFI Q35 VM it complained that I dont have EFI packages, so I was unable to change the VM from BIOS:

                                    I440FX
                                    to
                                    Q35

                                    Using Virt Manager, did you do anything special on the host KVM or to qemu to enable EFI Q35 ? or you were able to select it from the start ?

                                    thanks.

                                    FATeknollogeeF 1 Reply Last reply Reply Quote 0
                                    • FATeknollogeeF
                                      FATeknollogee @Emad R
                                      last edited by

                                      @emad-r said in KVM: create new guest from existing qcow2:

                                      @fateknollogee

                                      I tried installing Centos on UEFI and then enabling KVM to trouble-shoot your issue, however when I wanted to create new EFI Q35 VM it complained that I dont have EFI packages, so I was unable to change the VM from BIOS:

                                      I440FX
                                      to
                                      Q35

                                      Using Virt Manager, did you do anything special on the host KVM or to qemu to enable EFI Q35 ? or you were able to select it from the start ?

                                      thanks.

                                      Q35 has to be selected as you are creating the vm.

                                      1 Reply Last reply Reply Quote 0
                                      • FATeknollogeeF
                                        FATeknollogee
                                        last edited by

                                        Turns out the Windows 10 vm's booted just fine, they were UEFI + i440FX (no Q35).

                                        The Fedora 26 vm's (UEFI + Q35) would not boot & gave the error listed in my orig post.

                                        1 Reply Last reply Reply Quote 0
                                        • FATeknollogeeF
                                          FATeknollogee
                                          last edited by

                                          Solved
                                          I posted this on https://www.redhat.com/archives/virt-tools-list/2017-August/msg00210.html

                                          Laszlo Ersek posted the solution: https://www.redhat.com/archives/virt-tools-list/2017-August/msg00244.html
                                          It can be mitigated manually: when the VM boots, interrupt it at the
                                          TianoCore splash screen. In the setup utility, navigate to:

                                          Boot Maintenance Manager
                                          Boot Options
                                          Add Boot Option

                                          In the file chooser, select

                                          <whatever device you have>/EFI/fedora/shim.efi

                                          and enter a description (name) for the boot option.

                                          Then,

                                          Boot Maintenance Manager
                                          Boot Options
                                          Change Boot Order

                                          and move the new boot option to the top of the list.

                                          After you commit the changes, you can forcibly reset the VM, or else
                                          return to the setup TUI front page, and select Reset there.

                                          1 Reply Last reply Reply Quote 2
                                          • 1
                                          • 2
                                          • 1 / 2
                                          • First post
                                            Last post