-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Problem: If an instance is created and removed, one of the base mounted devices remains on the system. Also, a user cannot create a qemu disk from Debian image. Solution: Remove the useless device from the system and create the two needed script to create Qemu Debian runtimes.
- Loading branch information
Showing
3 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
set -euf | ||
|
||
# Variables | ||
ROOTFS_FILENAME="./rootfs.img" | ||
IMAGE_URL="https://cloud.debian.org/images/cloud/bullseye/latest/debian-11-genericcloud-amd64.qcow2" | ||
IMAGE_NAME="debian-11-genericcloud-amd64.qcow2" | ||
|
||
# Cleanup previous run | ||
rm -f "$ROOTFS_FILENAME" | ||
|
||
# Download Ubuntu image | ||
echo "Downloading Debian 11 image" | ||
curl -L "$IMAGE_URL" -o "$IMAGE_NAME" | ||
|
||
# Rename final file | ||
mv "$IMAGE_NAME" "$ROOTFS_FILENAME" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
set -euf | ||
|
||
# Variables | ||
ROOTFS_FILENAME="./rootfs.img" | ||
IMAGE_URL="https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-genericcloud-amd64.qcow2" | ||
IMAGE_NAME="debian-12-genericcloud-amd64.qcow2" | ||
|
||
# Cleanup previous run | ||
rm -f "$ROOTFS_FILENAME" | ||
|
||
# Download Ubuntu image | ||
echo "Downloading Debian 12 image" | ||
curl -L "$IMAGE_URL" -o "$IMAGE_NAME" | ||
|
||
# Rename final file | ||
mv "$IMAGE_NAME" "$ROOTFS_FILENAME" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters