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

Introduce --random-mac and --random-serial flags for tart set #809

Merged
merged 2 commits into from
May 2, 2024

Conversation

fkorotkov
Copy link
Contributor

To generate new MAC address and/or serial number for a given VM.

To generate new MAC address and/or serial number for a given VM.
@fkorotkov fkorotkov requested a review from edigaryev as a code owner May 1, 2024 18:58
@fkorotkov fkorotkov enabled auto-merge (squash) May 1, 2024 18:59

#if arch(arm64)
if randomSerial {
let oldPlatform = vmConfig.platform as! Darwin
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we not assume that it's always Darwin and do a proper type check & throw an error if it's Linux?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Though about it but was too lazy and the error message will be self-explanatory. Plus help mentions macOS.

@fkorotkov fkorotkov merged commit 985db24 into main May 2, 2024
6 checks passed
@fkorotkov fkorotkov deleted the random-mac-ecid branch May 2, 2024 14:27
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.

None yet

2 participants