mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-24 21:34:47 +03:00
a0b42327c6
Instead of duplicating the code into CLI and GUI move it into graphics device file which is used from both places. This also fixes a bug in virt-xml where changing listen to address was not working. This also changes behavior to always configure one listen type when using CLI listen option or GUI. If user wants to modify only specific listen type they can use listens[] options from CLI. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1565968 Reviewed-by: Cole Robinson <crobinso@redhat.com> Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
53 lines
1.8 KiB
XML
53 lines
1.8 KiB
XML
<domain type="xen">
|
|
<name>TestGuest</name>
|
|
<currentMemory>204800</currentMemory>
|
|
<memory>409600</memory>
|
|
<uuid>12345678-1234-1234-1234-123456789012</uuid>
|
|
<description>foooo barrrr somedesc</description>
|
|
<os>
|
|
<type arch="i686">hvm</type>
|
|
<loader>/usr/lib/xen/boot/hvmloader</loader>
|
|
<boot dev="hd"/>
|
|
</os>
|
|
<features>
|
|
<acpi/><apic/>
|
|
</features>
|
|
<clock offset="localtime"/>
|
|
<on_poweroff>destroy</on_poweroff>
|
|
<on_reboot>restart</on_reboot>
|
|
<on_crash>destroy</on_crash>
|
|
<vcpu>5</vcpu>
|
|
<devices>
|
|
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
|
<disk type="block" device="floppy">
|
|
<source dev="/dev/null"/>
|
|
<target dev="fda" bus="fdc"/>
|
|
</disk>
|
|
<graphics type="vnc" passwd="newpass" port="6000" listen="1.2.3.4" keymap="en-us"/>
|
|
<graphics type="vnc" xauth="fooauth" display="6:1"/>
|
|
<graphics type="vnc"/>
|
|
<graphics type="vnc" port="-1" socket="/var/lib/libvirt/socket/foo"/>
|
|
<graphics type="vnc" autoport="no">
|
|
<listen type="network" network="mynewnet"/>
|
|
</graphics>
|
|
<graphics type="spice" passwd="newpass" port="6000" tlsPort="6001" listen="1.2.3.4" passwdValidTo="2011-01-07T19:08:00" connected="disconnect" defaultMode="secure">
|
|
<channel name="inputs" mode="secure"/>
|
|
<channel name="main" mode="any"/>
|
|
<channel name="record" mode="insecure"/>
|
|
<channel name="cursor" mode="any"/>
|
|
<channel name="playback" mode="insecure"/>
|
|
<channel name="display" mode="secure"/>
|
|
<gl enable="yes" rendernode="/dev/dri/foo"/>
|
|
<image compression="auto_glz"/>
|
|
<streaming mode="filter"/>
|
|
<clipboard copypaste="yes"/>
|
|
<mouse mode="client"/>
|
|
<filetransfer enable="no"/>
|
|
</graphics>
|
|
</devices>
|
|
<seclabel type="static" model="selinux">
|
|
<label>foolabel</label>
|
|
<imagelabel>imagelabel</imagelabel>
|
|
</seclabel>
|
|
</domain>
|