@@ -15,7 +15,6 @@ OSv=$OS
15
15
# compressed with .zst extension
16
16
REPO=" https://github.com/mcmilk/openzfs-freebsd-images"
17
17
FREEBSD=" $REPO /releases/download/v2024-12-14"
18
- URLzs=" "
19
18
20
19
# Ubuntu mirrors
21
20
# UBMIRROR="https://cloud-images.ubuntu.com"
@@ -24,6 +23,8 @@ UBMIRROR="https://mirror.citrahost.com/ubuntu-cloud-images"
24
23
25
24
# default nic model for vm's
26
25
NIC=" virtio"
26
+ URLzs=" "
27
+ URLxz=" "
27
28
28
29
case " $OS " in
29
30
almalinux8)
@@ -92,19 +93,22 @@ case "$OS" in
92
93
OSNAME=" FreeBSD 13.4-STABLE"
93
94
OSv=" freebsd13.0"
94
95
URLzs=" $FREEBSD /amd64-freebsd-13.4-STABLE.qcow2.zst"
96
+ URLxz=" https://download.freebsd.org/snapshots/VM-IMAGES/13.4-STABLE/amd64/Latest/FreeBSD-13.4-STABLE-amd64.qcow2.xz"
95
97
BASH=" /usr/local/bin/bash"
96
98
NIC=" rtl8139"
97
99
;;
98
100
freebsd14-2s)
99
101
OSNAME=" FreeBSD 14.2-STABLE"
100
102
OSv=" freebsd14.0"
101
- URLzs=" $FREEBSD /amd64-freebsd-14.2-STABLE.qcow2.zst"
103
+ # URLzs="$FREEBSD/amd64-freebsd-14.2-STABLE.qcow2.zst"
104
+ URLxz=" https://download.freebsd.org/snapshots/VM-IMAGES/14.2-STABLE/amd64/Latest/FreeBSD-14.2-STABLE-amd64-BASIC-CLOUDINIT-ufs.qcow2.xz"
102
105
BASH=" /usr/local/bin/bash"
103
106
;;
104
107
freebsd15-0c)
105
108
OSNAME=" FreeBSD 15.0-CURRENT"
106
109
OSv=" freebsd14.0"
107
- URLzs=" $FREEBSD /amd64-freebsd-15.0-CURRENT.qcow2.zst"
110
+ # URLzs="$FREEBSD/amd64-freebsd-15.0-CURRENT.qcow2.zst"
111
+ URLxz=" https://download.freebsd.org/snapshots/VM-IMAGES/15.0-CURRENT/amd64/Latest/FreeBSD-15.0-CURRENT-amd64-BASIC-CLOUDINIT-ufs.qcow2.xz"
108
112
BASH=" /usr/local/bin/bash"
109
113
;;
110
114
tumbleweed)
@@ -159,7 +163,11 @@ sudo chown -R $(whoami) /mnt/tests
159
163
# we are downloading via axel, curl and wget are mostly slower and
160
164
# require more return value checking
161
165
IMG=" /mnt/tests/cloudimg.qcow2"
162
- if [ ! -z " $URLzs " ]; then
166
+ if [ ! -z " $URLxz " ]; then
167
+ echo " Loading image $URLxz ..."
168
+ time axel -q -o " $IMG .xz" " $URLxz "
169
+ xz -d " $IMG .xz"
170
+ elif [ ! -z " $URLzs " ]; then
163
171
echo " Loading image $URLzs ..."
164
172
time axel -q -o " $IMG .zst" " $URLzs "
165
173
zstd -q -d --rm " $IMG .zst"
@@ -172,6 +180,7 @@ DISK="/dev/zvol/zpool/openzfs"
172
180
FORMAT=" raw"
173
181
sudo zfs create -ps -b 64k -V 80g zpool/openzfs
174
182
while true ; do test -b $DISK && break ; sleep 1; done
183
+
175
184
echo " Importing VM image to zvol..."
176
185
sudo qemu-img dd -f qcow2 -O raw if=$IMG of=$DISK bs=4M
177
186
rm -f $IMG
0 commit comments