Kali/cloud - Failed to listen on /home/ubuntu/pulse-native

# lxc launch images:kali/cloud  --profile default --profile x11 Kali

Creating Kali
Starting Kali                             
Error: Error occurred when starting proxy device: Error: Failed to listen on /home/ubuntu/pulse-native: listen unix /home/ubuntu/pulse-na
tive: bind: no such file or directory
Try `lxc info --show-log local: Kali` for more info
Name: Kali
Status: STOPPED
Type: container
Architecture: x86_64
Created: 2022/12/13 06:28 AEDT
Last Used: 2022/12/13 06:28 AEDT

Log:

lxc Kali 20221212192836.349 WARN     conf - ../src/src/lxc/conf.c:lxc_map_ids:3592 - newuidmap binary is missing
lxc Kali 20221212192836.349 WARN     conf - ../src/src/lxc/conf.c:lxc_map_ids:3598 - newgidmap binary is missing
lxc Kali 20221212192836.350 WARN     conf - ../src/src/lxc/conf.c:lxc_map_ids:3592 - newuidmap binary is missing
lxc Kali 20221212192836.350 WARN     conf - ../src/src/lxc/conf.c:lxc_map_ids:3598 - newgidmap binary is missing
lxc Kali 20221212192843.303 WARN     conf - ../src/src/lxc/conf.c:lxc_map_ids:3592 - newuidmap binary is missing
lxc Kali 20221212192843.303 WARN     conf - ../src/src/lxc/conf.c:lxc_map_ids:3598 - newgidmap binary is missing

I have read Proxy device not connecting to Pulseaudio on LXD host.

I have also read: Newuidmap/newgidmap binary is missing

The logs appear irrelevant to the problem causing the container not to start.

Is there a consolidated, documented way of fixing this please.

Cheers…

my x11 profile:

lxc profile show x11
config:
  environment.DISPLAY: :0
  environment.PULSE_SERVER: unix:/home/ubuntu/pulse-native
  nvidia.driver.capabilities: all
  nvidia.runtime: "true"
  user.user-data: |
    #cloud-config
    locale: en_AU.UTF-8
    timezone: Australia/Sydney
    package_upgrade: true
    packages:
      - build-essential
      - mesa-utils
      - x11-apps
      - pulseaudio
      - aptitude
      - neovim
      - kitty-terminfo
    runcmd:
      - 'sed -i "s/; enable-shm = yes/enable-shm = no/g" /etc/pulse/client.conf'
      - 'echo "export DISPLAY=:0.0" >> /home/ubuntu/.bashrc'
    ssh_authorized_keys:
       ssh-ed25519 <>
description: GUI LXD profile
devices:
  PASocket1:
    bind: container
    connect: unix:/run/user/1000/pulse/native
    gid: "1000"
    listen: unix:/home/ubuntu/pulse-native
    mode: "0777"
    security.gid: "1000"
    security.uid: "1000"
    type: proxy
    uid: "1000"
  X0:
    bind: container
    connect: unix:@/tmp/.X11-unix/X1
    listen: unix:@/tmp/.X11-unix/X0
    security.gid: "1000"
    security.uid: "1000"
    type: proxy
  mygpu:
    type: gpu
name: x11
used_by:
- /1.0/instances/Haskell-ghcup
- /1.0/instances/Gitea
- /1.0/instances/git-server
- /1.0/instances/x11-dev-base
- /1.0/instances/Kali

I just tried

lxc launch -e images:ubuntu:22.04/cloud --profile default --profile x11 test1

pacat < /dev/random,
xclock, and glx gears all run fine.

So I imagine it is a problem with cloud-init and configuration of the Kali Linux container. How should I proceed from here?