-
System InformationLinux distribution
Terraform versionTerraform v1.9.4
on linux_amd64
+ provider registry.terraform.io/dmacvicar/libvirt v0.7.1
+ provider registry.terraform.io/hashicorp/local v2.5.1
+ provider registry.terraform.io/hashicorp/null v3.2.2
+ provider registry.terraform.io/ibm-hyper-protect/hpcr v0.8.0 Provider and libvirt versionsprovider registry.terraform.io/dmacvicar/libvirt v0.7.1
Compiled against library: libvirt 10.0.0
Using library: libvirt 10.0.0
Using API: QEMU 10.0.0
Running hypervisor: QEMU 8.2.2 Description of Issue/QuestionSetup
Steps to Reproduce IssueError
Additional information:This terraform script is working on Ubuntu 22.04 and RHEL 8.4. But, not working in Ubuntu 24.04 I tried manually creating using |
Beta Was this translation helpful? Give feedback.
Replies: 19 comments
-
@dmacvicar , please help here |
Beta Was this translation helpful? Give feedback.
-
I think this issue is related to libvirt directly more than to this provider. I would advise to try to reproduce this error using |
Beta Was this translation helpful? Give feedback.
-
Hello @scabala , I used virt-install and I am able to bring up an instance. I used debug mode to see what is in the XML config generated by the provider. I can see it is defining <domain type="kvm">
<name>sashwatk_onprem_crypto_passthrough-domain</name>
<memory unit="MiB">8192</memory>
<vcpu>2</vcpu>
<os>
<type machine="s390-ccw-virtio">hvm</type>
</os>
<features>
<pae></pae>
<acpi></acpi>
<apic></apic>
</features>
<cpu></cpu>
<devices>
<disk type="volume" device="disk">
<driver name="qemu" type="qcow2"></driver>
<source pool="sashwatk_onprem_cryptopassthrough_pool" volume="sashwatk_onprem_crypto_passthrough-vda"></source>
<target dev="vda" bus="virtio"></target>
</disk>
<disk type="volume" device="disk">
<driver name="qemu" type="raw"></driver>
<source pool="sashwatk_onprem_cryptopassthrough_pool" volume="sashwatk_onprem_crypto_passthrough-vdc"></source>
<target dev="vdb" bus="virtio"></target>
</disk>
<interface type="network">
<mac address="52:54:00:02:b6:df"></mac>
<source network="default"></source>
<model type="virtio"></model>
</interface>
<console>
<target type="sclp" port="0"></target>
</console>
<channel type="unix">
<target type="virtio" name="org.qemu.guest_agent.0"></target>
</channel>
<rng model="virtio">
<backend model="random">/dev/urandom</backend>
</rng>
</devices>
</domain> Would you guide me where should I raise the issue? Thank you for the response. |
Beta Was this translation helpful? Give feedback.
-
In that case I think this might be provider issue. Could you share the |
Beta Was this translation helpful? Give feedback.
-
Hello @scabala , The following the xsl file contents.
|
Beta Was this translation helpful? Give feedback.
-
Hello @scabala , Did you get a chance to take a look into this issue? |
Beta Was this translation helpful? Give feedback.
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
Hello @dmacvicar , |
Beta Was this translation helpful? Give feedback.
-
@Sashwat-K I could just remove ACPI on s390, but I am not sure if I will break something for someone else. How can I know for sure?
|
Beta Was this translation helpful? Give feedback.
-
Can you attach the output of
and
against the host? |
Beta Was this translation helpful? Give feedback.
-
Related to #746 |
Beta Was this translation helpful? Give feedback.
-
Hello @dmacvicar
|
Beta Was this translation helpful? Give feedback.
-
Hey @dmacvicar , I tried XSL method, the file is present in the comments above. The issue is still there. We can't provide an image. But, I am ready to actively support you on any s390x related issues. |
Beta Was this translation helpful? Give feedback.
-
@Sashwat-K |
Beta Was this translation helpful? Give feedback.
-
I am not sure on how to remove ACPI. Would you help? |
Beta Was this translation helpful? Give feedback.
-
Sashwat, sorry, with all my respect 🙏 we are in the same place, and I would also need to google/remember the right XSL to remove an element from XML file. Just google/ChatGPT and make it remove the I also opened https://github.com/dmacvicar/terraform-provider-libvirt/discussions as a forum for help and sharing of recipes, though is quite new. |
Beta Was this translation helpful? Give feedback.
-
Hello @dmacvicar , I am confused in one part. This issue was not there till now on any other OS releases. Why are we facing specifically on 24.04. Should we raise a bug under libvirt for this? |
Beta Was this translation helpful? Give feedback.
-
I think we have always set ACPI in our default domain definition: Features: &libvirtxml.DomainFeatureList{
PAE: &libvirtxml.DomainFeature{},
ACPI: &libvirtxml.DomainFeature{},
APIC: &libvirtxml.DomainFeatureAPIC{},
}, |
Beta Was this translation helpful? Give feedback.
-
Hello Team, Thank you @scabala and @dmacvicar for the suggestions and support. |
Beta Was this translation helpful? Give feedback.
Hello Team,
I tried adding
<xsl:template match="acpi"/>
empty to XSL file that I am using and I am able to successfully bring up instances on 24.04.Thank you @scabala and @dmacvicar for the suggestions and support.