SPICE Server2011/03/16 |
Install Desktop Virtualization "SPICE ( Simple Protocol for Independent Computing Environment )".
It's possible to connect to virtual machines from remote client computer.
|
|
[1] | Install SPICE Server if it's not installed yet. ( Normally it's already installed with KVM for dependency ) |
[root@dlp ~]# yum -y install spice-server |
[2] | Edit existing virtual machine's xml-file and start virtual machine with SPICE. This site's example has created virtual machine without graphics, so it's OK to change settings like follows, but if you created virtual machine with graphics, Remove "<graphics>***" and "<video>***" sections in xml file because qxl is used for graphics. |
[root@dlp ~]# virsh edit www # edit the configration for a virtual machine "www" <domain type='kvm'> <name>www</name> <uuid>93702ee2-f5fc-8e29-18f5-7098b7f1afa0</uuid> <memory>1048576</memory> <currentMemory>1048576</currentMemory> <vcpu>2</vcpu> <os> <type arch='x86_64' machine='rhel6.0.0'>hvm</type> <boot dev='hd'/> </os> <features> <acpi/> <apic/> <pae/> </features> <clock offset='utc'/> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>restart</on_crash> <devices> <emulator>/usr/libexec/qemu-kvm</emulator> <disk type='file' device='disk'> <driver name='qemu' type='raw' cache='none'/> <source file='/var/kvm/images/www.img'/> <target dev='vda' bus='virtio'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </disk> <interface type='bridge'> <mac address='52:54:00:bc:8f:f3'/> <source bridge='br0'/> <model type='virtio'/> # if there is a section "slot='0x02'", change to another empty number because 2 is used by graphics <address type='pci' domain='0x0000' bus='0x00' slot=' 0x05 ' function='0x0'/></interface> <serial type='pty'> <target port='0'/> </serial> <console type='pty'> <target port='0'/> </console> <input type='tablet' bus='usb'/> # add <graphics type='spice' port='5930' autoport='no' listen='0.0.0.0'/> <video> <model type='qxl' vram='32768' heads='1'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> </video> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </memballoon> </devices> </domain> Domain www XML configuration edited. [root@dlp ~]# virsh start www # start virtual machine Domain www started |
[3] | Configuration is all OK.
See next page to connect to SPICE server from SPICE client.
|
Sponsored Link |
|