<div>Hi All,</div><div> </div><div>I want to attach the GPU during VM deployment using Xen hypervisor. I did a dump XML on the working VM with GPU attached and put the attributes in the RAW section of my VM template as below: (i am using opennebula 3.6)<br>
------------------------------------<br>RAW=[<br> TYPE=xen, <br> data = "<devices><hostdev mode=\"subsystem\",type=\"pci\",managed=\"no\"><source><address domain=\"0x0000\",bus=\"0x03\",slot=\"0x00\",function=\"0x0\"/></source></hostdev></devices>"<br>
]<br>----------------------------------------<br><br>However, this is not successful and the error log is:<br>--------------------------------------------<br>Wed Sep 5 14:42:30 2012 [DiM][I]: New VM state is ACTIVE.<br>Wed Sep 5 14:42:30 2012 [LCM][I]: New VM state is PROLOG.<br>
Wed Sep 5 14:42:31 2012 [TM][I]: clone: Cloning ../../1/a8caf58f4964046e788b94f35c6331ec in <host ip>:/srv/cloud/one/var//datastores/0/80/disk.0<br>Wed Sep 5 14:42:31 2012 [TM][I]: ExitCode: 0<br>Wed Sep 5 14:42:32 2012 [TM][I]: context: Generating context block device at 10.1.32.201:/srv/cloud/one/var//datastores/0/80/disk.1<br>
Wed Sep 5 14:42:32 2012 [TM][I]: ExitCode: 0<br>Wed Sep 5 14:42:32 2012 [LCM][I]: New VM state is BOOT<br>Wed Sep 5 14:42:32 2012 [VMM][I]: Generating deployment file: /srv/cloud/one/var/80/deployment.0<br>Wed Sep 5 14:42:32 2012 [VMM][I]: ExitCode: 0<br>
Wed Sep 5 14:42:32 2012 [VMM][I]: Successfully execute network driver operation: pre.<br>Wed Sep 5 14:42:33 2012 [VMM][I]: Command execution fail: cat << EOT | /var/tmp/one/vmm/xen/deploy /srv/cloud/one/var//datastores/0/80/deployment.0 <host ip> 80 <host ip><br>
Wed Sep 5 14:42:33 2012 [VMM][I]: Error: Errors were found at line 13 while processing /srv/cloud/one/var//datastores/0/80/deployment.0:<br>Wed Sep 5 14:42:33 2012 [VMM][I]: <devices><hostdev mode="subsystem",type="pci",managed="no"><source><address domain="0x0000",bus="0x03",slot="0x00",function="0x0"/></source></hostdev></devices><br>
Wed Sep 5 14:42:33 2012 [VMM][I]: <br>Wed Sep 5 14:42:33 2012 [VMM][E]: Unable<br>Wed Sep 5 14:42:33 2012 [VMM][I]: ExitCode: 1<br>Wed Sep 5 14:42:33 2012 [VMM][I]: Failed to execute virtualization driver operation: deploy.<br>
Wed Sep 5 14:42:33 2012 [VMM][E]: Error deploying virtual machine: Unable<br>Wed Sep 5 14:42:33 2012 [DiM][I]: New VM state is FAILED<br>--------------------------------------<br><br>The deployment file is:<br>----------------------------------<br>
name = 'one-80'<br>#O CPU_CREDITS = 256<br>memory = '1024'<br>bootloader = "hvmloader"<br>disk = [<br> 'file:/srv/cloud/one/var//datastores/0/80/disk.0,xvda,w',<br> 'file:/srv/cloud/one/var//datastores/0/80/disk.1,xvdb,r',<br>
]<br>vif = [<br> ' mac=02:00:0a:01:20:0b,ip=<host ip>,bridge=br0',<br>]<br>vfb = ['type=vnc,vnclisten=0.0.0.0,vncdisplay=80']<br><devices><hostdev mode="subsystem",type="pci",managed="no"><source><address domain="0x0000",bus="0x03",slot="0x00",function="0x0"/></source></hostdev></devices><br>
-------------------------------------<br><br>You can see that the error is at line 13. So is there a way for me to pass this through the RAW section or does anyone have an idea on how to do this?<br><br>thanks and regards<br>
yasz<br><br><br><br></div>
<div> </div><div> </div>