Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fail to register ISO or template on cloudstack

A problem occurs when I register an ISO or template on Apache CloudStack.

When I finished and submitted the register ISO form, no error message occurs. However, if I inspect the template, the result in the "ready" field is "no" and the "status" field is empty! I can't create an instance because I can't register my own ISO or template.

I am using Ubuntu 12.04 LTS and my system VMs are already in running! So, I just don't know why. Would you please to help me?

like image 230
dj199008 Avatar asked Oct 16 '13 14:10

dj199008


People also ask

What is CloudStack pod?

About Pods A pod is the third-largest organizational unit within a CloudStack deployment. Pods are contained within zones. Each zone can contain one or more pods. A pod consists of one or more clusters of hosts and one or more primary storage servers. Pods are not visible to the end user.

Is CloudStack a hypervisor?

CloudStack works with a variety of hypervisors and hypervisor-like technologies. A single cloud can contain multiple hypervisor implementations. As of the current release CloudStack supports: BareMetal (via IPMI)


1 Answers

We faced similar problem and to resolved the issue:-

1) Went to SSVM,Stoped the cloud service .

2) On SSVM tried to run the run script

3) cd /usr/local/cloud/systemvm/

4) ./run.sh

5) There it was showing error

Exception in thread "main" java.lang.NoClassDefFoundError: com/vmware/vim25/VirtualDevice
at com.cloud.storage.resource.VmwareSecondaryStorageResourceHandler.<init>(VmwareSecondaryStorageResourceHandler.java:61)
at com.cloud.storage.resource.PremiumSecondaryStorageResource.configure(PremiumSecondaryStorageResource.java:102)
at com.cloud.agent.Agent.<init>(Agent.java:163)
at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:559)
at com.cloud.agent.AgentShell.launchAgentFromClassInfo(AgentShell.java:514)
at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:431)
at com.cloud.agent.AgentShell.start(AgentShell.java:589)
at com.cloud.agent.AgentShell.main(AgentShell.java:631)
Caused by: java.lang.ClassNotFoundException: com.vmware.vim25.VirtualDevice
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 8 more

6) We found that file "vmware-vim25.jar" was missing, so we copied that Jar file to (/usr/local/cloud/systemvm/) of SSVM from management server location (/usr/share/java/vmware-vim25.jar)

7) restart cloud service and its worked.

8) We followed comment of (Sateesh Chodapuneedi added a comment - 05/Mar/13 15:00 ) in following link:- Reference:- https://issues.apache.org/jira/browse/CLOUDSTACK-1252

like image 94
Prabhat Kumar Avatar answered Sep 21 '22 20:09

Prabhat Kumar