Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
vmdriver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e43be4ef
authored
Jul 17, 2013
by
tarokkk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding docstring to constructor
parent
7e6bcfbb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
vm.py
+12
-0
No files found.
vm.py
View file @
e43be4ef
...
@@ -32,6 +32,18 @@ class VMInstance:
...
@@ -32,6 +32,18 @@ class VMInstance:
graphics
=
None
,
graphics
=
None
,
acpi
=
True
):
acpi
=
True
):
'''Default Virtual Machine constructor
'''Default Virtual Machine constructor
name - unique name for the instance
vcpu - nubmer of processors
memory_max - maximum virtual memory (actual memory maybe add late)
cpu_share - KVM process priority (0-100)
arch - libvirt arch parameter default x86_64
os_boot - boot device default hd
vm_type - hypervisor type default kvm
network_list - VMNetwork list
disk_list - VMDIsk list
context - Key-Value pars (not used)
graphics - Dict that keys are: type, listen, port, passwd
acpi - True/False to enable acpi
'''
'''
self
.
name
=
name
self
.
name
=
name
self
.
vcpu
=
vcpu
self
.
vcpu
=
vcpu
...
...
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