Ubuntu now comes with spice-vdagent pre-installed. For automatic resizing (of resolution) change video from QXL to Virtio.