-
-
Save biapar/a3ee4c2f8710a6ec9c9cf183b595a6da to your computer and use it in GitHub Desktop.
Add import existing disk image into Proxmox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# The official PVE docs on how to prepare cloud-init templates: | |
# https://pve.proxmox.com/wiki/Cloud-Init_Support#_preparing_cloud_init_templates | |
# | |
# Additional guides and resources: | |
# https://dae.me/blog/2340/how-to-add-an-existing-virtual-disk-to-proxmox/ | |
# https://pve.proxmox.com/pve-docs/qm.1.html | |
# use the Qemu/KVM Virtual Machine Manager to import the disk | |
qm importdisk 107 Univention-App-kopano-core-KVM.qcow2 local-lvm | |
# rescan all storages and update disk sizes and unused disk images | |
qm rescan | |
# edit the vm config | |
# /etc/pve/qemu-server/107.conf | |
bootdisk: scsi1 | |
scsi0: local-lvm:vm-107-disk-0,size=32G | |
scsi1: local-lvm:vm-107-disk-1,size=50G <--- new image | |
# you can use the Proxmox VE Storage Manager | |
# to list all newly scanned disks | |
pvesm list local-lvm | |
# show your vm | |
qm list |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment