How to Create Centos7 Template for Pve

HOw to create CentOS 7 template for PVE VMID=9002 VM_NAME=CentOS-7-x86_64-GenericCloud VM_DOWNLOAD_URL= TEMPLATE_VM_NAME=$(echo $VM_NAME | sed 's/_/-/g') STORAGE_PATH=local DEFAULT_PVE_PATH=/var/lib/bz/images #Change directory to `local` cd /var/lib/vz/images #Download centos 7 cloud images on proxmox ve wget $VM_DOWNLOAD_URL #unzip the file #xz -z (to zip file) #xz -k( to keep original file and valur `-0` to `-9` to set zip rate, default zip rate is -6 #xz -d (to unzip file) # xz -k (to keep zipped file not deleted) xz -d -k $VM_NAME.

How to Extend All Available Disk to Local Data

How to extend all available disk to local-data After install Proxmove VE, the local-data only have about 50GB disk availabe. But how to let all availabld disk space to the local-data? Here we go: # Remove local-data lvremove /dev/pve/data # Extend all available disk to /dev/pve/root lvresize -l +100%FREE /dev/pve/root #recreate pve-root resize2fs /dev/mapper/pve-root Reference Proxmox – Remove LVM local-data

How to make Destination Base Routing With Vyos

How to make Destination Base Routing with Vyos I have 2 network interfaces. one for user access inboard network,another for user to access network aboard. How to make it work with vyos? Make a network group #Define a netwrok-group set firewall group network-group china-ip-ranges #Define lan network group set firewall group network-group lan-net-group network '' set policy set policy route network-shunt rule 20 destination group network-group 'china-ip-ranges' set policy route network-shunt rule 20 set table '20' set policy route network-shunt rule 20 source group network-group 'lan-net-group' set policy route network-shunt rule 30 set table '30' set policy route network-shunt rule 30 source group network-group 'lan-net-group' Download and set the network-group with ipset Download and make a list for network-group loading when booting.

How to Config Ddns for Vyos With

How to config DDNS for vyos with Register A Recored Register a domian on your Generate a key 64LGiLiuoiuoiuoi Run command to setup the ddns service configure set service dns dynamic interface pppoe0 service dyndns host-name '' set service dns dynamic interface pppoe0 service dyndns login '' set service dns dynamic interface pppoe0 service dyndns password '64LGiLiuoiuoiuoi' set service dns dynamic interface pppoe0 service dyndns server 'dyn.

How to Build L2tp Over Ipsec VPN With Vyos

How to build L2tp over ipsec vpn with vyos Today, I will show you how to build a l2tp over ipsec vpn with adsl wan address. Setup vpn on vyos Generate a preshare key $ generate wireguard preshared-key uND0O6RYI1O833NL2+qwSrW4htMll1hJAUM2nPQaa8k= With authentication local configuration VPN Key Value WAN interface pppoe0 l2tp vpn network PRESHARE KEY uND0O6RYI1O833NL2+qwSrW4htMll1hJAUM2nPQaa8k= DNS server 01 192.

How to Deploy Jitsi Server With Docker Compose

How to deploy Jisti Server with docker-compose Install jisti Server git clone latest version git clone && cd docker-jitsi-meet cp env.example .env Generate security password ./ #mkdir -p ~/.jitsi-meet-cfg/{web/letsencrypt,transcripts,prosody,jicofo,jvb} mkdir -p ~/.jitsi-meet-cfg/{web/letsencrypt,transcripts,prosody/config,prosody/prosody-plugins-custom,jicofo,jvb,jigasi,jibri} Modify .env copy env.example to .env. cp env.example .env Modify key and value as followed. CONFIG=~/.jitsi-meet-cfg # Exposed HTTP port HTTP_PORT=80 # Exposed HTTPS port HTTPS_PORT=443 # System time zone TZ=Asia/Shanghai # Public URL for the web

How to Convert Cert to Ssl

How to convert godaddy certification files from .cert to .pem Recently days, I met an issue to renew ssl certification file for a website. The former developer setup certification file to .pem. It take a long time to make it work. Here we go. Convert .crt to .pem # convert .key file to key.pem openssl rsa -in -text > key.pem # convert .cert to cert.pem cat > cert.pem # add cert chain to the cert.

How to Enable Ntfs Read and Write in Macos Catalina 10.15

How to enable NTFS Read and Write in Macos Catalina 10.15 For a long time. It was much trouble to enable ntfs write mode in macos. Today I done it about enable ntfs wirte support with fuse and ntfs-3g. Install FUSE for macos You can download latest FUSE for macOS from here: FUSE for macOS Then you can install it by yourself. Install ntfs-3g brew install ntfs-3g Replace ntfs-3g Since from OS X 10.

How to Install Graylog With Docker Compose

How to Install Graylog with Docker-compose Hostname my-graylog Docker-compose.yaml version:'2'services:# MongoDB: ./data/mongo_data:/data/db- /etc/localtime:/etc/localtime:ro# Elasticsearch: ./data/es_data:/usr/share/elasticsearch/data- /etc/localtime:/etc/localtime:roenvironment:- "ES_JAVA_OPTS=-Xms512m -Xmx512m"ulimits:memlock:soft:-1hard:-1mem_limit:1g# Graylog: ./data/graylog_journal:/usr/share/graylog/data/journal- /etc/localtime:/etc/localtime:roenvironment:# CHANGE ME (must be at least 16 characters)!- GRAYLOG_PASSWORD_SECRET=somepasswordpepper# Password: admin- GRAYLOG_ROOT_PASSWORD_SHA2=8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918- GRAYLOG_HTTP_EXTERNAL_URI=http://my-graylog:9000/links:- mongodb:mongo- elasticsearchdepends_on:- mongodb- elasticsearchports:# Graylog web interface and REST API- 9000:9000# Syslog TCP- 1514:1514# Syslog UDP- 1514:1514/udp# GELF TCP- 12201:12201# GELF UDP- 12201:12201/udp# Volumes for persisting data, see https://docs.

How to Build Ipsec Site to Site Vpn With Vyos and Pfsense

How to build ipse site-to-site VPN with vyos and pfsense Vyos VS pfsense For build all kinds of network functions like nat,firewall, site-to-site vpn , dial in vpn with pfsense.It works well. But it has some Crons: Hard to upgrade version, it manybe crashed Didn’t support API. Heavy loading and low performance. After try to replace pfsense to build all functions with vyos. It has a lot of pros:

How to Install Jenkins With Docker Compose

How to install Jenkins with docker compose Create Dockerfile With office jenkins docker images.change the jenkins mirrors and change alpine linux soure list to aliyun #DockerfileFROMjenkins/jenkins:alpineUSERrootENVJENKINS_MIRROR""RUNsed-i's/'/etc/apk/repositories\&&apkupdate\&&apkadddockernodejsnodejs-npmyarnCreate docker-compose.yaml # docker-compose.yamlversion:"2.4"services:jenkins:build:./#image: jenkins/jenkins:alpinecontainer_name:jenkinsports:- "80:8080"- "50000:50000"environment:#- JAVA_OPTS=-Xmx1500m -Duser.timezone=GMT+8- JAVA_OPTS=-Duser.timezone=GMT+8- JENKINS_UC_DOWNLOAD= ./data/jenkins:/var/jenkins_home- /var/run/docker.sock:/var/run/docker.sock- /root/.ssh/:/root/.ssh- /etc/localtime:/etc/localtime:ro# cpus: 3.5# mem_limit: 1800muser:rootrestart:alwaysInstall Jenkins with Check initial Admin Password by run command as show below cat data/jenkins/secrets/initialAdminPassword Reference Jenkins for Docker 跳过插件安装及插

How to Install Gitlab With Docker-Compose

How to Install gitlab with docer-compose version:"3.5"services:gitlab:image:gitlab/gitlab-ce:latestcontainer_name:gitlabrestart:alwayshostname:'xa-gitlab'environment:GITLAB_OMNIBUS_CONFIG:| external_url 'http://xa-gitlab'gitlab_rails['backup_keep_time']=604800gitlab_rails['time_zone']='Asia/Shanghai'gitlab_rails['gitlab_shell_ssh_port']=1022#gitlab_rails['ldap_enabled'] = true#gitlab_rails['ldap_servers'] = YAML.load <<-EOS#main:# label: 'LDAP'# host: ''# port: 389# uid: 'uid'# bind_dn: 'CN=admin,DC=lotbrick,DC=com'# password: 'admin'# user_filter: 'objectclass=person'# base: 'ou=People,dc=xxxxx,dc=com'# active_directory: false# method: 'plain'# attributes:# username: ["cn"]# email: ['email']# name: 'displayName'# first_name: 'givenName'# last_name: 'sn'#EOSports:- '80:80'- '443:443'- '1022:22'volumes:- ./gitlab/config:/etc/gitlab- ./gitlab/logs:/var/log/gitlab- ./gitlab/data:/var/opt/gitlab# - "/etc/localtime:/etc/localtime:ro"Reference Docker+GitLab+LDA

How to Change Settings After Clone Debian 10 With Cloudinit Enable on Proxmox Ve

How to Change Settings After Clone Debian 10 With Cloudinit Enable on Proxmox VE Issue I found an issue about create a linux vm as a template with cloudinit enabled. Seem like after cloned the virtual machine, the cloud-init cd rom didn’t be created automatically. We need to delete it,then change setings again to apply the apt source. solution #!/usr/bin/env sh mv /etc/apt/sources.list /etc/apt/sources.list.backup wget -O /etc/apt/sources.list apt update && apt -y dist-upgrade apt install -y openssh-server git vim cloud-init apt-transport-https sed -i 's/http/https/g' /etc/apt/sources.

How to Install Elasticflow

How to install Elasticflow Today, i found a good software that is Elasticflow. It is so perfect for us to monitor status of our networking. So I tried to install it will docker-compose way. You know what, after servial hours, fixed a lot bugs it works. Download and modified docker-compose.yml for elasticflow # Download `docker-compose.yml` for elasticflow wget # version 3.5.2 is now existed. So we need change it to `3.