Skip to content

Put machineID to the MAC address hasher + update docs + misc #139

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

Merged
merged 9 commits into from
Aug 5, 2021

Conversation

AkihiroSuda
Copy link
Member

Fix #135

@AkihiroSuda AkihiroSuda added this to the v0.6.0 milestone Aug 2, 2021
@AkihiroSuda AkihiroSuda changed the title Put machineID to the MAC address hasher Put machineID to the MAC address hasher + update docs + misc Aug 2, 2021
@AkihiroSuda
Copy link
Member Author

@jandubois

After merging this one I'm gonna move the repo to https://github.com/lima-vm and release v0.6.0

@AkihiroSuda AkihiroSuda force-pushed the dev-machineid branch 6 times, most recently from a89727d to f506f58 Compare August 3, 2021 07:30
@AkihiroSuda AkihiroSuda requested a review from jandubois August 3, 2021 07:31
README.md Outdated

The default guest IP 192.168.5.15 is not accessible from the host and other guests.

To allow accessing the guest IP from the host and other virtual machines, enable [`vde_vmnet`](https://github.com/lima-vm/vde_vmnet).
Copy link
Member

Choose a reason for hiding this comment

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

Maybe reword to make clear that this will add one or more additional routable IPs to the guest. It will still not allow access "the" guest IP.

Copy link
Member Author

Choose a reason for hiding this comment

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

updated

# - url: "vde:///var/run/vde.ctl"
# # VDE Switch port number (not TCP/UDP port number). Set to 65535 for PTP mode.
# # Default: 0
# port: 0
Copy link
Member

Choose a reason for hiding this comment

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

Maybe call it switchPort to make it more explicit? Because people may delete the comments in their own config files and then later get confused.

We already use macAddress below, so we are not aiming for the shortest possible names.

Copy link
Member Author

Choose a reason for hiding this comment

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

updated

}
}
} else if runtime.GOOS != "linux" {
logrus.Warnf("field %s.url is unlikely to work for %s (unless you managed to port over libvdeplug4 to %s by yourself)",
Copy link
Member

Choose a reason for hiding this comment

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

Put %s.url in backquotes.

The quoted text feels slightly snarky to me. Maybe "(unless libvdeplug4 has been ported to %s and is installed)" is more neutral?

Copy link
Member Author

Choose a reason for hiding this comment

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

updated

Copy link
Member

@jandubois jandubois left a comment

Choose a reason for hiding this comment

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

Finished my review

@AkihiroSuda AkihiroSuda marked this pull request as draft August 4, 2021 02:40
@AkihiroSuda AkihiroSuda marked this pull request as ready for review August 4, 2021 13:26
"5" is the magic number in the Lima ecosystem.
(Visit https://en.wiktionary.org/wiki/lima and Command-F "five")

But the second hex number is changed to 2 to satisfy the convention for local MAC addresses
(https://en.wikipedia.org/wiki/MAC_address#Ranges_of_group_and_locally_administered_addresses)

Signed-off-by: Akihiro Suda <[email protected]>
Signed-off-by: Akihiro Suda <[email protected]>
Signed-off-by: Akihiro Suda <[email protected]>
Signed-off-by: Akihiro Suda <[email protected]>
It is called "URL" so we should support at least "vde://" prefix

Signed-off-by: Akihiro Suda <[email protected]>
@AkihiroSuda
Copy link
Member Author

btw maybe we should rename url to vnl (Virtual Network Locator) to follow the latest VDE nomenclature

rd235/vdeplug4@0899842

To follow the latest VDE nomenclature.

rd235/vdeplug4@0899842

Signed-off-by: Akihiro Suda <[email protected]>
Copy link
Member

@jandubois jandubois left a comment

Choose a reason for hiding this comment

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

LGTM

@AkihiroSuda AkihiroSuda merged commit 874786d into master Aug 5, 2021
@AkihiroSuda AkihiroSuda deleted the dev-machineid branch August 5, 2021 05:33
@AkihiroSuda AkihiroSuda added the kind/refactoring Refactoring label Aug 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/refactoring Refactoring
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Include the machine-id in the hasher to generate unique MAC addresses
2 participants