mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 14:57:42 +00:00
Fix setup of compatability serial devices from console device
The <console> tag is supposed to result in addition of a single <serial> device for HVM guests. The 'targetType' attribute was missing though causing the compatibility code to add a second <console> device * src/conf/domain_conf.c: Set targetType for serial device
This commit is contained in:
parent
3dc4268669
commit
7d8f5eb3bc
@ -3748,6 +3748,7 @@ static virDomainDefPtr virDomainDefParseXML(virConnectPtr conn,
|
||||
}
|
||||
def->nserials = 1;
|
||||
def->serials[0] = chr;
|
||||
chr->targetType = VIR_DOMAIN_CHR_TARGET_TYPE_SERIAL;
|
||||
}
|
||||
} else {
|
||||
def->console = chr;
|
||||
|
Loading…
Reference in New Issue
Block a user