guest: Remove code for default virtio console

It's been disabled for a while and we don't plan on re-enabling it
This commit is contained in:
Cole Robinson 2015-09-22 11:06:22 -04:00
parent 9da74dc7ea
commit a538b69356
2 changed files with 0 additions and 17 deletions

View File

@ -629,13 +629,6 @@ class Guest(XMLBuilder):
dev = VirtualConsoleDevice(self.conn) dev = VirtualConsoleDevice(self.conn)
dev.type = dev.TYPE_PTY dev.type = dev.TYPE_PTY
if (self.os.is_x86() and
self._os_object.supports_virtioconsole() and
self.conn.check_support(
self.conn.SUPPORT_CONN_VIRTIO_CONSOLE)):
dev.target_type = "virtio"
self.add_device(dev) self.add_device(dev)
def add_default_video_device(self): def add_default_video_device(self):

View File

@ -433,16 +433,6 @@ class _OsVariant(object):
return "localtime" return "localtime"
return "utc" return "utc"
def supports_virtioconsole(self):
# We used to enable this for Fedora 18+, because systemd would
# autostart a getty on /dev/hvc0 which made 'virsh console' work
# out of the box for a login prompt. However now in Fedora
# virtio-console is compiled as a module, and systemd doesn't
# detect it in time to start a getty. So the benefit of using
# it as the default is erased, and we reverted to this.
# https://bugzilla.redhat.com/show_bug.cgi?id=1039742
return False
def supports_virtiommio(self): def supports_virtiommio(self):
return self._is_related_to(["fedora19"]) return self._is_related_to(["fedora19"])