That's not usually possible. It's extremely dangerous and therefore not normally allowed by Linux. There are some way around that like our mount interception through syscall interception. linuxcontainers.org/lxd/docs/latest/syscall-interception/ th-cam.com/video/Qm0e69Ckdf4/w-d-xo.html
@@LXD oh! i got it ! thank you! finally i got 3 vms with +1 additional disk and deployed ceph right on the host without any containers. after that i deployed lxd cluster on the top.
Very helpful, Thanks for taking the time to demo the disk device.
Would be nice if all the commands used in the video were listed somewhere as well ...
man up and use man pages...
a very important question is not covered = how to mount block device inside a container (not a vm)?
That's not usually possible. It's extremely dangerous and therefore not normally allowed by Linux.
There are some way around that like our mount interception through syscall interception.
linuxcontainers.org/lxd/docs/latest/syscall-interception/
th-cam.com/video/Qm0e69Ckdf4/w-d-xo.html
@@LXD oh! i got it ! thank you! finally i got 3 vms with +1 additional disk and deployed ceph right on the host without any containers. after that i deployed lxd cluster on the top.
dont do that .. muy peligroso...
@@davidkamaunu7887 pls speak in english
This does not work for me
```
# Create a volume in the default pool
lxc storage volume create default bigdk size=200GiB
# Mount it n my LXC container, c1
lxc config device add c1 bigdk disk pool=default source=bigdk path=/mnt/bigdk
lxc exec c1 -- df -h
Filesystem Size Used Avail Use% Mounted on
/dev/nvme0n1p2 28G 26G 102M 100% /
none 492K 4.0K 488K 1% /dev
udev 7.7G 0 7.7G 0% /dev/tty
tmpfs 100K 0 100K 0% /dev/lxd
tmpfs 100K 0 100K 0% /dev/.lxd-mounts
tmpfs 7.7G 0 7.7G 0% /dev/shm
tmpfs 3.1G 84K 3.1G 1% /run
tmpfs 5.0M 0 5.0M 0% /run/lock