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
Ivan Tyagov
slapos
Commits
0466a30c
Commit
0466a30c
authored
Oct 17, 2012
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow to give RMA and disk parameters to KVM instance.
parent
caeda529
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
11 deletions
+23
-11
software/kvm/README.txt
software/kvm/README.txt
+2
-0
software/kvm/instance-kvm.cfg
software/kvm/instance-kvm.cfg
+14
-6
software/kvm/instance-kvmplus.cfg
software/kvm/instance-kvmplus.cfg
+5
-3
software/kvm/software.cfg
software/kvm/software.cfg
+2
-2
No files found.
software/kvm/README.txt
View file @
0466a30c
...
...
@@ -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-kvm.cfg
View file @
0466a30c
...
...
@@ -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
...
...
@@ -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
View file @
0466a30c
...
...
@@ -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/software.cfg
View file @
0466a30c
...
...
@@ -119,14 +119,14 @@ command =
[template-kvm]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-kvm.cfg
md5sum =
68478e759138a42f09518d01da548b8a
md5sum =
eecb8d7b5bb4d21fd9e9596424ccb421
output = ${buildout:directory}/template-kvm.cfg
mode = 0644
[template-kvmplus]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-kvmplus.cfg
md5sum =
301fbe4eaaab5648e1a933a4c853f5b9
md5sum =
c8e92237eeda93caca1132b5202c3a02
output = ${buildout:directory}/template-kvmplus.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