-
Notifications
You must be signed in to change notification settings - Fork 30
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
Show IP address of the VM created using inspect json #245
Comments
This is related to: #242. As vfkit does not directly interact with the guest OS, it does therefore need to do this from the host. |
We may re/use code from CRC https://github.com/crc-org/machine-driver-hyperkit/blob/master/pkg/hyperkit/network.go |
https://github.com/crc-org/crc/blob/main/pkg/drivers/vfkit/network_darwin.go has some code parsing the leases file, some of it can probably reused. EDIT: posted at the same time as Yevhen's comment ^^ |
The question I have is; is this really the responsibility of the hypervisor driver. As in this case it is infrastructure and networking. If I had not used DHCP, but bridged, this would not have worked. And I can also not rely on the guest OS, as that might be a different type of OS. |
When we have the information, it's worthwhile to provide it instead of telling everyone to go parse a file by themselves in a non obvious location. |
Proposition
It could be very hard for a user to figure out what the IP address of the VM created is when DHCP is used. This is why I would like to propose to use the inspect json response to show it like the hostname of VM
Now
After
The text was updated successfully, but these errors were encountered: