lxc/ containers?

gjkrisa

New Member
Apr 2, 2023
26
1
1
I have a follow up questions but to start lxc containers is basically just an extension of the host/ server. Right?
im trying to understand this i dont know why i can not just install an application in a container but if i use a helper script i have less issues.
main one im working on is handbreak my helper script has it running good except i dont know how to get my files in and out of it. i have gotten an cifs share mounted but still can not see it in handbreak cli.
now when i try to install handbreak in debian12 lxc i can not updaate anything or install anything
your are free to pick any one of these to help me get thru this.
i think that lxc seems more direct control and docker has kind of its own "kernel" being in the middle of all this.
Thank you.
root@lxcHandBreak:~# apt-get update
Ign:1 http://deb.debian.org/debian bookworm InRelease
Ign:2 http://security.debian.org bookworm-security InRelease
Ign:3 http://deb.debian.org/debian bookworm-updates InRelease
Ign:2 http://security.debian.org bookworm-security InRelease
Ign:1 http://deb.debian.org/debian bookworm InRelease
Ign:3 http://deb.debian.org/debian bookworm-updates InRelease
Ign:1 http://deb.debian.org/debian bookworm InRelease
Ign:3 http://deb.debian.org/debian bookworm-updates InRelease
Ign:2 http://security.debian.org bookworm-security InRelease
Err:1 http://deb.debian.org/debian bookworm InRelease
Temporary failure resolving 'deb.debian.org'
Err:2 http://security.debian.org bookworm-security InRelease
Temporary failure resolving 'security.debian.org'
Err:3 http://deb.debian.org/debian bookworm-updates InRelease
Temporary failure resolving 'deb.debian.org'
Reading package lists... Done
W: Failed to fetch http://deb.debian.org/debian/dists/bookworm/InRelease Temporary failure resolving 'deb.debian.org'
W: Failed to fetch http://deb.debian.org/debian/dists/bookworm-updates/InRelease Temporary failure resolving 'deb.debian.org'
W: Failed to fetch http://security.debian.org/dists/bookworm-security/InRelease Temporary failure resolving 'security.debian.org'
W: Some index files failed to download. They have been ignored, or old ones used instead.
 
Hi,
regarding the update issue, please check that your LXC is configured to use the correct DNS server and default gateway in order to connect to the internet. You can adapt these in the network settings of the LXC for your virtual network card.

Regarding your cifs share: Where did you mount the share? Inside the LXC or on the host? The recommended way is to mount the share on the host and bind-mount it to the containers filesystem.
Please find details regarding bind mounts here: https://pve.proxmox.com/pve-docs/pve-admin-guide.html#_bind_mount_points
 
  • Like
Reactions: gjkrisa
gee golly yes i dont know how i missed that before.
i did not have the lxc ip adress in the right spot and so no gateway and there was no set ip address updating fine now.
 
Last edited:

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!