---
# System prepended metadata

title: perfil lxc

---

# perfil lxc
```
config:
  linux.kernel_modules: overlay, nf_nat, br_netfilter
  security.nesting: "true"
  user.user-data: |
    #cloud-config
    merge_how:
      - name: list
        settings: [append]
      - name: dict
        settings: [append, recurse_list]
    users:
      - name: ubuntu
        passwd: $6$p7eIF8oeovbO$FYmQletmACF4GWkiiheknPG0MZEJHUyuBLOlc9oYgAzXDnCCDgjM6bBVsTUQVqbzFcprYUiL9GzHHMt5U0D9s0
        ssh_authorized_keys:
        - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPpIXiFYJkqEsqTTLG6+cr0FPbzNVC3lh9rYcUSQTqOp isard
        groups: sudo
        sudo: ['ALL=(ALL) NOPASSWD:ALL']
        shell: /bin/bash
    package_update: true
    runcmd:
    - apt-get update
    - apt-get install -y openssh-server
    - mkdir /root/.ssh
    - sed -i'.orig' -e'/^Pass/ s/no/yes/' /etc/ssh/sshd_config
    - sudo apt-get install -y curl
    - curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
    - echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
    - sudo apt-get update
    - sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
    #sudo systemctl is-active docker
    #sudo usermod -aG docker ${USER}
    #sudo usermod -aG docker $(whoami)
    - sudo usermod -aG docker ubuntu
    - sudo curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-linux-$(uname -m)" -o /usr/local/bin/docker-compose
    - sudo chmod +x /usr/local/bin/docker-compose
description: Ubuntu (from Default) LXD profile
devices:
  eth0:
    name: eth0
    network: lxdbr0
    type: nic
  root:
    path: /
    pool: default
    type: disk
name: ubuntu6
used_by:

```