You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by "SviridoffA (via GitHub)" <gi...@apache.org> on 2025/09/05 08:23:06 UTC
[D] Change type of machine in KVM hypervisor [cloudstack]
GitHub user SviridoffA created a discussion: Change type of machine in KVM hypervisor
Hi Everyone! Please help me 🙏! Can someone tell me if there's any way to change parameter <type arch='x86_64' machine='pc-i440fx-8.2'>hvm</type> in a virtual machine's XML to <type arch='x86_64' machine='pc-q35-8.2'>hvm</type> without CloudStack overwriting these changes, perhaps through some extra config set with the API (cmk)?
I am using:
ACS 4.19.3
Ubuntu 24.04
QEMU 8.2.2
GitHub link: https://github.com/apache/cloudstack/discussions/11583
----
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] Change type of machine in KVM hypervisor [cloudstack]
Posted by "NuxRo (via GitHub)" <gi...@apache.org>.
GitHub user NuxRo closed the discussion with a comment: Change type of machine in KVM hypervisor
Only manual way @SviridoffA
1. go to hypervisor
2. virsh edit instance-name, change to pc-i440fx-8.0 or whatever you need
3. virsh destroy instance-name (or "shutdown" if machine is responsive)
4. virsh start instance-name
GitHub link: https://github.com/apache/cloudstack/discussions/11583#discussioncomment-14349518
----
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] Change type of machine in KVM hypervisor [cloudstack]
Posted by "SviridoffA (via GitHub)" <gi...@apache.org>.
GitHub user SviridoffA added a comment to the discussion: Change type of machine in KVM hypervisor
Hi @DaanHoogland! Do you mean "virsh edit"? But won't it be overwritten during start or migration operations?
GitHub link: https://github.com/apache/cloudstack/discussions/11583#discussioncomment-14340499
----
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] Change type of machine in KVM hypervisor [cloudstack]
Posted by "SviridoffA (via GitHub)" <gi...@apache.org>.
GitHub user SviridoffA closed the discussion with a comment: Change type of machine in KVM hypervisor
Hi @NuxRo! Thanks for you reply. As I wrote above, I followed the order you specified, but when we change the type from pc-i440fx to pc-q35, we also need to modify several parameters related to USB and PCI buses. When we change one thing, virsh requires changes to other parameters. I took all the necessary parameters from a virtual machine with UEFI, inserted them into config of the virtual machine whose type I’m changing, and removed UEFI-related section, after this virsh allowed me to save xml file. However, after starting the virtual machine, the system couldn’t identify boot device. ((
GitHub link: https://github.com/apache/cloudstack/discussions/11583#discussioncomment-14349643
----
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] Change type of machine in KVM hypervisor [cloudstack]
Posted by "SviridoffA (via GitHub)" <gi...@apache.org>.
GitHub user SviridoffA added a comment to the discussion: Change type of machine in KVM hypervisor
It seems like I'm missing something... But to apply these changes, I need to stop and start the VM, and if I stop and start it, the XML will be overwritten, right? So I can't apply these changes anyway)))
GitHub link: https://github.com/apache/cloudstack/discussions/11583#discussioncomment-14342900
----
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] Change type of machine in KVM hypervisor [cloudstack]
Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
GitHub user DaanHoogland added a comment to the discussion: Change type of machine in KVM hypervisor
yes it will be a workaround, just to verify that it can run. While you wait for the more permanent solution mentioned above (https://github.com/apache/cloudstack/discussions/11583#discussioncomment-14315870).
GitHub link: https://github.com/apache/cloudstack/discussions/11583#discussioncomment-14341860
----
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] Change type of machine in KVM hypervisor [cloudstack]
Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
GitHub user DaanHoogland added a comment to the discussion: Change type of machine in KVM hypervisor
if you start from cloudstack, these changes will be overwritten, but if you stop/start out of bound they won’t.
GitHub link: https://github.com/apache/cloudstack/discussions/11583#discussioncomment-14348475
----
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] Change type of machine in KVM hypervisor [cloudstack]
Posted by "SviridoffA (via GitHub)" <gi...@apache.org>.
GitHub user SviridoffA edited a discussion: Change type of machine in KVM hypervisor
Hi Everyone! Please help me 🙏! Can someone tell me if there's any way to change parameter arch='x86_64' machine='pc-i440fx-8.2' in a virtual machine's XML to arch='x86_64' machine='pc-q35-8.2' without CloudStack overwriting these changes, perhaps through some extra config set with the API (cmk)?
I am using:
ACS 4.19.3
Ubuntu 24.04
QEMU 8.2.2
GitHub link: https://github.com/apache/cloudstack/discussions/11583
----
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] Change type of machine in KVM hypervisor [cloudstack]
Posted by "SviridoffA (via GitHub)" <gi...@apache.org>.
GitHub user SviridoffA added a comment to the discussion: Change type of machine in KVM hypervisor
Thank you for your hint, I performed it using virsh shutdown and virsh start.
There are too many interconnected parameters in the XML that need to be adjusted for this type of virtual machine. I tried extracting config from the UEFI configuration and aligning it with the standard one. In the end, I managed to start the virtual machine, but I encountered an error with boot device. For now, I've given up and will wait for release.
GitHub link: https://github.com/apache/cloudstack/discussions/11583#discussioncomment-14349355
----
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] Change type of machine in KVM hypervisor [cloudstack]
Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
GitHub user DaanHoogland added a comment to the discussion: Change type of machine in KVM hypervisor
how about using virsh to edit the domain on the hypervisor? (don’t try this at home!!!)
GitHub link: https://github.com/apache/cloudstack/discussions/11583#discussioncomment-14340437
----
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] Change type of machine in KVM hypervisor [cloudstack]
Posted by "SviridoffA (via GitHub)" <gi...@apache.org>.
GitHub user SviridoffA added a comment to the discussion: Change type of machine in KVM hypervisor
Hi @weizhouapache, thanks for this information. It's a great enhancement, but if I can't build CloudStack myself with this PR, is there any other way to do this at the moment?
I have tried
```
cmk update virtualmachine id=<id> extraconfig="<os><type arch='x86_64' machine='pc-q35-8.2'>hvm</type></os>"
```
but looks like it's not correct. There are many another parameters related in XML.
GitHub link: https://github.com/apache/cloudstack/discussions/11583#discussioncomment-14316056
----
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] Change type of machine in KVM hypervisor [cloudstack]
Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
GitHub user weizhouapache added a comment to the discussion: Change type of machine in KVM hypervisor
@SviridoffA
there is a recent PR for it: #11569
GitHub link: https://github.com/apache/cloudstack/discussions/11583#discussioncomment-14315870
----
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] Change type of machine in KVM hypervisor [cloudstack]
Posted by "SviridoffA (via GitHub)" <gi...@apache.org>.
GitHub user SviridoffA added a comment to the discussion: Change type of machine in KVM hypervisor
It seems the only way to do this now is to create a virtual machine with UEFI settings. If you choose this option, VM type will be set to pc-q35-8.2. However, this cannot be applied to an already existing virtual machine, as it may cause issues with the bootloader.
GitHub link: https://github.com/apache/cloudstack/discussions/11583#discussioncomment-14316798
----
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] Change type of machine in KVM hypervisor [cloudstack]
Posted by "SviridoffA (via GitHub)" <gi...@apache.org>.
GitHub user SviridoffA closed a discussion: Change type of machine in KVM hypervisor
Hi Everyone! Please help me 🙏! Can someone tell me if there's any way to change parameter arch='x86_64' machine='pc-i440fx-8.2' in a virtual machine's XML to arch='x86_64' machine='pc-q35-8.2' without CloudStack overwriting these changes, perhaps through some extra config set with the API (cmk)?
I am using:
ACS 4.19.3
Ubuntu 24.04
QEMU 8.2.2
GitHub link: https://github.com/apache/cloudstack/discussions/11583
----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org