Fedora 21
Sponsored Link

SPICE Server
2014/12/25
 
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 spice-protocol

[2] Edit existing virtual machine's xml-file and start virtual machine with SPICE like follows. This site's example has created a virtual machine without graphics, so it's OK to change settings like follows, but if you created virtual machine with a graphics, Remove "<graphics>***" and "<video>***" sections in xml file because qxl is used for graphics.
# edit the configration of "fedora21"

[root@dlp ~]#
virsh edit fedora21
<domain type='kvm'>
  <name>fedora21</name>
  <uuid>ae4e5582-492a-4292-8da2-48320a7816e6</uuid>
  <memory unit='KiB'>4194304</memory>
  <currentMemory unit='KiB'>4194304</currentMemory>
  <vcpu placement='static'>2</vcpu>
  .
  .
  .
     
# add follows

     
# set any password for "passwd=***" section

     
# specify a uniq number for the section "slot='0x**'"

    <graphics type='spice' port='5930' autoport='no' listen='0.0.0.0' passwd='password'>
      <listen type='address' address='0.0.0.0'/>
    </graphics>
    <sound model='ac97'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
    </sound>
    <video>
      <model type='qxl' ram='65536' vram='32768' heads='1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
    </video>
    <memballoon model='virtio'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
    </memballoon>
  </devices>
</domain>

Domain fedora21 XML configuration edited.

[root@dlp ~]#
virsh start fedora21
# start VM

Domain fedora21 started
[3]
Matched Content
 
Tweet