verendrakalsi opened a new issue, #10826: URL: https://github.com/apache/cloudstack/issues/10826
### problem trying to migrate the powered off windows VM from VMware to KVM host. required utilities are installed on the KVM host and the host shows supported in the import instance window  VMware vcenter & ESXi hosts are able to communcate with cloudstack mgmt and the KVM host. Error create template file of the VM: Win-Srv-2022-Std from vCenter 172.16.3.5: Unable to create directory: /var/lib/cloudstack/mnt/253023765254217.34fd55af/325008c2-7fe4-420c-ae2d-7474110c8f10, error msg: java.io.IOException: Cannot run program "mkdir": error=0, Failed to exec spawn helper: pid: 556244, exit value: 1 at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1143) at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1073) at com.cloud.utils.script.Script.execute(Script.java:232) at com.cloud.utils.script.Script.execute(Script.java:198) at com.cloud.hypervisor.guru.VMwareGuru.createDir(VMwareGuru.java:1560) at com.cloud.hypervisor.guru.VMwareGuru.createDirOnStorage(VMwareGuru.java:1551) at com.cloud.hypervisor.guru.VMwareGuru.createOVFTemplateOfVM(VMwareGuru.java:1373) at com.cloud.hypervisor.guru.VMwareGuru.createVMTemplateOutOfBand(VMwareGuru.java:1475) at org.apache.cloudstack.vm.UnmanagedVMsManagerImpl.createOvfTemplateOfSourceVmwareUnmanagedInstance(UnmanagedVMsManagerImpl.java:1587) at org.apache.cloudstack.vm.UnmanagedVMsManagerImpl.importUnmanagedInstanceFromVmwareToKvm(UnmanagedVMsManagerImpl.java:1655) at org.apache.cloudstack.vm.UnmanagedVMsManagerImpl.baseImportInstance (UnmanagedVMsManagerImpl.java:1377) at org.apache.cloudstack.vm.UnmanagedVMsManagerImpl.importVm(UnmanagedVMsManagerImpl.java:1498) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:569) 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:105) 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 jdk.proxy3/jdk.proxy3.$Proxy508.importVm(Unknown Source) at org.apache.cloudstack.api.command.admin.vm.ImportVmCmd.execute(ImportVmCmd.java:261) at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:173) at com.cloud.api.ApiAsyncJobDispatcher.runJob(ApiAsyncJobDispatcher.java:110) at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:652) at org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49) at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call (DefaultManagedContext.java:56) at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103) at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53) at org.apache.cloudstack.managed.context.ManagedContextRunnable.run (ManagedContextRunnable.java:46) at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.run(AsyncJobManagerImpl.java:600) at java.base/java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:539) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:840) Caused by: java.io.IOException: error=0, Failed to exec spawn helper: pid: 556244, exit value: 1 at java.base/java.lang.ProcessImpl.forkAndExec(Native Method) at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:314) at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:244) at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1110) ... 41 more ### versions Rocky linux 9.5 with KVM Cloudstack - 4.20 ### The steps to reproduce the bug 1. 2. 3. ... ### What to do about it? [agent.log](https://github.com/user-attachments/files/20085945/agent.log) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org