I am running LXD v 3.4, I set it up on 18.04 with:
snap install lxd
sudo lxd init
sudo adduser myuser lxd
newgrp lxd
Then trying to create a container with lxc launch ubuntu:18.04 ocs
I get an error Error: Failed container creation: local error: tls: bad record MAC
Debug report:
BUG[08-17|18:02:02] Connecting to a local LXD over a Unix socket
DBUG[08-17|18:02:02] Sending request to LXD etag= method=GET url=http://unix.socket/1.0
DBUG[08-17|18:02:02] Got response struct from LXD
DBUG[08-17|18:02:02]
{
"config": {},
"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",
"container_mount_propagation",
"container_backup",
"devlxd_images",
"container_local_cross_pool_handling",
"proxy_unix",
"proxy_udp",
"clustering_join",
"proxy_tcp_udp_multi_port_handling",
"network_state",
"proxy_unix_dac_properties",
"container_protection_delete",
"unix_priv_drop",
"pprof_http",
"proxy_haproxy_protocol",
"network_hwaddr",
"proxy_nat",
"network_nat_order",
"container_full",
"candid_authentication"
],
"api_status": "stable",
"api_version": "1.0",
"auth": "trusted",
"public": false,
"auth_methods": [
"tls"
],
"environment": {
"addresses": [],
"architectures": [
"x86_64",
"i686"
],
"certificate": "-----BEGIN CERTIFICATE-----\nMIIFUzCCAzugAwIBAgIRAK2dQT/J+GsQ75dmY7h7zhwwDQYJKoZIhvcNAQELBQAw\nNjEcMBoGA1UEChMTbGludXhjb250YWluZXJzLm9yZzEWMBQGA1UEAwwNcm9vdEBs\nYWJzLTMzNjAeFw0xODA4MTcxNTIyMzhaFw0yODA4MTQxNTIyMzhaMDYxHDAaBgNV\nBAoTE2xpbnV4Y29udGFpbmVycy5vcmcxFjAUBgNVBAMMDXJvb3RAbGFicy0zMzYw\nggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDoITc2QSMUZXNp3d0rIzuX\nlVWjISdeaICRp/GytgTvfgWQVR53nc3D7deoGrii6yXso/oIbMwSWdAGM9jyATkW\nSd10nsfZT6UiixTHhgcGW0qu0pUv6S+ALib5rwWlBbag5nFOybvfmR8pWe6wHgS+\nCmRe3A74H+++j4OnNW5lXdxUo6b27aUmQz3EGekGvAP96JVLhTsHyb/RxGKMQLnN\nWyePYpzey8D9NIrj6VsQtT9QJcPBIDVdGjViCJIuT48uIn+7Ut39b2oxafhUViag\noW76WHV20xYTG7iSiLLpmKErF4cqXbcAChdv42HwcGwEn0s3E1R2gYie5gjeyLwS\nYOjgkqvjbl/Cuj8b3ltBb+NW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ZQ4vasLXFvvD\nztm3doPkhxVC8svb0WqE3gLeaG+uDvc3IPhRvdU+T3JGS5Rd11UQnw3Llr1g8Woi\nTIG2NhH9MHNL4LafiuNEmpqiQebZSUo=\n-----END CERTIFICATE-----\n",
"certificate_fingerprint": "2143e2fc0d9ed831a80576c3edfb1b1bf50bc66650e49badb3ffe78eb209f66d",
"driver": "lxc",
"driver_version": "3.0.2",
"kernel": "Linux",
"kernel_architecture": "x86_64",
"kernel_version": "4.15.0-32-generic",
"server": "lxd",
"server_pid": 27686,
"server_version": "3.4",
"storage": "zfs",
"storage_version": "0.7.5-1ubuntu15",
"server_clustered": false,
"server_name": "labs-336"
}
}
Creating ocs
DBUG[08-17|18:02:02] Connecting to a remote simplestreams server
DBUG[08-17|18:02:02] Connected to the websocket
DBUG[08-17|18:02:02] Sending request to LXD etag= method=POST url=http://unix.socket/1.0/containers
DBUG[08-17|18:02:02]
{
"architecture": "",
"config": {},
"devices": {},
"ephemeral": false,
"profiles": null,
"stateful": false,
"description": "",
"name": "ocs",
"source": {
"type": "image",
"certificate": "",
"alias": "18.04",
"server": "https://cloud-images.ubuntu.com/releases",
"protocol": "simplestreams",
"mode": "pull"
},
"instance_type": ""
}
DBUG[08-17|18:02:02] Got operation from LXD
DBUG[08-17|18:02:02]
{
"id": "093c33b8-1766-4f5a-a477-f37d51dea503",
"class": "task",
"description": "Creating container",
"created_at": "2018-08-17T18:02:02.538439792+02:00",
"updated_at": "2018-08-17T18:02:02.538439792+02:00",
"status": "Running",
"status_code": 103,
"resources": {
"containers": [
"/1.0/containers/ocs"
]
},
"metadata": null,
"may_cancel": false,
"err": ""
}
DBUG[08-17|18:02:02] Sending request to LXD etag= method=GET url=http://unix.socket/1.0/operations/093c33b8-1766-4f5a-a477-f37d51dea503
DBUG[08-17|18:02:02] Got response struct from LXD
DBUG[08-17|18:02:02]
{
"id": "093c33b8-1766-4f5a-a477-f37d51dea503",
"class": "task",
"description": "Creating container",
"created_at": "2018-08-17T18:02:02.538439792+02:00",
"updated_at": "2018-08-17T18:02:02.538439792+02:00",
"status": "Running",
"status_code": 103,
"resources": {
"containers": [
"/1.0/containers/ocs"
]
},
"metadata": null,
"may_cancel": false,
"err": ""
}
Error: Failed container creation: local error: tls: bad record MAC
Anyone seen this before? Just a quick google doesn’t show anything relating to lxd.