proxmox虛擬化

下載地址

https://www.proxmox.com

刻錄工具(dd模式)

https://rufus.akeo.ie

操作管理

中文方式登錄

下載鏡像

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 驅動

分佈式存儲保存模板鏡像()

  1. 部署2臺glusterfs服務
  2. 配置pve1,pve2 gluester主機 host文件
10.0.1.13 glusterfs-1
10.0.1.14 glusterfs-2
  1. 集羣 - 存儲 - 添加 Glusterfs

cp /var/lib/vz/template/iso/*iso /mnt/pve/gluster/template/iso
#拷貝原有鏡像到共享存儲
  1. 查看pve主機配置 /etc/pve/storage.cfg
glusterfs: gluster
	path /mnt/pve/gluster
	volume gfs
	content images,iso
	server glusterfs-1
	server2 glusterfs-2

包更新源

  1. 點擊 節點pve物理機 更新 刷新
  2. 登錄pve服務器 更新包

apt-get install sudo mlocate

sudoer

/etc/sudoers

super ALL=(ALL) NOPASSWD: ALL
Defaults:super !requiretty
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章