@@ -23,7 +23,7 @@ Choose your [Ubuntu Cloud Image](https://cloud-images.ubuntu.com/)
23
23
Download Ubuntu (replace with the url of the one you chose from above)
24
24
25
25
``` bash
26
- wget https://cloud-images.ubuntu.com/jammy /current/jammy -server-cloudimg-amd64.img
26
+ wget https://cloud-images.ubuntu.com/focal /current/focal -server-cloudimg-amd64.img
27
27
```
28
28
29
29
Create a new virtual machine
@@ -32,27 +32,22 @@ Create a new virtual machine
32
32
qm create 8000 --memory 2048 --core 2 --name ubuntu-cloud --net0 virtio,bridge=vmbr0
33
33
```
34
34
35
- Import the downloaded Ubuntu disk to local-lvm storage
35
+ Import the downloaded Ubuntu disk to ` local ` storage (Change ` local ` to the storage of your choice)
36
36
37
37
``` bash
38
- qm importdisk 8000 jammy -server-cloudimg-amd64.img local-lvm
38
+ qm disk import 8000 focal -server-cloudimg-amd64.img local
39
39
```
40
- If you are on Proxmox 8.2+ use the below to import the downloaded Ubuntu disk to local-lvm storage
41
40
42
- ``` bash
43
- qm disk import 8000 jammy-server-cloudimg-amd64.img local-lvm
44
- ```
45
-
46
- Attach the new disk to the vm as a scsi drive on the scsi controller
41
+ Attach the new disk to the vm as a scsi drive on the scsi controller (Change ` local ` to the storage of your choice)
47
42
48
43
``` bash
49
- qm set 8000 --scsihw virtio-scsi-pci --scsi0 local-lvm :vm-8000-disk-0
44
+ qm set 8000 --scsihw virtio-scsi-pci --scsi0 local:vm-8000-disk-0
50
45
```
51
46
52
- Add cloud init drive
47
+ Add cloud init drive ((Change ` local ` to the storage of your choice)
53
48
54
49
``` bash
55
- qm set 8000 --ide2 local-lvm :cloudinit
50
+ qm set 8000 --ide2 local:cloudinit
56
51
```
57
52
58
53
Make the cloud init drive bootable and restrict BIOS to boot from disk only
0 commit comments