S
Shazams
Guest
Hello. Interested in an image for kvm: http://cloud-images.ubuntu.com/minimal/releases/bionic/release-20190320/
How can I make it work?
How can I make it work?
# file ubuntu-18.04-minimal-cloudimg-amd64.img
ubuntu-18.04-minimal-cloudimg-amd64.img: QEMU QCOW Image (v2), 2361393152 bytes
# qm create VMID --net0 virtio,bridge=vmbr0 --ostype l26 --scsihw virtio-scsi-pci --memory 1024
# wget http://cloud-images.ubuntu.com/minimal/releases/bionic/release-20190320/ubuntu-18.04-minimal-cloudimg-amd64.img
# qm importdisk VMID ubuntu-18.04-minimal-cloudimg-amd64.img STORAGE-ID
qm create 1781 --net0 virtio,bridge=vmbr0 --ostype l26 --scsihw virtio-scsi-pci --serial0 socket --vga serial0
May I know what is storage-id here?Hi, normally you can add such images by using "qm importdisk" CLI command.
Also, this is just a qcow2 file:
Code:# file ubuntu-18.04-minimal-cloudimg-amd64.img ubuntu-18.04-minimal-cloudimg-amd64.img: QEMU QCOW Image (v2), 2361393152 bytes
In general you could do something like
Code:# qm create VMID --net0 virtio,bridge=vmbr0 --ostype l26 --scsihw virtio-scsi-pci --memory 1024 # wget http://cloud-images.ubuntu.com/minimal/releases/bionic/release-20190320/ubuntu-18.04-minimal-cloudimg-amd64.img # qm importdisk VMID ubuntu-18.04-minimal-cloudimg-amd64.img STORAGE-ID
Then add the new "unused disk" as attached disk, easiest done through he web interface.
May need to fixup "Boot order" in the VMs option tab, and then you should be able to start it.
Thanks, I am able to get an img attached.storage-id as in name/ID of the storage definition in Proxmox VE, in other words what you see when you
- go to Datacenter->Storage or
- look at the resource tree on the left or
- type
pvesm status
into the command line interface