[xinyong@localhost crc-linux-1.20.0-amd64]$ ./crc setup
INFO Checking if podman remote executable is cached
INFO Checking if goodhosts executable is cached
INFO Caching goodhosts executable
INFO Will use root access: change ownership of /home/xinyong/.crc/bin/goodhosts
[sudo] password for xinyong:
INFO Will use root access: set suid for /home/xinyong/.crc/bin/goodhosts
INFO Checking if CRC bundle is extracted in '$HOME/.crc'
INFO Extracting bundle from the CRC executable
crc.qcow2: 10.16 GiB / 10.16 GiB [----------------------------------------------------------------------------] 100.00%
INFO Checking minimum RAM requirements
INFO Checking if running as non-root
INFO Checking if Virtualization is enabled
INFO Checking if KVM is enabled
INFO Checking if libvirt is installed
INFO Installing libvirt service and dependencies
INFO Will use root access: install virtualization related packages
[sudo] password for xinyong:
INFO Checking if user is part of libvirt group
INFO Adding user to libvirt group
INFO Will use root access: add user to libvirt group
INFO Checking if libvirt daemon is running
INFO Checking if a supported libvirt version is installed
INFO Checking if crc-driver-libvirt is installed
INFO Installing crc-driver-libvirt
INFO Checking if systemd-networkd is running
INFO Checking if NetworkManager is installed
INFO Checking if NetworkManager service is running
INFO Checking if /etc/NetworkManager/conf.d/crc-nm-dnsmasq.conf exists
INFO Writing Network Manager config for crc
INFO Will use root access: write NetworkManager configuration to /etc/NetworkManager/conf.d/crc-nm-dnsmasq.conf
INFO Will use root access: Changing permission for /etc/NetworkManager/conf.d/crc-nm-dnsmasq.conf to 644
INFO Will use root access: executing systemctl daemon-reload command
INFO Will use root access: executing systemctl reload NetworkManager
INFO Checking if /etc/NetworkManager/dnsmasq.d/crc.conf exists
INFO Writing dnsmasq config for crc
INFO Will use root access: write NetworkManager configuration to /etc/NetworkManager/dnsmasq.d/crc.conf
INFO Will use root access: Changing permission for /etc/NetworkManager/dnsmasq.d/crc.conf to 644
INFO Will use root access: executing systemctl daemon-reload command
INFO Will use root access: executing systemctl reload NetworkManager
INFO Checking if libvirt 'crc' network is available
INFO Setting up libvirt 'crc' network
INFO Checking if libvirt 'crc' network is active
INFO Starting libvirt 'crc' network
Setup is complete, you can now run 'crc start' to start the OpenShift cluster
[xinyong@localhost crc-linux-1.20.0-amd64]$ ip ad
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: ens192: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 00:0c:29:b9:a3:b3 brd ff:ff:ff:ff:ff:ff
inet 192.168.11.205/24 brd 192.168.11.255 scope global noprefixroute dynamic ens192
valid_lft 9540sec preferred_lft 9540sec
inet6 fe80::20c:29ff:feb9:a3b3/64 scope link noprefixroute
valid_lft forever preferred_lft forever
3: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
link/ether 52:54:00:65:c6:80 brd ff:ff:ff:ff:ff:ff
inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
valid_lft forever preferred_lft forever
4: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast master virbr0 state DOWN group default qlen 1000
link/ether 52:54:00:65:c6:80 brd ff:ff:ff:ff:ff:ff
5: crc: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
link/ether 52:54:00:fd:be:d0 brd ff:ff:ff:ff:ff:ff
inet 192.168.130.1/24 brd 192.168.130.255 scope global crc
valid_lft forever preferred_lft forever
6: crc-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast master crc state DOWN group default qlen 1000
link/ether 52:54:00:fd:be:d0 brd ff:ff:ff:ff:ff:ff
[xinyong@localhost crc-linux-1.20.0-amd64]$ df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 7.9G 0 7.9G 0% /dev
tmpfs 7.9G 0 7.9G 0% /dev/shm
tmpfs 7.9G 9.9M 7.9G 1% /run
tmpfs 7.9G 0 7.9G 0% /sys/fs/cgroup
/dev/mapper/centos-root 50G 17G 34G 34% /
/dev/sda1 1014M 212M 803M 21% /boot
/dev/mapper/centos-home 441G 16G 426G 4% /home
tmpfs 1.6G 24K 1.6G 1% /run/user/1000
tmpfs 1.6G 0 1.6G 0% /run/user/0
[xinyong@localhost crc-linux-1.20.0-amd64]$ ll
total 2683352
-rwxr-xr-x. 1 root root 2747342476 Jan 16 16:11 crc
-rw-r--r--. 1 root root 397045 Jan 16 16:10 doc.pdf
-rw-r--r--. 1 root root 11325 Jan 16 16:10 LICENSE
[xinyong@localhost crc-linux-1.20.0-amd64]$ ./crc start
INFO Checking if podman remote executable is cached
INFO Checking if goodhosts executable is cached
INFO Checking minimum RAM requirements
INFO Checking if running as non-root
INFO Checking if Virtualization is enabled
INFO Checking if KVM is enabled
INFO Checking if libvirt is installed
INFO Checking if user is part of libvirt group
INFO Checking if libvirt daemon is running
INFO Checking if a supported libvirt version is installed
INFO Checking if crc-driver-libvirt is installed
INFO Checking if systemd-networkd is running
INFO Checking if NetworkManager is installed
INFO Checking if NetworkManager service is running
INFO Checking if /etc/NetworkManager/conf.d/crc-nm-dnsmasq.conf exists
INFO Checking if /etc/NetworkManager/dnsmasq.d/crc.conf exists
INFO Checking if libvirt 'crc' network is available
INFO Checking if libvirt 'crc' network is active
? Image pull secret [? for help] **********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
INFO Loading bundle: crc_libvirt_4.6.6.crcbundle ...
INFO Verifying bundle crc_libvirt_4.6.6.crcbundle ...
INFO Creating CodeReady Containers VM for OpenShift 4.6.6...
INFO CodeReady Containers VM is running
INFO Generating new SSH Key pair ...
INFO Updating authorized keys ...
INFO Copying kubeconfig file to instance dir ...
INFO Starting network time synchronization in CodeReady Containers VM
INFO Check internal and public DNS query ...
INFO Check DNS query from host ...
INFO Adding user's pull secret to instance disk...
INFO Verifying validity of the kubelet certificates ...
INFO Starting OpenShift kubelet service
INFO Kubelet client certificate has expired, renewing it... [will take up to 8 minutes]
INFO Kubelet client certificate has expired, renewing it... [will take up to 8 minutes]
INFO Kubelet serving certificate has expired, waiting for automatic renewal... [will take up to 8 minutes]
INFO Configuring cluster for first start
INFO Adding user's pull secret to the cluster ...
INFO Updating cluster ID ...
Cannot delete OpenShift API Server pods: Temporary error: ssh command error:
command : oc delete pod --all -n openshift-apiserver --context admin --cluster crc --kubeconfig /opt/kubeconfig
err : Process exited with status 1
output : pod "apiserver-9d9448b9d-jrk7g" deleted
Temporary error: ssh command error:
command : oc delete pod --all -n openshift-apiserver --context admin --cluster crc --kubeconfig /opt/kubeconfig
err : Process exited with status 1
output :
[xinyong@localhost crc-linux-1.20.0-amd64]$ oc
bash: oc: command not found...
[xinyong@localhost crc-linux-1.20.0-amd64]$ ./crc start
INFO Checking if podman remote executable is cached
INFO Checking if goodhosts executable is cached
INFO Checking minimum RAM requirements
INFO Checking if running as non-root
INFO Checking if Virtualization is enabled
INFO Checking if KVM is enabled
INFO Checking if libvirt is installed
INFO Checking if user is part of libvirt group
INFO Checking if libvirt daemon is running
INFO Checking if a supported libvirt version is installed
INFO Checking if crc-driver-libvirt is installed
INFO Checking if systemd-networkd is running
INFO Checking if NetworkManager is installed
INFO Checking if NetworkManager service is running
INFO Checking if /etc/NetworkManager/conf.d/crc-nm-dnsmasq.conf exists
INFO Checking if /etc/NetworkManager/dnsmasq.d/crc.conf exists
INFO Checking if libvirt 'crc' network is available
INFO Checking if libvirt 'crc' network is active
INFO A CodeReady Containers VM for OpenShift 4.6.6 is already running
Started the OpenShift cluster
To access the cluster, first set up your environment by following the instructions returned by executing 'crc oc-env'.
Then you can access your cluster by running 'oc login -u developer -p developer https://api.crc.testing:6443'.
To login as a cluster admin, run 'oc login -u kubeadmin -p HqC3I-wgtiB-q7qCf-KEsuK https://api.crc.testing:6443'.
You can also run 'crc console' and use the above credentials to access the OpenShift web console.
The console will open in your default browser.
[xinyong@localhost crc-linux-1.20.0-amd64]$ ./crc oc-env
export PATH="/home/xinyong/.crc/bin/oc:$PATH"
# Run this command to configure your shell:
# eval $(crc oc-env)
[xinyong@localhost crc-linux-1.20.0-amd64]$ oc
bash: oc: command not found...
[xinyong@localhost crc-linux-1.20.0-amd64]$ export PATH="/home/xinyong/.crc/bin/oc:$PATH"
[xinyong@localhost crc-linux-1.20.0-amd64]$ ./crc console
Opening the OpenShift Web Console in the default browser...This tool has been deprecated, use 'gio open' instead.
See 'gio help open' for more info.