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
308b9e03
authored
Oct 09, 2014
by
Bach Dániel
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'virtio' into 'master'
Virtio See merge request !2
parents
ef9fe79e
dbbccc05
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 @
308b9e03
...
...
@@ -132,6 +132,18 @@ class VMInstance:
attrib
=
{
'mode'
:
'bind'
,
'path'
:
'/var/lib/libvirt/serial/
%
s'
%
self
.
name
})
# Virtio console
virtio
=
ET
.
SubElement
(
devices
,
'channel'
,
attrib
=
{
'type'
:
'unix'
})
ET
.
SubElement
(
virtio
,
'target'
,
attrib
=
{
'type'
:
'virtio'
,
'name'
:
'agent'
})
ET
.
SubElement
(
virtio
,
'source'
,
attrib
=
{
'mode'
:
'bind'
,
'path'
:
'/var/lib/libvirt/serial/vio-
%
s'
%
self
.
name
})
# Console/graphics section
if
self
.
graphics
is
not
None
:
ET
.
SubElement
(
devices
,
...
...
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