--- title: "1114 Proxmox VE CLI 工具" pubDatetime: 2024-11-14T20:00:00+08 slug: proxmox-ve-cli author: lloyd tags: - meetup description: proxmox youtube: oV7ieVW4dFI --- [](https://hackmd.io/nak2PLqRTnyOJEwLiuAU-A) 上次 我們用 jitsi + youtube live, 但中途hdmi 斷了, 直播出了問題 這次 lloyd 將 為我們介紹 Proxmox VE CLI 工具, 主播部分我們改用 google meets 試試看效果 時間: 11/14 20:00 link: https://meet.google.com/pxq-sdrw-ccr ## Proxmox ve - web ui - cli - restful api ### proxmox cli - https://pve.proxmox.com/pve-docs/qm.1.html ## cloud-init qm cloud-init cloud-init ## GPU Passthrough - 不要在 host 主機 mount - 顯卡在 PVE 上有 ID,最後一個 VM 配一張顯卡 https://pve.proxmox.com/wiki/PCI_Passthrough ## Proxmox make image ## zfs ## cluster - https://pve.proxmox.com/wiki/Cluster_Manager Q&A - 想請教一下network管理使用經驗 - https://pve.proxmox.com/wiki/Network_Configuration - https://pve.proxmox.com/wiki/Software-Defined_Network ## 參考資料: - https://pve.proxmox.com/wiki/Shell_interface_for_the_Proxmox_VE_API - https://pve.proxmox.com/wiki/Proxmox_VE_API - https://pve.proxmox.com/wiki/Command_Line_Tools - Proxmox vs virsh https://taleghani.medium.com/sharing-my-experience-using-kvm-virt-manager-libvirt-and-proxmox-as-an-allinone-solution-9c39fb2cc192 - 更強大的 Proxmox VE 命令列管理工具 - pvesh:https://blog.jason.tools/2019/02/pve-cli-api.html - https://pve.proxmox.com/wiki/PCI_Passthrough Timetable 2:15 kalug.tw 首頁改版介紹, 請大家多上 Discord 3:30 切換lloyd 視窗準備 4:10 Proxmox 開始 5:12 outline 6:17 live-demo (錄影版) 6:45 - qm list # Virtual machine index (per node). 6:51 - qm clone 9200 200 --name hello-vm # qm clone 7:05 - qm resize 200 scsi0 10G # == qm disk resize 7:18 - qm set 200 --memory 2048 # qm set # Set virtual machine options (synchrounous API) - You should consider using the POST method instead for any actions involving hotplug or storage allocation. 7:27 - qm set 200 --ipconfig0 ip=10.20.15.200/16,gw=10.20.0.1 # network 7:37 - qm set 200 --cores 2 # CPU core 7:45 - qm set 200 --sshkeys ssh-ed... # sshkeys 8:08 - qm start 200 # vm creating 8:20 - generating cloud-init iso 8:25 - qm terminal 200 # console connect 8:30 - booting 9:10 - enter vm 9:20 - exit terminal "press Ctrl+O to exit" 9:38 - qm list # 確認 vmid: 200 狀態 9:40 - qm stop 200 # vm stop 9:50 live-demo 結束 10:10 live-demo scripts 11:10 Proxmox 背景, 安裝 iso or deb packages 12:20 - proxmox 也支援 container 12:40 - proxmox services 13:10 web ui 15:20 cloud-init 17:45 mount cloud-init data iso 19:05 cloud-init dump 109 user # qm cloudinit dump 20:05 make Proxmox iso 24:30 tip - snapshot 25:40 zfs 30:20 endding 30:45 Q&A
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up