# Instalar OpenWrt en LXC

Para buscar la template de OpenWrt vamos a la siguiente url: [https://images.linuxcontainers.org/images/](https://images.linuxcontainers.org/images/)

[![imagen.png](https://docs.ntechadmin.com/uploads/images/gallery/2024-05/scaled-1680-/5iFpfpx7RRhpxYeP-imagen.png)](https://docs.ntechadmin.com/uploads/images/gallery/2024-05/5iFpfpx7RRhpxYeP-imagen.png)

[![imagen.png](https://docs.ntechadmin.com/uploads/images/gallery/2024-05/scaled-1680-/LR78Y7feVDlxggqa-imagen.png)](https://docs.ntechadmin.com/uploads/images/gallery/2024-05/LR78Y7feVDlxggqa-imagen.png)

[![imagen.png](https://docs.ntechadmin.com/uploads/images/gallery/2024-05/scaled-1680-/9jpA5Yvd37pK4o9U-imagen.png)](https://docs.ntechadmin.com/uploads/images/gallery/2024-05/9jpA5Yvd37pK4o9U-imagen.png)

```shell
wget https://images.linuxcontainers.org/images/openwrt/23.05/amd64/default/20240528_12%3A10/rootfs.tar.xz
```

[![imagen.png](https://docs.ntechadmin.com/uploads/images/gallery/2024-05/scaled-1680-/qrfBoTSybwsJVwix-imagen.png)](https://docs.ntechadmin.com/uploads/images/gallery/2024-05/qrfBoTSybwsJVwix-imagen.png)

```
pct create 1111 ./rootfs.tar.xz --unprivileged 1 --ostype unmanaged --hostname OpenWrt --net0 name=eth0 --net1 name=eth1 --storage local-lvm
```

[![imagen.png](https://docs.ntechadmin.com/uploads/images/gallery/2024-05/scaled-1680-/HrxZeYgLFY7AIULy-imagen.png)](https://docs.ntechadmin.com/uploads/images/gallery/2024-05/HrxZeYgLFY7AIULy-imagen.png)

[![Screenshot from 2024-05-30 01-05-29.png](https://docs.ntechadmin.com/uploads/images/gallery/2024-05/scaled-1680-/GAwGwtcubuQ9pJhH-screenshot-from-2024-05-30-01-05-29.png)](https://docs.ntechadmin.com/uploads/images/gallery/2024-05/GAwGwtcubuQ9pJhH-screenshot-from-2024-05-30-01-05-29.png)

[![image.png](https://docs.ntechadmin.com/uploads/images/gallery/2024-05/scaled-1680-/aDPPFUvF9WjRZogI-image.png)](https://docs.ntechadmin.com/uploads/images/gallery/2024-05/aDPPFUvF9WjRZogI-image.png)

```shell
ls /etc/pve/lxc
nano /etc/pve/lxc/*.conf
```

[![image.png](https://docs.ntechadmin.com/uploads/images/gallery/2024-05/scaled-1680-/U71rY9u7aaZZKI4k-image.png)](https://docs.ntechadmin.com/uploads/images/gallery/2024-05/U71rY9u7aaZZKI4k-image.png)

```shell
lxc.cgroup2.devices.allow: c 10:200 rwm
lxc.mount.entry: /dev/net dev/net none bind,create=dir
```