-
Notifications
You must be signed in to change notification settings - Fork 14
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
VMware disk won't properly come online in the OS #149
Comments
So you have multiple disks connected to VM? Please share your cloud-init like it is on issue template as data disks of course does not works without proper configuration https://burmillaos.org/docs/storage/additional-mounts/ You also might way to check real world examples from #6 |
Did you tried to do installation? If I remember right |
I have been trying to get the disk just to show up, formatted and mounted at this point with no success, using cloud-init yaml at a url:
I can see that |
If I run |
RancherOS did contain huge number of ready made installation medias. Sounds that you have been using their He we purposely limit number of medias to minimum based on feedback which was got from #6 and those auto format medias are one of those which got dropped out from options. You can of course still fill your use case to there and in case we found others who have need for that we can consider re-adding it. How it works now is that if you want automate installation on VMware you can use guestinfo field and here is real world example how configure it with Terraform: guestinfo.cloud-init.config.data = <<EOD
#!/bin/bash
(cat << EOF
#cloud-init
runcmd:
- ["mount", "-t", "ext4", "/dev/sdb", "/var/lib/docker"]
rancher:
sysctl:
vm.max_map_count: 262144
ssh_authorized_keys:
- ${var.rancher_public_key}
EOF
)> cloud-init.yml
if ! blkid | grep -q "RANCHER_STATE"; then
sudo ros install -d /dev/sda --no-reboot -c cloud-init.yml
if ! blkid | grep -q "USER_DOCKER"; then
sudo mkfs.ext4 /dev/sdb -L USER_DOCKER
fi
sudo reboot
else
echo "already installed"
fi
EOD Alternative you can create VMware template by doing installation like this: #!/bin/bash
echo "Intalling to disk" > /dev/tty1
ros install -f -d /dev/sda --no-reboot --debug --append "console=tty1 console=ttyS0,115200n8 printk.devkmsg=on rancher.autologin=ttyS0"
halt -P and marking that first VM as template and then just create other VMs based on it. |
Cloud init should write log to |
I used your script above, everything after Not seeing a cloud init logfile, is it named something non-obvious? |
Ah, found it under the boot directory in |
You need skip those "EOD" lines. They are just Terraform syntax to define multi line string. |
Ah I see, thanks. So my config is:
That got me past the "Unrecognized user-data" error. Now at the end of the cloud-init-save.log file I see this error msg: |
|
Thanks, sadly I'm still not seeing the drive. Do I need to keep my initial cloud-init yaml at a URL also? |
Two things to check.
#!/bin/bash
(cat << EOF
#cloud-init
rancher:
sysctl:
vm.max_map_count: 262144
EOF) > cloud-init.yml
if ! blkid | grep -q "RANCHER_STATE"; then
sudo ros install -d /dev/sda --no-reboot -c cloud-init.yml
sudo reboot
else
echo "already installed"
fi
|
Thanks for all of your help, I've not had to config the VM boot order in the past. Usually with the VMware autoformat feature, it boots the OS from the ISO, does the install and from then on the ISO still needs to be attached to boot - but the overlay ( I tried the above, and still do not see it mounting. But I'm wondering if I need to add in the format command ( |
Using this cloud-config set to run on boot now:
The disk formats and it mounted at
Should I try a mount point somewhere else? Perhaps just the overlay2 subfolder? As that's what's filling up... |
Earlier you said: So I tried this could-config, with no luck:
It just boots as normal, without installing or restarting. |
Ah, I had the path wrong to the cloud file and so now it installs using this:
in a cloud-config.yaml file at a URL that Rancher is telling via a cloud-init URL in the node template. Sadly, I've lost the ability to have automatic console login, and I'm using the ssh keys that Rancher dynamically generates. Anyway to enable back auto console login? |
Did I understand correctly that you are still using Rancher Server 1.6? (Would been useful info earlier here as it does things it's own way). Then you might want to use something like this rancher#723 (comment) |
Oh no, I'm on Rancher Server 2.5.x, and 2.6.x. Does that make a difference here? |
I'm quite sure that only 1.x versions was called for Rancher Server. 2.x versions are called for just Rancher (or latest documentation looks to be saying Rancher Manager).
Yes. Rancher 2.4.18 was last version which supported RancherOS https://www.suse.com/suse-rancher/support-matrix/all-supported-versions/rancher-v2-4-18/ and https://www.suse.com/suse-rancher/support-matrix/all-supported-versions/rancher-v2-5-0/ and because BurmillaOS is based on RancherOS it means that they don't support us and to honor that decision we do not support Rancher. In additionally Rancher is Kubernetes cluster management tool and we do not support Kubernetes at all (look #47 ). So if you want to use Rancher then it is highly recommend to use some of those Linux distributions which they supports. |
Ah, I have been running RancherOS for Rancher downstream K8s cluster nodes in v2.5.x and 2.6.x for some time now. I do have paid support on our Prod environment and they (SUSE/Rancher) do honor that deployment. For the actual Rancher "Server" VM's OS I am using Oracle Linux 7 however (here I am talking about the pane of glass that is Rancher, and not the RancherOS or Rancher K8s cluster). Re: K8s support for BurmillaOS - In our environment, Rancher Server Kubernetes Engine just deploys Docker containers on the downstream cluster nodes in the user docker (not system docker) space. So really there is nothing special with K8s going on here? The cluster provisioner/node provisioner uses boot-to-docker on the VM (ISO), and the Docker engine to bootstrap the VM, deploy the RKE Docker containers that run Kubernetes, and bring it into the downstream cluster with what ever role I assign it on the cluster template. Am I missing something here that makes this not a standard use-case for BurmillaOS? It's all just running Docker containers on the node VM. |
What works and what is supported are two different things. We do not test new BurmillaOS versions with Rancher which why example don't release those autoformat ISO files.
That is interesting. Perhaps you should ask from them then that how we can get BurmillaOS listed as supported OS in RKE1 list? (RKE2 does not use Docker at all so that we cannot support without bigger changes). If they are willing to do that then I'm ready to add RKE1 to our testing set. |
I will indeed ask SUSE/Rancher that, thanks for all of your help and feedback. This has been most helpful in my quest to find a decent RancherOS replacement for RKE1 clusters, without me having to maintain my own VM templates and updates, or distro. I am hoping the autoformat feature for VMware may be included back in BurmillaOS - I think the use-case is small, but might help along in bringing BurmillaOS to the Rancher sphere of consideration. |
Most likely Longhorn will be the hardest part to get working on BurmillaOS. Found two related issues longhorn/longhorn#828 and longhorn/longhorn#3744 However it should be little bit easier than on RancherOS because we switched to Debian based console and included open-iscsi by default #9 |
I assume that there is no good news from Suse because of all this silence so closing. |
Sadly nothing. Apologies! |
No worries. Are planning to keep using BurmillaOS also in future? If so, then it would good idea to test that your use case still works on v2.0.0-rc1 |
Yes I currently have 2 K8s clusters (one in testing and one in pre-production) that are provisioned via Rancher Server that I'm using to test various deployments. Rancher/SUSE just announced Elemental - but they don't have any pre-built ISOs for vSphere yet. |
BurmillaOS Version: (ros os version)
v1.9.6
Where are you running BurmillaOS? (docker-machine, AWS, GCE, baremetal, etc.)
VMware vSphere datacenter
Which processor architecture you are using?
Intel Xeon
Do you use some extra hardware? (GPU, etc)?
No
Which console you use (default, ubuntu, centos, etc..)
Default
Do you use some service(s) which are not enabled by default?
No
Have you installed some extra tools to console?
VMware Tools
Do you use some other customizations?
Network config DHCP on boot
I am using the VMware ISO and cannot get the disk drive to properly come up. The VM in vSphere shows that the data disk is attached to the VM, but when I go to the console for BurmillaOS and do a
df -h
, I don't see the 20GB disk. I am using a node template to boot-strap the node into VMware. The networking, CPU and memory config options are properly being set for the VM.The text was updated successfully, but these errors were encountered: