https://rancher.com/ logo
Title
p

plain-twilight-82629

08/19/2022, 2:53 AM
Do you know how to deploy rancher VM(s) into harvester in order to integrate with harvester ? Do i need to create one vm with docker and run rancher container into it ? Or can we deploy a rancher app/helm into the harvester's integrated kubernetes ?
b

bland-farmer-13503

08/19/2022, 3:45 AM
cc @witty-apple-56603 Could you help to answer this? Thank you.
w

witty-apple-56603

08/19/2022, 3:48 AM
Typically I use the following simple steps to prepare import Harvester into nested Rancher 1. Create Ubuntu 20.04 cloud focal image 2. Enable network and create an available VLAN network (eg. name: vlan 1 id: 1) 3. Create a Ubuntu 20.04 cloud focal VM on Harvester 4. Add user data
password: 123456
chpasswd: { expire: False }
ssh_pwauth: True
5. ssh to Ubuntu VM 6. Install docker CE https://docs.docker.com/engine/install/ubuntu/ 7. Run docker command to install Rancher
sudo docker run -d --restart=unless-stopped -p 80:80 -p 443:443 --privileged rancher/rancher:v2.6.6
8. Get the registration URL in Rancher virtualization management 9. Go to Harvester settings 10. Input the URL into the cluster-registration-url page
🙌 1
p

plain-twilight-82629

08/19/2022, 6:19 AM
@witty-apple-56603 thanks
❤️ 1
w

witty-jelly-95845

08/19/2022, 8:48 AM
I wrote an article on Rancher VM with Harvester https://community.suse.com/posts/how-to-manage-harvester-030-with-rancher-261-running-in-a-vm-within-harvester I need to update it for Harvester 1.0.x but hopefully it will help
👍 1
h

high-alligator-99144

11/16/2022, 11:30 AM
@witty-apple-56603: We trying to integrate Harvester with Rancher and followed the same instruction that you gave here. However, the Harvester cluster remains in pending state in Rancher UI (Virtualization Management). See the screenshots below:
w

witty-apple-56603

11/16/2022, 11:54 AM
Typically it may most likely related to the network connection between Rancher and Harvester. You check the connectivity from Rancher to Harvester. Perhaps there are some routing, proxy or VPN connection. Most of the time when I do rancher integration I would try to set Harvester and Rancher under the same subnet
1