Was your source VM using UEFI?
If not, that may be the problem and you may need to do a bunch of filesystem re-shuffling to give it a UEFI compatible bootloader.
Sencond attempt. I installed a new debian 10 in UEFI mod on a local KVM, transfered the image but I get the same error.
BdsDxe: failed to load Boot0001 "UEFI QEMU QEMU HARDDISK " from PciRoot(0x0)/Pci(0x1,0x1)/Pci(0x0,0x0)/Scsi(0x0,0x1): No
t Found
#1. shouldn’t the disk image be present in the vm config? Although it imported the .qcow2 image, the currently the config looks like this (disk is not mentioned):
#2. I wanted to boot from a CD, I added it with the following command:
lxc config device add VM-name custom-device-name disk source=/home/user/pathtoiso/isoname.iso
in the VM bootmenu it appeared but selecting it, i just got an empty screen. What is the proper way to boot an .iso image? (the remote system doesn’t have a GUI, I can only connect via terminal to it).
#3. I am using the lxc 4.0.8 (installed it with snap install lxd --channel=4.0/stable as suggested on debian’s tutorial). What is the latest stable version I should use?
Pressing ESC and then selecting the drive works fine usually. You could also try setting boot.priority=10 on it which should have it booted immediately without having to go through the menu.
I cannot boot any iso files. With secureboot on, I get
error: Secure Boot forbids loading module from (cd0)/boot/grub/x86_64-efi/part_sunpc.mod.
and without secureboot I just get a blank screen (tried different iso files downloaded from the debian official website). Just to make sure, I can boot any CD iso files, like debian-10.11.0-amd64-netinst.iso right or do these images need to be modified in some way to work lxd?
I think I figured the problem out. It’s the terminal connection. Even “mc” runs in black and white via the terminal. I don’t know what the exact issue is here.
So I installed lxc on the local machine, set up the cluster, connected to cluster, and started the console on the local machine, and it works just fine.
Sorry for wasting you time. If you could be so nice to help me with one more questions: #1. how to disable the clustering on the remote machine (set up by lxc config set core.https_address :8443) as this solution exposes the 8443 port to the whole internet. Setting these values to empty string is enough?