0

Installing Kubernetes on Ubuntu I need the product_uuid

Butin my Ubuntu VM(Multipass) I get:

sudo cat /sys/class/dmi/id/product_uuid
cat: /sys/class/dmi/id/product_uuid: No such file or directory

So I found machine-id:

cat /etc/machine-id
db4b9d9a3b194386b894dba21d7b3fb3

Is this a valid number for product_uuid when installing K8s or else, where is product_uuid?

Thanks

Chillar Anand
  • 27,936
  • 9
  • 119
  • 136
Chris G.
  • 23,930
  • 48
  • 177
  • 302
  • Those links are for using kubeadm. Do you need that vs using microk8s? https://ubuntu.com/tutorials/install-a-local-kubernetes-with-microk8s#2-deploying-microk8s – OneCricketeer Sep 12 '22 at 17:58
  • Thanks, I am using kubeadm – Chris G. Sep 12 '22 at 18:39
  • 1
    I see. I believe Canonical's suggestion for running k8s in Multipaas is to use their own microk8s, though. Otherwise, you may want an alternative solution like Minikube to start its own VMs – OneCricketeer Sep 12 '22 at 18:42

1 Answers1

1

product_uuid is main board product UUID(set by the board manufacturer) and may be used to identify a mainboard.

machine-id is a unique id specific to a linux installation.

ubuntu@k3s:~$ sudo dmidecode --type 1
# dmidecode 3.3
Getting SMBIOS data from sysfs.
SMBIOS 3.0.0 present.

Handle 0x0100, DMI type 1, 27 bytes
System Information
    Manufacturer: QEMU
    Product Name: QEMU Virtual Machine
    Version: virt-6.2
    Serial Number: Not Specified
    UUID: Not Settable

Since multipass spins up a VM, product_uuid wont be available. k8s just needs a unique identifier, so machine-id should work.

Chillar Anand
  • 27,936
  • 9
  • 119
  • 136