mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-09 23:15:51 -06:00
domain conf: Track <console> target type
All <console> devices now export a <target> type attribute. QEMU defaults to 'serial', UML defaults to 'uml, xen can be either 'serial' or 'xen' depending on fullvirt. Understandably there is lots of test fallout. This will be used to differentiate between a serial vs. virtio console for QEMU. Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
6488ea2c5c
commit
6b24755235
@ -1212,17 +1212,37 @@
|
||||
<interleave>
|
||||
<ref name="qemucdevSrcDef"/>
|
||||
<optional>
|
||||
<element name="target">
|
||||
<optional>
|
||||
<attribute name="port"/>
|
||||
</optional>
|
||||
</element>
|
||||
<ref name="qemucdevTgtDef"/>
|
||||
</optional>
|
||||
<optional>
|
||||
<ref name="address"/>
|
||||
</optional>
|
||||
</interleave>
|
||||
</define>
|
||||
|
||||
<define name="qemucdevConsoleTgtType">
|
||||
<attribute name="type">
|
||||
<choice>
|
||||
<value>xen</value>
|
||||
<value>serial</value>
|
||||
<value>uml</value>
|
||||
</choice>
|
||||
</attribute>
|
||||
</define>
|
||||
|
||||
<define name="qemucdevTgtDef">
|
||||
<element name="target">
|
||||
<interleave>
|
||||
<optional>
|
||||
<ref name="qemucdevConsoleTgtType"/>
|
||||
</optional>
|
||||
<optional>
|
||||
<attribute name="port"/>
|
||||
</optional>
|
||||
</interleave>
|
||||
</element>
|
||||
</define>
|
||||
|
||||
<define name="qemucdevSrcType">
|
||||
<attribute name="type">
|
||||
<choice>
|
||||
|
@ -140,6 +140,7 @@ struct _virCaps {
|
||||
unsigned int emulatorRequired : 1;
|
||||
const char *defaultDiskDriverName;
|
||||
const char *defaultDiskDriverType;
|
||||
int defaultConsoleTargetType;
|
||||
void *(*privateDataAllocFunc)(void);
|
||||
void (*privateDataFreeFunc)(void *);
|
||||
int (*privateDataXMLFormat)(virBufferPtr, void *);
|
||||
|
@ -169,6 +169,12 @@ VIR_ENUM_IMPL(virDomainChrChannelTarget,
|
||||
"guestfwd",
|
||||
"virtio")
|
||||
|
||||
VIR_ENUM_IMPL(virDomainChrConsoleTarget,
|
||||
VIR_DOMAIN_CHR_CONSOLE_TARGET_TYPE_LAST,
|
||||
"serial",
|
||||
"xen",
|
||||
"uml")
|
||||
|
||||
VIR_ENUM_IMPL(virDomainChrDevice, VIR_DOMAIN_CHR_DEVICE_TYPE_LAST,
|
||||
"monitor",
|
||||
"parallel",
|
||||
@ -2374,7 +2380,7 @@ error:
|
||||
}
|
||||
|
||||
static int
|
||||
virDomainChrDefaultTargetType(int devtype) {
|
||||
virDomainChrDefaultTargetType(virCapsPtr caps, int devtype) {
|
||||
|
||||
int target = -1;
|
||||
|
||||
@ -2386,6 +2392,9 @@ virDomainChrDefaultTargetType(int devtype) {
|
||||
break;
|
||||
|
||||
case VIR_DOMAIN_CHR_DEVICE_TYPE_CONSOLE:
|
||||
target = caps->defaultConsoleTargetType;
|
||||
break;
|
||||
|
||||
case VIR_DOMAIN_CHR_DEVICE_TYPE_SERIAL:
|
||||
case VIR_DOMAIN_CHR_DEVICE_TYPE_PARALLEL:
|
||||
default:
|
||||
@ -2398,14 +2407,15 @@ virDomainChrDefaultTargetType(int devtype) {
|
||||
}
|
||||
|
||||
static int
|
||||
virDomainChrTargetTypeFromString(int devtype,
|
||||
virDomainChrTargetTypeFromString(virCapsPtr caps,
|
||||
int devtype,
|
||||
const char *targetType)
|
||||
{
|
||||
int ret = -1;
|
||||
int target = 0;
|
||||
|
||||
if (!targetType) {
|
||||
target = virDomainChrDefaultTargetType(devtype);
|
||||
target = virDomainChrDefaultTargetType(caps, devtype);
|
||||
goto out;
|
||||
}
|
||||
|
||||
@ -2414,6 +2424,10 @@ virDomainChrTargetTypeFromString(int devtype,
|
||||
target = virDomainChrChannelTargetTypeFromString(targetType);
|
||||
break;
|
||||
|
||||
case VIR_DOMAIN_CHR_DEVICE_TYPE_CONSOLE:
|
||||
target = virDomainChrConsoleTargetTypeFromString(targetType);
|
||||
/* Fall through */
|
||||
|
||||
case VIR_DOMAIN_CHR_DEVICE_TYPE_SERIAL:
|
||||
case VIR_DOMAIN_CHR_DEVICE_TYPE_PARALLEL:
|
||||
default:
|
||||
@ -2437,6 +2451,9 @@ virDomainChrTargetTypeToString(int deviceType,
|
||||
case VIR_DOMAIN_CHR_DEVICE_TYPE_CHANNEL:
|
||||
type = virDomainChrChannelTargetTypeToString(targetType);
|
||||
break;
|
||||
case VIR_DOMAIN_CHR_DEVICE_TYPE_CONSOLE:
|
||||
type = virDomainChrConsoleTargetTypeToString(targetType);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@ -2445,7 +2462,8 @@ virDomainChrTargetTypeToString(int deviceType,
|
||||
}
|
||||
|
||||
static int
|
||||
virDomainChrDefParseTargetXML(virDomainChrDefPtr def,
|
||||
virDomainChrDefParseTargetXML(virCapsPtr caps,
|
||||
virDomainChrDefPtr def,
|
||||
xmlNodePtr cur,
|
||||
int flags ATTRIBUTE_UNUSED)
|
||||
{
|
||||
@ -2456,7 +2474,8 @@ virDomainChrDefParseTargetXML(virDomainChrDefPtr def,
|
||||
const char *portStr = NULL;
|
||||
|
||||
if ((def->targetType =
|
||||
virDomainChrTargetTypeFromString(def->deviceType, targetType)) < 0) {
|
||||
virDomainChrTargetTypeFromString(caps,
|
||||
def->deviceType, targetType)) < 0) {
|
||||
goto error;
|
||||
}
|
||||
|
||||
@ -2586,7 +2605,8 @@ error:
|
||||
*
|
||||
*/
|
||||
static virDomainChrDefPtr
|
||||
virDomainChrDefParseXML(xmlNodePtr node,
|
||||
virDomainChrDefParseXML(virCapsPtr caps,
|
||||
xmlNodePtr node,
|
||||
int flags) {
|
||||
xmlNodePtr cur;
|
||||
char *type = NULL;
|
||||
@ -2664,7 +2684,7 @@ virDomainChrDefParseXML(xmlNodePtr node,
|
||||
if (protocol == NULL)
|
||||
protocol = virXMLPropString(cur, "type");
|
||||
} else if (xmlStrEqual(cur->name, BAD_CAST "target")) {
|
||||
if (virDomainChrDefParseTargetXML(def, cur, flags) < 0) {
|
||||
if (virDomainChrDefParseTargetXML(caps, def, cur, flags) < 0) {
|
||||
goto error;
|
||||
}
|
||||
}
|
||||
@ -4515,7 +4535,8 @@ static virDomainDefPtr virDomainDefParseXML(virCapsPtr caps,
|
||||
goto no_memory;
|
||||
|
||||
for (i = 0 ; i < n ; i++) {
|
||||
virDomainChrDefPtr chr = virDomainChrDefParseXML(nodes[i],
|
||||
virDomainChrDefPtr chr = virDomainChrDefParseXML(caps,
|
||||
nodes[i],
|
||||
flags);
|
||||
if (!chr)
|
||||
goto error;
|
||||
@ -4534,7 +4555,8 @@ static virDomainDefPtr virDomainDefParseXML(virCapsPtr caps,
|
||||
goto no_memory;
|
||||
|
||||
for (i = 0 ; i < n ; i++) {
|
||||
virDomainChrDefPtr chr = virDomainChrDefParseXML(nodes[i],
|
||||
virDomainChrDefPtr chr = virDomainChrDefParseXML(caps,
|
||||
nodes[i],
|
||||
flags);
|
||||
if (!chr)
|
||||
goto error;
|
||||
@ -4545,7 +4567,8 @@ static virDomainDefPtr virDomainDefParseXML(virCapsPtr caps,
|
||||
VIR_FREE(nodes);
|
||||
|
||||
if ((node = virXPathNode("./devices/console[1]", ctxt)) != NULL) {
|
||||
virDomainChrDefPtr chr = virDomainChrDefParseXML(node,
|
||||
virDomainChrDefPtr chr = virDomainChrDefParseXML(caps,
|
||||
node,
|
||||
flags);
|
||||
if (!chr)
|
||||
goto error;
|
||||
@ -4581,7 +4604,8 @@ static virDomainDefPtr virDomainDefParseXML(virCapsPtr caps,
|
||||
goto no_memory;
|
||||
|
||||
for (i = 0 ; i < n ; i++) {
|
||||
virDomainChrDefPtr chr = virDomainChrDefParseXML(nodes[i],
|
||||
virDomainChrDefPtr chr = virDomainChrDefParseXML(caps,
|
||||
nodes[i],
|
||||
flags);
|
||||
if (!chr)
|
||||
goto error;
|
||||
@ -5831,8 +5855,17 @@ virDomainChrDefFormat(virBufferPtr buf,
|
||||
/* Nothing to format */
|
||||
break;
|
||||
|
||||
case VIR_DOMAIN_CHR_DEVICE_TYPE_CONSOLE:
|
||||
virBufferVSprintf(buf,
|
||||
" <target type='%s' port='%d'/>\n",
|
||||
virDomainChrTargetTypeToString(def->deviceType,
|
||||
def->targetType),
|
||||
def->target.port);
|
||||
break;
|
||||
|
||||
default:
|
||||
virBufferVSprintf(buf, " <target port='%d'/>\n", def->target.port);
|
||||
virBufferVSprintf(buf, " <target port='%d'/>\n",
|
||||
def->target.port);
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -330,6 +330,14 @@ enum virDomainChrChannelTargetType {
|
||||
VIR_DOMAIN_CHR_CHANNEL_TARGET_TYPE_LAST,
|
||||
};
|
||||
|
||||
enum virDomainChrConsoleTargetType {
|
||||
VIR_DOMAIN_CHR_CONSOLE_TARGET_TYPE_SERIAL = 0,
|
||||
VIR_DOMAIN_CHR_CONSOLE_TARGET_TYPE_XEN,
|
||||
VIR_DOMAIN_CHR_CONSOLE_TARGET_TYPE_UML,
|
||||
|
||||
VIR_DOMAIN_CHR_CONSOLE_TARGET_TYPE_LAST,
|
||||
};
|
||||
|
||||
enum virDomainChrType {
|
||||
VIR_DOMAIN_CHR_TYPE_NULL,
|
||||
VIR_DOMAIN_CHR_TYPE_VC,
|
||||
@ -1143,6 +1151,7 @@ VIR_ENUM_DECL(virDomainFS)
|
||||
VIR_ENUM_DECL(virDomainNet)
|
||||
VIR_ENUM_DECL(virDomainChrDevice)
|
||||
VIR_ENUM_DECL(virDomainChrChannelTarget)
|
||||
VIR_ENUM_DECL(virDomainChrConsoleTarget)
|
||||
VIR_ENUM_DECL(virDomainChr)
|
||||
VIR_ENUM_DECL(virDomainSoundModel)
|
||||
VIR_ENUM_DECL(virDomainMemballoonModel)
|
||||
|
@ -1137,6 +1137,8 @@ virCapsPtr qemudCapsInit(virCapsPtr old_caps) {
|
||||
/* QEMU Requires an emulator in the XML */
|
||||
virCapabilitiesSetEmulatorRequired(caps);
|
||||
|
||||
caps->defaultConsoleTargetType = VIR_DOMAIN_CHR_CONSOLE_TARGET_TYPE_SERIAL;
|
||||
|
||||
return caps;
|
||||
|
||||
no_memory:
|
||||
|
@ -97,6 +97,8 @@ virCapsPtr umlCapsInit(void) {
|
||||
NULL) == NULL)
|
||||
goto error;
|
||||
|
||||
caps->defaultConsoleTargetType = VIR_DOMAIN_CHR_CONSOLE_TARGET_TYPE_UML;
|
||||
|
||||
return caps;
|
||||
|
||||
error:
|
||||
|
@ -2342,6 +2342,8 @@ xenHypervisorBuildCapabilities(virConnectPtr conn,
|
||||
}
|
||||
}
|
||||
|
||||
caps->defaultConsoleTargetType = VIR_DOMAIN_CHR_CONSOLE_TARGET_TYPE_XEN;
|
||||
|
||||
return caps;
|
||||
|
||||
no_memory:
|
||||
|
@ -2367,6 +2367,7 @@ xenDaemonParseSxpr(virConnectPtr conn,
|
||||
if (!(def->console = xenDaemonParseSxprChar("pty", tty)))
|
||||
goto error;
|
||||
def->console->deviceType = VIR_DOMAIN_CHR_DEVICE_TYPE_CONSOLE;
|
||||
def->console->targetType = VIR_DOMAIN_CHR_CONSOLE_TARGET_TYPE_XEN;
|
||||
}
|
||||
VIR_FREE(tty);
|
||||
|
||||
|
@ -1441,6 +1441,7 @@ xenXMDomainConfigParse(virConnectPtr conn, virConfPtr conf) {
|
||||
if (!(def->console = xenDaemonParseSxprChar("pty", NULL)))
|
||||
goto cleanup;
|
||||
def->console->deviceType = VIR_DOMAIN_CHR_DEVICE_TYPE_CONSOLE;
|
||||
def->console->targetType = VIR_DOMAIN_CHR_CONSOLE_TARGET_TYPE_XEN;
|
||||
}
|
||||
|
||||
if (hvm) {
|
||||
|
@ -55,7 +55,7 @@ cat <<\EOF > D.xml || fail=1
|
||||
<target port='2'/>
|
||||
</parallel>
|
||||
<console type='pty'>
|
||||
<target port='0'/>
|
||||
<target type='serial' port='0'/>
|
||||
</console>
|
||||
<sound model='pcspk'/>
|
||||
<sound model='es1370'/>
|
||||
|
@ -24,7 +24,7 @@
|
||||
<target port='0'/>
|
||||
</serial>
|
||||
<console type='pty'>
|
||||
<target port='0'/>
|
||||
<target type='serial' port='0'/>
|
||||
</console>
|
||||
<memballoon model='virtio'/>
|
||||
</devices>
|
||||
|
@ -26,7 +26,7 @@
|
||||
</serial>
|
||||
<console type='dev'>
|
||||
<source path='/dev/ttyS2'/>
|
||||
<target port='0'/>
|
||||
<target type='serial' port='0'/>
|
||||
</console>
|
||||
<memballoon model='virtio'/>
|
||||
</devices>
|
||||
|
@ -26,7 +26,7 @@
|
||||
</serial>
|
||||
<console type='file'>
|
||||
<source path='/tmp/serial.log'/>
|
||||
<target port='0'/>
|
||||
<target type='serial' port='0'/>
|
||||
</console>
|
||||
<memballoon model='virtio'/>
|
||||
</devices>
|
||||
|
@ -28,7 +28,7 @@
|
||||
<target port='1'/>
|
||||
</serial>
|
||||
<console type='pty'>
|
||||
<target port='0'/>
|
||||
<target type='serial' port='0'/>
|
||||
</console>
|
||||
<memballoon model='virtio'/>
|
||||
</devices>
|
||||
|
@ -24,7 +24,7 @@
|
||||
<target port='0'/>
|
||||
</serial>
|
||||
<console type='pty'>
|
||||
<target port='0'/>
|
||||
<target type='serial' port='0'/>
|
||||
</console>
|
||||
<memballoon model='virtio'/>
|
||||
</devices>
|
||||
|
@ -28,7 +28,7 @@
|
||||
<console type='tcp'>
|
||||
<source mode='bind' host='127.0.0.1' service='9999'/>
|
||||
<protocol type='telnet'/>
|
||||
<target port='0'/>
|
||||
<target type='serial' port='0'/>
|
||||
</console>
|
||||
<memballoon model='virtio'/>
|
||||
</devices>
|
||||
|
@ -28,7 +28,7 @@
|
||||
<console type='tcp'>
|
||||
<source mode='connect' host='127.0.0.1' service='9999'/>
|
||||
<protocol type='raw'/>
|
||||
<target port='0'/>
|
||||
<target type='serial' port='0'/>
|
||||
</console>
|
||||
<memballoon model='virtio'/>
|
||||
</devices>
|
||||
|
@ -28,7 +28,7 @@
|
||||
<console type='udp'>
|
||||
<source mode='bind' host='127.0.0.1' service='9999'/>
|
||||
<source mode='connect' host='127.0.0.1' service='9998'/>
|
||||
<target port='0'/>
|
||||
<target type='serial' port='0'/>
|
||||
</console>
|
||||
<memballoon model='virtio'/>
|
||||
</devices>
|
||||
|
@ -26,7 +26,7 @@
|
||||
</serial>
|
||||
<console type='unix'>
|
||||
<source mode='connect' path='/tmp/serial.sock'/>
|
||||
<target port='0'/>
|
||||
<target type='serial' port='0'/>
|
||||
</console>
|
||||
<memballoon model='virtio'/>
|
||||
</devices>
|
||||
|
@ -24,7 +24,7 @@
|
||||
<target port='0'/>
|
||||
</serial>
|
||||
<console type='vc'>
|
||||
<target port='0'/>
|
||||
<target type='serial' port='0'/>
|
||||
</console>
|
||||
<memballoon model='virtio'/>
|
||||
</devices>
|
||||
|
@ -24,7 +24,7 @@
|
||||
<target port='0'/>
|
||||
</serial>
|
||||
<console type='pty'>
|
||||
<target port='0'/>
|
||||
<target type='serial' port='0'/>
|
||||
</console>
|
||||
<memballoon model='virtio'/>
|
||||
</devices>
|
||||
|
@ -28,7 +28,7 @@
|
||||
<target dev='vif6.0'/>
|
||||
</interface>
|
||||
<console type='pty'>
|
||||
<target port='0'/>
|
||||
<target type='xen' port='0'/>
|
||||
</console>
|
||||
</devices>
|
||||
</domain>
|
||||
|
@ -28,7 +28,7 @@
|
||||
<target dev='vif5.0'/>
|
||||
</interface>
|
||||
<console type='pty'>
|
||||
<target port='0'/>
|
||||
<target type='xen' port='0'/>
|
||||
</console>
|
||||
<input type='mouse' bus='xen'/>
|
||||
<graphics type='vnc' port='-1' autoport='yes'/>
|
||||
|
@ -26,7 +26,7 @@
|
||||
<target dev='vif6.0'/>
|
||||
</interface>
|
||||
<console type='pty'>
|
||||
<target port='0'/>
|
||||
<target type='xen' port='0'/>
|
||||
</console>
|
||||
</devices>
|
||||
</domain>
|
||||
|
@ -21,7 +21,7 @@
|
||||
<target dev='xvda' bus='xen'/>
|
||||
</disk>
|
||||
<console type='pty'>
|
||||
<target port='0'/>
|
||||
<target type='xen' port='0'/>
|
||||
</console>
|
||||
</devices>
|
||||
</domain>
|
||||
|
@ -21,7 +21,7 @@
|
||||
<target dev='xvda' bus='xen'/>
|
||||
</disk>
|
||||
<console type='pty'>
|
||||
<target port='0'/>
|
||||
<target type='xen' port='0'/>
|
||||
</console>
|
||||
</devices>
|
||||
</domain>
|
||||
|
@ -21,7 +21,7 @@
|
||||
<target dev='xvda' bus='xen'/>
|
||||
</disk>
|
||||
<console type='pty'>
|
||||
<target port='0'/>
|
||||
<target type='xen' port='0'/>
|
||||
</console>
|
||||
</devices>
|
||||
</domain>
|
||||
|
@ -21,7 +21,7 @@
|
||||
<target dev='xvda' bus='xen'/>
|
||||
</disk>
|
||||
<console type='pty'>
|
||||
<target port='0'/>
|
||||
<target type='xen' port='0'/>
|
||||
</console>
|
||||
</devices>
|
||||
</domain>
|
||||
|
@ -39,7 +39,7 @@
|
||||
<target port='0'/>
|
||||
</serial>
|
||||
<console type='pty'>
|
||||
<target port='0'/>
|
||||
<target type='serial' port='0'/>
|
||||
</console>
|
||||
<input type='tablet' bus='usb'/>
|
||||
<input type='mouse' bus='ps2'/>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<target port='0'/>
|
||||
</serial>
|
||||
<console type='pty'>
|
||||
<target port='0'/>
|
||||
<target type='serial' port='0'/>
|
||||
</console>
|
||||
</devices>
|
||||
</domain>
|
||||
|
@ -41,7 +41,7 @@
|
||||
</serial>
|
||||
<console type='file'>
|
||||
<source path='/tmp/serial.log'/>
|
||||
<target port='0'/>
|
||||
<target type='serial' port='0'/>
|
||||
</console>
|
||||
<input type='mouse' bus='ps2'/>
|
||||
<graphics type='vnc' port='5901' autoport='no'/>
|
||||
|
@ -39,7 +39,7 @@
|
||||
<target port='0'/>
|
||||
</serial>
|
||||
<console type='null'>
|
||||
<target port='0'/>
|
||||
<target type='serial' port='0'/>
|
||||
</console>
|
||||
<input type='mouse' bus='ps2'/>
|
||||
<graphics type='vnc' port='5901' autoport='no'/>
|
||||
|
@ -41,7 +41,7 @@
|
||||
</serial>
|
||||
<console type='pipe'>
|
||||
<source path='/tmp/serial.pipe'/>
|
||||
<target port='0'/>
|
||||
<target type='serial' port='0'/>
|
||||
</console>
|
||||
<input type='mouse' bus='ps2'/>
|
||||
<graphics type='vnc' port='5901' autoport='no'/>
|
||||
|
@ -39,7 +39,7 @@
|
||||
<target port='0'/>
|
||||
</serial>
|
||||
<console type='pty'>
|
||||
<target port='0'/>
|
||||
<target type='serial' port='0'/>
|
||||
</console>
|
||||
<input type='mouse' bus='ps2'/>
|
||||
<graphics type='vnc' port='5901' autoport='no'/>
|
||||
|
@ -39,7 +39,7 @@
|
||||
<target port='0'/>
|
||||
</serial>
|
||||
<console type='stdio'>
|
||||
<target port='0'/>
|
||||
<target type='serial' port='0'/>
|
||||
</console>
|
||||
<input type='mouse' bus='ps2'/>
|
||||
<graphics type='vnc' port='5901' autoport='no'/>
|
||||
|
@ -43,7 +43,7 @@
|
||||
<console type='tcp'>
|
||||
<source mode='bind' host='localhost' service='9999'/>
|
||||
<protocol type='telnet'/>
|
||||
<target port='0'/>
|
||||
<target type='serial' port='0'/>
|
||||
</console>
|
||||
<input type='mouse' bus='ps2'/>
|
||||
<graphics type='vnc' port='5901' autoport='no'/>
|
||||
|
@ -43,7 +43,7 @@
|
||||
<console type='tcp'>
|
||||
<source mode='bind' host='localhost' service='9999'/>
|
||||
<protocol type='raw'/>
|
||||
<target port='0'/>
|
||||
<target type='serial' port='0'/>
|
||||
</console>
|
||||
<input type='mouse' bus='ps2'/>
|
||||
<graphics type='vnc' port='5901' autoport='no'/>
|
||||
|
@ -43,7 +43,7 @@
|
||||
<console type='udp'>
|
||||
<source mode='bind' host='localhost' service='9999'/>
|
||||
<source mode='connect' host='localhost' service='9998'/>
|
||||
<target port='0'/>
|
||||
<target type='serial' port='0'/>
|
||||
</console>
|
||||
<input type='mouse' bus='ps2'/>
|
||||
<graphics type='vnc' port='5901' autoport='no'/>
|
||||
|
@ -41,7 +41,7 @@
|
||||
</serial>
|
||||
<console type='unix'>
|
||||
<source mode='bind' path='/tmp/serial.sock'/>
|
||||
<target port='0'/>
|
||||
<target type='serial' port='0'/>
|
||||
</console>
|
||||
<input type='mouse' bus='ps2'/>
|
||||
<graphics type='vnc' port='5901' autoport='no'/>
|
||||
|
@ -27,7 +27,7 @@
|
||||
<target dev='vif6.0'/>
|
||||
</interface>
|
||||
<console type='pty'>
|
||||
<target port='0'/>
|
||||
<target type='xen' port='0'/>
|
||||
</console>
|
||||
</devices>
|
||||
</domain>
|
||||
|
@ -28,7 +28,7 @@
|
||||
<model type='e1000'/>
|
||||
</interface>
|
||||
<console type='pty'>
|
||||
<target port='0'/>
|
||||
<target type='xen' port='0'/>
|
||||
</console>
|
||||
</devices>
|
||||
</domain>
|
||||
|
@ -27,7 +27,7 @@
|
||||
<target dev='vif6.0'/>
|
||||
</interface>
|
||||
<console type='pty'>
|
||||
<target port='0'/>
|
||||
<target type='xen' port='0'/>
|
||||
</console>
|
||||
</devices>
|
||||
</domain>
|
||||
|
@ -38,7 +38,7 @@
|
||||
<target port='0'/>
|
||||
</serial>
|
||||
<console type='pty'>
|
||||
<target port='0'/>
|
||||
<target type='serial' port='0'/>
|
||||
</console>
|
||||
<input type='mouse' bus='ps2'/>
|
||||
<graphics type='vnc' port='-1' autoport='yes'/>
|
||||
|
@ -21,7 +21,7 @@
|
||||
<target dev='xvda' bus='xen'/>
|
||||
</disk>
|
||||
<console type='pty'>
|
||||
<target port='0'/>
|
||||
<target type='xen' port='0'/>
|
||||
</console>
|
||||
<hostdev mode='subsystem' type='pci' managed='no'>
|
||||
<source>
|
||||
|
@ -20,7 +20,7 @@
|
||||
<target dev='xvda' bus='xen'/>
|
||||
</disk>
|
||||
<console type='pty'>
|
||||
<target port='0'/>
|
||||
<target type='xen' port='0'/>
|
||||
</console>
|
||||
</devices>
|
||||
</domain>
|
||||
|
@ -21,7 +21,7 @@
|
||||
<target dev='xvda' bus='xen'/>
|
||||
</disk>
|
||||
<console type='pty'>
|
||||
<target port='0'/>
|
||||
<target type='xen' port='0'/>
|
||||
</console>
|
||||
</devices>
|
||||
</domain>
|
||||
|
@ -21,7 +21,7 @@
|
||||
<target dev='xvda' bus='xen'/>
|
||||
</disk>
|
||||
<console type='pty'>
|
||||
<target port='0'/>
|
||||
<target type='xen' port='0'/>
|
||||
</console>
|
||||
<input type='mouse' bus='xen'/>
|
||||
<graphics type='vnc' port='5925' autoport='no' listen='0.0.0.0' keymap='ja'/>
|
||||
|
@ -21,7 +21,7 @@
|
||||
<target dev='xvda' bus='xen'/>
|
||||
</disk>
|
||||
<console type='pty'>
|
||||
<target port='0'/>
|
||||
<target type='xen' port='0'/>
|
||||
</console>
|
||||
<input type='mouse' bus='xen'/>
|
||||
<graphics type='vnc' port='-1' autoport='yes' listen='0.0.0.0' keymap='ja'/>
|
||||
|
@ -21,7 +21,7 @@
|
||||
<target dev='xvda' bus='xen'/>
|
||||
</disk>
|
||||
<console type='pty'>
|
||||
<target port='0'/>
|
||||
<target type='xen' port='0'/>
|
||||
</console>
|
||||
<input type='mouse' bus='xen'/>
|
||||
<graphics type='vnc' port='-1' autoport='yes' listen='0.0.0.0' keymap='ja'/>
|
||||
|
@ -26,7 +26,7 @@
|
||||
<target dev='vif1.0'/>
|
||||
</interface>
|
||||
<console type='pty'>
|
||||
<target port='0'/>
|
||||
<target type='xen' port='0'/>
|
||||
</console>
|
||||
<input type='mouse' bus='xen'/>
|
||||
<graphics type='vnc' port='-1' autoport='yes'/>
|
||||
|
@ -21,7 +21,7 @@
|
||||
<target dev='xvda' bus='xen'/>
|
||||
</disk>
|
||||
<console type='pty'>
|
||||
<target port='0'/>
|
||||
<target type='xen' port='0'/>
|
||||
</console>
|
||||
</devices>
|
||||
</domain>
|
||||
|
@ -36,7 +36,7 @@
|
||||
</parallel>
|
||||
<console type='file'>
|
||||
<source path='[498076b2-02796c1a-ef5b-000ae484a6a3] virtMonServ1/serial1.file'/>
|
||||
<target port='0'/>
|
||||
<target type='serial' port='0'/>
|
||||
</console>
|
||||
</devices>
|
||||
</domain>
|
||||
|
@ -17,7 +17,7 @@
|
||||
</serial>
|
||||
<console type='dev'>
|
||||
<source path='/dev/ttyS0'/>
|
||||
<target port='0'/>
|
||||
<target type='serial' port='0'/>
|
||||
</console>
|
||||
</devices>
|
||||
</domain>
|
||||
|
@ -17,7 +17,7 @@
|
||||
</serial>
|
||||
<console type='file'>
|
||||
<source path='[datastore] directory/serial0.file'/>
|
||||
<target port='0'/>
|
||||
<target type='serial' port='0'/>
|
||||
</console>
|
||||
</devices>
|
||||
</domain>
|
||||
|
@ -17,7 +17,7 @@
|
||||
</serial>
|
||||
<console type='pipe'>
|
||||
<source path='serial0.pipe'/>
|
||||
<target port='0'/>
|
||||
<target type='serial' port='0'/>
|
||||
</console>
|
||||
</devices>
|
||||
</domain>
|
||||
|
@ -42,7 +42,7 @@
|
||||
</serial>
|
||||
<console type='file'>
|
||||
<source path='/tmp/serial.log'/>
|
||||
<target port='0'/>
|
||||
<target type='serial' port='0'/>
|
||||
</console>
|
||||
<input type='mouse' bus='ps2'/>
|
||||
<graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1' passwd='123poi'/>
|
||||
|
@ -40,7 +40,7 @@
|
||||
<target port='0'/>
|
||||
</serial>
|
||||
<console type='null'>
|
||||
<target port='0'/>
|
||||
<target type='serial' port='0'/>
|
||||
</console>
|
||||
<input type='mouse' bus='ps2'/>
|
||||
<graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1' passwd='123poi'/>
|
||||
|
@ -42,7 +42,7 @@
|
||||
</serial>
|
||||
<console type='pipe'>
|
||||
<source path='/tmp/serial.pipe'/>
|
||||
<target port='0'/>
|
||||
<target type='serial' port='0'/>
|
||||
</console>
|
||||
<input type='mouse' bus='ps2'/>
|
||||
<graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1' passwd='123poi'/>
|
||||
|
@ -40,7 +40,7 @@
|
||||
<target port='0'/>
|
||||
</serial>
|
||||
<console type='pty'>
|
||||
<target port='0'/>
|
||||
<target type='serial' port='0'/>
|
||||
</console>
|
||||
<input type='mouse' bus='ps2'/>
|
||||
<graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1' passwd='123poi'/>
|
||||
|
@ -40,7 +40,7 @@
|
||||
<target port='0'/>
|
||||
</serial>
|
||||
<console type='stdio'>
|
||||
<target port='0'/>
|
||||
<target type='serial' port='0'/>
|
||||
</console>
|
||||
<input type='mouse' bus='ps2'/>
|
||||
<graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1' passwd='123poi'/>
|
||||
|
@ -44,7 +44,7 @@
|
||||
<console type='tcp'>
|
||||
<source mode='bind' host='127.0.0.1' service='9999'/>
|
||||
<protocol type='telnet'/>
|
||||
<target port='0'/>
|
||||
<target type='serial' port='0'/>
|
||||
</console>
|
||||
<input type='mouse' bus='ps2'/>
|
||||
<graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1' passwd='123poi'/>
|
||||
|
@ -44,7 +44,7 @@
|
||||
<console type='tcp'>
|
||||
<source mode='connect' host='127.0.0.1' service='7777'/>
|
||||
<protocol type='raw'/>
|
||||
<target port='0'/>
|
||||
<target type='serial' port='0'/>
|
||||
</console>
|
||||
<input type='mouse' bus='ps2'/>
|
||||
<graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1' passwd='123poi'/>
|
||||
|
@ -44,7 +44,7 @@
|
||||
<console type='udp'>
|
||||
<source mode='bind' host='0.0.0.0' service='99998'/>
|
||||
<source mode='connect' host='127.0.0.1' service='9999'/>
|
||||
<target port='0'/>
|
||||
<target type='serial' port='0'/>
|
||||
</console>
|
||||
<input type='mouse' bus='ps2'/>
|
||||
<graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1' passwd='123poi'/>
|
||||
|
@ -42,7 +42,7 @@
|
||||
</serial>
|
||||
<console type='unix'>
|
||||
<source mode='bind' path='/tmp/serial.sock'/>
|
||||
<target port='0'/>
|
||||
<target type='serial' port='0'/>
|
||||
</console>
|
||||
<input type='mouse' bus='ps2'/>
|
||||
<graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1' passwd='123poi'/>
|
||||
|
@ -39,7 +39,7 @@
|
||||
<target port='0'/>
|
||||
</serial>
|
||||
<console type='pty'>
|
||||
<target port='0'/>
|
||||
<target type='serial' port='0'/>
|
||||
</console>
|
||||
<input type='mouse' bus='ps2'/>
|
||||
<graphics type='vnc' port='-1' autoport='yes'/>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<model type='e1000'/>
|
||||
</interface>
|
||||
<console type='pty'>
|
||||
<target port='0'/>
|
||||
<target type='xen' port='0'/>
|
||||
</console>
|
||||
<input type='mouse' bus='xen'/>
|
||||
<graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1' passwd='123poi'/>
|
||||
|
@ -26,7 +26,7 @@
|
||||
<model type='e1000'/>
|
||||
</interface>
|
||||
<console type='pty'>
|
||||
<target port='0'/>
|
||||
<target type='xen' port='0'/>
|
||||
</console>
|
||||
<input type='mouse' bus='xen'/>
|
||||
<graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1' passwd='123poi'/>
|
||||
|
@ -24,7 +24,7 @@
|
||||
<script path='vif-bridge'/>
|
||||
</interface>
|
||||
<console type='pty'>
|
||||
<target port='0'/>
|
||||
<target type='xen' port='0'/>
|
||||
</console>
|
||||
<input type='mouse' bus='xen'/>
|
||||
<graphics type='vnc' port='5925' autoport='no' listen='127.0.0.1' passwd='123poi'/>
|
||||
|
@ -24,7 +24,7 @@
|
||||
<script path='vif-bridge'/>
|
||||
</interface>
|
||||
<console type='pty'>
|
||||
<target port='0'/>
|
||||
<target type='xen' port='0'/>
|
||||
</console>
|
||||
<input type='mouse' bus='xen'/>
|
||||
<graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1' passwd='123poi'/>
|
||||
|
@ -24,7 +24,7 @@
|
||||
<script path='vif-bridge'/>
|
||||
</interface>
|
||||
<console type='pty'>
|
||||
<target port='0'/>
|
||||
<target type='xen' port='0'/>
|
||||
</console>
|
||||
<input type='mouse' bus='xen'/>
|
||||
<graphics type='vnc' port='5925' autoport='no' listen='127.0.0.1' passwd='123poi'/>
|
||||
|
@ -24,7 +24,7 @@
|
||||
<script path='vif-bridge'/>
|
||||
</interface>
|
||||
<console type='pty'>
|
||||
<target port='0'/>
|
||||
<target type='xen' port='0'/>
|
||||
</console>
|
||||
<input type='mouse' bus='xen'/>
|
||||
<graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1' passwd='123poi'/>
|
||||
|
@ -39,7 +39,7 @@
|
||||
<target port='0'/>
|
||||
</serial>
|
||||
<console type='pty'>
|
||||
<target port='0'/>
|
||||
<target type='serial' port='0'/>
|
||||
</console>
|
||||
<input type='mouse' bus='ps2'/>
|
||||
<graphics type='vnc' port='-1' autoport='yes'/>
|
||||
|
Loading…
Reference in New Issue
Block a user