-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
WIP: create tunnel for qemu #14615
WIP: create tunnel for qemu #14615
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: klaases The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
If the error says
The installation documentation shown above at However, that page did include download instructions, which are here: |
Successfully starting up with QEMU on Mac M1 (ARM64):
|
Attempting to start a service with QEMU results in an error which we will try to solve for in this PR:
|
} | ||
|
||
// NewServiceTunnel ... | ||
func NewServiceTunnel(sshPort, sshKey string, v1Core typed_core.CoreV1Interface, suppressStdOut bool) *ServiceTunnel { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am curious how is this code different form the one in KIC, is there a way to reuse that code ? so when we need to improve one dont have to do it in two places
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this is the same code, I am not sure why it was originally placed into the kic
folder but I'll find out.
Running the following command yielded the subsequent output:
Note: the following do not need to be run:
TODO: need to:
|
TODO(): Need to deploy a service with a node port. Wait, for service to up, however, it is timing out:
|
Starting fresh with the following:
Wait for minikube to full start up, however on Mac OS M1 (ARM64) an error occurs (see below). In addition, when trying to debug with: Will switch over to my Linux machine and keep trying.
|
On Linux, found the following error!
|
Trying
|
@medyagh confirmed that: "we do NOT have support for KVM on linux" and "u would need to run it on Mac M1". For development purposes, I will switch back to Mac M1 but it does not seem like minikube start with qemu is working on Mac M1 per: #14615 (comment) Has |
Found that #14412 expressed a similar error with regards to |
With the latest version of minikube development, I am unable to run Qemu on Mac M1.
Full Output
The problem may be due in part to the Qemu driver being too new.
I will try downgrading Qemu and see if that helps minikube. |
Rolling back
Searching for previous releases:
Unable to roll-back qemu on Mac M1, will try another machine. |
Update: I was able to get this working on an external machine, however would like to get it working on my local machine for development purposes. |
Re-trying on local machine, Mac M1. Update 1 - running Full Output for 'systemctl status kubelet'
Update 2 - running Full Output for 'journalctl -xeu kubelet'
|
There may be some hanging references to qemu, post uninstall.
Next:
restart... |
After restart am still getting above error and timeout. Not sure why:
??? |
you must be in a network that does not have access to k8s.gcr.io could u verify manually ? and change your network/proxy settings |
When running curl, I see the following:
|
Here is a the lastStart.txt file for reference: |
Per @medyagh's suggestion, I tried disabling acceleration with the following: pkg/drivers/qemu/qemu.go L384 However, it did not work:
Will look into alternative acceleration options. |
For Mac M1, I found the following accelerators:
When running with
This does not occur with using |
Same error |
The 1 - first tried stopping the processes, to no avail:
However this did not help. 2 - tried unloading
Successful install:
|
Start socket_vmnet:
Start Qemu:
Path to Qemu on MacOS: |
da65f86
to
e57a721
Compare
@klaases: PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Closing this due to #14989 |
This is the base tunnel QEMU package.
References:
VMNET:
LIMA: