mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-23 17:34:21 +03:00
Add the console target "sclp" for s390x
Add console target "sclp" for s390x ,since the newest Distro guests has supported the console target, solve some console issues in s390x.Also modified the test xml cover this change. crobinso: fix the test suite output
This commit is contained in:
parent
908a00cc73
commit
35792f7dd6
@ -30,7 +30,9 @@
|
||||
<source bridge="eth0"/>
|
||||
<mac address="00:11:22:33:44:55"/>
|
||||
</interface>
|
||||
<console type="pty"/>
|
||||
<console type="pty">
|
||||
<target type="sclp"/>
|
||||
</console>
|
||||
<watchdog model="diag288" action="reset"/>
|
||||
</devices>
|
||||
</domain>
|
||||
|
@ -30,6 +30,8 @@
|
||||
<source bridge="eth0"/>
|
||||
<mac address="00:11:22:33:44:55"/>
|
||||
</interface>
|
||||
<console type="pty"/>
|
||||
<console type="pty">
|
||||
<target type="sclp"/>
|
||||
</console>
|
||||
</devices>
|
||||
</domain>
|
||||
|
@ -628,6 +628,8 @@ class Guest(XMLBuilder):
|
||||
|
||||
dev = VirtualConsoleDevice(self.conn)
|
||||
dev.type = dev.TYPE_PTY
|
||||
if self.os.is_s390x():
|
||||
dev.target_type = "sclp"
|
||||
self.add_device(dev)
|
||||
|
||||
def add_default_video_device(self):
|
||||
|
Loading…
Reference in New Issue
Block a user