Skip to content

Commit

Permalink
Merge pull request #896 from b-ehlers/master
Browse files Browse the repository at this point in the history
Debian: Update to versions 12.6 and 11.10, remove netplan
  • Loading branch information
grossmj authored Jul 3, 2024
2 parents 2f29e8f + 6ac3a77 commit 8cf5ed4
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 6 deletions.
28 changes: 28 additions & 0 deletions appliances/debian.gns3a
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@
"kvm": "allow"
},
"images": [
{
"filename": "debian-12.6.qcow2",
"version": "12.6",
"md5sum": "04753ba14295c6414d49bffe27b676ae",
"filesize": 280907776,
"download_url": "https://sourceforge.net/projects/gns-3/files/Qemu%20Appliances/",
"direct_download_url": "https://downloads.sourceforge.net/project/gns-3/Qemu%20Appliances/debian-12.6.qcow2"
},
{
"filename": "debian-12.4.qcow2",
"version": "12.4",
Expand All @@ -31,6 +39,14 @@
"download_url": "https://sourceforge.net/projects/gns-3/files/Qemu%20Appliances/",
"direct_download_url": "https://downloads.sourceforge.net/project/gns-3/Qemu%20Appliances/debian-12.4.qcow2"
},
{
"filename": "debian-11.10.qcow2",
"version": "11.10",
"md5sum": "99a1dc8e110d641309674e69b630e732",
"filesize": 263520256,
"download_url": "https://sourceforge.net/projects/gns-3/files/Qemu%20Appliances/",
"direct_download_url": "https://downloads.sourceforge.net/project/gns-3/Qemu%20Appliances/debian-11.10.qcow2"
},
{
"filename": "debian-11.8.qcow2",
"version": "11.8",
Expand All @@ -41,12 +57,24 @@
}
],
"versions": [
{
"name": "12.6",
"images": {
"hda_disk_image": "debian-12.6.qcow2"
}
},
{
"name": "12.4",
"images": {
"hda_disk_image": "debian-12.4.qcow2"
}
},
{
"name": "11.10",
"images": {
"hda_disk_image": "debian-11.10.qcow2"
}
},
{
"name": "11.8",
"images": {
Expand Down
4 changes: 2 additions & 2 deletions packer/debian/debian-11.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"iso_url": "https://cloud.debian.org/images/cloud/bullseye/20231013-1532/debian-11-genericcloud-amd64-20231013-1532.qcow2",
"iso_checksum": "b3b2f6b3411ea6e2f097a91b579ad2838611d5cdf8fbd1089435c55f9c6bb398",
"iso_url": "https://cloud.debian.org/images/cloud/bullseye/20240702-1796/debian-11-genericcloud-amd64-20240702-1796.qcow2",
"iso_checksum": "d236925c59ede4ab634141ca5433f1caa38dbdc0a1df438c57ee4115754014b1",
"vm_name": "debian-11.qcow2"
}
4 changes: 2 additions & 2 deletions packer/debian/debian.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"variables": {
"iso_url": "https://cloud.debian.org/images/cloud/bookworm/20231210-1591/debian-12-genericcloud-amd64-20231210-1591.qcow2",
"iso_checksum": "16e360b50572092ff5c1ed994285bcca961df28c081b7bb5d7c006d35bce4914",
"iso_url": "https://cloud.debian.org/images/cloud/bookworm/20240702-1796/debian-12-genericcloud-amd64-20240702-1796.qcow2",
"iso_checksum": "a4bc7fa86ef51d2b059ce0abd9c6130b4c36a3449b8a130bb509602924e9e6e7",
"disk_size": "2G",
"vm_name": "debian.qcow2",
"setup_script": "debian.sh"
Expand Down
7 changes: 5 additions & 2 deletions packer/debian/scripts/networking.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,17 @@ else
printf '127.0.1.1\t%s\t%s\n' "$(hostname -f)" "$(hostname)" >> /etc/hosts
fi

# replace systemd-resolved by resolvconf
cp /etc/resolv.conf /etc/resolv.conf.orig
# replace netplan and systemd-resolved by ifupdown and resolvconf
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get -y upgrade
cp /etc/resolv.conf /etc/resolv.conf.orig
apt-get -y install --purge ifupdown resolvconf
cat /etc/resolv.conf.orig > /etc/resolv.conf
rm -f /etc/resolv.conf.orig
echo "network: {config: disabled}" > /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg
rm -rf /etc/netplan
apt-get -y autoremove --purge netplan.io

# replace cloud-init network configuration
cat > /etc/network/interfaces <<'EOF'
Expand Down

0 comments on commit 8cf5ed4

Please sign in to comment.