#How to Create Proxmox Image

#Reference

#Prerequisites


#How-to

# ubuntu 20.04 cloudimg wget https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img # 새로운 VM 이미지 생성 (vmid, memory, network 등) qm create 9000 --core=8 --memory 16384 --net0 virtio,bridge=vmbr0 --agent 1 --balloon 0 # 다운로드한 이미지를 local-lvm 저장소로 가져오기 qm importdisk 9000 focal-server-cloudimg-amd64.img local-lvm # VM에 새 디스크를 SCSI 드라이브로 연결 (ubuntu 의 경우, virtio-scsi-pci 를 필요로 함) qm set 9000 --scsihw virtio-scsi-pci --scsi0 local-lvm:vm-9000-disk-0 # cloudinit 데이터를 VM을 전송을 위해 ide2 CDROM 드라이브를 구성 qm set 9000 --ide2 local-lvm:cloudinit # bootdisk 를 scsi0 로 설정하여, BIOS가 디스크에서만 부팅되도록 제한 qm set 9000 --boot c --bootdisk scsi0 # We also want to configure a serial console and use that as display. Many Cloud-Init images rely on that, because it is an requirement for OpenStack images. qm set 9000 --serial0 socket --vga serial0 # 작업 이미지를 템플릿으로 변환 qm template 9000

Proxmox Screenshot
Proxmox Screenshot

That's it! 🎉


#memo