Proxmox

使用 Proxmox Cloud-Init 部署虚拟机



Proxmox 下使用Cloud init创建虚拟机

1)下载Ubuntu cloud image

2)使用镜像创建Proxmox VM

qm create 1000 –name ubuntu-cloud –memory 2048 –cores 2 –net0 virtio,bridge=vmbr0
qm importdisk 1000 noble-server-cloudimg-amd64.img local-lvm
qm set 1000 –scsihw virtio-scsi-pci –scsi0 local-lvm:vm-1000-disk-0
qm set 1000 –boot c –bootdisk scsi0
qm set 1000 –ide2 local-lvm:cloudinit
qm set 1000 –serial0 socket –vga serial0

3)转换VM为template
4)用template创建虚拟机

[ad_2]

source

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button