Hi Marty

There are 2 options

Option 1 : You can create a template from a uploaded volume and lauch a vm
https://cloudstack.apache.org/api/apidocs-4.20/apis/createTemplate.html

Use the volume id parameter
Option 2 :  You can use the attach volume api with deviceid parameter as 0

https://cloudstack.apache.org/api/apidocs-4.20/apis/attachVolume.html

Steps

  1.  Launch a vm with a root disk
  2.  Stop the vm and detach the root disk
  3.  Attached the uploaded volume as device id 0
  4.  Start the vm

Regards
Kiran

From: Marty Godsey <mar...@rudio.net.INVALID>
Date: Thursday, 6 March 2025 at 1:07 PM
To: users@cloudstack.apache.org <users@cloudstack.apache.org>
Subject: Re: Attaching an uploaded volume
Thank you, Kiran.

I will update this week.

On a slightly different note, what is the best way to create a new instance 
from an uploaded volume? Not a OVA/XVA, etc. Just an exported disk image.

Regards,
Marty

From: Kiran Chavala <kiran.chav...@shapeblue.com>
Date: Thursday, March 6, 2025 at 1:51 AM
To: users@cloudstack.apache.org <users@cloudstack.apache.org>
Subject: Re: Attaching an uploaded volume
WARNING: This email originated from outside of the organization. Do not click 
links or open attachments unless you recognize the sender and know the content 
is safe.


Hi Marty

We have fixed the issue of attaching an uploaded volume in the latest 4.19.2 
release.



https://docs.cloudstack.apache.org/en/4.19.2.0/releasenotes/changes.html

https://github.com/apache/cloudstack/pull/10267

Regards
Kiran


From: Marty Godsey <mar...@rudio.net.INVALID>
Date: Thursday, 6 March 2025 at 8:57 AM
To: users@cloudstack.apache.org <users@cloudstack.apache.org>
Subject: Re: Attaching an uploaded volume
4.19.0.1 I think. Not near a PC to look.



 


________________________________
From: Pearl d'Silva <pearl.dsi...@shapeblue.com>
Sent: Wednesday, March 5, 2025 10:09:53 PM
To: users@cloudstack.apache.org <users@cloudstack.apache.org>
Subject: Re: Attaching an uploaded volume

WARNING: This email originated from outside of the organization. Do not click 
links or open attachments unless you recognize the sender and know the content 
is safe.


What version of CloudStack are you currently using?

Regards.



________________________________
From: Marty Godsey <mar...@rudio.net.INVALID>
Sent: March 5, 2025 6:09 PM
To: users@cloudstack.apache.org <users@cloudstack.apache.org>
Subject: Re: Attaching an uploaded volume

Thank you, Pearl.

When I try to attach it to a VM, I get an error that states “Volume: 
KineticAPP-C is in Uploaded. It should be in Ready or Allocated state”

The compute instance I am trying to attach it to has never been booted. The 
volumes I have are a C drive and data drive, so I want the VM to use these as 
its root and data disk. Do I have to do something different to allow CS to 
mount the volume?

Also, this is not a “if I can’t get it working, it’s bad” scenario. If this 
doesn't work, no data will be lost. This is an exercise to see if we can 
recover a failed server in this manner.

Regards,
Marty

From: Pearl d'Silva <pearl.dsi...@shapeblue.com>
Date: Wednesday, March 5, 2025 at 5:45 PM
To: users@cloudstack.apache.org <users@cloudstack.apache.org>
Subject: Re: Attaching an uploaded volume
WARNING: This email originated from outside of the organization. Do not click 
links or open attachments unless you recognize the sender and know the content 
is safe.


Hi Marty,

When a volume is uploaded, it is present only on the secondary storage. At this 
phase, the state of the volume is Uploaded - that is expected. When you attempt 
to attach it to a VM, it migrates to primary store. This is when the volume's 
state transitions to Ready.

P.S Images do not come through on the Mailing list, so we can't see the image 
you have uploaded.

Thanks,
Pearl



________________________________
From: Marty Godsey <mar...@rudio.net.INVALID>
Sent: March 5, 2025 5:31 PM
To: users@cloudstack.apache.org <users@cloudstack.apache.org>
Subject: Attaching an uploaded volume


Hello everyone.



I have uploaded some volumes that I want to attach to a VM, but they seem to be 
stuck in the uploaded state. There are no errors, they are just simple sitting 
at uploaded.



[cid:image001.png@01DB8DF3.ED3BF320]



My goal is to build a VM using these images as a test restore. Is there a way 
to create a compute instance from an uploaded volume?



Regards,

Marty

Reply via email to