下载地址
刻录工具(dd模式)
操作管理
中文方式登录
下载镜像
cd /var/lib/vz/template/iso && wget -c https://mirrors.aliyun.com/centos/7.5.1804/isos/x86_64/CentOS-7-x86_64-Minimal-1804.iso
创建第一台主机
创建虚拟机 -> 初始化 -> 转换成模板
proxmoxer模块
pip install proxmoxer requests paramiko
import pprint
from proxmoxer import ProxmoxAPI
proxmox = ProxmoxAPI('10.0.1.250', user='root@pam',
password='xidian@2018', verify_ssl=False)
for node in proxmox.nodes.get():
pprint.pprint(node, indent=3)
print (node['node'])
windows 驱动问题
cd /var/lib/vz/template/iso/
wget -c http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/bin/virtio-win-0.1-30.iso
安装完系统,设备管理器
手动更新 cdrom 挂载的virtio
驱动
分布式存储保存模板镜像()
- 部署2台glusterfs服务
- 配置pve1,pve2 gluester主机 host文件
10.0.1.13 glusterfs-1
10.0.1.14 glusterfs-2
- 集群 -
存储
- 添加Glusterfs
cp /var/lib/vz/template/iso/*iso /mnt/pve/gluster/template/iso
#拷贝原有镜像到共享存储
- 查看pve主机配置 /etc/pve/storage.cfg
glusterfs: gluster
path /mnt/pve/gluster
volume gfs
content images,iso
server glusterfs-1
server2 glusterfs-2
包更新源
- 点击
节点pve物理机
更新
刷新
- 登录pve服务器 更新包
apt-get install sudo mlocate
sudoer
/etc/sudoers
super ALL=(ALL) NOPASSWD: ALL
Defaults:super !requiretty