11# packer-kvm
22
3- Create VM templates with Packer for usage with Libvirt/KVM virtualization : CentOS 9 (Stream), CentOS 10 (Stream), AlmaLinux 9, Rocky 9 , Fedora 40, Noble (Ubuntu 2404), Debian 12 (Bookworm).
3+ Create VM templates with Packer for usage with Libvirt/KVM virtualization : AlmaLinux 9, Almalinux 10, Rocky 9, Rocky 10 , Fedora 40, Noble (Ubuntu 2404), Debian 12 (Bookworm).
44
55Only for education and learning purposes. Do not use it in production.
66
@@ -117,12 +117,12 @@ pip3 install docker-compose
117117Each JSON file is a template for a distribution :
118118
119119* [ almalinux9.pkr.hcl] ( https://github.com/goffinet/packer-kvm/blob/master/almalinux9.pkr.hcl )
120+ * [ almalinux10.pkr.hcl] ( https://github.com/goffinet/packer-kvm/blob/master/almalinux10.pkr.hcl )
121+ * [ centos10.pkr.hcl] ( https://github.com/goffinet/packdder-kvm/blob/master/centos10.pkr.hcl )
120122* [ rocky9.pkr.hcl] ( https://github.com/goffinet/packer-kvm/blob/master/rocky9.pkr.hcl )
123+ * [ rocky10.pkr.hcl] ( https://github.com/goffinet/packer-kvm/blob/master/rocky10.pkr.hcl )
121124* [ centos9.pkr.hcl] ( https://github.com/goffinet/packer-kvm/blob/master/centos9.pkr.hcl )
122- * [ centos10.pkr.hcl] ( https://github.com/goffinet/packer-kvm/blob/master/centos10.pkr.hcl )
123125* [ fedora40.pkr.hcl] ( https://github.com/goffinet/packer-kvm/blob/master/fedora40.pkr.hcl )
124- * [ ubuntu2004.pkr.hcl] ( https://github.com/goffinet/packer-kvm/blob/master/ubuntu2004.pkr.hcl )
125- * [ ubuntu2204.pkr.hcl] ( https://github.com/goffinet/packer-kvm/blob/master/ubuntu2204.pkr.hcl )
126126* [ ubuntu2404.pkr.hcl] ( https://github.com/goffinet/packer-kvm/blob/master/ubuntu2404.pkr.hcl )
127127* [ debian12.pkr.hcl] ( https://github.com/goffinet/packer-kvm/blob/master/debian12.pkr.hcl )
128128
@@ -173,12 +173,11 @@ You can have more details from Packet with the env var configured : `PACKER_LOG=
173173I build images for qemu/KVM with this project and I [ publish them] ( http://download.goffinet.org/kvm/index.html ) for use in those other IaC projects: [ Virt-scripts] ( https://github.com/goffinet/virt-scripts ) and ** [ Terraform with Libvirt/KVM provider] ( https://github.com/goffinet/terraform-libvirt ) ** .
174174
175175- [ almalinux9.qcow2] ( http://download.goffinet.org/kvm/almalinux9.qcow2 ) [[ md5sum]] ( http://download.goffinet.org/kvm/almalinux9.qcow2.md5sum ) [[ sha256sum]] ( http://download.goffinet.org/kvm/almalinux9.qcow2.sha256sum )
176+ - [ almalinux10.qcow2] ( http://download.goffinet.org/kvm/almalinux10.qcow2 ) [[ md5sum]] ( http://download.goffinet.org/kvm/almalinux10.qcow2.md5sum ) [[ sha256sum]] ( http://download.goffinet.org/kvm/almalinux10.qcow2.sha256sum )
177+ - [ ubuntu2204.qcow2 (Jammy)] ( http://download.goffinet.org/kvm/ubuntu2204.qcow2 ) [[ md5sum]] ( http://download.goffinet.org/kvm/ubuntu2204.qcow2.md5sum ) [[ sha256sum]] ( http://download.goffinet.org/kvm/ubuntu2204.qcow2.sha256sum )
176178- [ rocky9.qcow2] ( http://download.goffinet.org/kvm/rocky9.qcow2 ) [[ md5sum]] ( http://download.goffinet.org/kvm/rocky9.qcow2.md5sum ) [[ sha256sum]] ( http://download.goffinet.org/kvm/rocky9.qcow2.sha256sum )
177- - [ centos9.qcow2] ( http://download.goffinet.org/kvm/centos9.qcow2 ) [[ md5sum]] ( http://download.goffinet.org/kvm/centos9.qcow2.md5sum ) [[ sha256sum]] ( http://download.goffinet.org/kvm/centos9.qcow2.sha256sum )
178- - [ centos10.qcow2] ( http://download.goffinet.org/kvm/centos10.qcow2 ) [[ md5sum]] ( http://download.goffinet.org/kvm/centos10.qcow2.md5sum ) [[ sha256sum]] ( http://download.goffinet.org/kvm/centos10.qcow2.sha256sum )
179+ - [ rocky10.qcow2] ( http://download.goffinet.org/kvm/rocky10.qcow2 ) [[ md5sum]] ( http://download.goffinet.org/kvm/rocky10.qcow2.md5sum ) [[ sha256sum]] ( http://download.goffinet.org/kvm/rocky10.qcow2.sha256sum )
179180- [ fedora40.qcow2] ( http://download.goffinet.org/kvm/fedora40.qcow2 ) [[ md5sum]] ( http://download.goffinet.org/kvm/fedora40.qcow2.md5sum ) [[ sha256sum]] ( http://download.goffinet.org/kvm/fedora40.qcow2.sha256sum )
180- - [ ubuntu2004.qcow2 (Focal)] ( http://download.goffinet.org/kvm/ubuntu2004.qcow2 ) [[ md5sum]] ( http://download.goffinet.org/kvm/ubuntu2004.qcow2.md5sum ) [[ sha256sum]] ( http://download.goffinet.org/kvm/ubuntu2004.qcow2.sha256sum )
181- - [ ubuntu2204.qcow2 (Jammy)] ( http://download.goffinet.org/kvm/ubuntu2204.qcow2 ) [[ md5sum]] ( http://download.goffinet.org/kvm/ubuntu2204.qcow2.md5sum ) [[ sha256sum]] ( http://download.goffinet.org/kvm/ubuntu2204.qcow2.sha256sum )
182181- [ ubuntu2404.qcow2 (Noble)] ( http://download.goffinet.org/kvm/ubuntu2404.qcow2 ) [[ md5sum]] ( http://download.goffinet.org/kvm/ubuntu2404.qcow2.md5sum ) [[ sha256sum]] ( http://download.goffinet.org/kvm/ubuntu2404.qcow2.sha256sum )
183182- [ debian12.qcow2 (Bookworm)] ( http://download.goffinet.org/kvm/debian12.qcow2 ) [[ md5sum]] ( http://download.goffinet.org/kvm/debian12.qcow2.md5sum ) [[ sha256sum]] ( http://download.goffinet.org/kvm/debian12.qcow2.sha256sum )
184183
@@ -201,6 +200,10 @@ This is always beter to know how Libvirt is working. Can you read fundamentals a
201200
202201### Enjoy with Libvirt
203202
203+ > _ Switch to kcli_
204+
205+ <!--
206+
204207[https://github.com/goffinet/virt-scripts](https://github.com/goffinet/virt-scripts)
205208
2062091. Clone virt-scripts repo and prepare the machine
@@ -221,14 +224,14 @@ This is always beter to know how Libvirt is working. Can you read fundamentals a
221224 ```
222225 ```raw
223226 Please provide the image name :
224- almalinux9 centos9 centos10 debian12 fedora40 ubuntu2004 ubuntu2204 ubuntu2404
227+ almalinux9 almalinux10 centos9 debian12 fedora40 rocky9 rocky10 ubuntu2404
225228 ```
226229
2272303. Launch two new machines
228231
229232 ```bash
230233 sudo ./define-guest-image.sh c1 almalinux9
231- sudo ./define-guest-image.sh u1 ubuntu2204
234+ sudo ./define-guest-image.sh u1 ubuntu2404
232235 ```
233236
2342374. Enjoy
@@ -240,6 +243,7 @@ This is always beter to know how Libvirt is working. Can you read fundamentals a
240243 ```bash
241244 ssh $(dig @192.168.122.1 +short u1)
242245 ```
246+ -->
243247
244248### Enjoy with Terraform (with libvirt)
245249
0 commit comments