Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update domain template for arm64 use case #119

Merged
merged 3 commits into from
Jun 4, 2024

Conversation

praveenkumar
Copy link
Member

With the following patches I can manage crc VM on arm64 and amd64 linux machines. I also need to add CI to build arm64 bits but in separate PR.

https://bugzilla.redhat.com/show_bug.cgi?id=1806532 now fixed and this
workaround not needed anymore. Also for some of aarch64 cpus there is no
rdrand flag/feature which fails with following error during domain
creation.

```
virError(Code=67, Domain=31, Message='unsupported configuration: unknown CPU feature: rdrand')
```
Both OCP/microshift bundles are created using uefi[0] so better to have
the `efi` firmware enable by default. In case of aarch64 systems looks
like it is required to have `acpi` feature otherwise it failed with
following error.

```
virError(Code=67, Domain=10, Message='unsupported configuration: ACPI requires UEFI on this architecture')
```

[0] https://github.com/crc-org/snc/blob/master/tools.sh#L208
In previous commit `efi` firmware added which add the `<nvram />` to
domain template and during the deleting the VM (which destroy =>
undefine) if fails with following error.

```
Code=55, Domain=10, Message='Requested operation is not valid: cannot undefine domain with nvram'
```

This patch make sure to have `DOMAIN_UNDEFINE_NVRAM` flag set during
undefine the VM.

- https://libvirt.org/html/libvirt-libvirt-domain.html#VIR_DOMAIN_UNDEFINE_NVRAM
Copy link

@cfergeau cfergeau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

libvirt.go: undefine vm with DOMAIN_UNDEFINE_NVRAM flag could be squashed with the previous commit (and part of its log added to the previous commit's log).
Not important, fine with me without or with this change.

@praveenkumar praveenkumar merged commit 7a81f8e into crc-org:master Jun 4, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants