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
198a35f6
authored
Nov 11, 2013
by
Őry Máté
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix pep8
parent
9baf343e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
vm.py
+4
-3
No files found.
vm.py
View file @
198a35f6
...
...
@@ -19,7 +19,7 @@ class VMInstance:
def
__init__
(
self
,
name
,
vcpu
,
memory_max
,
memory_max
,
memory
=
None
,
emulator
=
'/usr/bin/kvm'
,
cpu_share
=
100
,
...
...
@@ -115,13 +115,14 @@ class VMInstance:
'type'
:
self
.
graphics
[
'type'
],
'listen'
:
self
.
graphics
[
'listen'
],
'port'
:
str
(
self
.
graphics
[
'port'
]),
#'passwd': self.graphics['passwd'], TODO: Add this as option
# 'passwd': self.graphics['passwd'],
# TODO: Add this as option
})
ET
.
SubElement
(
devices
,
'input'
,
attrib
=
{
'type'
:
'tablet'
,
'bus'
:
'usb'
,})
'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