Skip to content

Instantly share code, notes, and snippets.

@cdseoo
cdseoo / pve-cloud-init-template-debian.sh
Created March 22, 2024 08:22 — forked from Jimmy-Z/pve-cloud-init-template-debian.sh
create a Debian VM template for Proxmox VE
#!/bin/sh
# apt install curl
# obviously change this per your needs
VMID=9001
STOR=local-lvm
VER=20230124-1270
URL_PATH=https://cloud.debian.org/images/cloud/bullseye/$VER/
IMG=debian-11-genericcloud-amd64-$VER.qcow2
@cdseoo
cdseoo / pve-trick-sriov-vf-configuration
Created February 26, 2023 14:24 — forked from miooochi/pve-trick-sriov-vf-configuration
Enable SR-IOV VF on Proxmox 7+
# The following is a step-by-step example for enabling SR-IOV VF on Promxox 7+ with BCM57810 10G NIC
---
References
https://forum.proxmox.com/threads/enabling-sr-iov-for-intel-nic-x550-t2-on-proxmox-6.56677/
https://zhuanlan.zhihu.com/p/91197211
https://zhuanlan.zhihu.com/p/356437308
https://zhiliao.h3c.com/Theme/details/24770
https://blog.csdn.net/Jackykxy/article/details/120585563
---
換源 (https://mirrors.ustc.edu.cn/help/proxmox.html)
vim /etc/apt/sources.list
deb http://mirrors.ustc.edu.cn/debian bullseye main contrib
deb http://mirrors.ustc.edu.cn/debian bullseye-updates main contrib
# security updates

Ultimate Beginner's Guide to Proxmox GPU Passthrough

mirror of The Ultimate Beginner's Guide to GPU Passthrough (Proxmox, Windows 10) by /u/cjalas

>Welcome all, to the first installment of my Idiot Friendly tutorial series! I'll be guiding you through the process of configuring GPU Passthrough for your Proxmox Virtual Machine Guests. This guide is aimed at beginners to virtualization, particularly for Proxmox users. It is intended as an overall guide for passing through a GPU (or multiple GPUs) to your Virtual Machine(s). It is not intended as an all-exhaustive how-to guide; however, I will do my best to provide you with all the necessary resources and sources for the passthrough process, from start to finish. If something doesn't work properly, please check /r/Proxmox, /r/Homelab, /r/VFIO, or

@cdseoo
cdseoo / README.md
Created March 18, 2022 13:58 — forked from crazygit/README.md
使用容器快速搭建服务端远程桌面连接环境

项目参考

使用容器快速创建远程桌面的GUI连接

技术实现:

  • Guacamole Server
  • xrdp Server

参考文档

#/bin/bash
# Ubuntu20 桌面环境配置(arm兼容)
# 2021 flyqie
# 遇到错误马上退出,避免出现其他问题
set -e
# ...
set -x
# Xrdp
@cdseoo
cdseoo / create-openwrt.sh
Created January 5, 2021 01:46 — forked from TNick/create-openwrt.sh
proxmox openwrt
#!/bin/bash
# Inspired by https://github.com/whiskerz007/proxmox_tuya-convert_container/blob/master/create_container.sh
# Arguments
#
# 1 - LXC_STORAGE (local-lvm by default)
# 2 - DISK_SIZE (1G by default) can be a number and must be followed
# by either a G or a M
# 3 - TEMPLATE (local:vztmpl/openwrt-18.06-openwrt_18.06.4_amd64.tar.gz by default)
# 4 - CORES (1 by default)
@cdseoo
cdseoo / docker-nfs-volumes.md
Created October 6, 2019 12:15 — forked from ruanbekker/docker-nfs-volumes.md
NFS Volumes with Docker Swarm

Create NFS Volumes:

Creating the NFS Volume:

$ docker volume create --driver local \
  --opt type=nfs \
  --opt o=addr=192.168.1.115,uid=1000,gid=1000,rw \
  --opt device=:/mnt/volumes/mysql-test \
  mysql-test-1
@cdseoo
cdseoo / traefik_portainer.md
Created October 6, 2019 12:15 — forked from ruanbekker/traefik_portainer.md
Traefik with SSL + Portainer on Docker Swarm Repro

Traefik and Portainer on Docker Swarm with Letsencrypt

Reproducing a Traefik with SSL and Portainer setup on a 2 Node Docker Swarm

Install Docker:

Install Docker on both nodes with a Bootstrap Script:

$ curl https://gitlab.com/rbekker87/scripts/raw/master/setup-docker-ubuntu.sh | bash