{"id":21306950,"url":"https://github.com/oneclickvirt/pve_lxc_images","last_synced_at":"2025-07-11T21:31:57.891Z","repository":{"id":220899669,"uuid":"752880583","full_name":"oneclickvirt/pve_lxc_images","owner":"oneclickvirt","description":"PVE的LXC容器的第三方模板文件仓库--手动修复但自动化验证可用性(Third-party template file repository for LXC containers for PVE - manual fixes but automated verification of availability)","archived":false,"fork":false,"pushed_at":"2024-03-27T15:07:51.000Z","size":157,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-06T09:24:29.282Z","etag":null,"topics":["images","lxc","patcher","patcher-script","proxmox","proxmox-ve","ssh","x86","x86-64"],"latest_commit_sha":null,"homepage":"https://github.com/spiritLHLS/pve","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oneclickvirt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-02-05T02:44:04.000Z","updated_at":"2024-10-27T07:02:34.000Z","dependencies_parsed_at":"2024-02-22T14:49:22.180Z","dependency_job_id":null,"html_url":"https://github.com/oneclickvirt/pve_lxc_images","commit_stats":null,"previous_names":["oneclickvirt/pve_lxc_images"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/oneclickvirt/pve_lxc_images","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oneclickvirt%2Fpve_lxc_images","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oneclickvirt%2Fpve_lxc_images/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oneclickvirt%2Fpve_lxc_images/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oneclickvirt%2Fpve_lxc_images/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oneclickvirt","download_url":"https://codeload.github.com/oneclickvirt/pve_lxc_images/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oneclickvirt%2Fpve_lxc_images/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264902574,"owners_count":23681093,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["images","lxc","patcher","patcher-script","proxmox","proxmox-ve","ssh","x86","x86-64"],"created_at":"2024-11-21T16:29:03.908Z","updated_at":"2025-07-11T21:31:57.555Z","avatar_url":"https://github.com/oneclickvirt.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pve_lxc_images\n\n不支持：devuan\n\n部分支持：fedora、gentoo、archlinux\n\n完全支持：ubuntu、debian、centos、almalinux、rockylinux、alpine、opensuse\n\n## 说明\n\n已预安装：openssh、lsof、curl、wget、sudo、nano、sshpass\n\n已替换可使用的源，均为可使用的源，且均已更新过源\n\n已预设置开机自启SSH，预设置支持IPV4和IPV6的22端口进行SSH链接，预设置支持root登录\n\n未设置默认密码，未设置DNS，未设置网关\n\n部分旧镜像有对应的缺陷，详见仓库对应release的说明\n\n## 手动修补的部分命令\n\n```shell\nimage=\"\"\npct create 101 \"$image\" -cores 1 -cpuunits 1024 -memory 1024 -swap 0 -rootfs local:10 -onboot 1 -features nesting=1\npct start 101\npct set 101 --hostname 101\npct set 101 --net0 name=spiritlhl,ip=172.16.1.2/24,bridge=vmbr1,gw=172.16.1.1\npct set 101 --nameserver 1.1.1.1\npct set 101 --searchdomain local\nsleep 3\necho \"nameserver 8.8.8.8\" | pct exec $CTID -- tee -a /etc/resolv.conf\necho \"nameserver 8.8.4.4\" | pct exec $CTID -- tee -a /etc/resolv.conf\n```\n\n```shell\npct enter 101\n```\n\n```shell\n# https://raw.githubusercontent.com/SuperManito/LinuxMirrors/main/ChangeMirrors.sh\n./ChangeMirrors.sh --use-official-source --web-protocol http --intranet false --close-firewall true --backup true --updata-software false --clean-cache false --ignore-backup-tips\n```\n\n```shell\n# https://raw.githubusercontent.com/SuperManito/LinuxMirrors/main/ChangeMirrors.sh\n./ChangeMirrors.sh --use-official-source --web-protocol http --intranet false --close-firewall true --backup true --updata-software false --clean-cache false --install-epel true --ignore-backup-tips\n```\n\nhttps://help.mirrors.cernet.edu.cn/\n\n```shell\n# https://raw.githubusercontent.com/oneclickvirt/pve_lxc_images/main/ssh_bash.sh\nchmod 777 ssh_bash.sh\n./ssh_bash.sh\n```\n\n```shell\n# https://raw.githubusercontent.com/oneclickvirt/pve_lxc_images/main/ssh_sh.sh\nchmod 777 ssh_sh.sh\n./ssh_sh.sh\n```\n\n```shell\npct exec 101 -- yum clean all -y\npct exec 101 -- yum autoremove -y\n```\n\n```shell\npct exec 101 -- apt-get clean\npct exec 101 -- apt-get autoclean\npct exec 101 -- apt-get autoremove\n```\n\n```shell\npct exec 101 -- rm -rf /etc/resolv.conf\npct exec 101 -- rm -rf /etc/hostname\npct exec 101 -- rm -rf /etc/network/.pve-ignore.interfaces\npct exec 101 -- ip addr flush dev eth0\npct set 101 --delete net0\npct stop 101\necho \"$image\"\n```\n\n```shell\nvzdump 101 --dumpdir /root/tp --compress zstd\nrm -rf /root/tp/*.log\nbackup_file_name=$(ls /root/tp | grep \"vzdump\")\nreal_name=$(echo \"${image}\" | sed 's/_amd64\\..*//')\nmv /root/tp/${backup_file_name} /root/tp/${real_name}_amd64.tar.zst\nrm -rf /root/tp/vzdump*\npct destroy 101\n```\n\n## 上传到对应release\n\n```\n# https://api.github.com/repos/oneclickvirt/pve_lxc_images/releases/tags/images\nrelease_id=\"139874716\"\ntoken=\"\"\nfor file in *; do\n    if [ -f \"$file\" ]; then\n        echo \"Uploading $file...\"\n        curl -s -H \"Authorization: Bearer $token\" \\\n             -H \"Content-Type: application/zip\" \\\n             --data-binary @\"$file\" \\\n             \"https://uploads.github.com/repos/oneclickvirt/pve_lxc_images/releases/$release_id/assets?name=$(basename \"$file\")\"\n        rm -rf $file\n        echo \"\"\n    fi\ndone\n```\n\n## Thanks \n\nhttp://download.proxmox.com/images/system/\n\nhttps://github.com/spiritLHLS/pve\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foneclickvirt%2Fpve_lxc_images","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foneclickvirt%2Fpve_lxc_images","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foneclickvirt%2Fpve_lxc_images/lists"}