Hello,
I’m getting started with MicroCloud and as an initial environment I have setup a VM for a single-node microcloud with the following instructions:
lxc launch ubuntu:24.04 testmicrocloud --vm -c limits.cpu=4 -c limits.memory=8GiB
lxc storage volume create lxdpool01 testmicrocloud-vol01 --type block size=10GiB
lxc storage volume create lxdpool01 testmicrocloud-vol01 --type block size=10GiB
lxc storage volume attach lxdpool01 testmicrocloud-vol01 testmicrocloud
lxc storage volume attach lxdpool01 testmicrocloud-vol02 testmicrocloud
lxc network attach lxdbr1 testmicrocloud # lxdbr0 is attached already
Followed installation instructions in the VM here - https://canonical-microcloud.readthedocs-hosted.com/en/latest/microcloud/how-to/install/#installation
Then inside the VM:
root@testmicrocloud:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop0 7:0 0 73.9M 1 loop /snap/core22/1802
loop1 7:1 0 66.2M 1 loop /snap/core24/739
loop2 7:2 0 114.4M 1 loop /snap/lxd/33110
loop3 7:3 0 111.5M 1 loop /snap/microceph/1293
loop4 7:4 0 21.1M 1 loop /snap/microovn/667
loop5 7:5 0 10.4M 1 loop /snap/microcloud/1144
loop6 7:6 0 44.4M 1 loop /snap/snapd/23771
sda 8:0 0 10G 0 disk
├─sda1 8:1 0 9G 0 part /
├─sda14 8:14 0 4M 0 part
├─sda15 8:15 0 106M 0 part /boot/efi
└─sda16 259:0 0 913M 0 part /boot
sdb 8:16 0 10G 0 disk
└─mpatha 252:0 0 10G 0 mpath
sdc 8:32 0 10G 0 disk
└─mpatha 252:0 0 10G 0 mpath
root@testmicrocloud:~# microcloud init
Waiting for services to start ...
Do you want to set up more than one cluster member? (yes/no) [default=yes]: no
Using address "10.0.0.2" for MicroCloud
Gathering system information ...
Would you like to set up local storage? (yes/no) [default=yes]: no
Would you like to set up distributed storage? (yes/no) [default=yes]: yes
Select from the available unpartitioned disks:
Select which disks to wipe:
Disk configuration does not meet recommendations for fault tolerance. At least 3 systems must supply disks.
Continuing with this configuration will inhibit MicroCloud's ability to retain data on system failure
Change disk selection? (yes/no) [default=yes]: no
Using 1 disk(s) on "testmicrocloud" for remote storage pool
Do you want to encrypt the selected disks? (yes/no) [default=no]: no
Would you like to set up CephFS remote storage? (yes/no) [default=yes]: yes
What subnet (either IPv4 or IPv6 CIDR notation) would you like your Ceph internal traffic on? [default: 10.0.0.0/24] ^C
root@testmicrocloud:~# microcloud init
Waiting for services to start ...
Do you want to set up more than one cluster member? (yes/no) [default=yes]: no
Using address "10.0.0.2" for MicroCloud
Gathering system information ...
Would you like to set up local storage? (yes/no) [default=yes]: no
Would you like to set up distributed storage? (yes/no) [default=yes]: yes
Select from the available unpartitioned disks:
Select which disks to wipe:
Disk configuration does not meet recommendations for fault tolerance. At least 3 systems must supply disks.
Continuing with this configuration will inhibit MicroCloud's ability to retain data on system failure
Change disk selection? (yes/no) [default=yes]: no
Using 1 disk(s) on "testmicrocloud" for remote storage pool
Do you want to encrypt the selected disks? (yes/no) [default=no]: no
Would you like to set up CephFS remote storage? (yes/no) [default=yes]: no
What subnet (either IPv4 or IPv6 CIDR notation) would you like your Ceph internal traffic on? [default: 10.0.0.0/24] 10.0.0.0/24
What subnet (either IPv4 or IPv6 CIDR notation) would you like your Ceph public traffic on? [default: 10.0.0.0/24] 10.0.0.0/24
Configure distributed networking? (yes/no) [default=yes]: no
Initializing new services
Local MicroCloud is ready
Local MicroOVN is ready
Local MicroCeph is ready
Local LXD is ready
Awaiting cluster formation ...
Error: Failed to add disk to MicroCeph: failed to bootstrap OSD: Failed to run: ceph-osd --mkfs --no-mon-config -i 1: exit status 250 (2025-04-10T13:49:31.685+0000 79af3911b600 -1 bluestore(/var/lib/ceph/osd/ceph-1/block) _read_bdev_label unable to decode label /var/lib/ceph/osd/ceph-1/block at offset 102: void bluestore_bdev_label_t::decode(ceph::buffer::v15_2_0::list::const_iterator&) decode past end of struct encoding: Malformed input [buffer:3]
2025-04-10T13:49:31.685+0000 79af3911b600 -1 bluestore(/var/lib/ceph/osd/ceph-1/block) _read_bdev_label unable to decode label /var/lib/ceph/osd/ceph-1/block at offset 102: void bluestore_bdev_label_t::decode(ceph::buffer::v15_2_0::list::const_iterator&) decode past end of struct encoding: Malformed input [buffer:3]
2025-04-10T13:49:31.685+0000 79af3911b600 -1 bluestore(/var/lib/ceph/osd/ceph-1/block) _read_bdev_label unable to decode label /var/lib/ceph/osd/ceph-1/block at offset 102: void bluestore_bdev_label_t::decode(ceph::buffer::v15_2_0::list::const_iterator&) decode past end of struct encoding: Malformed input [buffer:3]
2025-04-10T13:49:31.728+0000 79af3911b600 -1 bdev(0x561d313b4000 /var/lib/ceph/osd/ceph-1/block) open open got: (16) Device or resource busy
2025-04-10T13:49:31.728+0000 79af3911b600 -1 bluestore(/var/lib/ceph/osd/ceph-1) mkfs failed, (16) Device or resource busy
2025-04-10T13:49:31.728+0000 79af3911b600 -1 OSD::mkfs: ObjectStore::mkfs failed with error (16) Device or resource busy
2025-04-10T13:49:31.728+0000 79af3911b600 -1 ** ERROR: error creating empty object store in /var/lib/ceph/osd/ceph-1: (16) Device or resource busy)
I’ve double-checked the requirements, tried with answering yes to create local storage question. Not sure what I can do to debug this further?
Thanks!