How do I install an ISO image into an LXC container?

I startet my own homelab. I found Umbrelos and libreelec fits my needs the best for my PC behind my TV. But now I need to use Proxmox for virtualize to run both beside each other. To be able to transfer GPU features also to Umbrelos and libreelec I need to use LXC.
It feels a bit strange but until now I was not able to found a way to Install an Iso to an LXC container and AI seems useless and speakt about source and compilation.

–> How could I install an .ISO into an LXC?

I startet my own homelab. I found Umbrelos and libreelec fits my needs the best for my PC behind my TV. But now I need to use Proxmox for virtualize to run both beside each other. To be able to transfer GPU features also to Umbrelos and libreelec I need to use LXC.

I think this might be an XY problem. You can pass GPU features to virtual machines: you just need to ask on a Proxmox forum how to do this. It doesn’t mean you have to use containers.

You might be able to get these applications to run in a container, but that may in turn throw up other issues - the application may try to do things which it is not allowed to do in a container. Accessing block devices directly is just one example. Or it might need specific features from the kernel it boots.

was not able to found a way to Install an Iso to an LXC

An ISO is a bootable disk image. It usually contains some sort of installer, and compressed files that the installer then writes to a disk as it executes.

So in short, the only way to install from an ISO is to boot from the ISO (i.e. in a virtual machine), and give it a block device that it can write to. Then the VM can reboot from that block device.

At that point, you can then either just leave it running as a virtual machine, or you can attempt to convert it to a container. Proxmox uses block storage for both VMs and CTs (note that Proxmox CTs are just lxc containers), so it may be possible to directly switch your VM into a CT. I’ve never tried it, and you should ask on a Proxmox forum about that - Proxmox is not a topic for discussion here.

Most container systems other than Proxmox CT use the host’s filesystem, so you’d have to extract the filesystem from the VM block device and write it somewhere on the host.

Either way, you may have to deal with the compatibility issues mentioned above, since you have installed software which was designed to run in a VM, but you’ve chosen to run it in a container instead.

Aside: lxc by itself doesn’t do virtual machines, but incus does. So if you want an alternative to Proxmox that does both VMs and containers, incus is worth a look. But given that Proxmox itself already does both virtual machines and containers, you probably don’t need a new platform.

VM and GPU is a all or nothing thing. Cause you could pass the whole Graphic card to the VM or not. The VM virtual graphic card is very limitted. Virgl or VirtIO is only for a bar minimal gpu accessibility.

Proxmox iteslf does not have any converting possibilities.

I have a VM with umbrelos running. how could I copy these data to an lxc?

In LXC I’m able to give acces to the GPU if I pass /dev/dri to the container.