Error creating containers and get "Error: Invalid value: 256G"

Failed to create new containers recently. No matter which image I use.

Any clue?

gpsemc@lxd15:~$ lxc launch ubuntu18 ubuntu20sharon --verbose --debug
DBUG[11-24|09:39:14] Connecting to a local LXD over a Unix socket
DBUG[11-24|09:39:14] Sending request to LXD method=GET url=http://unix.socket/1.0 etag=
DBUG[11-24|09:39:14] Got response struct from LXD
DBUG[11-24|09:39:14]
{
“config”: {
“core.https_address”: “[::]:8443”,
“core.trust_password”: true
},
“api_extensions”: [
“storage_zfs_remove_snapshots”,
“container_host_shutdown_timeout”,
“container_stop_priority”,
“container_syscall_filtering”,
“auth_pki”,
“container_last_used_at”,
“etag”,
“patch”,
“usb_devices”,
“https_allowed_credentials”,
“image_compression_algorithm”,
“directory_manipulation”,
“container_cpu_time”,
“storage_zfs_use_refquota”,
“storage_lvm_mount_options”,
“network”,
“profile_usedby”,
“container_push”,
“container_exec_recording”,
“certificate_update”,
“container_exec_signal_handling”,
“gpu_devices”,
“container_image_properties”,
“migration_progress”,
“id_map”,
“network_firewall_filtering”,
“network_routes”,
“storage”,
“file_delete”,
“file_append”,
“network_dhcp_expiry”,
“storage_lvm_vg_rename”,
“storage_lvm_thinpool_rename”,
“network_vlan”,
“image_create_aliases”,
“container_stateless_copy”,
“container_only_migration”,
“storage_zfs_clone_copy”,
“unix_device_rename”,
“storage_lvm_use_thinpool”,
“storage_rsync_bwlimit”,
“network_vxlan_interface”,
“storage_btrfs_mount_options”,
“entity_description”,
“image_force_refresh”,
“storage_lvm_lv_resizing”,
“id_map_base”,
“file_symlinks”,
“container_push_target”,
“network_vlan_physical”,
“storage_images_delete”,
“container_edit_metadata”,
“container_snapshot_stateful_migration”,
“storage_driver_ceph”,
“storage_ceph_user_name”,
“resource_limits”,
“storage_volatile_initial_source”,
“storage_ceph_force_osd_reuse”,
“storage_block_filesystem_btrfs”,
“resources”,
“kernel_limits”,
“storage_api_volume_rename”,
“macaroon_authentication”,
“network_sriov”,
“console”,
“restrict_devlxd”,
“migration_pre_copy”,
“infiniband”,
“maas_network”,
“devlxd_events”,
“proxy”,
“network_dhcp_gateway”,
“file_get_symlink”,
“network_leases”,
“unix_device_hotplug”,
“storage_api_local_volume_handling”,
“operation_description”,
“clustering”,
“event_lifecycle”,
“storage_api_remote_volume_handling”,
“nvidia_runtime”,
“candid_authentication”,
“candid_config”,
“candid_config_key”,
“usb_optional_vendorid”
],
“api_status”: “stable”,
“api_version”: “1.0”,
“auth”: “trusted”,
“public”: false,
“auth_methods”: [
“tls”
],
“environment”: {
“addresses”: [
“10.124.56.15:8443”
],
“architectures”: [
“x86_64”,
“i686”
],
“certificate”: “-----BEGIN CERTIFICATE-----\nMIIFWDCCA0CgAwIBAgIQJzKC8wczt47o9yKZHZJHUzANBgkqhkiG9w0BAQsFADA0\nMRwwGgYDVQQKExNsaW51eGNvbnRhaW5lcnMub3JnMRQwEgYDVQQDDAtyb290QHVi\ndW50dTAeFw0yMDA1MTkwNzM3NTBaFw0zMDA1MTcwNzM3NTBaMDQxHDAaBgNVBAoT\nE2xpbnV4Y29udGFpbmVycy5vcmcxFDASBgNVBAMMC3Jvb3RAdWJ1bnR1MIICIjAN\nBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAsqaBlxi03ly7Q1E7KKzAa8G5qF5k\nkVX9dkegDuE8qCNXa5v8cWc1ba/pwSrk/rdygLfTaSf7i8OUPP/a/yq8IiQZ7F8Z\nik5lXehXJIBVWkBIXCIJDiH/csB/hLLotKMUXSBudKV+vve7Tb0KmDMqrG0mfZai\nto3h3pQgcyFmMWg8RloqzrFG4Hg7kaqCUPBqhg8gvjhJNDKQVSd5y0BtW4gMRF6f\n1OYEO2mRnyS6MtJsu9S8d7S4ZZ+SPoJgAxZrEeSbxZqnS/c8G6a2p+rQW2S/cr/x\nuLw1lVUD6uUY39ZSms0ga9/MuKKrttegU5ctxxJ3WCTZ6na6QMnImF9n8uEZkpIX\nzmbLbLBFBRXZOt4S7wCctT6VJRy/amWQpY0TDHMqNFB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lXGGJxSulsfc7Nq6YoAQNrT4XQ948o+YtuL0R5N26RkLcKwRGAOJqJABWdnh0g\nDhgA221I6wSyPkC/vHZxJjnShnow2+iwUMafkA==\n-----END CERTIFICATE-----\n”,
“certificate_fingerprint”: “104519864b6279890702d56ee55908cd90b08ce549115a28ef4b6031be0ba188”,
“driver”: “lxc”,
“driver_version”: “3.0.3”,
“kernel”: “Linux”,
“kernel_architecture”: “x86_64”,
“kernel_version”: “5.4.0-87-generic”,
“server”: “lxd”,
“server_pid”: 3342,
“server_version”: “3.0.3”,
“storage”: “zfs”,
“storage_version”: “0.8.3-1ubuntu12.12”,
“server_clustered”: false,
“server_name”: “lxd15”,
“project”: “”
}
}
Creating ubuntu20sharon
DBUG[11-24|09:39:14] Sending request to LXD method=GET url=http://unix.socket/1.0/images/aliases/ubuntu18 etag=
DBUG[11-24|09:39:14] Got response struct from LXD
DBUG[11-24|09:39:14]
{
“description”: “”,
“target”: “fb088ff2fbc23c8caa3739a02fb3ba2f88ef5a850831f648011bd78ee17694c4”,
“name”: “ubuntu18”
}
DBUG[11-24|09:39:14] Sending request to LXD method=GET url=http://unix.socket/1.0/images/fb088ff2fbc23c8caa3739a02fb3ba2f88ef5a850831f648011bd78ee17694c4 etag=
DBUG[11-24|09:39:14] Got response struct from LXD
DBUG[11-24|09:39:14]
{
“auto_update”: true,
“properties”: {
“architecture”: “amd64”,
“description”: “ubuntu 18.04 LTS amd64 (release) (20211122)”,
“label”: “release”,
“os”: “ubuntu”,
“release”: “bionic”,
“serial”: “20211122”,
“version”: “18.04”
},
“public”: false,
“aliases”: [
{
“name”: “ubuntu18”,
“description”: “”
}
],
“architecture”: “x86_64”,
“cached”: false,
“filename”: “ubuntu-18.04-server-cloudimg-amd64-lxd.tar.xz”,
“fingerprint”: “fb088ff2fbc23c8caa3739a02fb3ba2f88ef5a850831f648011bd78ee17694c4”,
“size”: 203801408,
“update_source”: {
“alias”: “18.04”,
“certificate”: “”,
“protocol”: “simplestreams”,
“server”: “https://cloud-images.ubuntu.com/releases
},
“created_at”: “2021-11-22T08:00:00+08:00”,
“expires_at”: “2023-04-26T08:00:00+08:00”,
“last_used_at”: “2021-10-25T15:59:17.224418542+08:00”,
“uploaded_at”: “2021-11-23T16:04:38.094133345+08:00”
}
DBUG[11-24|09:39:14] Connected to the websocket
DBUG[11-24|09:39:14] Sending request to LXD method=POST url=http://unix.socket/1.0/containers etag=
DBUG[11-24|09:39:14]
{
“architecture”: “”,
“config”: {},
“devices”: {},
“ephemeral”: false,
“profiles”: null,
“stateful”: false,
“description”: “”,
“name”: “ubuntu20sharon”,
“source”: {
“type”: “image”,
“certificate”: “”,
“fingerprint”: “fb088ff2fbc23c8caa3739a02fb3ba2f88ef5a850831f648011bd78ee17694c4”
},
“instance_type”: “”
}
DBUG[11-24|09:39:14] Got operation from LXD
DBUG[11-24|09:39:14]
{
“id”: “3c6d867b-f94c-4faa-9228-25284512465c”,
“class”: “task”,
“description”: “Creating container”,
“created_at”: “2021-11-24T09:39:14.903457402+08:00”,
“updated_at”: “2021-11-24T09:39:14.903457402+08:00”,
“status”: “Running”,
“status_code”: 103,
“resources”: {
“containers”: [
“/1.0/containers/ubuntu20sharon”
]
},
“metadata”: null,
“may_cancel”: false,
“err”: “”
}
DBUG[11-24|09:39:14] Sending request to LXD method=GET url=http://unix.socket/1.0/operations/3c6d867b-f94c-4faa-9228-25284512465c etag=
DBUG[11-24|09:39:14] Got response struct from LXD
DBUG[11-24|09:39:14]
{
“id”: “3c6d867b-f94c-4faa-9228-25284512465c”,
“class”: “task”,
“description”: “Creating container”,
“created_at”: “2021-11-24T09:39:14.903457402+08:00”,
“updated_at”: “2021-11-24T09:39:14.903457402+08:00”,
“status”: “Running”,
“status_code”: 103,
“resources”: {
“containers”: [
“/1.0/containers/ubuntu20sharon”
]
},
“metadata”: null,
“may_cancel”: false,
“err”: “”
}
Error: Invalid value: 256G

gpsemc@lxd15:/var/lib/lxd$ lxc --version
3.0.3

gpsemc@lxd15:~$ lxc profile show default
config:
environment.http_proxy: “”
user.network_mode: “”
description: Default LXD profile
devices:
eno2np1:
nictype: bridged
parent: br0
type: nic
root:
path: /
pool: default
size: 256G
type: disk
name: default
used_by:

  • /1.0/containers/xxxxxx
  • /1.0/containers/xxxxx5
  • /1.0/containers/xxxxx1
  • /1.0/containers/xxxxx2
  • /1.0/containers/xxxxx3
  • /1.0/containers/xxxxx4

256G is an invalid size, you likely want 256GiB or possibly 256GB.

It works!!! Thanks stgraber!!