How to execute minishift to CentOS7 on EC2









up vote
0
down vote

favorite












I'm trying create a OpenShift cluster with minishift, on AWS EC2.



When following command executes, an error occurs and stop building.



$ ./minishift start --vm-driver generic --remote-ipaddress <remote_IP_address> --remote-ssh-user <username> --remote-ssh-key <private_ssh_key>
-- Starting profile 'minishift'
-- Checking if provided oc flags are supported ... OK
-- Starting the OpenShift cluster using 'generic' hypervisor ...
-- Preparing Remote Machine ......................................... OK
-- Starting to provision the remote machine ........... FAIL E1110 12:30:16.999357 2234 start.go:491] Error starting the VM: Error starting stopped host: generic driver does not support start. Retrying.
Error starting the VM: Error starting stopped host: generic driver does not support start


version:



$ ./minishift version
minishift v1.26.1+1e20f27


refs:
https://docs.okd.io/latest/minishift/using/run-against-an-existing-machine.html




On minishift v1.27.0+707887e, another error occurs.



(Before executing following minishift start command, remote user is required belonging to docker group.)



$ minishift start --vm-driver generic --remote-ipaddress 18.233.158.63 --remote-ssh-user centos --remote-ssh-key /home/vagrant/.ssh/id_rsa
-- Starting profile 'minishift'
-- Checking if provided oc flags are supported ... OK
-- Starting the OpenShift cluster using 'generic' hypervisor ...
-- Preparing Remote Machine ...... OK
-- Starting to provision the remote machine .................... OK
-- OpenShift cluster will be configured with ...
Version: v3.11.0
-- Pulling the OpenShift Container Image ......... OK
-- Copying oc binary from the OpenShift container image to VM ... OK
-- Starting OpenShift cluster ......................................................................Error during 'cluster up' execution: Error starting the cluster. ssh command error:
command : /var/lib/minishift/bin/oc cluster up --base-dir /var/lib/minishift/base --image 'openshift/origin-$component:v3.11.0' --public-hostname 18.233.158.63 --routing-suffix 18.233.158.63.nip.io
err : exit status 1
output : Getting a Docker client ...
Checking if image openshift/origin-control-plane:v3.11.0 is available ...
Pulling image openshift/origin-cli:v3.11.0
E1115 03:45:41.309220 11696 helper.go:173] Reading docker config from /home/centos/.docker/config.json failed: open /home/centos/.docker/config.json: no such file or directory, will attempt to pull image docker.io/openshift/origin-cli:v3.11.0 anonymously
Image pull complete
Pulling image openshift/origin-node:v3.11.0
E1115 03:45:41.480331 11696 helper.go:173] Reading docker config from /home/centos/.docker/config.json failed: open /home/centos/.docker/config.json: no such file or directory, will attempt to pull image docker.io/openshift/origin-node:v3.11.0 anonymously
Pulled 6/6 layers, 100% complete
Extracting
Image pull complete
Checking type of volume mount ...
Determining server IP ...
Using public hostname IP 18.233.158.63 as the host IP
Checking if OpenShift is already running ...
Checking for supported Docker version (=>1.22) ...
Checking if insecured registry is configured properly in Docker ...
Checking if required ports are available ...
Checking if OpenShift client is configured properly ...
Checking if image openshift/origin-control-plane:v3.11.0 is available ...
Starting OpenShift using openshift/origin-control-plane:v3.11.0 ...
I1115 03:45:47.686207 11696 config.go:40] Running "create-master-config"
I1115 03:45:50.350386 11696 config.go:46] Running "create-node-config"
I1115 03:45:51.702066 11696 flags.go:30] Running "create-kubelet-flags"
I1115 03:45:52.085289 11696 run_kubelet.go:49] Running "start-kubelet"
I1115 03:45:52.249024 11696 run_self_hosted.go:181] Waiting for the kube-apiserver to be ready ...
I1115 03:46:20.265246 11696 interface.go:26] Installing "kube-proxy" ...
I1115 03:46:20.265835 11696 interface.go:26] Installing "kube-dns" ...
I1115 03:46:20.265843 11696 interface.go:26] Installing "openshift-service-cert-signer-operator" ...
I1115 03:46:20.265849 11696 interface.go:26] Installing "openshift-apiserver" ...
I1115 03:46:20.265897 11696 apply_template.go:81] Installing "openshift-apiserver"
I1115 03:46:20.266386 11696 apply_template.go:81] Installing "kube-proxy"
I1115 03:46:20.268284 11696 apply_template.go:81] Installing "kube-dns"
I1115 03:46:20.268428 11696 apply_template.go:81] Installing "openshift-service-cert-signer-operator"
I1115 03:46:23.999620 11696 interface.go:41] Finished installing "kube-proxy" "kube-dns" "openshift-service-cert-signer-operator" "openshift-apiserver"
Error: timed out waiting for the condition









share|improve this question























  • Have you configured the remote machine properly? (docs.okd.io/latest/minishift/using/…) And is the remote machine reachable from your host via ssh?
    – John
    Nov 10 at 23:11











  • Yes, I can login using ssh <user>@<remote_IP_address> without password input.
    – yukihane
    Nov 11 at 4:20














up vote
0
down vote

favorite












I'm trying create a OpenShift cluster with minishift, on AWS EC2.



When following command executes, an error occurs and stop building.



$ ./minishift start --vm-driver generic --remote-ipaddress <remote_IP_address> --remote-ssh-user <username> --remote-ssh-key <private_ssh_key>
-- Starting profile 'minishift'
-- Checking if provided oc flags are supported ... OK
-- Starting the OpenShift cluster using 'generic' hypervisor ...
-- Preparing Remote Machine ......................................... OK
-- Starting to provision the remote machine ........... FAIL E1110 12:30:16.999357 2234 start.go:491] Error starting the VM: Error starting stopped host: generic driver does not support start. Retrying.
Error starting the VM: Error starting stopped host: generic driver does not support start


version:



$ ./minishift version
minishift v1.26.1+1e20f27


refs:
https://docs.okd.io/latest/minishift/using/run-against-an-existing-machine.html




On minishift v1.27.0+707887e, another error occurs.



(Before executing following minishift start command, remote user is required belonging to docker group.)



$ minishift start --vm-driver generic --remote-ipaddress 18.233.158.63 --remote-ssh-user centos --remote-ssh-key /home/vagrant/.ssh/id_rsa
-- Starting profile 'minishift'
-- Checking if provided oc flags are supported ... OK
-- Starting the OpenShift cluster using 'generic' hypervisor ...
-- Preparing Remote Machine ...... OK
-- Starting to provision the remote machine .................... OK
-- OpenShift cluster will be configured with ...
Version: v3.11.0
-- Pulling the OpenShift Container Image ......... OK
-- Copying oc binary from the OpenShift container image to VM ... OK
-- Starting OpenShift cluster ......................................................................Error during 'cluster up' execution: Error starting the cluster. ssh command error:
command : /var/lib/minishift/bin/oc cluster up --base-dir /var/lib/minishift/base --image 'openshift/origin-$component:v3.11.0' --public-hostname 18.233.158.63 --routing-suffix 18.233.158.63.nip.io
err : exit status 1
output : Getting a Docker client ...
Checking if image openshift/origin-control-plane:v3.11.0 is available ...
Pulling image openshift/origin-cli:v3.11.0
E1115 03:45:41.309220 11696 helper.go:173] Reading docker config from /home/centos/.docker/config.json failed: open /home/centos/.docker/config.json: no such file or directory, will attempt to pull image docker.io/openshift/origin-cli:v3.11.0 anonymously
Image pull complete
Pulling image openshift/origin-node:v3.11.0
E1115 03:45:41.480331 11696 helper.go:173] Reading docker config from /home/centos/.docker/config.json failed: open /home/centos/.docker/config.json: no such file or directory, will attempt to pull image docker.io/openshift/origin-node:v3.11.0 anonymously
Pulled 6/6 layers, 100% complete
Extracting
Image pull complete
Checking type of volume mount ...
Determining server IP ...
Using public hostname IP 18.233.158.63 as the host IP
Checking if OpenShift is already running ...
Checking for supported Docker version (=>1.22) ...
Checking if insecured registry is configured properly in Docker ...
Checking if required ports are available ...
Checking if OpenShift client is configured properly ...
Checking if image openshift/origin-control-plane:v3.11.0 is available ...
Starting OpenShift using openshift/origin-control-plane:v3.11.0 ...
I1115 03:45:47.686207 11696 config.go:40] Running "create-master-config"
I1115 03:45:50.350386 11696 config.go:46] Running "create-node-config"
I1115 03:45:51.702066 11696 flags.go:30] Running "create-kubelet-flags"
I1115 03:45:52.085289 11696 run_kubelet.go:49] Running "start-kubelet"
I1115 03:45:52.249024 11696 run_self_hosted.go:181] Waiting for the kube-apiserver to be ready ...
I1115 03:46:20.265246 11696 interface.go:26] Installing "kube-proxy" ...
I1115 03:46:20.265835 11696 interface.go:26] Installing "kube-dns" ...
I1115 03:46:20.265843 11696 interface.go:26] Installing "openshift-service-cert-signer-operator" ...
I1115 03:46:20.265849 11696 interface.go:26] Installing "openshift-apiserver" ...
I1115 03:46:20.265897 11696 apply_template.go:81] Installing "openshift-apiserver"
I1115 03:46:20.266386 11696 apply_template.go:81] Installing "kube-proxy"
I1115 03:46:20.268284 11696 apply_template.go:81] Installing "kube-dns"
I1115 03:46:20.268428 11696 apply_template.go:81] Installing "openshift-service-cert-signer-operator"
I1115 03:46:23.999620 11696 interface.go:41] Finished installing "kube-proxy" "kube-dns" "openshift-service-cert-signer-operator" "openshift-apiserver"
Error: timed out waiting for the condition









share|improve this question























  • Have you configured the remote machine properly? (docs.okd.io/latest/minishift/using/…) And is the remote machine reachable from your host via ssh?
    – John
    Nov 10 at 23:11











  • Yes, I can login using ssh <user>@<remote_IP_address> without password input.
    – yukihane
    Nov 11 at 4:20












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I'm trying create a OpenShift cluster with minishift, on AWS EC2.



When following command executes, an error occurs and stop building.



$ ./minishift start --vm-driver generic --remote-ipaddress <remote_IP_address> --remote-ssh-user <username> --remote-ssh-key <private_ssh_key>
-- Starting profile 'minishift'
-- Checking if provided oc flags are supported ... OK
-- Starting the OpenShift cluster using 'generic' hypervisor ...
-- Preparing Remote Machine ......................................... OK
-- Starting to provision the remote machine ........... FAIL E1110 12:30:16.999357 2234 start.go:491] Error starting the VM: Error starting stopped host: generic driver does not support start. Retrying.
Error starting the VM: Error starting stopped host: generic driver does not support start


version:



$ ./minishift version
minishift v1.26.1+1e20f27


refs:
https://docs.okd.io/latest/minishift/using/run-against-an-existing-machine.html




On minishift v1.27.0+707887e, another error occurs.



(Before executing following minishift start command, remote user is required belonging to docker group.)



$ minishift start --vm-driver generic --remote-ipaddress 18.233.158.63 --remote-ssh-user centos --remote-ssh-key /home/vagrant/.ssh/id_rsa
-- Starting profile 'minishift'
-- Checking if provided oc flags are supported ... OK
-- Starting the OpenShift cluster using 'generic' hypervisor ...
-- Preparing Remote Machine ...... OK
-- Starting to provision the remote machine .................... OK
-- OpenShift cluster will be configured with ...
Version: v3.11.0
-- Pulling the OpenShift Container Image ......... OK
-- Copying oc binary from the OpenShift container image to VM ... OK
-- Starting OpenShift cluster ......................................................................Error during 'cluster up' execution: Error starting the cluster. ssh command error:
command : /var/lib/minishift/bin/oc cluster up --base-dir /var/lib/minishift/base --image 'openshift/origin-$component:v3.11.0' --public-hostname 18.233.158.63 --routing-suffix 18.233.158.63.nip.io
err : exit status 1
output : Getting a Docker client ...
Checking if image openshift/origin-control-plane:v3.11.0 is available ...
Pulling image openshift/origin-cli:v3.11.0
E1115 03:45:41.309220 11696 helper.go:173] Reading docker config from /home/centos/.docker/config.json failed: open /home/centos/.docker/config.json: no such file or directory, will attempt to pull image docker.io/openshift/origin-cli:v3.11.0 anonymously
Image pull complete
Pulling image openshift/origin-node:v3.11.0
E1115 03:45:41.480331 11696 helper.go:173] Reading docker config from /home/centos/.docker/config.json failed: open /home/centos/.docker/config.json: no such file or directory, will attempt to pull image docker.io/openshift/origin-node:v3.11.0 anonymously
Pulled 6/6 layers, 100% complete
Extracting
Image pull complete
Checking type of volume mount ...
Determining server IP ...
Using public hostname IP 18.233.158.63 as the host IP
Checking if OpenShift is already running ...
Checking for supported Docker version (=>1.22) ...
Checking if insecured registry is configured properly in Docker ...
Checking if required ports are available ...
Checking if OpenShift client is configured properly ...
Checking if image openshift/origin-control-plane:v3.11.0 is available ...
Starting OpenShift using openshift/origin-control-plane:v3.11.0 ...
I1115 03:45:47.686207 11696 config.go:40] Running "create-master-config"
I1115 03:45:50.350386 11696 config.go:46] Running "create-node-config"
I1115 03:45:51.702066 11696 flags.go:30] Running "create-kubelet-flags"
I1115 03:45:52.085289 11696 run_kubelet.go:49] Running "start-kubelet"
I1115 03:45:52.249024 11696 run_self_hosted.go:181] Waiting for the kube-apiserver to be ready ...
I1115 03:46:20.265246 11696 interface.go:26] Installing "kube-proxy" ...
I1115 03:46:20.265835 11696 interface.go:26] Installing "kube-dns" ...
I1115 03:46:20.265843 11696 interface.go:26] Installing "openshift-service-cert-signer-operator" ...
I1115 03:46:20.265849 11696 interface.go:26] Installing "openshift-apiserver" ...
I1115 03:46:20.265897 11696 apply_template.go:81] Installing "openshift-apiserver"
I1115 03:46:20.266386 11696 apply_template.go:81] Installing "kube-proxy"
I1115 03:46:20.268284 11696 apply_template.go:81] Installing "kube-dns"
I1115 03:46:20.268428 11696 apply_template.go:81] Installing "openshift-service-cert-signer-operator"
I1115 03:46:23.999620 11696 interface.go:41] Finished installing "kube-proxy" "kube-dns" "openshift-service-cert-signer-operator" "openshift-apiserver"
Error: timed out waiting for the condition









share|improve this question















I'm trying create a OpenShift cluster with minishift, on AWS EC2.



When following command executes, an error occurs and stop building.



$ ./minishift start --vm-driver generic --remote-ipaddress <remote_IP_address> --remote-ssh-user <username> --remote-ssh-key <private_ssh_key>
-- Starting profile 'minishift'
-- Checking if provided oc flags are supported ... OK
-- Starting the OpenShift cluster using 'generic' hypervisor ...
-- Preparing Remote Machine ......................................... OK
-- Starting to provision the remote machine ........... FAIL E1110 12:30:16.999357 2234 start.go:491] Error starting the VM: Error starting stopped host: generic driver does not support start. Retrying.
Error starting the VM: Error starting stopped host: generic driver does not support start


version:



$ ./minishift version
minishift v1.26.1+1e20f27


refs:
https://docs.okd.io/latest/minishift/using/run-against-an-existing-machine.html




On minishift v1.27.0+707887e, another error occurs.



(Before executing following minishift start command, remote user is required belonging to docker group.)



$ minishift start --vm-driver generic --remote-ipaddress 18.233.158.63 --remote-ssh-user centos --remote-ssh-key /home/vagrant/.ssh/id_rsa
-- Starting profile 'minishift'
-- Checking if provided oc flags are supported ... OK
-- Starting the OpenShift cluster using 'generic' hypervisor ...
-- Preparing Remote Machine ...... OK
-- Starting to provision the remote machine .................... OK
-- OpenShift cluster will be configured with ...
Version: v3.11.0
-- Pulling the OpenShift Container Image ......... OK
-- Copying oc binary from the OpenShift container image to VM ... OK
-- Starting OpenShift cluster ......................................................................Error during 'cluster up' execution: Error starting the cluster. ssh command error:
command : /var/lib/minishift/bin/oc cluster up --base-dir /var/lib/minishift/base --image 'openshift/origin-$component:v3.11.0' --public-hostname 18.233.158.63 --routing-suffix 18.233.158.63.nip.io
err : exit status 1
output : Getting a Docker client ...
Checking if image openshift/origin-control-plane:v3.11.0 is available ...
Pulling image openshift/origin-cli:v3.11.0
E1115 03:45:41.309220 11696 helper.go:173] Reading docker config from /home/centos/.docker/config.json failed: open /home/centos/.docker/config.json: no such file or directory, will attempt to pull image docker.io/openshift/origin-cli:v3.11.0 anonymously
Image pull complete
Pulling image openshift/origin-node:v3.11.0
E1115 03:45:41.480331 11696 helper.go:173] Reading docker config from /home/centos/.docker/config.json failed: open /home/centos/.docker/config.json: no such file or directory, will attempt to pull image docker.io/openshift/origin-node:v3.11.0 anonymously
Pulled 6/6 layers, 100% complete
Extracting
Image pull complete
Checking type of volume mount ...
Determining server IP ...
Using public hostname IP 18.233.158.63 as the host IP
Checking if OpenShift is already running ...
Checking for supported Docker version (=>1.22) ...
Checking if insecured registry is configured properly in Docker ...
Checking if required ports are available ...
Checking if OpenShift client is configured properly ...
Checking if image openshift/origin-control-plane:v3.11.0 is available ...
Starting OpenShift using openshift/origin-control-plane:v3.11.0 ...
I1115 03:45:47.686207 11696 config.go:40] Running "create-master-config"
I1115 03:45:50.350386 11696 config.go:46] Running "create-node-config"
I1115 03:45:51.702066 11696 flags.go:30] Running "create-kubelet-flags"
I1115 03:45:52.085289 11696 run_kubelet.go:49] Running "start-kubelet"
I1115 03:45:52.249024 11696 run_self_hosted.go:181] Waiting for the kube-apiserver to be ready ...
I1115 03:46:20.265246 11696 interface.go:26] Installing "kube-proxy" ...
I1115 03:46:20.265835 11696 interface.go:26] Installing "kube-dns" ...
I1115 03:46:20.265843 11696 interface.go:26] Installing "openshift-service-cert-signer-operator" ...
I1115 03:46:20.265849 11696 interface.go:26] Installing "openshift-apiserver" ...
I1115 03:46:20.265897 11696 apply_template.go:81] Installing "openshift-apiserver"
I1115 03:46:20.266386 11696 apply_template.go:81] Installing "kube-proxy"
I1115 03:46:20.268284 11696 apply_template.go:81] Installing "kube-dns"
I1115 03:46:20.268428 11696 apply_template.go:81] Installing "openshift-service-cert-signer-operator"
I1115 03:46:23.999620 11696 interface.go:41] Finished installing "kube-proxy" "kube-dns" "openshift-service-cert-signer-operator" "openshift-apiserver"
Error: timed out waiting for the condition






openshift minishift






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 18 hours ago

























asked Nov 10 at 12:43









yukihane

360321




360321











  • Have you configured the remote machine properly? (docs.okd.io/latest/minishift/using/…) And is the remote machine reachable from your host via ssh?
    – John
    Nov 10 at 23:11











  • Yes, I can login using ssh <user>@<remote_IP_address> without password input.
    – yukihane
    Nov 11 at 4:20
















  • Have you configured the remote machine properly? (docs.okd.io/latest/minishift/using/…) And is the remote machine reachable from your host via ssh?
    – John
    Nov 10 at 23:11











  • Yes, I can login using ssh <user>@<remote_IP_address> without password input.
    – yukihane
    Nov 11 at 4:20















Have you configured the remote machine properly? (docs.okd.io/latest/minishift/using/…) And is the remote machine reachable from your host via ssh?
– John
Nov 10 at 23:11





Have you configured the remote machine properly? (docs.okd.io/latest/minishift/using/…) And is the remote machine reachable from your host via ssh?
– John
Nov 10 at 23:11













Yes, I can login using ssh <user>@<remote_IP_address> without password input.
– yukihane
Nov 11 at 4:20




Yes, I can login using ssh <user>@<remote_IP_address> without password input.
– yukihane
Nov 11 at 4:20

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53239078%2fhow-to-execute-minishift-to-centos7-on-ec2%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53239078%2fhow-to-execute-minishift-to-centos7-on-ec2%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







這個網誌中的熱門文章

How to read a connectionString WITH PROVIDER in .NET Core?

In R, how to develop a multiplot heatmap.2 figure showing key labels successfully

Museum of Modern and Contemporary Art of Trento and Rovereto