<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/4.6.5">
</HEAD>
<BODY>
On Sun, 2013-07-21 at 13:49 -0400, Andrew Cathrow wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
----- Original Message ----- 

<FONT COLOR="#737373">> From: "Dean Hunter" <<A HREF="mailto:deanhunter@comcast.net">deanhunter@comcast.net</A>></FONT>
<FONT COLOR="#737373">> To: <A HREF="mailto:libvirt-users@redhat.com">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">libvirt-users@redhat.com</A></FONT>
<FONT COLOR="#737373">> <A HREF="https://www.redhat.com/mailman/listinfo/libvirt-users">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>
</BODY>
</HTML>