Disk import

anonymous_user0414

New Member
Nov 15, 2022
28
3
3
Hi,

sorry if the question has already been asked, I have not found anything similar.

I used to have a PVE environment with BTRFS as root and "directory" storages for the vms. The vms themselves I created as qcow2 with EFI.

In hindsight, the efi disks turned out to be a mistake....

Now I have set up a new environment with PVE 7.3 with ZFS as root and ZFS as storage Pool for the vms.

I have tried some things to import the old vms.

1. I have converted the qcow images to raw.
2. I created an empty VM
3. imported disks with the qm importdisk command
4. added disk in gui
5. adjusted boot order

Vm stays in the shell.
Does not boot further.

Then I tried other methods.
Manually created Zvol and copied with DD the content from the raw image to the linked zvol with dd if=file.raw of=/dev/zvol/<pool>/<volume> bs=1m

Vm does not boot.

freshly installed VM boots.

I am at a loss.

regards,
Anonymous_user0414
 
Last edited:
You can exit / reset and go in the EFI boot manager to fix the boot order because EFI Shell is probably the first option to be picked up.

I'm not sure that you can fix the boot order in the VM options.
 
Did you correctly save the boot order ? I remember that it was a bit unintuitive.

Btw if you're wondering what was the boot manager looking like, it should have been a screen like this :

Of course EFI Internal Shell is probably on top of your boot order in your configuration.

2arWV.png
 
Ok I just had this issue right now because I just changed my SCSI controller so I will post the steps
First I dropped in the EFI Shell and typed the exit command and applied these steps :
  1. Boot Maintenance Manager -> Boot Options -> Change Boot Order
  2. Enter to edit the boot order, move your QEMU hard disk on top of the list and then Enter to validate your change
  3. Select Commit Changes and Exit
Do not forget to hit Enter after changing the boot order
You can go back to the Change Boot Order to menu to check if your change have been applied correctly
 
i find this behavior strange. if no one finds the solution, i will install pve 7.2 instead of 7.3 and try again to import the images. I would also import the confs to restore the state where everything still worked.

Either this is a big bug or I don't understand something fundamental.

So far I was very happy with Proxmox. This experience really does not have to be.
 
Did you check that your boot order have been applied correctly as I was suggesting previously ?
Did you attach both the qcow2 image and corresponding EFI disk to the VM ?
 
Ok I just had this issue right now because I just changed my SCSI controller so I will post the steps
First I dropped in the EFI Shell and typed the exit command and applied these steps :
  1. Boot Maintenance Manager -> Boot Options -> Change Boot Order
  2. Enter to edit the boot order, move your QEMU hard disk on top of the list and then Enter to validate your change
  3. Select Commit Changes and Exit
Do not forget to hit Enter after changing the boot order
You can go back to the Change Boot Order to menu to check if your change have been applied correctly
that's exactly what i did. the disk is at the top. i'll try this again later and re-import the disk to make sure the disk is okay.
 
okay that's what I thought.
first i tried this of course with the original efi disk, however i did not adjust the boot order in the efi.

I'll try that now.
 
WOW!!! It worked.

I dont even had to change the order in EFI.

I had probably imported the original EFI disc incorrectly at first. I left the newly created one in PVE and renamed it locally in the location and copied the original one back in with the name of the new one so that the new one was replaced.

finally moved from the "directory" storage to the ZFS storage via GUI, this way it works.

Initially I had imported the orig. efi disk and manually adjusted the conf and defined it as efi. This did not work.

thank you for your great help! You have brought me on the right way.
 
  • Like
Reactions: Dr-Shadow

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!