I don’t have a ubuntu 20.04 image on my machine. But I want to create a ubuntu 20.04 for it.
gpsemc@lxd15:/etc/apt$ lxc remote list
±----------------±-----------------------------------------±--------------±----------±-------±-------+
| NAME | URL | PROTOCOL | AUTH TYPE | PUBLIC | STATIC |
±----------------±-----------------------------------------±--------------±----------±-------±-------+
| images | https://images.linuxcontainers.org | simplestreams | | YES | NO |
±----------------±-----------------------------------------±--------------±----------±-------±-------+
| local (default) | unix:// | lxd | tls | NO | YES |
±----------------±-----------------------------------------±--------------±----------±-------±-------+
| ubuntu | https://cloud-images.ubuntu.com/releases | simplestreams | | YES | YES |
±----------------±-----------------------------------------±--------------±----------±-------±-------+
| ubuntu-daily | https://cloud-images.ubuntu.com/daily | simplestreams | | YES | YES |
±----------------±-----------------------------------------±--------------±----------±-------±-------+
gpsemc@lxd15:/etc/apt$ lxc image list
±------------------------±-------------±-------±---------------------------------------------------±-------±----------±-----------------------------+
| ALIAS | FINGERPRINT | PUBLIC | DESCRIPTION | ARCH | SIZE | UPLOAD DATE |
±------------------------±-------------±-------±---------------------------------------------------±-------±----------±-----------------------------+
| centos7 | d58d3dcfc3d1 | no | Centos 7 x86_64 (20191024_07:08) | x86_64 | 148.77MB | May 20, 2020 at 8:08am (UTC) |
±------------------------±-------------±-------±---------------------------------------------------±-------±----------±-----------------------------+
| fedora29 | ade430c33554 | no | Fedora 29 x86_64 (20190827_20:33) with ssh enabled | x86_64 | 283.80MB | May 20, 2020 at 8:13am (UTC) |
±------------------------±-------------±-------±---------------------------------------------------±-------±----------±-----------------------------+
| ubuntu14 | 2b43a10aaaba | no | Ubuntu 14.04 LTS server (20171026) | x86_64 | 181.01MB | May 20, 2020 at 7:43am (UTC) |
±------------------------±-------------±-------±---------------------------------------------------±-------±----------±-----------------------------+
| ubuntu16 | 115c1a4cf7d7 | no | Ubuntu 16.04 LTS server (20171011) | x86_64 | 195.11MB | May 20, 2020 at 7:47am (UTC) |
±------------------------±-------------±-------±---------------------------------------------------±-------±----------±-----------------------------+
| ubuntu18 | f0060a90de8c | no | ubuntu 18.04 LTS amd64 (release) (20200717) | x86_64 | 187.02MB | Jul 18, 2020 at 5:07am (UTC) |
gpsemc@lxd15:~$ lxc launch ubuntu:20.04 ubuntu20 --verbose --debug
DBUG[10-12|16:33:23] Connecting to a local LXD over a Unix socket
DBUG[10-12|16:33:23] Sending request to LXD method=GET url=http://unix.socket/1.0 etag=
DBUG[10-12|16:33:23] Got response struct from LXD
DBUG[10-12|16:33:23]
{
“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\nzmbLbL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SvV2Ds7O0s0bpXu2cOfLNzJFx3Te+j\nwqlXGGJxSulsfc7Nq6YoAQNrT4XQ948o+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-86-generic”,
“server”: “lxd”,
“server_pid”: 2797,
“server_version”: “3.0.3”,
“storage”: “zfs”,
“storage_version”: “0.8.3-1ubuntu12.12”,
“server_clustered”: false,
“server_name”: “lxd15”,
“project”: “”
}
}
Creating ubuntu20
DBUG[10-12|16:33:23] Connecting to a remote simplestreams server
DBUG[10-12|16:33:23] Connected to the websocket
DBUG[10-12|16:33:23] Sending request to LXD method=POST url=http://unix.socket/1.0/containers etag=
DBUG[10-12|16:33:23]
{
“architecture”: “”,
“config”: {},
“devices”: {},
“ephemeral”: false,
“profiles”: null,
“stateful”: false,
“description”: “”,
“name”: “ubuntu20”,
“source”: {
“type”: “image”,
“certificate”: “”,
“alias”: “20.04”,
“server”: “https://cloud-images.ubuntu.com/releases”,
“protocol”: “simplestreams”,
“mode”: “pull”
},
“instance_type”: “”
}
DBUG[10-12|16:33:23] Got operation from LXD
DBUG[10-12|16:33:23]
{
“id”: “9ec43427-f3e8-496f-9beb-cca1a117c790”,
“class”: “task”,
“description”: “Creating container”,
“created_at”: “2021-10-12T16:33:23.611773723+08:00”,
“updated_at”: “2021-10-12T16:33:23.611773723+08:00”,
“status”: “Running”,
“status_code”: 103,
“resources”: {
“containers”: [
“/1.0/containers/ubuntu20”
]
},
“metadata”: null,
“may_cancel”: false,
“err”: “”
}
DBUG[10-12|16:33:23] Sending request to LXD method=GET url=http://unix.socket/1.0/operations/9ec43427-f3e8-496f-9beb-cca1a117c790 etag=
DBUG[10-12|16:33:23] Got response struct from LXD
DBUG[10-12|16:33:23]
{
“id”: “9ec43427-f3e8-496f-9beb-cca1a117c790”,
“class”: “task”,
“description”: “Creating container”,
“created_at”: “2021-10-12T16:33:23.611773723+08:00”,
“updated_at”: “2021-10-12T16:33:23.611773723+08:00”,
“status”: “Running”,
“status_code”: 103,
“resources”: {
“containers”: [
“/1.0/containers/ubuntu20”
]
},
“metadata”: null,
“may_cancel”: false,
“err”: “”
}
Error: Failed container creation: Get https://cloud-images.ubuntu.com/releases/streams/v1/index.json: x509: certificate signed by unknown authority
Could you help to take a look how to address this failure? It used to work.