Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
Vm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jiří Kalvoda
Vm
Commits
1923c252
Commit
1923c252
authored
1 year ago
by
Jiří Kalvoda
Browse files
Options
Downloads
Patches
Plain Diff
...
parent
77321054
No related branches found
No related tags found
No related merge requests found
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
init.sh
+1
-0
1 addition, 0 deletions
init.sh
vm-qemu@.service
+16
-0
16 additions, 0 deletions
vm-qemu@.service
vm.py
+709
-342
709 additions, 342 deletions
vm.py
vm.service
+3
-2
3 additions, 2 deletions
vm.service
with
729 additions
and
344 deletions
init.sh
+
1
−
0
View file @
1923c252
#!/bin/bash
ln
-sr
vm.py /usr/bin/vm
cp
vm.service /lib/systemd/system/
cp
vm-qemu@.service /lib/systemd/system/
This diff is collapsed.
Click to expand it.
vm-qemu@.service
0 → 100644
+
16
−
0
View file @
1923c252
[Unit]
Description
=
qemu vm %i
After
=
network.target
[Service]
Environment
=
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/sbin:/usr/bin:/bin:
Environment
=
VM_BACKEND=qemu
WorkingDirectory
=
/mnt/virtual/%i.vm
ExecStart
=
/bin/sh run-qemu
Restart
=
no
[Install]
WantedBy
=
default.target
This diff is collapsed.
Click to expand it.
vm.py
+
709
−
342
View file @
1923c252
This diff is collapsed.
Click to expand it.
vm.service
+
3
−
2
View file @
1923c252
...
...
@@ -4,9 +4,10 @@ After=network.target
[Service]
Environment
=
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/sbin:/usr/bin:/bin:/home/jiri/bin
Environment
=
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/sbin:/usr/bin:/bin
Environment
=
VM_BACKEND=qemu
WorkingDirectory
=
/mnt/virtual
ExecStart
=
/mnt/virtual/prog/vm.py server 'run_periodically 10 -- prepare_forks --base base --count 1' 'run_periodically 30 -- clean'
ExecStart
=
/mnt/virtual/prog/vm.py server 'run_periodically 10 -- prepare_forks --base base --count 1' 'run_periodically 30 -- clean'
'run_periodically 30 -- pause_prepared_forks --base base --runtime 40'
Restart
=
always
RestartSec
=
10
...
...
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