{"id":34243559,"url":"https://github.com/opensvc/vdc","last_synced_at":"2026-03-11T07:34:16.456Z","repository":{"id":96354488,"uuid":"150966527","full_name":"opensvc/vdc","owner":"opensvc","description":null,"archived":false,"fork":false,"pushed_at":"2022-01-13T10:41:19.000Z","size":4310,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-12-19T12:14:48.939Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/opensvc.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":null,"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,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-09-30T12:45:20.000Z","updated_at":"2022-01-13T10:41:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"400dac04-2167-48e4-a8da-ff03c2aa4381","html_url":"https://github.com/opensvc/vdc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/opensvc/vdc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opensvc%2Fvdc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opensvc%2Fvdc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opensvc%2Fvdc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opensvc%2Fvdc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opensvc","download_url":"https://codeload.github.com/opensvc/vdc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opensvc%2Fvdc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30374409,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T06:09:32.197Z","status":"ssl_error","status_checked_at":"2026-03-11T06:09:17.086Z","response_time":84,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2025-12-16T05:03:59.925Z","updated_at":"2026-03-11T07:34:16.438Z","avatar_url":"https://github.com/opensvc.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"#!/bin/bash\n\nset -a\n\n[[ ! -f /data/vdc/vdc.env ]] \u0026\u0026 {\n    echo \"Error : /data/vdc/vdc.env not found\"\n    exit 0\n}\n\n. /data/vdc/vdc.env\n\n# network config\necho sudo nmcli c show\necho sudo nmcli d show\n\n# create network config\n\n# VDC_CLUSTER_IDX can go up to 255\nVDC_CLUSTER_IDX=${VDC_CLUSTER_IDX:-\"29\"}\n\n# to add new clusters id, update VDC_CLUSTER_IDX to the target value, and generate the commands\n\nfor cid in $(seq 0 $VDC_CLUSTER_IDX)\ndo\n\tfor nid in 0 1 2\n\tdo\n\t\tgw=\"10.${cid}.${nid}.1\"\n\t\tbr=\"br-${cid}-${nid}\"\n\t\tdum=\"dum-${cid}-${nid}\"\n\t\tif test \"$gw\" = \"10.0.1.1\" -o \"$gw\" = \"10.0.2.1\"\n\t\tthen\n\t\t\tcontinue\n\t\tfi\n\t\techo \"# $br\"\n\t\techo sudo nmcli c del bridge-$br\n\t\techo sudo nmcli c del dummy-$dum\n\t\techo sudo ip link del $dum\n\t\techo\n\t\techo sudo nmcli c add type dummy ifname $dum con-name dummy-$dum\n\t\techo sudo nmcli c mod dummy-$dum ipv4.method disabled\n\t\techo sudo nmcli c add type bridge ifname $br con-name bridge-$br\n\t\techo sudo nmcli c mod bridge-$br bridge.stp no\n\t\techo sudo nmcli c mod dummy-$dum connection.master $br connection.slave-type bridge\n\t\techo sudo nmcli c mod bridge-$br ipv4.method manual ipv4.addresses $gw/24\n\t\techo sudo nmcli c up bridge-$br\n\t\techo sudo nmcli c up dummy-$dum\n\tdone\ndone\n\n# sudo nmcli c add type ethernet ifname enp0s31f6 con-name enp0s31f6\n# sudo nmcli c mod enp0s31f6 connection.master br-prd connection.slave-type bridge\n\n# zpool create\necho\necho zpool create -f data /dev/disk/by-id/wwn-0x5000c500a8f5c148 \necho zpool add data cache /dev/disk/by-id/nvme-eui.0025385571b178e8-part3\necho zpool add data log /dev/disk/by-id/nvme-eui.0025385571b178e8-part4\necho zfs create data/vdc\necho zfs set canmount=noauto data/vdc\necho mount -t zfs data/vdc /data\necho \"cd /data \u0026 git clone git+ssh://opensvc@www.opensvc.com/home/opensvc/vdc\"\n\n# libvirt pool create\necho mkdir -p /data/vdc/pool\n\n# repos\necho sudo apt install yum-utils createrepo\n    # centos7\n    echo sudo mkdir -p /data/vdc/share/repos/centos/7/{base,centosplus,extras,updates}\n    echo sudo mkdir -p /data/vdc/share/repos/epel/7\n    echo sudo mkdir -p /data/vdc/share/repos/elrepo/7\n    echo cd /data/vdc/share/repos\n    echo sudo reposync --config=/data/vdc/share/repos/yum/yum.7.conf --plugins --repoid=base \\\n      --newest-only --delete --downloadcomps --download-metadata \\\n      --download_path=/data/vdc/share/repos/centos/7/\n    echo sudo reposync --config=/data/vdc/share/repos/yum/yum.7.conf --plugins --repoid=extras \\\n      --newest-only --delete --downloadcomps --download-metadata \\\n      --download_path=/data/vdc/share/repos/centos/7/\n    echo sudo reposync --config=/data/vdc/share/repos/yum/yum.7.conf --plugins --repoid=updates \\\n      --newest-only --delete --downloadcomps --download-metadata \\\n      --download_path=/data/vdc/share/repos/centos/7/\n    echo sudo reposync --config=/data/vdc/share/repos/yum/yum.7.conf --plugins --repoid=epel7 \\\n      --newest-only --delete --downloadcomps --download-metadata \\\n      --download_path=/data/vdc/share/repos/epel/7/\n    echo sudo reposync --config=/data/vdc/share/repos/yum/yum.7.conf --plugins --repoid=elrepo7 \\\n      --newest-only --delete --downloadcomps --download-metadata \\\n      --download_path=/data/vdc/share/repos/elrepo/7\n    echo sudo createrepo /data/vdc/share/repos/centos/7/base/ -g comps.xml\n    echo sudo createrepo /data/vdc/share/repos/centos/7/extras/\n    echo sudo createrepo /data/vdc/share/repos/centos/7/updates/\n    echo sudo createrepo /data/vdc/share/repos/epel/7/\n    echo sudo createrepo /data/vdc/share/repos/elrepo/7/\n\n    # centos8 (createrepo not needed)\n    echo sudo mkdir -p /data/vdc/share/repos/centos/8/{BaseOS,extras,AppStream}\n    echo sudo mkdir -p /data/vdc/share/repos/epel/8\n    echo sudo mkdir -p /data/vdc/share/repos/elrepo/8\n    echo cd /data/vdc/share/repos\n    echo sudo reposync --config=/data/vdc/share/repos/yum/yum.8.conf --plugins --repoid=BaseOS \\\n      --newest-only --delete --downloadcomps --download-metadata \\\n      --download_path=/data/vdc/share/repos/centos/8/\n    echo sudo reposync --config=/data/vdc/share/repos/yum/yum.8.conf --plugins --repoid=extras \\\n      --newest-only --delete --downloadcomps --download-metadata \\\n      --download_path=/data/vdc/share/repos/centos/8/\n    echo sudo reposync --config=/data/vdc/share/repos/yum/yum.8.conf --plugins --repoid=AppStream \\\n      --newest-only --delete --downloadcomps --download-metadata \\\n      --download_path=/data/vdc/share/repos/centos/8/\n    echo sudo reposync --config=/data/vdc/share/repos/yum/yum.8.conf --plugins --repoid=epel \\\n      --newest-only --delete --downloadcomps --download-metadata \\\n      --download_path=/data/vdc/share/repos/epel/8/\n    echo sudo reposync --config=/data/vdc/share/repos/yum/yum.8.conf --plugins --repoid=elrepo8 \\\n      --newest-only --delete --downloadcomps --download-metadata \\\n      --download_path=/data/vdc/share/repos/elrepo/8\n    echo sudo createrepo /data/vdc/share/repos/centos/8/BaseOS/ -g comps.xml\n    echo sudo createrepo /data/vdc/share/repos/centos/8/extras/\n    echo sudo createrepo /data/vdc/share/repos/centos/8/AppStream/\n    echo sudo createrepo /data/vdc/share/repos/epel/8/\n    echo sudo createrepo /data/vdc/share/repos/elrepo/8/\n\n\n# provision lab vm\necho cd /data/vdc/build/lab\necho vagrant up --no-parallel\n\n# unprovision lab vm\necho cd /data/vdc/build/lab\necho vagrant destroy\n\n# vagrant/vbox survival guide\n# ----------------------\n# vagrant up --debug \u0026\u003e vagrant.log\n# vboxmanage showvminfo vm-name\n# vboxmanage list hdds      # liste les disques de la database vagrant\n# vboxmanage closemedium disk eb42735a-980c-4da5-9ae4-95c5ff48b1bb --delete  # retire un disque de la database vagrant\n\n# vbox upgrade\n# ----------------------\n# stop all running vms\n# apt install ./virtualbox-6.0_6.0.12-133076~Ubuntu~bionic_amd64.deb\n# check with vboxmanage --version\n# vboxmanage extpack install --replace Oracle_VM_VirtualBox_Extension_Pack-6.0.12.vbox-extpack\n\n# openssl latest version build centos7\n# sudo yum install libtool perl-core zlib-devel -y\n# curl -O -L https://github.com/openssl/openssl/archive/OpenSSL_1_1_1c.tar.gz\n# tar xzf OpenSSL_1_1_1c.tar.gz -C /opt\n# cd /opt/openssl-OpenSSL_1_1_1c\n# ./config --prefix=/opt/openssl --openssldir=/usr/local/ssl\n# make \u0026\u0026 make test \u0026\u0026 make install\n# tar czvf /root/openssl.osvc.tar.gz /opt/openssl /usr/local/ssl\n# echo \"pathmunge /opt/openssl/bin\" \u003e /etc/profile.d/openssl.sh\n# echo \"/opt/openssl/lib\" \u003e /etc/ld.so.conf.d/openssl-1.1.1c.conf \u0026\u0026 ldconfig -v\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopensvc%2Fvdc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopensvc%2Fvdc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopensvc%2Fvdc/lists"}