GitHub user tdtmusic2 edited a discussion: VM on Xen - weird ISO issue
Hi everyone. Got a strange error today and it doesn't make sense as it's not related to the actual action that I want to do, or at least I don't think so, maybe someone else has an idea. The setup is simple, a xen host added in ACS 4.19.2, with a GPU in passtrough mode, a Windows VM deployed with a W11 iso attached and Windows PV as OS version. Setup goes all the way, although I noticed it's MUCH slower than deploying the same way but with Windows 11 as OS version instead of PV (and manually adding the virtio drivers for the disk controller in the setup). After the setup I wanted to detach the ISO to attach another one and I got this error. The only way to detach it was to stop the VM and do it. I tested with other iso's and it's the same behavior. The logs bellow don't seem to reveal much about the issue either. Any thoughts?  ``` 2025-03-17 16:13:19,472 INFO [o.a.c.f.j.i.AsyncJobMonitor] (API-Job-Executor-12:ctx-5af21047 job-337) (logid:8eec4d00) Add job-337 into job monitoring 2025-03-17 16:13:19,474 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-12:ctx-5af21047 job-337) (logid:e034732e) Executing AsyncJobVO: {id:337, usene, instanceId: 49, cmd: org.apache.cloudstack.api.command.admin.iso.DetachIsoCmdByAdmin, cmdInfo: {"virtualmachineid":"066a0d43-a8e1-47a8-a302-d84a51df8d84",uZWE79gkLJARV7XWYGQoTHFX7Cg","httpmethod":"GET","ctxStartEventId":"623","ctxDetails":"{\"interface com.cloud.vm.VirtualMachine\":\"066a0d43-a8e1-47a8-a302-d84"ISO.DETACH"}, cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: null, initMsid: 52242796961, completeMsid: null, lastUpdated: null} 2025-03-17 16:13:19,474 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (qtp146370526-15:ctx-0015a751 ctx-63f74fd1) (logid:c3b82fb4) submit async job-337, details: AsanceType: VirtualMachine, instanceId: 49, cmd: org.apache.cloudstack.api.command.admin.iso.DetachIsoCmdByAdmin, cmdInfo: {"virtualmachineid":"066a0d43-a8e1-47Id":"2","sessionkey":"uZWE79gkLJARV7XWYGQoTHFX7Cg","httpmethod":"GET","ctxStartEventId":"623","ctxDetails":"{\"interface com.cloud.vm.VirtualMachine\":\"066a0d":"2","cmdEventType":"ISO.DETACH"}, cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: null, initMsid: 52242796961, completeMsid: nd: null, removed: null} 2025-03-17 16:13:19,474 DEBUG [c.c.a.ApiServlet] (qtp146370526-15:ctx-0015a751 ctx-63f74fd1) (logid:c3b82fb4) ===END=== 10.84.84.1 -- GET virtualmachineid=0chIso&response=json&sessionkey=uZWE79gkLJARV7XWYGQoTHFX7Cg 2025-03-17 16:13:19,487 DEBUG [o.a.c.s.i.TemplateDataFactoryImpl] (API-Job-Executor-12:ctx-5af21047 job-337 ctx-d5fbc440) (logid:e034732e) template 204 is alr 2025-03-17 16:13:19,492 ERROR [c.c.r.ResourceManagerImpl] (API-Job-Executor-12:ctx-5af21047 job-337 ctx-d5fbc440) (logid:e034732e) Host 11 does not have requioup of Nvidia Corporation TU104GL [Tesla T4] GPUs, vGPU Type: passthrough 2025-03-17 16:13:19,495 ERROR [c.c.a.ApiAsyncJobDispatcher] (API-Job-Executor-12:ctx-5af21047 job-337) (logid:e034732e) Unexpected exception while executing ohIsoCmdByAdmin com.cloud.utils.exception.CloudRuntimeException: Host 11 does not have required GPU device or out of capacity. GPU group: Group of Nvidia Corporation TU104GL at com.cloud.resource.ResourceManagerImpl.getGPUDevice(ResourceManagerImpl.java:3469) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:215) at com.sun.proxy.$Proxy200.getGPUDevice(Unknown Source) at com.cloud.hypervisor.HypervisorGuruBase.toVirtualMachineTO(HypervisorGuruBase.java:285) at com.cloud.hypervisor.XenServerGuru.implement(XenServerGuru.java:93) at com.cloud.template.TemplateManagerImpl.attachISOToVM(TemplateManagerImpl.java:1296) at com.cloud.template.TemplateManagerImpl.attachISOToVM(TemplateManagerImpl.java:1314) at com.cloud.template.TemplateManagerImpl.detachIso(TemplateManagerImpl.java:1175) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) at org.apache.cloudstack.network.contrail.management.EventUtils$EventInterceptor.invoke(EventUtils.java:107) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175) at com.cloud.event.ActionEventInterceptor.invoke(ActionEventInterceptor.java:52) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:215) at com.sun.proxy.$Proxy236.detachIso(Unknown Source) at org.apache.cloudstack.api.command.user.iso.DetachIsoCmd.execute(DetachIsoCmd.java:109) at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:172) at com.cloud.api.ApiAsyncJobDispatcher.runJob(ApiAsyncJobDispatcher.java:112) at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:654) at org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:48) at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:55) at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:102) at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:52) at org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:45) at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.run(AsyncJobManagerImpl.java:602) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829) 2025-03-17 16:13:19,497 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-12:ctx-5af21047 job-337) (logid:e034732e) Complete async job-337, jobStatus:udstack.api.response.ExceptionResponse/null/{"uuidList":[],"errorcode":"530","errortext":"Host 11 does not have required GPU device or out of capacity. GPU grT4] GPUs, vGPU Type: passthrough"} 2025-03-17 16:13:19,498 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-12:ctx-5af21047 job-337) (logid:e034732e) Publish async job-337 complete on 2025-03-17 16:13:19,498 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-12:ctx-5af21047 job-337) (logid:e034732e) Wake up jobs related to job-337 2025-03-17 16:13:19,498 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-12:ctx-5af21047 job-337) (logid:e034732e) Update db status for job-337 2025-03-17 16:13:19,499 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-12:ctx-5af21047 job-337) (logid:e034732e) Wake up jobs joined with job-337 a 2025-03-17 16:13:19,500 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-12:ctx-5af21047 job-337) (logid:e034732e) Done executing org.apache.cloudsta job-337 2025-03-17 16:13:19,500 INFO [o.a.c.f.j.i.AsyncJobMonitor] (API-Job-Executor-12:ctx-5af21047 job-337) (logid:e034732e) Remove job-337 from job monitoring ``` GitHub link: https://github.com/apache/cloudstack/discussions/10581 ---- This is an automatically sent email for users@cloudstack.apache.org. To unsubscribe, please send an email to: users-unsubscr...@cloudstack.apache.org