Community
 
 
 

CloudPlatform 3.x

343 seguidores
 
Avatar
Administrator

Not able to create a new instance

Avatar

Not able to create a new instance

Hi Team,

I was in process of creating my initial private cloud. I have followed the "CloudStack Advanced Installation Guide" and successfully configured cloud stack. I have configured cloud stack with VMWare as my hypervisor.

I followed the below steps to create the instance.

Now i am trying to create my new instances.
Go to the Instances tab, and filter by My Instances.
. Click Add Instance and follow the steps in the wizard.
. Choose the zone you just added.
. In the template selection, choose the template to use in the VM.

Here i dont see any template to choose. But when i see the template in "template" screen i can the see the template.

Zone ID 01932aae-676c-4ca0-8345-74d6a62ead2f
Description SystemVM Template (vSphere)
Hypervisor VMware
Type SYSTEM
Ready Yes
Status Download Complete
Size
Extractable No
Password Enabled No
Public No
Featured No
Cross Zones Yes
OS Type Debian GNU/Linux 5.0 (32-bit)
Domain ROOT
Account system
Created 15 Dec 2012 18:03:14

Also i tried to create new template using OVA and it says status as "No". I waited for more then an hour.

ID f25f95ea-49b7-4988-af4e-b11ba3046b6b
Zone name ZONEB
Zone ID 01932aae-676c-4ca0-8345-74d6a62ead2f
Description VaseT
Hypervisor VMware
Type USER
Ready No
Status
Size
Extractable Yes
Password Enabled No
Public Yes
Featured Yes
Cross Zones No
OS Type CentOS 5.4 (32-bit)
Domain ROOT
Account admin
Created 15 Dec 2012 18:3

Could you please help me on how to create a new template and Instance.

Thanks,
Kalai


kalayarasan Periyasamy MEMBERS 15 December 2012 - 20:54 PM
11 comentários
0

Por favor, entrar para comentar.

 
 

Previous 11 comentários

Avatar
Administrator
Avatar

Not able to create a new instance

The "SystemVM Template" is only for CloudStack system VMs and you cannot use it to deploy your own template. There may be a problem with the SSVM networking. There is a default CentOS template that the SSVM will download and make available for creating instances, but apparently this wasn't downloaded, and the template you tried to add also couldn't be downloaded. The Troubleshooting the Secondary Storage VM section of the Installation Guide has some suggestions you can follow. Besides that, if the web server hosting your templates is on an internal network, make sure to add it to secstorage.allowed.internal.sites in Global Settings.

Best regards,

{color:#555555}Kirk Kosinski{color} !http://www.linkedin.com/favicon.ico!
{color:#999999}MCITP: EA / VA / EDA7, VCP 4 / 5, CCA{color}


Kirk Kosinski CITRIX EMPLOYEES 16 December 2012 - 03:37 AM
Ações de comentário Permalink
Avatar
Administrator
Avatar

Could you please guide me to create new instance ? i followed the step by step process of install guide and am not able to create the instance.


kalayarasan Periyasamy MEMBERS 16 December 2012 - 05:11 AM
Ações de comentário Permalink
Avatar
Administrator
Avatar

How i can fix the "SystemVM Template" failure ?


kalayarasan Periyasamy MEMBERS 16 December 2012 - 14:00 PM
Ações de comentário Permalink
Avatar
Administrator
Avatar

Is the Secondary Storage VM up and in "Running" status? If it is but no templates are available, you should download the latest Installation Guide and follow follow the "Troubleshooting the Secondary Storage VM" section to confirm the SSVM is working properly with the correct network access.

Best regards,

{color:#555555}Kirk Kosinski{color} !http://www.linkedin.com/favicon.ico!
{color:#999999}MCITP: EA / VA / EDA7, VCP 4 / 5, CCA{color}


Kirk Kosinski CITRIX EMPLOYEES 16 December 2012 - 20:31 PM
Ações de comentário Permalink
Avatar
Administrator
Avatar

My secondary storage sits on the standalone hardware. I exported my NFS in a centos box. I followed the steps which provided in the install guide.

I done the below steps to ensure my secondary and primary partition are reachable. - Pass
I tried to mount my primary and secondary storage on management server â Pass
I tried to mount my primary and secondary storage on ESXi host
From my storage box I ensured internet is reachable by pinging google.com

As part of cloud stack I ran the below command to download the VMWare OVA and it completed successfully.

[root@cloudstack ~]# /usr/lib64/cloud/agent/scripts/storage/secondary/cloud-install-sys-tmplt -m /mnt/secondary -u http://download.cloud.com/templates/acton/acton-systemvm-02062012.ova -h vmware -F
--2012-12-17 08:54:58-- http://download.cloud.com/templates/acton/acton-systemvm-02062012.ova
Resolving download.cloud.com... 72.21.215.76
Connecting to download.cloud.com|72.21.215.76|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 330911744 (316M) [binary/octet-stream]
Saving to: ââ¬Å/usr/lib64/cloud/agent/scripts/storage/secondary/c27435c1-4067-48c1-8054-f8040b9de80f.ovaââ¬

100%[=====================================================================================================================================================>] 330,911,744 884K/s in 10m 36s

2012-12-17 09:05:36 (508 KB/s) - ââ¬Å/usr/lib64/cloud/agent/scripts/storage/secondary/c27435c1-4067-48c1-8054-f8040b9de80f.ovaâ⬠saved [330911744/330911744]

File /usr/lib64/cloud/agent/scripts/storage/secondary/c27435c1-4067-48c1-8054-f8040b9de80f.ova does not appear to be compressed
Moving to /mnt/secondary/template/tmpl/1/8///c27435c1-4067-48c1-8054-f8040b9de80f.ova...could take a while
mv: failed to preserve ownership for `//mnt/secondary/template/tmpl/1/8///c27435c1-4067-48c1-8054-f8040b9de80f.ova': Invalid argument
Successfully installed system VM template to /mnt/secondary/template/tmpl/1/8/
[root@cloudstack ~]# cd /mnt/secondary/template/tmpl/1/8/
[root@cloudstack 8]# ls
c27435c1-4067-48c1-8054-f8040b9de80f.ova systemvm-disk1.vmdk systemvm.mf systemvm.ovf template.properties
[root@cloudstack 8]#

But Cloud stack created VM in my ESXI host with the name of â5269dcfaf26b391d86704a55f01b5e74â. But it was not powered on state. I found the below error message in the log file(management-server.log).

2012-12-17 13:52:29,933 WARN [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Exception while trying to start secondary storage vm
com.cloud.exception.InsufficientServerCapacityException: Unable to create a deployment for VM[SecondaryStorageVm|s-220-VM]Scope=interface com.cloud.dc.DataCenter; id=1
at com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:723)
at com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:461)
at com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:454)
at com.cloud.storage.secondary.SecondaryStorageManagerImpl.startSecStorageVm(SecondaryStorageManagerImpl.java:243)
at com.cloud.storage.secondary.SecondaryStorageManagerImpl.allocCapacity(SecondaryStorageManagerImpl.java:670)
at com.cloud.storage.secondary.SecondaryStorageManagerImpl.expandPool(SecondaryStorageManagerImpl.java:1265)
at com.cloud.secstorage.PremiumSecondaryStorageManagerImpl.scanPool(PremiumSecondaryStorageManagerImpl.java:115)
at com.cloud.secstorage.PremiumSecondaryStorageManagerImpl.scanPool(PremiumSecondaryStorageManagerImpl.java:46)
at com.cloud.vm.SystemVmLoadScanner.loadScan(SystemVmLoadScanner.java:102)
at com.cloud.vm.SystemVmLoadScanner.access$100(SystemVmLoadScanner.java:30)
at com.cloud.vm.SystemVmLoadScanner$1.reallyRun(SystemVmLoadScanner.java:79)
at com.cloud.vm.SystemVmLoadScanner$1.run(SystemVmLoadScanner.java:69)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:679)
2012-12-17 13:52:29,934 INFO [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Unable to start secondary storage vm for standby capacity, secStorageVm vm Id : 220, will recycle it and start a new one.

Also is ESXI server should be empty or it can contain any old VMs.

Edited by: kalpeer on Dec 17, 2012 5:34 AM


kalayarasan Periyasamy MEMBERS 17 December 2012 - 10:31 AM
Ações de comentário Permalink
Avatar
Administrator
Avatar

> mv: failed to preserve ownership for `//mnt/secondary/template/tmpl/1/8///c27435c1-4067-48c1-8054-f8040b9de80f.ova': Invalid argument

There seems to be a problem with the NFS server. There shouldn't be any errors like this. Check the directory permissions, /etc/exports configuration, and SELinux, and retry until the command works successfully.

Best regards,

{color:#555555}Kirk Kosinski{color} !http://www.linkedin.com/favicon.ico!
{color:#999999}MCITP: EA / VA / EDA7, VCP 4 / 5, CCA{color}


Kirk Kosinski CITRIX EMPLOYEES 30 December 2012 - 08:40 AM
Ações de comentário Permalink
Avatar
Administrator
Avatar

I have a question in :
The user that said his work:

" I tried to mount my primary and secondary storage on management server – Pass
I tried to mount my primary and secondary storage on ESXi host "

how do you do below step on ESXi:

//... part of installation guide document for preparing manager server as NFS storage...//

Log back in to the hypervisor host and try to mount the /export directories. For example
(substitute your own management server name):
# mkdir /secondarymount
# mount -t nfs <management-server-name>:/export/secondary /secondarymount

My error is mount is unknown batch in ESXi!!!! how do you run this command????


sorina za MEMBERS 07 April 2013 - 07:08 AM
Ações de comentário Permalink
Avatar
Administrator
Avatar

hi kalpeer ,

please answer to my post.i had question from your post!


sorina za MEMBERS 07 April 2013 - 07:11 AM
Ações de comentário Permalink
Avatar
Administrator
Avatar

To mount an NFS share you should use vSphere Client. The example from the installation guide you mentioned is only applicable to KVM and XenServer hosts.

Best regards,

{color:#555555}Kirk Kosinski{color}
{color:#999999}MCITP: EA / VA / EDA7, VCP 4 / 5, CCA{color}


Kirk Kosinski CITRIX EMPLOYEES 07 April 2013 - 22:25 PM
Ações de comentário Permalink
Avatar
Administrator
Avatar

Thanks

yes, I do too . but first i use "openfiler" to create NFS storage and then use bleow command:

#vi /etc/exports
#/export *(rw,async,no_root_squash)
# exportfs -a
On the management server, create a mount point for secondary storage. For example
# mkdir -p /mnt/secondary
# mount -t nfs nfsservername:/nfs/share/secondary /mnt/secondary

Is it Ok?


sorina za MEMBERS 13 April 2013 - 12:44 PM
Ações de comentário Permalink
Avatar
Administrator
Avatar

I'm also having issues with my secondary storage and templates not being ready. I added the CIDR of the webserver to secstorage.allowed.internal.sites and rebooted the management server. In the logs I am seeing this:

DEBUG [cloud.server.StatsCollector] (StatsCollector-1:null) There is no secondary storage VM for secondary storage host nfs://management-server/export/secondary

I went through the troubleshooting steps in the install guide and I cannot SSH to the SSVM because of the following error:

No route to host

When I go to the console of the SSVM through XenCenter I am seeing all kinds of errors such as:

startpar: service(s) returned failure: dnsmasq apache2 ... failed!

So I think something went crazy somewhere but i don't know where to go to fix it. I am not much of a linux guy so detailed instructions would be very helpful.


Jason Robinson MEMBERS 16 July 2013 - 00:08 AM
Ações de comentário Permalink

Top Contributors