Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simple-vm-manager
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Recolic
simple-vm-manager
Commits
f4abccef
There was an error fetching the commit references. Please try again later.
Commit
f4abccef
authored
1 year ago
by
Recolic
Browse files
Options
Downloads
Patches
Plain Diff
.draft
parent
e6f90ea2
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cron-callback.sh
+2
-1
2 additions, 1 deletion
cron-callback.sh
init.settings
+3
-0
3 additions, 0 deletions
init.settings
with
5 additions
and
1 deletion
cron-callback.sh
+
2
−
1
View file @
f4abccef
...
...
@@ -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
$?
...
...
This diff is collapsed.
Click to expand it.
init.settings
+
3
−
0
View file @
f4abccef
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment