Skip to content

Error: either install disk or diskSelector should be defined #34

Closed

Description

@keynight

I have vm on ESXi with Virtual SATA SSD *(/dev/sda)

Logs

tail --version
tail (GNU coreutils) 8.32
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Paul Rubin, David MacKenzie, Ian Lance Taylor,
and Jim Meyering.

talm init --preset cozystack
Created secrets.yaml
generating PKI and tokens
Created talosconfig
Created charts/talm/Chart.yaml
Created Chart.yaml
Created templates/_helpers.tpl
Created values.yaml
Created charts/talm/templates/_helpers.tpl
Created templates/controlplane.yaml
Created templates/worker.yaml

mkdir nodes

talm template -e 192.168.100.110 -n 192.168.100.110 -t templates/controlplane.yaml -i > nodes/srv110.yaml

talm apply -f nodes/srv110.yaml -i
- talm: file=nodes/srv110.yaml, nodes=[192.168.100.110], endpoints=[192.168.100.110]
error applying new configuration: rpc error: code = InvalidArgument desc = configuration validation failed: 1 error occurred:
        * either install disk or diskSelector should be defined
        

Image

Activity

  1. keynight commented on Feb 14, 2025

    @keynight
    ContributorAuthor

    Workaround: add "disk: /dev/sda" to your config yaml

    Image

  2. chumkaska commented on Feb 19, 2025

    @chumkaska

    srv110.yaml

    Show the disk section in srv110.yaml, it might not have been detected when creating the template.

  3. spa-skyson commented on Feb 22, 2025

    @spa-skyson

    Have some issue.

    # talm: nodes=["192.168.100.16"], endpoints=["192.168.100.16"], templates=["templates/controlplane.yaml"]
    # THIS FILE IS AUTOGENERATED. DO NOT EDIT IT!
    machine:
      type: controlplane
      kubelet:
        nodeIP:
          validSubnets:
            - 192.168.100.0/24
      network:
        hostname: talos-a0031
        # -- Discovered interfaces:
        # enxbc2411aed34b:
        #   id: ens18
        #   hardwareAddr:bc:24:11:ae:d3:4b
        #   busPath: 0000:00:12.0
        #   driver: virtio_net
        #   vendor: Red Hat, Inc.
        #   product: Virtio network device)
        interfaces:
          - deviceSelector:
              busPath: "0000:00:12.0"
            addresses:
              - 192.168.100.16/24
            routes:
              - network: 0.0.0.0/0
                gateway: 192.168.100.1
        nameservers:
          - 192.168.100.1
    cluster:
      controlPlane:
        endpoint: https://192.168.100.10:6443
      clusterName: talos-1
      network:
        serviceSubnets:
          - 10.96.0.0/16
      etcd:
        advertisedSubnets:
          - 192.168.100.0/24
    
    
  4. kvaps commented on Mar 15, 2025

    @kvaps
    Member

    We probably need to add default value /dev/sda into config generation, if no other values detected.

  5. NickVolynkin commented on Apr 14, 2025

    @NickVolynkin
    Contributor

    Was it resolved in #41?

  6. NickVolynkin commented on Apr 14, 2025

    @NickVolynkin
    Contributor

    Todo: cover this scenario in the documentation

  7. lllamnyp commented on Feb 2, 2026

    @lllamnyp
    Member

    Resolved as of 2026.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions