Skip to content

T8065: Dehardcode qemu settings to allow run tests on arch arm64 - #1073

Closed
sever-sever wants to merge 1 commit into
vyos:currentfrom
sever-sever:T8065
Closed

T8065: Dehardcode qemu settings to allow run tests on arch arm64#1073
sever-sever wants to merge 1 commit into
vyos:currentfrom
sever-sever:T8065

Conversation

@sever-sever

@sever-sever sever-sever commented Dec 3, 2025

Copy link
Copy Markdown
Member

Change summary

Dehardcode qemu settings to allow running smoketests on the arch arm64
I cannot completely check it, due to a lack of arm64 devices with a supported /dev/kvm
But it is a good starting point. It could still fail on the arm64, but at least we allow it for future investigation.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes)
  • Migration from an old Vyatta component to vyos-1x, please link to related PR inside obsoleted component
  • Other (please describe):

Related Task(s)

Related PR(s)

#1074

Checklist:

  • I have read the CONTRIBUTING document
  • I have linked this PR to one or more Phabricator Task(s)
  • My commit headlines contain a valid Task id
  • My change requires a change to the documentation
  • I have updated the documentation accordingly

@sever-sever
sever-sever marked this pull request as draft December 3, 2025 12:20
@github-actions

github-actions Bot commented Dec 3, 2025

Copy link
Copy Markdown

👍
No issues in PR Title / Commit Title

@github-actions github-actions Bot added the current VyOS rolling release label Dec 3, 2025
@sever-sever
sever-sever force-pushed the T8065 branch 5 times, most recently from faa1b8a to be1db15 Compare December 4, 2025 20:29
@sever-sever
sever-sever marked this pull request as ready for review December 4, 2025 21:07
@sever-sever
sever-sever requested review from c-po and dmbaturin December 4, 2025 21:08
@sever-sever

Copy link
Copy Markdown
Member Author

@asklymenko add your review, please

@sever-sever

Copy link
Copy Markdown
Member Author

@huihuimoe, do you have a chance to check it?

sudo make test-no-interfaces-no-vpp | tee tmp.log

@sever-sever
sever-sever marked this pull request as draft December 8, 2025 16:29
@sever-sever
sever-sever force-pushed the T8065 branch 2 times, most recently from 16b0ef3 to 582f2e3 Compare December 8, 2025 18:42
@sever-sever
sever-sever marked this pull request as ready for review December 8, 2025 18:42
@sever-sever
sever-sever force-pushed the T8065 branch 5 times, most recently from 1e3e98c to 4fb2337 Compare December 10, 2025 15:19
Comment thread Makefile

@c-po c-po left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'd remove the files

  • tools/container/config.boot.default.amd64
  • tools/container/config.boot.default.arm64

from this PR as they are related to VyOS as container. As this is an experimental feature, is it true that the serial console in an arm64 container is still ttyAMA0?

@sever-sever

Copy link
Copy Markdown
Member Author

I'd remove the files

* tools/container/config.boot.default.amd64

* tools/container/config.boot.default.arm64

from this PR as they are related to VyOS as container. As this is an experimental feature, is it true that the serial console in an arm64 container is still ttyAMA0?

@c-po done, files removed!
As users said, the ARM platform does not use Serial but uses AMA

@sever-sever
sever-sever requested a review from c-po December 24, 2025 09:19
if not os.path.exists('/dev/kvm'):
log.error('KVM not enabled on host, proceeding with software emulation')
sys.exit(1)
# Some arm platforms do not have kvm, for example Mac arm devices

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This will change the behavior also for regular amd64 tests which is not a good idea. If MAC behaves different - add a condition to this check.

>>> import sys
>>> sys.platform
'linux'

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Another example - git arm64 runners do not support KVM

@sever-sever

sever-sever commented Dec 31, 2025

Copy link
Copy Markdown
Member Author

There are a lot of conflicts after merging #1083
It will be easier to re-implement it from scratch than fix all conflicts.
I close the PR


Update:
The new PR is #1092

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

current VyOS rolling release

Development

Successfully merging this pull request may close these issues.

2 participants