Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
vmdriver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
2
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
08f13ff5
authored
Nov 05, 2013
by
Guba Sándor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vm: fixing xml parameters
parent
50790390
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
vm.py
+9
-3
No files found.
vm.py
View file @
08f13ff5
...
...
@@ -19,9 +19,9 @@ class VMInstance:
def
__init__
(
self
,
name
,
vcpu
,
memory_max
,
emulator
=
'/usr/bin/kvm'
,
memory_max
,
memory
=
None
,
emulator
=
'/usr/bin/kvm'
,
cpu_share
=
100
,
arch
=
"x86_64"
,
boot_menu
=
False
,
...
...
@@ -31,6 +31,7 @@ class VMInstance:
graphics
=
None
,
acpi
=
True
,
raw_data
=
""
,
boot_token
=
""
,
seclabel_type
=
"dynamic"
,
seclabel_mode
=
"apparmor"
):
'''Default Virtual Machine constructor
...
...
@@ -114,8 +115,13 @@ class VMInstance:
'type'
:
self
.
graphics
[
'type'
],
'listen'
:
self
.
graphics
[
'listen'
],
'port'
:
str
(
self
.
graphics
[
'port'
]),
'passwd'
:
self
.
graphics
[
'passwd'
],
#'passwd': self.graphics['passwd'], TODO: Add this as option
})
ET
.
SubElement
(
devices
,
'input'
,
attrib
=
{
'type'
:
'tablet'
,
'bus'
:
'usb'
,})
# Features (TODO: features as list)
features
=
ET
.
SubElement
(
xml_top
,
'features'
)
if
self
.
acpi
:
...
...
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