mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
This adds websocket functionality for VNC. The websocket attribute may be used to specify the port to listen on (with -1 meaning auto-allocation and autoport having no effect due to security reasons).
47 lines
1.1 KiB
XML
47 lines
1.1 KiB
XML
<domain type='' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
|
|
<name></name>
|
|
<title></title>
|
|
<description></description>
|
|
<uuid></uuid>
|
|
<memory></memory>
|
|
<vcpu>1</vcpu>
|
|
<cpu mode='host-model'>
|
|
<model fallback='allow'></model>
|
|
</cpu>
|
|
<os>
|
|
<type>hvm</type>
|
|
<bootmenu enable='no'/>
|
|
<kernel></kernel>
|
|
<initrd></initrd>
|
|
<cmdline></cmdline>
|
|
</os>
|
|
<features>
|
|
<acpi/>
|
|
<apic/>
|
|
<pae/>
|
|
</features>
|
|
<clock offset='utc'>
|
|
</clock>
|
|
<devices>
|
|
<disk type='file' device='disk'>
|
|
<alias name='ua-box-volume-0'/>
|
|
<driver name='qemu' type='qcow2' cache='unsafe'/>
|
|
<source file='/var/lib/libvirt/images/test.qcow2'/>
|
|
<target dev='vda' bus='scsi'/>
|
|
</disk>
|
|
<controller type='scsi' model='virtio-scsi' index='0'/>
|
|
<serial type='pty'>
|
|
<target port='0'/>
|
|
</serial>
|
|
<console type='pty'>
|
|
<target port='0'/>
|
|
</console>
|
|
<input type='mouse' bus='ps2'>
|
|
</input>
|
|
<graphics type='vnc' port='-1' autoport='yes' websocket='-1' listen='127.0.0.1' keymap='en-us'/>
|
|
<video>
|
|
<model type='cirrus' vram='16384' heads='1'/>
|
|
</video>
|
|
</devices>
|
|
</domain>
|