rancher / os

Tiny Linux distro that runs the entire OS as Docker containers
https://rancher.com/docs/os/v1.x/en/
Apache License 2.0
6.44k stars 655 forks source link

Hypervisor detection #2968

Open hbudde opened 4 years ago

hbudde commented 4 years ago

RancherOS Version: v1.5.5

Where are you running RancherOS? Nutanix with AHV

Hi, I try to use RancherOS on a Nutanix cluster with AHV as hypervisor. AHV is based on KVM. But on boot up the hypervisor detection of ros init detects hyperv. So the system tries to start the hyperv-vm-tools, but the container is restarted every few seconds without any logs.

time=“2020-03-03T15:36:59Z” level=info msg="[6/23] Starting load modules" time=“2020-03-03T15:36:59Z” level=debug msg=“Loading module hv_utils” time=“2020-03-03T15:36:59Z” level=error msg=“Could not load module hv_utils, err exit status 1” time=“2020-03-03T15:36:59Z” level=debug msg=“Loading module hv_storvsc” time=“2020-03-03T15:36:59Z” level=error msg=“Could not load module hv_storvsc, err exit status 1” time=“2020-03-03T15:36:59Z” level=debug msg=“Loading module hv_vmbus” time=“2020-03-03T15:37:00Z” level=error msg=“Could not load module hv_vmbus, err exit status 1” time=“2020-03-03T15:37:00Z” level=debug msg="[6/23] Done load modules" time=“2020-03-03T15:37:00Z” level=info msg="[7/23] Starting recovery console" time=“2020-03-03T15:37:00Z” level=debug msg="[7/23] Done recovery console" time=“2020-03-03T15:37:00Z” level=info msg="[8/23] Starting b2d env" time=“2020-03-03T15:37:00Z” level=debug msg="[8/23] Done b2d env" time=“2020-03-03T15:37:00Z” level=info msg="[9/23] Starting mount STATE and bootstrap" time=“2020-03-03T15:37:00Z” level=debug msg=“FsType has been set to ext4” time=“2020-03-03T15:37:00Z” level=info msg=“Mounting state device /dev/sda1 to /state” time=“2020-03-03T15:37:00Z” level=debug msg="[9/23] Done mount STATE and bootstrap" time=“2020-03-03T15:37:00Z” level=info msg="[10/23] Starting cloud-init" time=“2020-03-03T15:37:00Z” level=info msg=“ros init: Detected Hypervisor: hyperv”

Also if I disable the autodetection of the hypervisor, the boot process still tries to load the modules hv_utils, hv_storvsc and hv_vmbus.

Best regards, H.Budde

olljanat commented 3 years ago

@hbudde as far I'm aware AHV was reporting it selves incorrectly and it was fixed on later versions.