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).
64 lines
2.3 KiB
XML
64 lines
2.3 KiB
XML
<domain type='qemu'>
|
|
<name>vagrant-libvirt_default</name>
|
|
<uuid>881a931b-0110-4d10-81aa-47a1a19f5726</uuid>
|
|
<description>Source: /home/test/vagrant-libvirt/Vagrantfile</description>
|
|
<memory unit='KiB'>2097152</memory>
|
|
<currentMemory unit='KiB'>2097152</currentMemory>
|
|
<vcpu placement='static'>2</vcpu>
|
|
<os>
|
|
<type arch='x86_64' machine='pc-i440fx-6.0'>hvm</type><loader type='pflash'>/path/to/loader/file</loader><nvram>/path/to/nvram/file</nvram>
|
|
<bootmenu enable='no'/>
|
|
<boot dev='hd'/>
|
|
</os>
|
|
<features>
|
|
<acpi/>
|
|
<apic/>
|
|
<pae/>
|
|
</features>
|
|
<cpu check='partial' mode='host-model'/>
|
|
<clock offset='utc'/>
|
|
<on_poweroff>destroy</on_poweroff>
|
|
<on_reboot>restart</on_reboot>
|
|
<on_crash>destroy</on_crash>
|
|
<devices>
|
|
<emulator>/usr/bin/qemu-system-x86_64</emulator>
|
|
<disk device='disk' type='file'>
|
|
<driver name='qemu' type='qcow2'/>
|
|
<source file='/var/lib/libvirt/images/vagrant-libvirt_default.img'/>
|
|
<target bus='virtio' dev='vda'/>
|
|
<address bus='0x00' domain='0x0000' function='0x0' slot='0x03' type='pci'/>
|
|
</disk>
|
|
<controller index='0' model='piix3-uhci' type='usb'>
|
|
<address bus='0x00' domain='0x0000' function='0x2' slot='0x01' type='pci'/>
|
|
</controller>
|
|
<controller index='0' model='pci-root' type='pci'/>
|
|
<interface type='network'>
|
|
<mac address='52:54:00:7d:14:0e'/>
|
|
<source network='vagrant-libvirt'/>
|
|
<model type='virtio'/>
|
|
<address bus='0x00' domain='0x0000' function='0x0' slot='0x05' type='pci'/>
|
|
</interface>
|
|
<serial type='pty'>
|
|
<target port='0' type='isa-serial'>
|
|
<model name='isa-serial'/>
|
|
</target>
|
|
</serial>
|
|
<console type='pty'>
|
|
<target port='0' type='serial'/>
|
|
</console>
|
|
<input bus='ps2' type='mouse'/>
|
|
<input bus='ps2' type='keyboard'/>
|
|
<graphics autoport='yes' keymap='en-us' listen='127.0.0.1' port='-1' type='vnc' websocket='-1'>
|
|
<listen address='127.0.0.1' type='address'/>
|
|
</graphics>
|
|
<audio id='1' type='none'/>
|
|
<video>
|
|
<model heads='1' primary='yes' type='cirrus' vram='16384'/>
|
|
<address bus='0x00' domain='0x0000' function='0x0' slot='0x02' type='pci'/>
|
|
</video>
|
|
<memballoon model='virtio'>
|
|
<address bus='0x00' domain='0x0000' function='0x0' slot='0x04' type='pci'/>
|
|
</memballoon>
|
|
</devices>
|
|
</domain>
|