On Sun, 2013-07-21 at 13:49 -0400, Andrew Cathrow wrote:
> ----- Original Message -----
>
> > From: "Dean Hunter" <deanhunter@comcast.net>
> > To: libvirt-users@redhat.com
> > Sent: Sunday, July 21, 2013 1:41:16 PM
> > Subject: [libvirt-users] Clipboard
>
> > I am unable to cut and paste between a Fedora 19 host and a Fedora 19
> > guest.
>
> > Am I doing something wrong or is this a known problem that I have not
> > been able to find?
>
> 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.
>
>
> > _______________________________________________
> > libvirt-users mailing list
> > libvirt-users@redhat.com
> > https://www.redhat.com/mailman/listinfo/libvirt-users
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.
virt-install \
--autostart \
--channel
unix,path=/var/lib/libvirt/qemu/guest.agent,mode=bind,target_type=virtio,name=org.qemu.guest_agent.0
\
--connect qemu:///system \
--disk vol=Guests/$domain \
--extra-args "inst.ks=file:/$(basename $kickstart)" \
--graphics spice \
--initrd-inject $kickstart \
--location http://192.168.$subnet.10/repos/fedora$releasever/iso
\
--name $domain \
--network network=Subnet$subnet \
--noautoconsole \
--os-type linux \
--os-variant fedora18 \
--ram 2048 \
--vcpus 2
Here is the XML definition of the virtual machine:
<domain type='kvm' id='6'>
<name>Desktop</name>
<uuid>bc868fd8-62a3-a05c-f62a-3983e72c1aa6</uuid>
<memory unit='KiB'>2097152</memory>
<currentMemory unit='KiB'>2097152</currentMemory>
<vcpu placement='static'>2</vcpu>
<resource>
<partition>/machine</partition>
</resource>
<os>
<type arch='x86_64' machine='pc-1.2'>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/bin/qemu-kvm</emulator>
<disk type='block' device='disk'>
<driver name='qemu' type='raw'/>
<source dev='/dev/Guests/Desktop'/>
<target dev='vda' bus='virtio'/>
<alias name='virtio-disk0'/>
<address type='pci' domain='0x0000' bus='0x00'
slot='0x05'
function='0x0'/>
</disk>
<disk type='block' device='cdrom'>
<driver name='qemu' type='raw'/>
<target dev='hdc' bus='ide'/>
<readonly/>
<alias name='ide0-1-0'/>
<address type='drive' controller='0' bus='1'
target='0' unit='0'/>
</disk>
<controller type='usb' index='0'>
<alias name='usb0'/>
<address type='pci' domain='0x0000' bus='0x00'
slot='0x01'
function='0x2'/>
</controller>
<controller type='ide' index='0'>
<alias name='ide0'/>
<address type='pci' domain='0x0000' bus='0x00'
slot='0x01'
function='0x1'/>
</controller>
<controller type='virtio-serial' index='0'>
<alias name='virtio-serial0'/>
<address type='pci' domain='0x0000' bus='0x00'
slot='0x04'
function='0x0'/>
</controller>
<controller type='pci' index='0'
model='pci-root'>
<alias name='pci0'/>
</controller>
<interface type='network'>
<mac address='52:54:00:cf:a2:22'/>
<source network='Subnet1'/>
<target dev='vnet1'/>
<model type='virtio'/>
<alias name='net0'/>
<address type='pci' domain='0x0000' bus='0x00'
slot='0x03'
function='0x0'/>
</interface>
<serial type='pty'>
<source path='/dev/pts/2'/>
<target port='0'/>
<alias name='serial0'/>
</serial>
<console type='pty' tty='/dev/pts/2'>
<source path='/dev/pts/2'/>
<target type='serial' port='0'/>
<alias name='serial0'/>
</console>
<channel type='unix'>
<source mode='bind'
path='/var/lib/libvirt/qemu/guest.agent'/>
<target type='virtio'
name='org.qemu.guest_agent.0'/>
<alias name='channel0'/>
<address type='virtio-serial' controller='0'
bus='0' port='1'/>
</channel>
<channel type='spicevmc'>
<target type='virtio' name='com.redhat.spice.0'/>
<alias name='channel1'/>
<address type='virtio-serial' controller='0'
bus='0' port='2'/>
</channel>
<input type='tablet' bus='usb'>
<alias name='input0'/>
</input>
<input type='mouse' bus='ps2'/>
<graphics type='spice' port='5901' autoport='yes'
listen='127.0.0.1'>
<listen type='address' address='127.0.0.1'/>
</graphics>
<video>
<model type='qxl' ram='65536' vram='65536'
heads='1'/>
<alias name='video0'/>
<address type='pci' domain='0x0000' bus='0x00'
slot='0x02'
function='0x0'/>
</video>
<memballoon model='virtio'>
<alias name='balloon0'/>
<address type='pci' domain='0x0000' bus='0x00'
slot='0x06'
function='0x0'/>
</memballoon>
</devices>
<seclabel type='dynamic' model='selinux'
relabel='yes'>
<label>system_u:system_r:svirt_t:s0:c665,c969</label>
<imagelabel>system_u:object_r:svirt_image_t:s0:c665,c969</imagelabel>
</seclabel>
</domain>