[{"data":1,"prerenderedAt":699},["ShallowReactive",2],{"docs-\u002Fdocs\u002Freference\u002Fmachine-spec":3},{"id":4,"title":5,"body":6,"description":691,"extension":692,"meta":693,"navigation":694,"path":695,"seo":696,"stem":697,"__hash__":698},"docs\u002Fdocs\u002Freference\u002Fmachine-spec.md","machine.yaml",{"type":7,"value":8,"toc":685},"minimark",[9,13,17,121,128,131,242,244,427,430,635,639,670,673,681],[10,11,5],"h1",{"id":12},"machineyaml",[14,15,16],"p",{},"A machine spec describes one Ubuntu host. Only four fields are required; everything else has a default. Unknown or wrongly typed fields are refused.",[18,19,24],"pre",{"className":20,"code":21,"language":22,"meta":23,"style":23},"language-yaml shiki shiki-themes github-dark-high-contrast","api_version: genesis\u002Fv1\nmachine:\n  name: node-a\n  address: 203.0.113.10\n  ssh:\n    key_path: ~\u002F.ssh\u002Fid_ed25519\nbootstrap:\n  deploy_user:\n    key_path: ~\u002F.ssh\u002Fid_ed25519.pub\n","yaml","",[25,26,27,44,53,64,76,84,95,103,111],"code",{"__ignoreMap":23},[28,29,32,36,40],"span",{"class":30,"line":31},"line",1,[28,33,35],{"class":34},"sKpQp","api_version",[28,37,39],{"class":38},"sMAXC",": ",[28,41,43],{"class":42},"sTRMh","genesis\u002Fv1\n",[28,45,47,50],{"class":30,"line":46},2,[28,48,49],{"class":34},"machine",[28,51,52],{"class":38},":\n",[28,54,56,59,61],{"class":30,"line":55},3,[28,57,58],{"class":34},"  name",[28,60,39],{"class":38},[28,62,63],{"class":42},"node-a\n",[28,65,67,70,72],{"class":30,"line":66},4,[28,68,69],{"class":34},"  address",[28,71,39],{"class":38},[28,73,75],{"class":74},"sCcAr","203.0.113.10\n",[28,77,79,82],{"class":30,"line":78},5,[28,80,81],{"class":34},"  ssh",[28,83,52],{"class":38},[28,85,87,90,92],{"class":30,"line":86},6,[28,88,89],{"class":34},"    key_path",[28,91,39],{"class":38},[28,93,94],{"class":42},"~\u002F.ssh\u002Fid_ed25519\n",[28,96,98,101],{"class":30,"line":97},7,[28,99,100],{"class":34},"bootstrap",[28,102,52],{"class":38},[28,104,106,109],{"class":30,"line":105},8,[28,107,108],{"class":34},"  deploy_user",[28,110,52],{"class":38},[28,112,114,116,118],{"class":30,"line":113},9,[28,115,89],{"class":34},[28,117,39],{"class":38},[28,119,120],{"class":42},"~\u002F.ssh\u002Fid_ed25519.pub\n",[14,122,123,124,127],{},"Key paths may start with ",[25,125,126],{},"~\u002F",". Paths are on the controller, never on the host.",[129,130,49],"h2",{"id":49},[132,133,134,150],"table",{},[135,136,137],"thead",{},[138,139,140,144,147],"tr",{},[141,142,143],"th",{},"Field",[141,145,146],{},"Default",[141,148,149],{},"Rules",[151,152,153,170,188,207,222],"tbody",{},[138,154,155,161,167],{},[156,157,158],"td",{},[25,159,160],{},"name",[156,162,163],{},[164,165,166],"em",{},"(required)",[156,168,169],{},"Lowercase DNS-safe label. Unique in the ledger",[138,171,172,177,181],{},[156,173,174],{},[25,175,176],{},"address",[156,178,179],{},[164,180,166],{},[156,182,183,184,187],{},"Host name or IP that ",[25,185,186],{},"sg"," SSHes to",[138,189,190,195,199],{},[156,191,192],{},[25,193,194],{},"ssh.key_path",[156,196,197],{},[164,198,166],{},[156,200,201,202,206],{},"Controller-local SSH ",[203,204,205],"strong",{},"private"," key",[138,208,209,214,219],{},[156,210,211],{},[25,212,213],{},"ssh.user",[156,215,216],{},[25,217,218],{},"root",[156,220,221],{},"The bootstrap user",[138,223,224,229,234],{},[156,225,226],{},[25,227,228],{},"distro",[156,230,231],{},[25,232,233],{},"ubuntu-24.04",[156,235,236,239,240],{},[25,237,238],{},"ubuntu-22.04"," or ",[25,241,233],{},[129,243,100],{"id":100},[132,245,246,256],{},[135,247,248],{},[138,249,250,252,254],{},[141,251,143],{},[141,253,146],{},[141,255,149],{},[151,257,258,277,291,304,318,340,355,374,392,405],{},[138,259,260,265,270],{},[156,261,262],{},[25,263,264],{},"packages",[156,266,267],{},[25,268,269],{},"[fail2ban, unattended-upgrades]",[156,271,272,273,276],{},"Replaces the default list when set. Keep ",[25,274,275],{},"fail2ban",": SSH hardening checks its jail",[138,278,279,284,289],{},[156,280,281],{},[25,282,283],{},"ssh_hardening.password_root_login",[156,285,286],{},[25,287,288],{},"false",[156,290],{},[138,292,293,298,302],{},[156,294,295],{},[25,296,297],{},"ssh_hardening.password_authentication",[156,299,300],{},[25,301,288],{},[156,303],{},[138,305,306,311,316],{},[156,307,308],{},[25,309,310],{},"deploy_user.name",[156,312,313],{},[25,314,315],{},"deploy",[156,317],{},[138,319,320,325,333],{},[156,321,322],{},[25,323,324],{},"deploy_user.key_path",[156,326,327,329,330],{},[25,328,194],{}," + ",[25,331,332],{},".pub",[156,334,335,336,339],{},"Controller-local ",[203,337,338],{},"public"," key. Checked before any host contact. A private key here is refused",[138,341,342,347,352],{},[156,343,344],{},[25,345,346],{},"firewall.guard",[156,348,349],{},[25,350,351],{},"true",[156,353,354],{},"The nftables guard in front of LXD",[138,356,357,362,367],{},[156,358,359],{},[25,360,361],{},"firewall.lxd_api_allow_from",[156,363,364],{},[25,365,366],{},"[]",[156,368,369,370,373],{},"Individual tailnet IPv4 addresses inside ",[25,371,372],{},"100.64.0.0\u002F10",". No CIDRs. Needs Tailscale enabled",[138,375,376,381,385],{},[156,377,378],{},[25,379,380],{},"firewall.lxd_api_allow_all_tailnet",[156,382,383],{},[25,384,288],{},[156,386,387,388,391],{},"Let every tailnet client reach the LXD API and UI on ",[25,389,390],{},":8444",". Conflicts with a non-empty allow list. Needs Tailscale enabled",[138,393,394,399,403],{},[156,395,396],{},[25,397,398],{},"tailscale.enabled",[156,400,401],{},[25,402,351],{},[156,404],{},[138,406,407,412,417],{},[156,408,409],{},[25,410,411],{},"tailscale.auth_key_env",[156,413,414],{},[25,415,416],{},"TS_AUTHKEY",[156,418,419,420,422,423,426],{},"The ",[203,421,160],{}," of the variable holding the auth key. Required while Tailscale is enabled. ",[25,424,425],{},"plan"," refuses if it's unset or empty",[129,428,429],{"id":429},"lxd",[132,431,432,442],{},[135,433,434],{},[138,435,436,438,440],{},[141,437,143],{},[141,439,146],{},[141,441,149],{},[151,443,444,459,478,501,522,537,552,576,589,607],{},[138,445,446,451,456],{},[156,447,448],{},[25,449,450],{},"channel",[156,452,453],{},[25,454,455],{},"5.21\u002Fstable",[156,457,458],{},"Snap channel. Held, so it doesn't move under you. Cluster members must match",[138,460,461,466,471],{},[156,462,463],{},[25,464,465],{},"api_address",[156,467,468],{},[25,469,470],{},"tailnet:8444",[156,472,473,474,477],{},"One concrete address with a port. Never port ",[25,475,476],{},"8443",", a wildcard or loopback",[138,479,480,485,490],{},[156,481,482],{},[25,483,484],{},"storage.driver",[156,486,487],{},[25,488,489],{},"zfs",[156,491,492,494,495,239,498],{},[25,493,489],{},", ",[25,496,497],{},"btrfs",[25,499,500],{},"dir",[138,502,503,508,513],{},[156,504,505],{},[25,506,507],{},"storage.pool_file_size",[156,509,510],{},[25,511,512],{},"150GiB",[156,514,515,239,518,521],{},[25,516,517],{},"NGiB",[25,519,520],{},"NMiB",". A sparse file on the root disk. Grows, never shrinks",[138,523,524,529,534],{},[156,525,526],{},[25,527,528],{},"storage.arc_max",[156,530,531],{},[25,532,533],{},"4GiB",[156,535,536],{},"ZFS memory cache cap",[138,538,539,544,549],{},[156,540,541],{},[25,542,543],{},"network.bridge",[156,545,546],{},[25,547,548],{},"lxdbr0",[156,550,551],{},"A valid interface name, at most 15 characters",[138,553,554,559,562],{},[156,555,556],{},[25,557,558],{},"network.subnet",[156,560,561],{},"picked once before planning",[156,563,564,565,568,569,572,573,575],{},"A CIDR like ",[25,566,567],{},"10.81.0.1\u002F24",". Must avoid ",[25,570,571],{},"172.16.0.0\u002F12"," and ",[25,574,372],{},". A clash with an existing bridge is refused, never renumbered",[138,577,578,583,587],{},[156,579,580],{},[25,581,582],{},"network.nat",[156,584,585],{},[25,586,351],{},[156,588],{},[138,590,591,596,601],{},[156,592,593],{},[25,594,595],{},"network.ipv6",[156,597,598],{},[25,599,600],{},"none",[156,602,603,604,606],{},"Must be ",[25,605,600],{}," while the guard is on",[138,608,609,614,626],{},[156,610,611],{},[25,612,613],{},"profiles",[156,615,616,619,620,623,624],{},[25,617,618],{},"default",", and ",[25,621,622],{},"task-vm"," with 2 CPU and ",[25,625,533],{},[156,627,628,629,572,632],{},"Unique, non-empty names. Each may set ",[25,630,631],{},"cpu",[25,633,634],{},"memory",[129,636,638],{"id":637},"what-sg-checks-before-contacting-the-host","What sg checks before contacting the host",[640,641,642,652,655,658,664,667],"ul",{},[643,644,645,647,648,651],"li",{},[25,646,35],{}," is exactly ",[25,649,650],{},"genesis\u002Fv1",".",[643,653,654],{},"Names are valid labels; the distro is a supported LTS.",[643,656,657],{},"The deploy key is a readable public key, not the private one.",[643,659,660,661,663],{},"The LXD API address isn't ",[25,662,476],{},", a wildcard or loopback.",[643,665,666],{},"Allow-list entries are single tailnet addresses, and Tailscale is on if any are set.",[643,668,669],{},"Sizes parse, the subnet avoids reserved ranges, and IPv6 is off under the guard.",[14,671,672],{},"A refusal names the field and the rule, for example:",[18,674,679],{"className":675,"code":677,"language":678,"meta":23},[676],"language-text","sg machine init: loading spec: machine.name \"node-a\": lxd.api_address \"tailnet:8443\": lxd.api_address must never use port 8443\n","text",[25,680,677],{"__ignoreMap":23},[682,683,684],"style",{},"html pre.shiki code .sKpQp, html code.shiki .sKpQp{--shiki-default:#72F088}html pre.shiki code .sMAXC, html code.shiki .sMAXC{--shiki-default:#F0F3F6}html pre.shiki code .sTRMh, html code.shiki .sTRMh{--shiki-default:#ADDCFF}html pre.shiki code .sCcAr, html code.shiki .sCcAr{--shiki-default:#91CBFF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}",{"title":23,"searchDepth":46,"depth":46,"links":686},[687,688,689,690],{"id":49,"depth":46,"text":49},{"id":100,"depth":46,"text":100},{"id":429,"depth":46,"text":429},{"id":637,"depth":46,"text":638},"Every machine.yaml field, its default and the rules sg checks before it contacts a host.","md",{},true,"\u002Fdocs\u002Freference\u002Fmachine-spec",{"title":5,"description":691},"docs\u002Freference\u002Fmachine-spec","2KCwCZMTewASuQNK3YjhY1sBZEiQIt-QKzg0WQHfrNc",1796464240886]