<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: arial,helvetica,sans-serif; font-size: 10pt; color: #000000'>is spice-vdagent installed and running in the VM?<br><br><hr id="zwchr"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"Dean Hunter" <deanhunter@comcast.net><br><b>To: </b>"Andrew Cathrow" <acathrow@redhat.com><br><b>Cc: </b>libvirt-users@redhat.com<br><b>Sent: </b>Sunday, July 21, 2013 2:27:41 PM<br><b>Subject: </b>Re: [libvirt-users] Clipboard<br><br>


  
  


On Sun, 2013-07-21 at 13:49 -0400, Andrew Cathrow wrote:
<blockquote>
<pre>----- Original Message ----- 

<font color="#737373">> From: "Dean Hunter" <<a href="mailto:deanhunter@comcast.net" target="_blank">deanhunter@comcast.net</a>></font>
<font color="#737373">> To: <a href="mailto:libvirt-users@redhat.com" target="_blank">libvirt-users@redhat.com</a></font>
<font color="#737373">> Sent: Sunday, July 21, 2013 1:41:16 PM</font>
<font color="#737373">> Subject: [libvirt-users] Clipboard</font>

<font color="#737373">> I am unable to cut and paste between a Fedora 19 host and a Fedora 19</font>
<font color="#737373">> guest.</font>

<font color="#737373">> Am I doing something wrong or is this a known problem that I have not</font>
<font color="#737373">> been able to find?</font>

It's hard to say with the level of details you have here.

If you're using the spice protocol and you have the guest agent (spice-vdagent) installed inside the VM then you'll be able to cut and paste in graphical consoles.


<font color="#737373">> _______________________________________________</font>
<font color="#737373">> libvirt-users mailing list</font>
<font color="#737373">> <a href="mailto:libvirt-users@redhat.com" target="_blank">libvirt-users@redhat.com</a></font>
<font color="#737373">> <a href="https://www.redhat.com/mailman/listinfo/libvirt-users" target="_blank">https://www.redhat.com/mailman/listinfo/libvirt-users</a></font>
</pre>
</blockquote>
<br>
Oops, I apologize. I am using virt-install as follows to create the virtual machines and I am connecting to the virtual machines from a different physical machine using virt-manager or virt-viewer via SSH. I thought this combination was sharing the clipboard when everything was on Fedora 18, but since upgrading to Fedora 19 the clipboard does not seem to be shared.<br>
<br>
      virt-install \<br>
        --autostart \<br>
        --channel unix,path=/var/lib/libvirt/qemu/guest.agent,mode=bind,target_type=virtio,name=org.qemu.guest_agent.0 \<br>
        --connect qemu:///system \<br>
        --disk vol=Guests/$domain \<br>
        --extra-args "inst.ks=file:/$(basename $kickstart)" \<br>
        --graphics spice \<br>
        --initrd-inject $kickstart \<br>
        --location http://192.168.$subnet.10/repos/fedora$releasever/iso \<br>
        --name $domain \<br>
        --network network=Subnet$subnet \<br>
        --noautoconsole \<br>
        --os-type linux \<br>
        --os-variant fedora18 \<br>
        --ram 2048 \<br>
        --vcpus 2<br>
<br>
Here is the XML definition of the virtual machine:<br>
<br>
<domain type='kvm' id='6'><br>
  <name>Desktop</name><br>
  <uuid>bc868fd8-62a3-a05c-f62a-3983e72c1aa6</uuid><br>
  <memory unit='KiB'>2097152</memory><br>
  <currentMemory unit='KiB'>2097152</currentMemory><br>
  <vcpu placement='static'>2</vcpu><br>
  <resource><br>
    <partition>/machine</partition><br>
  </resource><br>
  <os><br>
    <type arch='x86_64' machine='pc-1.2'>hvm</type><br>
    <boot dev='hd'/><br>
  </os><br>
  <features><br>
    <acpi/><br>
    <apic/><br>
    <pae/><br>
  </features><br>
  <clock offset='utc'/><br>
  <on_poweroff>destroy</on_poweroff><br>
  <on_reboot>restart</on_reboot><br>
  <on_crash>restart</on_crash><br>
  <devices><br>
    <emulator>/usr/bin/qemu-kvm</emulator><br>
    <disk type='block' device='disk'><br>
      <driver name='qemu' type='raw'/><br>
      <source dev='/dev/Guests/Desktop'/><br>
      <target dev='vda' bus='virtio'/><br>
      <alias name='virtio-disk0'/><br>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/><br>
    </disk><br>
    <disk type='block' device='cdrom'><br>
      <driver name='qemu' type='raw'/><br>
      <target dev='hdc' bus='ide'/><br>
      <readonly/><br>
      <alias name='ide0-1-0'/><br>
      <address type='drive' controller='0' bus='1' target='0' unit='0'/><br>
    </disk><br>
    <controller type='usb' index='0'><br>
      <alias name='usb0'/><br>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/><br>
    </controller><br>
    <controller type='ide' index='0'><br>
      <alias name='ide0'/><br>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/><br>
    </controller><br>
    <controller type='virtio-serial' index='0'><br>
      <alias name='virtio-serial0'/><br>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/><br>
    </controller><br>
    <controller type='pci' index='0' model='pci-root'><br>
      <alias name='pci0'/><br>
    </controller><br>
    <interface type='network'><br>
      <mac address='52:54:00:cf:a2:22'/><br>
      <source network='Subnet1'/><br>
      <target dev='vnet1'/><br>
      <model type='virtio'/><br>
      <alias name='net0'/><br>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/><br>
    </interface><br>
    <serial type='pty'><br>
      <source path='/dev/pts/2'/><br>
      <target port='0'/><br>
      <alias name='serial0'/><br>
    </serial><br>
    <console type='pty' tty='/dev/pts/2'><br>
      <source path='/dev/pts/2'/><br>
      <target type='serial' port='0'/><br>
      <alias name='serial0'/><br>
    </console><br>
    <channel type='unix'><br>
      <source mode='bind' path='/var/lib/libvirt/qemu/guest.agent'/><br>
      <target type='virtio' name='org.qemu.guest_agent.0'/><br>
      <alias name='channel0'/><br>
      <address type='virtio-serial' controller='0' bus='0' port='1'/><br>
    </channel><br>
    <channel type='spicevmc'><br>
      <target type='virtio' name='com.redhat.spice.0'/><br>
      <alias name='channel1'/><br>
      <address type='virtio-serial' controller='0' bus='0' port='2'/><br>
    </channel><br>
    <input type='tablet' bus='usb'><br>
      <alias name='input0'/><br>
    </input><br>
    <input type='mouse' bus='ps2'/><br>
    <graphics type='spice' port='5901' autoport='yes' listen='127.0.0.1'><br>
      <listen type='address' address='127.0.0.1'/><br>
    </graphics><br>
    <video><br>
      <model type='qxl' ram='65536' vram='65536' heads='1'/><br>
      <alias name='video0'/><br>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/><br>
    </video><br>
    <memballoon model='virtio'><br>
      <alias name='balloon0'/><br>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/><br>
    </memballoon><br>
  </devices><br>
  <seclabel type='dynamic' model='selinux' relabel='yes'><br>
    <label>system_u:system_r:svirt_t:s0:c665,c969</label><br>
    <imagelabel>system_u:object_r:svirt_image_t:s0:c665,c969</imagelabel><br>
  </seclabel><br>
</domain><br>
<br>
<br>


</blockquote><br></div></body></html>