Skip to content

Commit 57f5f16

Browse files
fix(post): updated for 24.04
1 parent f150bd1 commit 57f5f16

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

_posts/2022-03-19-cloud-init-cloud-image.md

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Choose your [Ubuntu Cloud Image](https://cloud-images.ubuntu.com/)
2323
Download Ubuntu (replace with the url of the one you chose from above)
2424

2525
```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
2727
```
2828

2929
Create a new virtual machine
@@ -32,27 +32,22 @@ Create a new virtual machine
3232
qm create 8000 --memory 2048 --core 2 --name ubuntu-cloud --net0 virtio,bridge=vmbr0
3333
```
3434

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)
3636

3737
```bash
38-
qm importdisk 8000 jammy-server-cloudimg-amd64.img local-lvm
38+
qm disk import 8000 focal-server-cloudimg-amd64.img local
3939
```
40-
If you are on Proxmox 8.2+ use the below to import the downloaded Ubuntu disk to local-lvm storage
4140

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)
4742

4843
```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
5045
```
5146

52-
Add cloud init drive
47+
Add cloud init drive ((Change `local` to the storage of your choice)
5348

5449
```bash
55-
qm set 8000 --ide2 local-lvm:cloudinit
50+
qm set 8000 --ide2 local:cloudinit
5651
```
5752

5853
Make the cloud init drive bootable and restrict BIOS to boot from disk only

0 commit comments

Comments
 (0)