将/etc/apt/sources.list.d/pve-enterprise.list 文件内的唯一一条记录注释掉:#deb https://enterprise.proxmox.com/debian/pve stretch pve-enterprisewget -q -O- 'http://download.proxmox.com/debian/pve/dists/stretch/proxmox-ve-release-5.x.gpg' | apt-key add -echo "deb http://download.proxmo...
我们选用后者,登陆到 Proxmox 宿主机,执行如下命令创建角色、用户以及 API Token: pveum role add TerraformProv -privs "VM.Allocate VM.Clone VM.Config.CDROM VM.Config.CPU VM.Config.Cloudinit VM.Config.Disk VM.Config.HWType VM.Config.Memory VM.Config.Network VM.Config.Options VM.Monitor VM.Audit...
安装ceph-deploy工具 ceph-deploy是ceph官方提供的部署工具,它通过ssh远程登录其它各个节点上执行命令完成部署过程,我们可以随意选择一台服务器安装此工具,为方便,这里我们选择pve-1节点安装ceph-deploy 我们把pve-1节点上的/data/ceph/deploy目录作为ceph-deploy部署目录,其部署过程中生成的配置文件,key密钥,日志等都位...
#配置Debian源 https://developer.aliyun.com/mirror/debian wget -qO - http://download.proxmox.com/debian/proxmox-ve-release-6.x.gpg | apt-key add - echo'#cn deb http://mirrors.aliyun.com/debian/ buster main non-free contrib deb-src http://mirrors.aliyun.com/debian/ buster main non-...
# 用户名和 SSH key ciuser = "addo" sshkeys = <<EOF SSH KEYS HERE EOF } 创建虚拟机 第一次需要先执行init命令进行初始化: terraform init 可以使用terraform fmt和terraform validate对配置文件进行格式化和校验。 然后执行terraform apply并输入yes开始创建虚拟机, ...
root@proxmox233:~# ssh-copy-id root@proxmox233 #在192.168.5.231上面创建pve-cluster集群 代码语言:javascript 复制 root@proxmox231:~# pvecm create pve-cluster #接下来,通过ssh登陆其他2个pve节点,执行 pvecm add 192.168.5.231 代码语言:javascript ...
默认是企业订阅版,如果不做修改,在使用 pveceph init 进行 ceph 初始化安装的时候会将整个环境破坏,切记! SSH登陆各节点 【重要】将/etc/apt/sources.list.d/pve-enterprise.list 文件内的唯一一条记录注释掉: echo"#deb https://enterprise.proxmox.com/debian/pve bullseye pve-enterprise"> /etc/apt/sources...
Our first step in this process is to add the GPG key for the repository. This key helps verify that the packages legitimately come from the Proxmox ports repository. curl -L https://mirrors.apqa.cn/proxmox/debian/pveport.gpg | sudo tee /usr/share/keyrings/pveport.gpg >/dev/nullCopy ...
通过SSH登录服务器创建集群 pvecm create cluster-01 或者 通过登录Web管理页面,点击集群-创建集群-输入集群名称-点击创建; image.png 注意:想在那个服务器上创建集群都可以,自行定义规划; 3.2.节点加入 通过SSH登录需要被加入的服务器 pvecm add 10.10.1.211 #IP为创建集群服务器IP; ...
Specify username to use for ssh. Default is to not specify any username (i.e. use the caller's username or the one specified by the ssh config). --ok Only show output from hosts where command succeeded (exited with zero). --add-host-keys ...