Gave up waiting for root device.
Common problems:
* Boot args (cat /proc/cmdline)
* Check rootdelay= (did the system wait long enough?)
* Check root= (did the system wait for the right device?)
* Missing modules (cat /proc/modules; ls /dev)
ALERT! /dev/mapper/vm-root does not exist. Dropping to a shell!
BusyBox u1.13.3 (Ubuntu 1:1.13.3-1ubuntu11) built-in shell (ash)
Enter 'help' for a list of built-in commands.
Could you please help me fix this? It becomes urgent, as I struggle with this for quite some time. I would like to migrate all VMs from Proxmox to the LXD, but I am unable as this error happens with all VM’s migrated to the LXD.
this particular image is very old Ubuntu 10.10, but it’s just test image (smaller size), I am more interested in migrating Ubuntu 20.04 LTS and 22.04 LTS.
I have tried to convert the image with installed virt-v2v package and run lxd-migrate with an option:
--conversion=format,virtio
There is no such option as
--format=conversion
in the lxd-migrate 5.21.3 (nor 6.3).
I also tried to do following:
virt-v2v --block-driver virtio-scsi -o local -of raw -os ./os -i disk -if qcow2 vm-104-disk-1.qcow2
lxd-migrate --name <vm-name> --type vm --source os/vm-104-disk-1-sda --non-interactive --config security.csm=true --config security.secureboot=false
If you have recent enough lxd-migrate (as per @tomp’s answer), you can use --conversion=format,virtio (format option if image is not in raw format, and conversion option to enable virtio-scsi). The conversion option calls virt-v2v in the background, which enables virtio-scsi modules if they are already present but disabled, otherwise it will have no effect.
Could you try setting io.bus=virtio-blk on the root device to avoid using virtio-scsi?
This should confirm whether the missing module is an issue.
lxc config device set <instance> root io.bus=virtio-blk
I can see, that in the default pool, there is one volume, size 1.5GiB. The original Qcow2 image has the size 4.3GiB. When I look at the running instance on Proxmox, I can see real disk usage about those 1.5GiB
Are you trying an Ubuntu 20.04 or 22.04 LTS image?
If you can make that available perhaps @dinmusic can give it a whirl.
I suspect the older Ubuntu 10.10 image will be too old to run (LXD doesn’t support legacy guest devices) but if you could make that available too we could give it a try.