You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by "AlexanderKgr (via GitHub)" <gi...@apache.org> on 2024/11/08 10:24:03 UTC
[D] Cannot upload root disc - convert datadisk to root disk [cloudstack]
GitHub user AlexanderKgr created a discussion: Cannot upload root disc - convert datadisk to root disk
<!--
Verify first that your issue/request is not already reported on GitHub.
Also test if the latest release and main branch are affected too.
Always add information AFTER of these HTML comments, but no need to delete the comments.
-->
##### ISSUE TYPE
<!-- Pick one below and delete the rest -->
* Bug Report
##### COMPONENT NAME
<!--
Categorize the issue, e.g. API, VR, VPN, UI, etc.
-->
~~~
Uploading volume cannot be chosen as root disk. It is uploaded as datadisk and after that it is not possible to convert it to root disc
~~~
##### CLOUDSTACK VERSION
<!--
New line separated list of affected versions, commit ID for issues on main branch.
-->
~~~
4.19.1.1
~~~
##### CONFIGURATION
<!--
Information about the configuration if relevant, e.g. basic network, advanced networking, etc. N/A otherwise
-->
Ubuntu 22.04 server edition
##### OS / ENVIRONMENT
<!--
Information about the environment if relevant, N/A otherwise
-->
Cloudstack 4.19.1.1 installed on ubuntu 22.04 server edition with xcp-ng as hypervisor
##### SUMMARY
<!-- Explain the problem/feature briefly -->
##### STEPS TO REPRODUCE
<!--
For bugs, show exactly how to reproduce the problem, using a minimal test-case. Use Screenshots if accurate.
For new features, show how the feature would be used.
-->
<!-- Paste example playbooks or commands between quotes below -->
~~~
Uploading volume cannot be chosen as root disk. It is uploaded as datadisk and after that it is not possible to convert it to root disc
~~~


<!-- You can also paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!-- What did you expect to happen when running the steps above? -->
~~~
There could be an option to select type of disc and it could have been uploaded as a root disc type
~~~
##### ACTUAL RESULTS
<!-- What actually happened? -->
<!-- Paste verbatim command output between quotes below -->
~~~
There is no option to select the type of the disc. Disc is uploaded as datadisk type and it is not possible to attach it to a vm.
~~~
GitHub link: https://github.com/apache/cloudstack/discussions/9910
----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org
Re: [D] Cannot upload root disc - convert datadisk to root disk [cloudstack]
Posted by "AlexanderKgr (via GitHub)" <gi...@apache.org>.
GitHub user AlexanderKgr closed a discussion: Cannot upload root disc - convert datadisk to root disk
<!--
Verify first that your issue/request is not already reported on GitHub.
Also test if the latest release and main branch are affected too.
Always add information AFTER of these HTML comments, but no need to delete the comments.
-->
##### ISSUE TYPE
<!-- Pick one below and delete the rest -->
* Bug Report
##### COMPONENT NAME
<!--
Categorize the issue, e.g. API, VR, VPN, UI, etc.
-->
~~~
Uploading volume cannot be chosen as root disk. It is uploaded as datadisk and after that it is not possible to convert it to root disc
~~~
##### CLOUDSTACK VERSION
<!--
New line separated list of affected versions, commit ID for issues on main branch.
-->
~~~
4.19.1.1
~~~
##### CONFIGURATION
<!--
Information about the configuration if relevant, e.g. basic network, advanced networking, etc. N/A otherwise
-->
Ubuntu 22.04 server edition
##### OS / ENVIRONMENT
<!--
Information about the environment if relevant, N/A otherwise
-->
Cloudstack 4.19.1.1 installed on ubuntu 22.04 server edition with xcp-ng as hypervisor
##### SUMMARY
<!-- Explain the problem/feature briefly -->
##### STEPS TO REPRODUCE
<!--
For bugs, show exactly how to reproduce the problem, using a minimal test-case. Use Screenshots if accurate.
For new features, show how the feature would be used.
-->
<!-- Paste example playbooks or commands between quotes below -->
~~~
Uploading volume cannot be chosen as root disk. It is uploaded as datadisk and after that it is not possible to convert it to root disc
~~~


<!-- You can also paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!-- What did you expect to happen when running the steps above? -->
~~~
There could be an option to select type of disc and it could have been uploaded as a root disc type
~~~
##### ACTUAL RESULTS
<!-- What actually happened? -->
<!-- Paste verbatim command output between quotes below -->
~~~
There is no option to select the type of the disc. Disc is uploaded as datadisk type and it is not possible to attach it to a vm.
~~~
GitHub link: https://github.com/apache/cloudstack/discussions/9910
----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org
Re: [D] Cannot upload root disc - convert datadisk to root disk [cloudstack]
Posted by "rajujith (via GitHub)" <gi...@apache.org>.
GitHub user rajujith added a comment to the discussion: Cannot upload root disc - convert datadisk to root disk
@AlexanderKgr You can upload this file as a template? When you deploy an instance from template it gets copied to the desired ROOT volume.
GitHub link: https://github.com/apache/cloudstack/discussions/9910#discussioncomment-11187575
----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org
Re: [D] Cannot upload root disc - convert datadisk to root disk [cloudstack]
Posted by "AlexanderKgr (via GitHub)" <gi...@apache.org>.
GitHub user AlexanderKgr added a comment to the discussion: Cannot upload root disc - convert datadisk to root disk
> @AlexanderKgr You can upload this file as a template? When you deploy an instance from template it gets copied to the desired ROOT volume.
i don't want to create new instance. i just want to replace the volume. In previous versions of cloudstack it was possible.
GitHub link: https://github.com/apache/cloudstack/discussions/9910#discussioncomment-11187576
----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org
Re: [D] Cannot upload root disc - convert datadisk to root disk [cloudstack]
Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
GitHub user weizhouapache added a comment to the discussion: Cannot upload root disc - convert datadisk to root disk
@AlexanderKgr
to be frank, I do not think it was possible to upload a volume as root disk, because the Uploaded volume is stored on secondary storage, it is not attached to any vm.
you can try
- attach the new volume to the vm as datadisk
- if the vm is not running, start the vm and then stop it. The Uploaded volume will be copied from secondary storage to same storage pool as the root volume.
- detach the new volume
- detach the ROOT volume of the vm you want to replace
- attach the new volume to the vm as ROOT disk (deviceId=0)
GitHub link: https://github.com/apache/cloudstack/discussions/9910#discussioncomment-11187577
----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org