Install python3-lxc

rwanito

Member
May 25, 2021
14
0
6
25
Hi !

I want to deploy lxc cluster with ansible and configure them.

It's easy to deploy lxc with proxmoxer plugin, python needs only a plugin from github.
But, once deployed, lxc containers are not usable with SSH so I've searched a solution to configure my lxc.
A solution is to change the ansible connection driver with ansible-lxc (https://github.com/ansible-collections/community.general/blob/main/plugins/connection/lxc.py).
It needs python3-lxc but when I try to install it I have pve-apt-hook which stops because it thinks I want to remove proxmox-ve cause of the liblxc1 package.

Do you know how can I install it or did you know an other solution to deploy base lxc image and configure them ?

i can do pct commands but I lose benefits of ansible.
And the best solution imo is to avoid to install deps in the host but it needed if I want to configure my lxc.

I use alpine pour base image but I can use debian.

EDIT : I'm in a totally offline env. So, I'm checking if it's not my apt repo the problem.

Thanks !
 
Last edited:
hi,

But, once deployed, lxc containers are not usable with SSH so I've searched a solution to configure my lxc.
what do you mean by this? containers cannot be logged into? if that's the case maybe you just have to set 'password' parameter. after that you should be able to login as root with the password you've set
 

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!