Hi Ajay, If you follow the steps on this page:
https://gist.github.com/terbolous/102ae8edd1cda192561c This line should configure your VR's to use the new template (Shapeblue one) mysql> update configuration set value = 'systemvm-xenserver-4.5.1' where name = 'router.template.xen'; (you may have already done this) Obviously making sure you use the template name you have given it. You will then need to restarting networking within cloudstack with the cleanup option. I believe this will destroy the virtual routers, create new ones with the new system vm template, and restore the networking config. I'm not sure why this issue has arisen. But we are not the only people to have stumbled upon it: http://comments.gmane.org/gmane.comp.apache.cloudstack.devel/62587 Cheers On Fri, Jul 24, 2015 at 6:15 AM, Ajay Kamble <[email protected]> wrote: > hi, > > After ia32-libs install ,vhd-util was executable. And then i was able to > download templates. > > But then, why in documentation its not updated ? new url of systemvm > template? or just update template on same location ? > > I am wondering why only two of us has got this issue, no one else has > upgraded to ACS 4.5.1 ? > > > And now how to upgrade existing VRs which are using old systemvm template ? > just install ia32-libs ? Because on them as well vhd-util is not > executable. > > /Ajay > > On 22 July 2015 at 13:21, cs user <[email protected]> wrote: > > > Hi Ajay, > > > > hmmm, I'm not sure how you will be able to do it easily, if you cannot > even > > download the template, for some reason I was able to do this. I followed > > the instructions here which describe how to manually download a new > > systemvm template and then modify the database to mark it as the one to > > use: > > > > https://gist.github.com/terbolous/102ae8edd1cda192561c > > > > I called my new template "systemvm-xenserver-4.5-shapeblue" > > > > To try and get your current system vm working manually, so that the > > vhd-util file works, you can try to follow the steps here: > > > > > > > http://mail-archives.apache.org/mod_mbox/cloudstack-users/201507.mbox/%[email protected]%3E > > > > To do this you will need to connect to the xen host on which the systemvm > > is running on and run the following to ssh to it: > > > > ssh -i .ssh/id_rsa.cloud -p 3922 169.254.x.x > > > > Where the 169 address can be found on the system vm instance page within > > cloudstack, known as the "Link Local IP Address" > > > > Once you have connected to the system vm , follow the steps in the > > mail-archive thread above, something like: > > > > apt-get update > > apt-get clean > > apt-get autoclean > > apt-get install ia32-libs > > > > I tried this and ran into disk issues, but perhaps this is what > > allowed me to download the new template, as the vhd-util file was then > > executable. > > > > I hope that helps. I had the exact same issue and was able to solve it > > with the new template. > > > > Cheers! > > > > > > > > > > On Tue, Jul 21, 2015 at 5:28 PM, Ajay Kamble <[email protected]> > > wrote: > > > > > How I can use this new template? > > > > > > I can't delete current systemvm template, and even if I want to use > new > > > one with new name I can't download it coz of this error. > > > On 21-Jul-2015 7:49 pm, "cs user" <[email protected]> wrote: > > > > > > > Hi Ajay, > > > > > > > > We had the exact same issue, had to use the template from here: > > > > > > > > http://packages.shapeblue.com/systemvmtemplate/4.5/new/ > > > > > > > > Worked fine after that. > > > > > > > > > > > > On Tue, Jul 21, 2015 at 2:57 PM, Ajay Kamble < > [email protected] > > > > > > > wrote: > > > > > > > > > this is the url > > > > > > > > > > > > > > > > > > > > http://cloudstack.apt-get.eu/systemvm/4.5/systemvm64template-4.5-xen.vhd.bz2 > > > > > > > > > > > > > > > On 21 July 2015 at 19:20, Pierre-Luc Dion <[email protected]> > > wrote: > > > > > > > > > > > What systemvm template you used for the upgrade to 4.5.1 ? the > URL > > > > > > > > > > > > > > > > > > > > > > > > On Tue, Jul 21, 2015 at 9:25 AM, Ajay Kamble < > > > [email protected] > > > > > > > > > > > wrote: > > > > > > > > > > > > > Yes, i have re-downloaded vhd-util on mgmt server. that's must > > > step, > > > > > so > > > > > > i > > > > > > > haven't missed that. All SSVM, CPVM and VRs are upgraded to > 4.5 > > > > > version. > > > > > > > but on all of them vhd-util is not working. > > > > > > > > > > > > > > [root@Mgmt1 ~]# > > > > > > > > > > /usr/share/cloudstack-common/scripts/vm/hypervisor/xenserver/vhd-util > > > > > > > usage: vhd-util COMMAND [OPTIONS] > > > > > > > COMMAND := { create | snapshot | query | read | set | repair | > > > > resize | > > > > > > > fill | coalesce | modify | scan | check | revert } > > > > > > > [root@Mgmt1 ~]# > > > > > > > > > > > > > > On 21 July 2015 at 18:39, Pierre-Luc Dion <[email protected]> > > > > wrote: > > > > > > > > > > > > > > > Did you re-download the vhd-util on the management server as > > per > > > > the > > > > > > > > installation guide for xenserver ? > > > > > > > > That might be a missing part of the release-note or packages. > > > > > > > > > > > > > > > > you might need to restart the mgt-server and redeploy the > SSVM > > > > > > afterward. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Tue, Jul 21, 2015 at 8:36 AM, Ajay Kamble < > > > > > [email protected] > > > > > > > > > > > > > > > wrote: > > > > > > > > > > > > > > > > > Hi, > > > > > > > > > > > > > > > > > > Recently i have upgraded my cloudstack from 4.4 to 4.5.1. > > After > > > > > > > > upgrade, I > > > > > > > > > am trying to download new OS template but getting this > error, > > > > > > > > > > > > > > > > > > > > > > > > > > > Failed post download script: > > > > > > > > > > > > > /usr/local/cloud/systemvm/scripts/storage/secondary/createtmplt.sh: > > > > > > > line > > > > > > > > > 211: /bin/vhd-util: No such file or directoryvhd check of > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > /mnt/SecStorage/aae91593-21b0-3d86-8ead-7e9cfe9698d5/template/tmpl/2/240/dnld388715870744203495 > > > > > > > > > > > > > > > > > > > > > > > > > > > SSVM log shows this, > > > > > > > > > > > > > > > > > > > > > > > > > > > 2015-07-21 12:30:47,065 DEBUG [cloud.agent.Agent] > > > > > > > > > (agentRequest-Handler-5:null) Seq 10-3037959423638136072: > { > > > > Ans: , > > > > > > > > MgmtId: > > > > > > > > > 59778234354585, via: 10, Ver: v1, Flags: 10, > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > [{"com.cloud.agent.api.storage.DownloadAnswer":{"jobId":"a038bb13-ab5e-4bf0-b136-0a414d9a61f0","downloadPct":100,"errorString":"Download > > > > > > > > > success, starting install > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ","downloadStatus":"DOWNLOAD_IN_PROGRESS","downloadPath":"/mnt/SecStorage/aae91593-21b0-3d86-8ead-7e9cfe9698d5/template/tmpl/2/240/dnld3887158707442034954tmp_","installPath":"template/tmpl/2/240/d6a25a37-acf4-35ca-a58b-aea65e200626.vhd","templateSize":0,"templatePhySicalSize":0,"checkSum":"9e6bfe30f71cb74e975576907ebcf711","result":true,"details":"Download > > > > > > > > > success, starting install ","wait":0}}] } > > > > > > > > > 2015-07-21 12:30:50,393 DEBUG [cloud.agent.Agent] > > > > > > > > > (agentRequest-Handler-4:null) Processing command: > > > > > > > > > com.cloud.agent.api.GetStorageStatsCommand > > > > > > > > > 2015-07-21 12:30:50,393 INFO > > > > > > > > > [storage.resource.NfsSecondaryStorageResource] > > > > > > > > > (agentRequest-Handler-4:null) Determined host 192.168.48.10 > > > > > > corresponds > > > > > > > > to > > > > > > > > > IP 192.168.48.10 > > > > > > > > > 2015-07-21 12:31:07,112 DEBUG [cloud.agent.Agent] > > > > > > > > > (agentRequest-Handler-1:null) Request:Seq > > > 10-3037959423638136074: > > > > > { > > > > > > > Cmd > > > > > > > > , > > > > > > > > > MgmtId: 59778234354585, via: 10, Ver: v1, Flags: 100011, > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > [{"org.apache.cloudstack.storage.command.DownloadProgressCommand":{"jobId":"a038bb13-ab5e-4bf0-b136-0a414d9a61f0","request":"GET_STATUS","hvm":true,"description":"CentOS > > > > > > > > > 6 x86_64 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Vanilla","maxDownloadSizeInBytes":53687091200,"id":240,"resourceType":"TEMPLATE","installPath":"template/tmpl/2/240","_store":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs:// > > > > > > > > > 192.168.48.10/tank/secstore","_role":"Image"}},"url":" > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > http://dl.openvm.eu/cloudstack/centos/vanilla/6/x86_64/CentOS-6-x86_64-vanilla-xen.vhd.bz2 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ","format":"VHD","accountId":2,"name":"240-2-b4635fa3-6c7e-301f-ac9c-7b9925238244","secUrl":"nfs:// > > > > > > > > > 192.168.48.10/tank/secstore","wait":0}}] } > > > > > > > > > 2015-07-21 12:31:07,112 DEBUG [cloud.agent.Agent] > > > > > > > > > (agentRequest-Handler-1:null) Processing command: > > > > > > > > > > org.apache.cloudstack.storage.command.DownloadProgressCommand > > > > > > > > > 2015-07-21 12:31:07,112 DEBUG [cloud.agent.Agent] > > > > > > > > > (agentRequest-Handler-1:null) Seq 10-3037959423638136074: > { > > > > Ans: , > > > > > > > > MgmtId: > > > > > > > > > 59778234354585, via: 10, Ver: v1, Flags: 10, > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > [{"com.cloud.agent.api.storage.DownloadAnswer":{"jobId":"a038bb13-ab5e-4bf0-b136-0a414d9a61f0","downloadPct":100,"errorString":"Download > > > > > > > > > success, starting install > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ","downloadStatus":"DOWNLOAD_IN_PROGRESS","downloadPath":"/mnt/SecStorage/aae91593-21b0-3d86-8ead-7e9cfe9698d5/template/tmpl/2/240/dnld3887158707442034954tmp_","installPath":"template/tmpl/2/240/d6a25a37-acf4-35ca-a58b-aea65e200626.vhd","templateSize":0,"templatePhySicalSize":0,"checkSum":"9e6bfe30f71cb74e975576907ebcf711","result":true,"details":"Download > > > > > > > > > success, starting install ","wait":0}}] } > > > > > > > > > 2015-07-21 12:31:17,496 ERROR > > > > > [storage.template.DownloadManagerImpl] > > > > > > > > > (pool-1-thread-2:null) Failed post download script: > > > > > > > > > > > > > /usr/local/cloud/systemvm/scripts/storage/secondary/createtmplt.sh: > > > > > > > line > > > > > > > > > 211: /bin/vhd-util: No such file or directoryvhd check of > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > /mnt/SecStorage/aae91593-21b0-3d86-8ead-7e9cfe9698d5/template/tmpl/2/240/dnld3887158707442034954tmp_.tmp > > > > > > > > > failed > > > > > > > > > 2015-07 > > > > > > > > > > > > > > > > > > > > > > > > > > > On SSVM, vhd-util doesn't work, > > > > > > > > > > > > > > > > > > root@s-28-VM:~# /bin/vhd-util > > > > > > > > > -bash: /bin/vhd-util: No such file or directory > > > > > > > > > > > > > > > > > > > > > > > > > > > What cold be problem here? > > > > > > > > > > > > > > > > > > Thanks, > > > > > > > > > Ajay > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
