环境
- Hypervision: Proxmox-8.2
- Guest OS: AlmaLinux 9.4
摘要
wget https://mirrors.zju.edu.cn/almalinux/9.4/cloud/x86_64/images/AlmaLinux-9-GenericCloud-latest.x86_64.qcow2
export VM_ID=401
export IMAGE=AlmaLinux-9-GenericCloud-latest.x86_64.qcow2
export CPU=2
export MEMORY=4096
qm create ${VM_ID} --cores ${CPU} --memory ${MEMORY} --net0 virtio,bridge=vmbr0
qm importdisk ${VM_ID} ${IMAGE} local-lvm
qm set ${VM_ID} --scsihw virtio-scsi-pci --scsi0 local-lvm:vm-${VM_ID}-disk-0
qm set ${VM_ID} --ide2 local-lvm:cloudinit
qm set ${VM_ID} --boot c --bootdisk scsi0
qm set ${VM_ID} --serial0 socket --vga serial0
qm set ${VM_ID} --agent enabled=1
qm set ${VM_ID} --ipconfig0 ip=172.30.109.1/24,gw=172.30.109.1
qm set ${VM_ID} --nameserver 172.30.109.1
qm start ${VM_ID}