XFS for a lxc mount point mp0

Aug 19, 2019
57
7
13
What is the current recommended way to have xfs instead of ext4 as filesystem for a lxc container mount point (mp0)?

I am trying to create a xfs file system for a container mount point. But it always ends in a container crash on startup:

Code:
root@tokoeka /mnt # pct start 110 --debug
mount_autodev: 1220 Permission denied - Failed to create "/dev" directory
lxc_setup: 4353 Failed to mount "/dev"
do_start: 1275 Failed to setup container "110"
sync_wait: 34 An error occurred in another process (expected sequence number 3)
__lxc_start: 2074 Failed to spawn container "110"

The steps I used to create the xfs in brief:
  • create the standard mountpoint through GUI or cmd as ext4 (default)
  • stop the container
  • attach the raw device through losetup /dev/loopxx
  • create a linux partition with fdisk
  • create xfs filesystem with mkfs.xfs /dev/loopxx
What is my fault?