-
Notifications
You must be signed in to change notification settings - Fork 250
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
Unable to start CRC on Google cloud VM #4638
Comments
@kansal-mukul you need to enable the nested virtualization flag on Google cloud if you want to use the OpenShift Local because it does create a VM https://cloud.google.com/compute/docs/instances/nested-virtualization/enabling Any specific reason you can't use your laptop for POC? |
I added this flag (--metadata=google-compute-enable-nested-virtualization=true)in above gcloud command for enable virtualization but that everytime shows that you need to enable virtualization (above screenshot). I am using windows laptop (that dont have admin rights) . One more reason to use VM as in google cloud we have lots of resources that may required while using CRC for further deployment of application like velero, operators etc. and might we need loadbalancer . So thats teh reason . PLease help @praveenkumar |
Have a look to https://github.com/ironcladlou/openshift4-libvirt-gcp/blob/master/provision.sh#L41-L47 one.
I don't think this can be enabled on CRC side you might need to take a look to https://github.com/crc-org/crc-cloud one |
@praveenkumar thanks for sharing but I tried with above video as well but getting error "/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found". Below is the command that i ran 👍 gcloud compute images create crc-v4-image --source-disk crc-disk --source-disk-zone us-central1-a --licenses "https://www.googleapis.com/compute/v1/projects/vm-options/global/licenses/enable-vmx" gcloud compute disks delete crc-disk --zone=us-central1-a gcloud compute images delete crc-v4-image sudo apt-get update sudo apt-get install --assume-yes qemu-kvm libvirt-daemon libvirt-daemon-system dnsmasq sudo usermod -a -G libvirt $(whoami) sudo usermod -a -G libvirt-qemu $(whoami) sudo usermod -a -G libvirt-dnsmasq $(whoami) groups $(whoami) sudo reboot cat << EOF | sudo tee /etc/systemd/resolved.conf > /dev/null sudo sed -i 's/#listen-address=/listen-address=127.0.0.2/g' /etc/dnsmasq.conf cat << EOF | sudo tee /etc/default/dnsmasq > /dev/null cat << EOF | sudo tee /etc/dnsmasq.d/crc.conf > /dev/null sudo systemctl restart systemd-resolved dig foo.apps-crc.testing | echo $(grep 192.168.130.11) curl -LO https://mirror.openshift.com/pub/openshift-v4/clients/crc/latest/crc-linux-amd64.tar.xz && tar -Jxvf crc-linux-amd64.tar.xz && mkdir -p crc config set skip-check-network-manager-installed true then getting error |
IN this article they mentioned that this is not supported . https://crc.dev/docs/installing/ Ubuntu 18.04 LTS or later and Debian 10 or later Might require manual set up of the host machine. |
Can you suggest which kmage and image family we have to use on which crc will install successfully . Example : |
I tried with these commands : gcloud compute disks create crc-disk --image-project ubuntu-os-cloud --image-family ubuntu-2204-lts --zone us-central1-a gcloud compute images create crc-v4-image --source-disk crc-disk --source-disk-zone us-central1-a --licenses "https://www.googleapis.com/compute/v1/projects/vm-options/global/licenses/enable-vmx" gcloud compute instances create crc-vm --disk name=crc-disk,boot=yes --zone us-central1-a --machine-type n1-standard-8 --metadata=google-compute-enable-nested-virtualization=true --no-address error 👍 Last login: Thu Feb 27 10:45:36 2025 from 35.235.241.17 |
gcloud compute disks create crc-disk --image-project ubuntu-os-pro-cloud --image-family ubuntu-pro-1804-lts --zone us-central1-a gcloud compute images create crc-v4-image --source-disk crc-disk --source-disk-zone us-central1-a --licenses "https://www.googleapis.com/compute/v1/projects/vm-options/global/licenses/enable-vmx" gcloud compute instances create crc-vm --disk name=crc-disk,boot=yes --zone us-central1-a --machine-type n1-standard-8 --min-cpu-platform "Intel Haswell" --enable-nested-virtualization --no-address Getting this error while running crc setup : crc: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by crc) |
|
As per documentation : Ubuntu 18.04 LTS or later and Debian 10 or later Which ubuntu we have to use ? Is this means Ubuntu 18.04 LTS or later is not supported Check Ref Link : https://crc.dev/docs/installing/ IN video https://www.youtube.com/watch?v=apV_nhEb4Ss they are using ubuntu-1804-lts |
but this video is 4 years old, we can't support linux distributions forever. |
@cfergeau So please suggest distribution i should use gcloud compute disks create crc-disk --image-project --image-family --zone us-central1-a gcloud compute images create crc-v4-image --source-disk crc-disk --source-disk-zone us-central1-a --licenses "https://www.googleapis.com/compute/v1/projects/vm-options/global/licenses/enable-vmx" gcloud compute instances create crc-vm --disk name=crc-disk,boot=yes --zone us-central1-a --machine-type n1-standard-8 --min-cpu-platform "Intel Haswell" --enable-nested-virtualization --no-address |
I'd recommend something fedora/rhel/centos based, and less than 2 years old as this is what we are testing. |
General information
I am access of google cloud on which i spin up one VM and trying to start CRC but everytime i am getting please enable virtualization. i follow this blog : https://www.redhat.com/en/blog/codeready-containers . I tried with many OS (Centos , RHEL etc) but everytime i am not able to run crc setup command . please help and share the correct documents with full steps .
Operating System
Linux
Hypervisor
KVM
Did you run
crc setup
beforecrc start
?no
Running on
VM
Steps to reproduce
--zone=us-east1-b
--machine-type=c2-standard-8
--image-family=rhel-8
--image-project=rhel-cloud
--boot-disk-size=200GB
--boot-disk-type=pd-standard
--no-address
--min-cpu-platform="Intel Cascade Lake"
--metadata=startup-script='#!/bin/bash
sudo yum module install -y virt
sudo yum install -y virt-install virt-viewer
sudo systemctl start libvirtd
sudo systemctl enable libvirtd
sudo virt-host-validate'
tar -xvf crc-linux-amd64.tar.xz
mkdir -p ~/bin
cp /home/mukul_kansal/crc-linux-2.47.0-amd64/crc ~/bin
export PATH=$PATH:$HOME/bin
echo 'export PATH=$PATH:$HOME/bin' >> ~/.bashrc
cd crc-linux-2.47.0-amd64/
crc setup
CRC version
CRC status
CRC config
Host Operating System
centos 8 , RHEL . i tried both
Expected behavior
it should complete the CRC setup
Actual behavior
CRC Logs
Additional context
PLease help on this ASAP . this is very urgent because i am working on one POC so planning to use this CRC cluster for further development,
The text was updated successfully, but these errors were encountered: