[root@lxh-host1 ~]# passwd lixiaohui Changing password for user lixiaohui. New password: BAD PASSWORD: The password is a palindrome Retype new password: passwd: all authentication tokens updated successfully.
还有记得,必须使用ssh的方式登录系统才行,不能用su的方式,不然有可能报这个错
1
Executing systemctl action failed: exit status 1: Failed to connect to bus: No medium found
Error creating machine: error with pre-create check: Use 'crc setup' to define the machine driver storage pool, Use 'crc setup' to define the storage pool, viMessage='Failed to connect socket to '/var/run/libvirt/virtstoraged-sock': No such file or directory'
[lixiaohui@lxh-host1 ~]$ crc setup INFO Using bundle path /home/lixiaohui/.crc/cache/crc_libvirt_4.18.2_amd64.crcbundle INFO Checking if running as non-root INFO Checking if running inside WSL2 INFO Checking if crc-admin-helper executable is cached INFO Caching crc-admin-helper executable INFO Using root access: Changing ownership of /home/lixiaohui/.crc/bin/crc-admin-helper-linux-amd64
We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things:
#1) Respect the privacy of others. #2) Think before you type. #3) With great power comes great responsibility.
[sudo] password for lixiaohui: INFO Using root access: Setting suid for /home/lixiaohui/.crc/bin/crc-admin-helper-linux-amd64 INFO Checking if running on a supported CPU architecture INFO Checking if crc executable symlink exists INFO Creating symlink for crc executable INFO Checking minimum RAM requirements INFO Check if Podman binary exists in: /home/lixiaohui/.crc/bin/oc 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 Using root access: Installing virtualization packages INFO Checking if user is part of libvirt group INFO Adding user to libvirt group INFO Using root access: Adding user to the libvirt group INFO Checking if active user/process is currently part of the 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 crc daemon systemd service INFO Setting up crc daemon systemd service INFO Checking crc daemon systemd socket units INFO Setting up crc daemon systemd socket units INFO Checking if vsock is correctly configured INFO Setting up vsock support INFO Using root access: Setting CAP_NET_BIND_SERVICE capability for /usr/bin/crc executable INFO Using root access: Creating udev rule for /dev/vsock INFO Using root access: Changing permissions for /etc/udev/rules.d/99-crc-vsock.rules to 644 INFO Using root access: Reloading udev rules database INFO Using root access: Loading vhost_vsock kernel module INFO Using root access: Creating file /etc/modules-load.d/vhost_vsock.conf INFO Using root access: Changing permissions for /etc/modules-load.d/vhost_vsock.conf to 644 INFO Checking if CRC bundle is extracted in'$HOME/.crc' INFO Checking if /home/lixiaohui/.crc/cache/crc_libvirt_4.18.2_amd64.crcbundle exists INFO Getting bundle for the CRC executable INFO Downloading bundle: /home/lixiaohui/.crc/cache/crc_libvirt_4.18.2_amd64.crcbundle... 5.74 GiB / 5.74 GiB [---------------------------------------------------------------------------------------------------------------] 100.00% 45.52 MiB/s INFO Uncompressing /home/lixiaohui/.crc/cache/crc_libvirt_4.18.2_amd64.crcbundle crc.qcow2: 20.25 GiB / 20.25 GiB [-------------------------------------------------------------------------------------------------------------] 100.00% oc: 176.52 MiB / 176.52 MiB [------------------------------------------------------------------------------------------------------------------] 100.00% Your system is correctly setup for using CRC. Use 'crc start' to start the instance [lixiaohui@lxh-host1 ~]$
[lixiaohui@lxh-host1 ~]$ crc start --pull-secret-file /pull-secret.txt INFO Using bundle path /home/lixiaohui/.crc/cache/crc_libvirt_4.18.2_amd64.crcbundle INFO Checking if running as non-root INFO Checking if running inside WSL2 INFO Checking if crc-admin-helper executable is cached INFO Checking if running on a supported CPU architecture INFO Checking if crc executable symlink exists INFO Checking minimum RAM requirements INFO Check if Podman binary exists in: /home/lixiaohui/.crc/bin/oc 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 active user/process is currently part of the 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 crc daemon systemd socket units INFO Checking if vsock is correctly configured INFO Loading bundle: crc_libvirt_4.18.2_amd64... INFO Creating CRC VM for OpenShift 4.18.2... INFO Generating new SSH key pair... INFO Generating new password for the kubeadmin user INFO Starting CRC VM for openshift 4.18.2... INFO CRC instance is running with IP 127.0.0.1 INFO CRC VM is running INFO Updating authorized keys... INFO Configuring shared directories INFO Check internal and public DNS query... INFO Check DNS query from host... INFO Verifying validity of the kubelet certificates... INFO Starting kubelet service INFO Waiting for kube-apiserver availability... [takes around 2min] INFO Adding user's pull secret to the cluster... INFO Updating SSH key to machine config resource... INFO Waiting until the user's pull secret is written to the instance disk... INFO Changing the password for the kubeadmin user INFO Updating cluster ID... INFO Updating root CA cert to admin-kubeconfig-client-ca configmap... INFO Starting openshift instance... [waiting for the cluster to stabilize] INFO 2 operators are progressing: authentication, console INFO 2 operators are progressing: authentication, console INFO Operator authentication is progressing INFO All operators are available. Ensuring stability... INFO Operators are stable (2/3)... INFO Operators are stable (3/3)... INFO Adding crc-admin and crc-developer contexts to kubeconfig... Started the OpenShift cluster.
The server is accessible via web console at: https://console-openshift-console.apps-crc.testing
Log in as administrator: Username: kubeadmin Password: g38ZF-DP5Qn-aGdVt-obeEa
Log in as user: Username: developer Password: developer
Use the 'oc'command line interface: $ eval $(crc oc-env) $ oc login -u developer https://api.crc.testing:6443