Skip to content

Commit

Permalink
switch to debian bookworm base img
Browse files Browse the repository at this point in the history
  • Loading branch information
verbit committed Jan 6, 2024
1 parent ad42c4e commit 2654c5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions minivirt/daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,14 +478,14 @@ def CreateDomain(self, request, context):

img_pool = self.conn.storagePoolLookupByName("restvirtimages")
if not domreq.base_image:
base_img_name = "jammy-amd64-20220808.qcow2"
base_img_name = "debian-12-genericcloud-amd64-20240102-1614.qcow2"
try:
base_img = img_pool.storageVolLookupByName(base_img_name)
except:
from urllib.request import urlopen

res = urlopen(
f"https://cloud-images.ubuntu.com/releases/22.04/release-20221117/ubuntu-22.04-server-cloudimg-amd64.img"
f"https://cloud.debian.org/images/cloud/bookworm/20240102-1614/debian-12-genericcloud-amd64-20240102-1614.qcow2"
)
size = int(res.getheader("Content-length"))
base_img = img_pool.createXML(
Expand Down

0 comments on commit 2654c5b

Please sign in to comment.