Community
 
 
 

CloudPlatform 4.x

284 followers
 
Avatar
Administrator

console proxy or system vm failed to start

Avatar

console proxy or system vm failed to start

Hi community !

 

I used xenserver 6.2 and cloudstack 4.3.

 

On vm Ubuntu 11.04 , installation finished with success.

 

I followed this guide http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/latest/installation.html

 

I mounted partition nfs on VM after :

/usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt -m /tmp/secondary -u http://download.cloud.com/templates/4.3/systemvm64template-2014-01-14-master-xen.vhd.bz2 -h xenserver

 

 

umounted and deleted the provisional directory /tmp/secondary.

 

When i try to launch vm console proxy or system : attach file

 

What's wrong with my configuration ?

 

I forget something ?

 

Can you help me ?

 

Thanks for your help.

 

Clément.

 


Clément Mutz MEMBERS 02 June 2014 - 15:09 PM
14 comments
0
 
 

Official comment

Avatar
Administrator
Avatar


 

HI:

    From this:
  2014-06-23 16:43:46,391 WARN  [c.c.h.x.r.CitrixResourceBase] (DirectAgent-76:ctx-a5ebecb9) Unable to start r-5-VM due to 
You tried to create a VLAN on top of another VLAN - use the underlying physical PIF/bond instead
  pls share the interface to me? if you use bonding interface,then create the interface use VLAN  on the bonding interface and last 
the cloudstack use the create interface?

 

 

Hi wei,

 

Thanks for you reply and your patience ! ;)

 

Yes I tried to create a VLAN on top of another VLAN. So with your helping that's work :D

 

Vm created with sucess :D

 

Thanks you very much :D


Clément Mutz MEMBERS 30 July 2014 - 08:32 AM
Comment actions Permalink

Please sign in to leave a comment.

 
 

Previous 14 comments

Avatar
Administrator
Avatar

console proxy or system vm failed to start

HI:

     Could you send  the log to me.


wei sun MEMBERS 03 June 2014 - 03:02 AM
Comment actions Permalink
Avatar
Administrator
Avatar

Hooo Sorry. I haven't to push on the button "Add This file".

 

Thanks you for reply

Attached Files

  • Attached File  log.log   100.07K   64 downloads

Clément Mutz MEMBERS 03 June 2014 - 07:25 AM
Comment actions Permalink
Avatar
Administrator
Avatar

HI:

1.pls check the secondary storage,I think the template is not import the secondary storage successefull.(2014-06-02 16:15:26,021 WARN  [c.c.u.d.Merovingian2] (Job-Executor-4:ctx-cd8bbd20 ctx-8dcb0f4f) Was unable to find lock for the key template_spool_ref21 and thread id 252029342

)

2.Do you move the vhd-util file in /usr/share/cloudstack-common/scripts/vm/hypervisor/xenserver  then exec  chmod a+x   /usr/share/cloudstack-common/scripts/vm/hypervisor/xenserver/vhd-util  befor you add the Xenserver host.


wei sun MEMBERS 03 June 2014 - 14:38 PM
Comment actions Permalink
Avatar
Administrator
Avatar

Hi,

 

Thank for your reply :)

 

HI:

1.pls check the secondary storage,I think the template is not import the secondary storage successefull.(2014-06-02 16:15:26,021 WARN  [c.c.u.d.Merovingian2] (Job-Executor-4:ctx-cd8bbd20 ctx-8dcb0f4f) Was unable to find lock for the key template_spool_ref21 and thread id 252029342

)

 

Ok I remake step with generation template :

 

root@ubuntu:/var/cache# mkdir /tmp/secondary

root@ubuntu:/var/cache# mount -t nfs 10.254.20.20:/volume1/Cloudstack_ISO_SR_Linux /tmp/secondary

root@ubuntu:/var/cache# /usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt -m /tmp/secondary -u http://download.cloud.com/templates/4.3/systemvm64template-2014-01-14-master-xen.vhd.bz2 -h xenserver
--2014-06-03 17:08:01--  http://download.cloud.com/templates/4.3/systemvm64template-2014-01-14-master-xen.vhd.bz2
Resolving download.cloud.com (download.cloud.com)... 54.231.0.145
Connecting to download.cloud.com (download.cloud.com)|54.231.0.145|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 236599855 (226M) [application/octet-stream]
Saving to: `/usr/share/cloudstack-common/scripts/storage/secondary/dda2aefb-7ff8-4d26-a385-f0572f57eb9a.vhd'

100%[=========================================================================================================================================================================>] 236 599 855 2,12M/s   in 1m 57s  

2014-06-03 17:09:58 (1,93 MB/s) - `/usr/share/cloudstack-common/scripts/storage/secondary/dda2aefb-7ff8-4d26-a385-f0572f57eb9a.vhd' saved [236599855/236599855]

Uncompressing to /usr/share/cloudstack-common/scripts/storage/secondary/dda2aefb-7ff8-4d26-a385-f0572f57eb9a.vhd.tmp (type bz2)...could take a long time
Moving to /tmp/secondary/template/tmpl/1/1///dda2aefb-7ff8-4d26-a385-f0572f57eb9a.vhd...could take a while
Successfully installed system VM template  to /tmp/secondary/template/tmpl/1/1/


root@ubuntu:/var/cache# tree /tmp/secondary/
/tmp/secondary/
??? template
    ??? tmpl
        ??? 1
            ??? 1
                ??? dda2aefb-7ff8-4d26-a385-f0572f57eb9a.vhd
                ??? template.properties

4 directories, 2 files

root@ubuntu:/var/cache# ls -lh /tmp/secondary/template/tmpl/1/1/
total 2,5G
-rw-r--r-- 1 root root 2,5G juin   3 17:10 dda2aefb-7ff8-4d26-a385-f0572f57eb9a.vhd
---------- 1 root root  287 juin   3 16:57 template.properties

root@ubuntu:/var/cache# cat /tmp/secondary/template/tmpl/1/1/template.properties
filename=dda2aefb-7ff8-4d26-a385-f0572f57eb9a.vhd
description=SystemVM Template
checksum=
hvm=false
size=2626564608
vhd=true
id=1
public=true
vhd.filename=dda2aefb-7ff8-4d26-a385-f0572f57eb9a.vhd
uniquename=routing-1
vhd.virtualsize=2626564608
virtualsize=2626564608
vhd.size=2626564608

 

root@ubuntu:~# umount /tmp/secondary

 

same error in log file but with different  thread id .

 


2.Do you move the vhd-util file in /usr/share/cloudstack-common/scripts/vm/hypervisor/xenserver  then exec  chmod a+x   /usr/share/cloudstack-common/scripts/vm/hypervisor/xenserver/vhd-util  befor you add the Xenserver host.

 

Sorry but what is the vhd-util exatly ? is it dda2aefb-7ff8-4d26-a385-f0572f57eb9a.vhd file ?

 

Thanks for your help.

 

Clément.


Clément Mutz MEMBERS 03 June 2014 - 15:36 PM
Comment actions Permalink
Avatar
Administrator
Avatar
hi
you can get Vhd-util file use this common "wget http://download.cloud.com.s3.amazonaws.com/tools/vhd-util"
wei sun MEMBERS 03 June 2014 - 15:43 PM
Comment actions Permalink
Avatar
Administrator
Avatar

ok thank you.

 

So I downloaded vhd-util

 

root@ubuntu:~# ls -l /usr/share/cloudstack-common/scripts/vm/hypervisor/xenserver/vhd-util
-rwxr-xr-x 1 root root 318977 sept. 19  2012 /usr/share/cloudstack-common/scripts/vm/hypervisor/xenserver/vhd-util
 

 

I removed host xen in web admin and recreated but same error in GUI. Maybe something different in logs file ?

 

 

Thanks for your help

 

Clément.

Attached Files

  • Attached File  log2.log   59.29K   18 downloads

Clément Mutz MEMBERS 03 June 2014 - 17:15 PM
Comment actions Permalink
Avatar
Administrator
Avatar

HI:

    pls use ssh login the Xenserver host and exec "find /opt/ -name "vhd-util",you will get this log

/opt/xensource/bin/vhd-util
/opt/cloud/bin/vhd-util
if you can't find the vhd-util file ,pls mv the vhd-util file to the  /opt/xensource/bin/  and /opt/cloud/bin/vhd-util ,then exec chmod a+x /opt/xensource/bin/vhd-util and chmod a+x /opt/cloud/bin/vhd-util

wei sun MEMBERS 04 June 2014 - 01:16 AM
Comment actions Permalink
Avatar
Administrator
Avatar

hi,

 

Sorry for my answer late, I was on holiday ;)

 

Thanks you very much. VM secondary storage and console proxy started ! :)  (attach file 11-cloudstack.PNG)

 

 

But when I want create my first VM no models/iso appear (attach file 13-cloudstack.PNG)

 

In Model view there is "CentOS 5.6 exist  (attach file 12-cloudstack.PNG)

 

I attach log file when i create vm secondary storage and console. (11:57:40 -> 11:59:30)

 

What is the problem ?

 

Thanks for your help

 

Clément.

 

Attached Thumbnails

  • 11-cloudstack.PNG
  • 12-cloudstack.PNG
  • 13-cloudstack.PNG

Attached Files


Clément Mutz MEMBERS 19 June 2014 - 10:03 AM
Comment actions Permalink
Avatar
Administrator
Avatar

HI:

    cloudstack have the default "CentOS 5.6 " template, but if your cloudstack manager dont"t access  to the public network?the default template will unavailable?

1.ps check the status of the template.      http://pan.baidu.com/s/1i320CGP 

2.set the "secstorage.allowed.internal.sites   "parameter in the "global setting",where the ip address    cs manager  can download the template?You can import the template,if you need.


wei sun MEMBERS 20 June 2014 - 00:28 AM
Comment actions Permalink
Avatar
Administrator
Avatar

Thanks you very much wei !

 

Now I can see model Centos and I can download ISO debian. Very good job :)

 

( I can't download your file http://pan.baidu.com/s/1i320CGP )

 

But now i can't lauch instance ( see attach file). Error in log, I try to create VM beetween 14:24:00 and 14:24:29.

 

Thank for your help.

 

Clément.

Attached Thumbnails

  • 01.PNG
  • 02.PNG
  • 03.PNG
  • 04.PNG
  • 05.PNG
  • 06.PNG

Attached Files


Clément Mutz MEMBERS 20 June 2014 - 12:29 PM
Comment actions Permalink
Avatar
Administrator
Avatar

Hi,

 

Following is the exception seen in the logs during the VM deployment failure

 

"2014-06-20 14:24:23,202 INFO  [c.c.v.VirtualMachineManagerImpl] (Job-Executor-15:ctx-e697019a ctx-f0aa31ac) Insufficient capacity
com.cloud.exception.InsufficientVirtualNetworkCapcityException: Unable to allocate vnet as a part of network Ntwk[208|Guest|8] implement Scope=interface com.cloud.dc.DataCenter; id=2
    at com.cloud.network.guru.GuestNetworkGuru.allocateVnet(GuestNetworkGuru.java:278)"

 

 

This indicates that you have run out of Guest Vlans allocated to  guest traffic type in the Physical network. Can you add or extend the existing guest vlans and try to deploy the VM again.


Prashanth Reddy Mandadi CITRIX EMPLOYEES 20 June 2014 - 13:04 PM
Comment actions Permalink
Avatar
Administrator
Avatar

hi,

 

Thanks for your reply,

 

I created a guest network Shared with sub address 10.254.30.0/24

 

But with diffrents log error.

 

Thank for your help.

 

Clément.

 

 

Hi,

 

Following is the exception seen in the logs during the VM deployment failure

 

"2014-06-20 14:24:23,202 INFO  [c.c.v.VirtualMachineManagerImpl] (Job-Executor-15:ctx-e697019a ctx-f0aa31ac) Insufficient capacity
com.cloud.exception.InsufficientVirtualNetworkCapcityException: Unable to allocate vnet as a part of network Ntwk[208|Guest|8] implement Scope=interface com.cloud.dc.DataCenter; id=2
    at com.cloud.network.guru.GuestNetworkGuru.allocateVnet(GuestNetworkGuru.java:278)"

 

 

This indicates that you have run out of Guest Vlans allocated to  guest traffic type in the Physical network. Can you add or extend the existing guest vlans and try to deploy the VM again.

Attached Files


Clément Mutz MEMBERS 23 June 2014 - 14:59 PM
Comment actions Permalink
Avatar
Administrator
Avatar

HI:

    From this:
  2014-06-23 16:43:46,391 WARN  [c.c.h.x.r.CitrixResourceBase] (DirectAgent-76:ctx-a5ebecb9) Unable to start r-5-VM due to 
You tried to create a VLAN on top of another VLAN - use the underlying physical PIF/bond instead
  pls share the interface to me? if you use bonding interface,then create the interface use VLAN  on the bonding interface and last 
the cloudstack use the create interface?

wei sun MEMBERS 07 July 2014 - 08:35 AM
Comment actions Permalink

Top Contributors