Skip to content
Snippets Groups Projects
Commit f4abccef authored by Recolic's avatar Recolic :house_with_garden:
Browse files

.draft

parent e6f90ea2
No related branches found
No related tags found
No related merge requests found
......@@ -52,7 +52,6 @@ function download_cloud_img_if_not_exist () {
}
function create_vm_if_not_exist () {
# TODO: support create VM from existing qcow2 snapshot
local name=$1
local cloudimg=$2
local disk=$3
......@@ -66,6 +65,8 @@ function create_vm_if_not_exist () {
echo2 "+ Creating VM image $name with options $@..."
if [ "$disk" != "" ]; then
# TODO: support creating empty img and manual install later
### TODO: check empty cloudimg
# create from cloudimg
download_cloud_img_if_not_exist "$cloudimg" || return $?
generate_metadata "$name" > "vm/$name/meta-data" || return $?
......
......@@ -8,3 +8,6 @@ archtest ;Arch-Linux-x86_64-cloudimg.qcow2;50G;r;1
# name;existing_img_fname
ubuntucorp ;ubuntu-intune.qcow2
devbox ;win10pro-22h2-virtio-uefi.qcow2
## or create empty VM and install OS manually later
manual ; ;50G
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment