Change in vdsm[master]: Add support for redir devices

danken at redhat.com danken at redhat.com
Wed May 16 14:54:58 UTC 2012


Dan Kenigsberg has submitted this change and it was merged.

Change subject: Add support for redir devices
......................................................................


Add support for redir devices

With this patch it is possible to create vms setup for usb redirection with
vdsm, ie:

vdsClient 0 create /dev/null \
    vmId=00000001-0002-0003-0004-000000000006 vmName=F14-x86_64 memSize=512 \
    macAddr=52:54:00:7a:b4:7e nicModel=virtio bridge=test display=qxl \
    spiceDisableTicketing=1 \
    devices='{type:disk,device:disk,path:/home/virt-images/f14-i386.qcow2.img,propagateErrors:off,iface:ide,index:0,readonly:False,format:cow}' \
    devices='{type:video,device:qxl,specParams:{vram:65536},address:{type:pci,domain:0x0000,bus:0x00,slot:0x02,function:0x0}}' \
    devices='{type:controller,device:virtio-serial,address:{type:pci,domain:0x0000,bus:0x00,slot:0x03,function:0x0}}' \
    devices='{type:controller,device:usb,model:ich9-ehci1,address:{type:pci,domain:0x0000,bus:0x00,slot:0x04,function:0x7}}' \
    devices='{type:controller,device:usb,model:ich9-uhci1,master:{startport:0},address:{type:pci,domain:0x0000,bus:0x00,slot:0x04,function:0x0,multifunction:on}}' \
    devices='{type:controller,device:usb,model:ich9-uhci2,master:{startport:2},address:{type:pci,domain:0x0000,bus:0x00,slot:0x04,function:0x1}}' \
    devices='{type:controller,device:usb,model:ich9-uhci3,master:{startport:4},address:{type:pci,domain:0x0000,bus:0x00,slot:0x04,function:0x2}}' \
    devices='{type:redir,device:spicevmc,bus:usb,address:{type:usb,bus:0,port:1}}' \
    devices='{type:redir,device:spicevmc,bus:usb,address:{type:usb,bus:0,port:2}}' \
    devices='{type:redir,device:spicevmc,bus:usb,address:{type:usb,bus:0,port:3}}' \

Change-Id: Ia91922a0f34cb4b32efa2c6397d13fe59aec04e7
Signed-off-by: Hans de Goede <hdegoede at redhat.com>
---
M vdsm/libvirtvm.py
M vdsm/vm.py
2 files changed, 18 insertions(+), 3 deletions(-)

Approvals:
  Gal Hammer: Looks good to me, but someone else must approve
  Dan Kenigsberg: Verified; Looks good to me, approved
  Igor Lvovsky: Looks good to me, but someone else must approve
  Oved Ourfali: Looks good to me, but someone else must approve


--
To view, visit http://gerrit.ovirt.org/4133
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ia91922a0f34cb4b32efa2c6397d13fe59aec04e7
Gerrit-PatchSet: 3
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Hans De Goede <hdegoede at redhat.com>
Gerrit-Reviewer: Dan Kenigsberg <danken at redhat.com>
Gerrit-Reviewer: Eli Mesika <emesika at redhat.com>
Gerrit-Reviewer: Gal Hammer <ghammer at redhat.com>
Gerrit-Reviewer: Hans De Goede <hdegoede at redhat.com>
Gerrit-Reviewer: Igor Lvovsky <ilvovsky at redhat.com>
Gerrit-Reviewer: Oved Ourfali <oourfali at redhat.com>


More information about the vdsm-patches mailing list