Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
slapos
Commits
3806c6ff
Commit
3806c6ff
authored
Oct 18, 2012
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'kvm'
parents
41145f32
4e5626f8
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
113 additions
and
17 deletions
+113
-17
software/kvm/README.txt
software/kvm/README.txt
+2
-0
software/kvm/instance-frontend.cfg.in
software/kvm/instance-frontend.cfg.in
+0
-0
software/kvm/instance-kvm-input-schema.json
software/kvm/instance-kvm-input-schema.json
+59
-0
software/kvm/instance-kvm-output-schema.json
software/kvm/instance-kvm-output-schema.json
+25
-0
software/kvm/instance-kvm.cfg.in
software/kvm/instance-kvm.cfg.in
+15
-7
software/kvm/instance-kvmplus.cfg.in
software/kvm/instance-kvmplus.cfg.in
+5
-3
software/kvm/instance-nbd.cfg.in
software/kvm/instance-nbd.cfg.in
+0
-0
software/kvm/instance.cfg.in
software/kvm/instance.cfg.in
+0
-0
software/kvm/software.cfg
software/kvm/software.cfg
+7
-7
No files found.
software/kvm/README.txt
View file @
3806c6ff
...
...
@@ -7,6 +7,8 @@ Introduction
This software release is used to deploy KVM instances, NBD instances and
Frontend instances of KVM.
For extensive parameters definition, please look at parameter-input-schema.json.
Examples
--------
...
...
software/kvm/instance-frontend.cfg
→
software/kvm/instance-frontend.cfg
.in
View file @
3806c6ff
File moved
software/kvm/instance-kvm-input-schema.json
0 → 100644
View file @
3806c6ff
{
"name"
:
"Input Parameters"
,
"properties"
:
{
"ram-size"
:
{
"title"
:
"RAM size"
,
"description"
:
"RAM size, in MB."
,
"type"
:
"integer"
,
"default"
:
1024
,
"minimum"
:
128
,
"maximum"
:
16384
},
"disk-size"
:
{
"title"
:
"Disk size"
,
"description"
:
"Disk size, in GB."
,
"type"
:
"integer"
,
"default"
:
10
,
"minimum"
:
1
,
"maximum"
:
80
},
"nbd-ip"
:
{
"title"
:
"NBD hostname"
,
"description"
:
"hostname (or IP) of the NBD server containing the boot image."
,
"type"
:
"string"
,
"format"
:
[
"host-name"
,
"ip-address"
,
"ipv6"
],
"default"
:
"debian.nbd.vifib.net"
},
"nbd-port"
:
{
"title"
:
"NBD port"
,
"description"
:
"Port of the NBD server containing the boot image."
,
"type"
:
"integer"
,
"default"
:
1024
,
"minimum"
:
1
,
"maximum"
:
65535
},
"frontend-instance-guid"
:
{
"title"
:
"Frontend Instance ID"
,
"description"
:
"Unique identifier of the frontend instance, like
\"
SOFTINST-11031
\"
."
,
"type"
:
"string"
,
"default"
:
"SOFTINST-11031"
},
"frontend-software-type"
:
{
"title"
:
"Frontend Software Type"
,
"description"
:
"Type of the frontend instance, like
\"
frontend
\"
."
,
"type"
:
"string"
,
"default"
:
"frontend"
},
"frontend-software-url"
:
{
"title"
:
"Frontend Software URL"
,
"description"
:
"Software Release URL of the frontend instance, like
\"
http://example.com/path/to/software.cfg
\"
."
,
"type"
:
"string"
,
"format"
:
"uri"
,
"default"
:
"http://git.erp5.org/gitweb/slapos.git/blob_plain/refs/tags/slapos-0.92:/software/kvm/software.cfg"
}
}
}
software/kvm/instance-kvm-output-schema.json
0 → 100644
View file @
3806c6ff
{
"name"
:
"Output Parameters"
,
"properties"
:
{
"backend-url"
:
{
"title"
:
"Backend URL"
,
"description"
:
"URL used to connect directly to backend without frontend. Requires IPv6."
,
"type"
:
"uri"
,
"required"
:
true
},
"url"
:
{
"title"
:
"URL"
,
"description"
:
"URL used to connect to the service."
,
"type"
:
"uri"
,
"required"
:
false
},
"password"
:
{
"title"
:
"Password"
,
"description"
:
"Password used to authenticate in the service webpage."
,
"type"
:
"uri"
,
"required"
:
true
}
}
}
software/kvm/instance-kvm.cfg
→
software/kvm/instance-kvm.cfg
.in
View file @
3806c6ff
...
...
@@ -45,15 +45,15 @@ bytes = 4
recipe = slapos.cookbook:kvm
vnc-ip = $${slap-network-information:local-ipv4}
vnc-port = 5901
nbd-ip = $${slap-parameter:nbd
_
ip}
nbd-port = $${slap-parameter:nbd
_
port}
nbd-ip = $${slap-parameter:nbd
-
ip}
nbd-port = $${slap-parameter:nbd
-
port}
tap = $${slap-network-information:network-interface}
disk-path = $${directory:srv}/virtual.qcow2
disk-size =
10
disk-size =
$${slap-parameter:disk-size}
socket-path = $${directory:var}/qmp_socket
pid-path = $${directory:run}/pid_file
smp-count = 1
ram-size =
1024
ram-size =
$${slap-parameter:ram-size}
mac-address = $${create-mac:mac-address}
runner-path = $${directory:services}/kvm
controller-path = $${directory:scripts}/kvm_controller
...
...
@@ -145,7 +145,7 @@ sla-instance_guid = $${slap-parameter:frontend-instance-guid}
[publish-kvm-backend-connection-information]
recipe = slapos.cookbook:publish
backend
_
url = https://[$${novnc-instance:ip}]:$${novnc-instance:port}/vnc_auto.html?host=[$${novnc-instance:ip}]&port=$${novnc-instance:port}&encrypt=1
backend
-
url = https://[$${novnc-instance:ip}]:$${novnc-instance:port}/vnc_auto.html?host=[$${novnc-instance:ip}]&port=$${novnc-instance:port}&encrypt=1
password = $${kvm-instance:passwd}
[publish-kvm-frontend-connection-information]
...
...
@@ -164,5 +164,13 @@ curl_path = ${curl:location}/bin/curl
frontend-instance-guid = SOFTINST-11031
frontend-software-type = frontend
frontend-software-url = http://git.erp5.org/gitweb/slapos.git/blob_plain/refs/tags/slapos-0.92:/software/kvm/software.cfg
nbd_port = 1024
nbd_ip = debian.nbd.vifib.net
nbd-port = 1024
nbd-ip = debian.nbd.vifib.net
# backward compatibility: old style (nbd_port) can still be used.
nbd_port = $${:nbd-port}
nbd_ip = $${:nbd-ip}
ram-size = 1024
disk-size = 10
software/kvm/instance-kvmplus.cfg
→
software/kvm/instance-kvmplus.cfg
.in
View file @
3806c6ff
...
...
@@ -3,10 +3,12 @@
# Instanciate kvm+
#
#############################
# Deprecated. Just specify amount of RAM / disk you want in instance parameter.
[buildout]
extends = ${template-kvm:output}
[kvm-instance]
disk-size = 20
smp-count = 2
[slap-parameter]
ram-size = 2048
disk-size = 20
\ No newline at end of file
software/kvm/instance-nbd.cfg
→
software/kvm/instance-nbd.cfg
.in
View file @
3806c6ff
File moved
software/kvm/instance.cfg
→
software/kvm/instance.cfg
.in
View file @
3806c6ff
File moved
software/kvm/software.cfg
View file @
3806c6ff
...
...
@@ -118,35 +118,35 @@ command =
[template-kvm]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-kvm.cfg
md5sum = 6
8478e759138a42f09518d01da548b8a
url = ${:_profile_base_location_}/instance-kvm.cfg
.in
md5sum = 6
7c1980ba1e70b376f2811602991ff09
output = ${buildout:directory}/template-kvm.cfg
mode = 0644
[template-kvmplus]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-kvmplus.cfg
md5sum =
301fbe4eaaab5648e1a933a4c853f5b9
url = ${:_profile_base_location_}/instance-kvmplus.cfg
.in
md5sum =
c8e92237eeda93caca1132b5202c3a02
output = ${buildout:directory}/template-kvmplus.cfg
mode = 0644
[template-nbd]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-nbd.cfg
url = ${:_profile_base_location_}/instance-nbd.cfg
.in
md5sum = c030e7be231aba25ee0f51703e60ce67
output = ${buildout:directory}/template-nbd.cfg
mode = 0644
[template-frontend]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-frontend.cfg
url = ${:_profile_base_location_}/instance-frontend.cfg
.in
md5sum = 73359b52013b1b65f75005e8698ed180
output = ${buildout:directory}/template-frontend.cfg
mode = 0644
[template]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance.cfg
url = ${:_profile_base_location_}/instance.cfg
.in
md5sum = 68788763d23f70f24b9e575871c903a8
output = ${buildout:directory}/template.cfg
mode = 0644
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment