I'm on Focal desktop, running kvm like so qemu-system-x86_64 -smp 2 -m 1024 --enable-kvm \ -drive id=disk0,if=none,format=qcow2,file=bionic-bcache-links.qcow2 \ -device virtio-blk-pci,drive=disk0,bootindex=0 \ -drive id=disk1,if=none,format=raw,file=bcache1.img \ -device virtio-blk-pci,drive=disk1 \ -drive id=disk2,if=none,format=raw,file=bcache2.img \ -device virtio-blk-pci,drive=disk2 \ -drive id=cdrom0,if=none,media=cdrom,file=seed.img \ -device virtio-blk-pci,drive=cdrom0,bootindex=1 \ -net user,hostfwd=tcp::22222-:22 -net nic,model=virtio \ -monitor stdio -vnc 0.0.0.0:0 \ -object rng-random,filename=/dev/urandom,id=rng0 \ -device virtio-rng-pci,rng=rng0 \ -serial telnet:localhost:2446,nowait,server
The images are created with: wget https://cloud-images.ubuntu.com/daily/server/server/bionic/current/bionic-server-cloudimg-amd64.img qemu-img create -f qcow2 -b bionic-server-cloudimg-amd64.img \ bionic-bcache-linux.qcow2 20G qemu-img create -f raw bcache1.img 10G qemu-img create -f raw bcache2.img 10G cat <<EOF >user-data #cloud-config password: passw0rd chpasswd: { expire: False } ssh_pwauth: True ssh_authorized_keys: - | <your ssh key here> EOF # you'll need cloud-image-utils package installed cat <<EOF >boot.sh #!/bin/bash BOOT=$1 SEED=${2-"seed.img"} USERDATA=${3-"user-data"} [ ! -e ${SEED} ] && { [ ! -e ${USERDATA} ] && { echo "You need a 'user-data' file" exit 1; } [ ! -e meta-data ] && { echo "instance-id: $(uuidgen || echo i-abcdefg)" > meta-data } echo "Creating seed..." cloud-localds ${SEED} ${USERDATA} meta-data } qemu-system-x86_64 -smp 2 -m 1024 --enable-kvm \ -drive id=disk0,if=none,format=qcow2,file=${BOOT} \ -device virtio-blk-pci,drive=disk0,bootindex=0 \ -drive id=disk1,if=none,format=raw,file=${DISK1} \ -device virtio-blk-pci,drive=disk1 \ -drive id=cdrom0,if=none,media=cdrom,file=${SEED} \ -device virtio-blk-pci,drive=cdrom0,bootindex=1 \ -net user,hostfwd=tcp::22222-:22 \ -net nic,model=virtio \ -monitor stdio \ -vnc 0.0.0.0:0 \ -object rng-random,filename=/dev/urandom,id=rng0 \ -device virtio-rng-pci,rng=rng0 \ -serial telnet:localhost:2446,nowait,server \ EOF # watch the server boot with telnet localhost 2446 # ssh into the instance with ssh -p 22222 ubuntu@localhost ** Changed in: linux (Ubuntu) Status: Incomplete => New -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1861941 Title: bcache by-uuid links disappear after mounting bcache0 Status in linux package in Ubuntu: New Status in linux-signed-5.4 package in Ubuntu: New Bug description: 1. root@ubuntu:~# lsb_release -rd Description: Ubuntu Focal Fossa (development branch) Release: 20.04 2. root@ubuntu:~# lsb_release -rd Description: Ubuntu Focal Fossa (development branch) Release: 20.04 root@ubuntu:~# apt-cache policy linux-image-virtual linux-image-virtual: Installed: 5.4.0.12.15 Candidate: 5.4.0.12.15 Version table: *** 5.4.0.12.15 500 500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages 100 /var/lib/dpkg/status root@ubuntu:~# apt-cache policy linux-image-5.4.0-12-generic linux-image-5.4.0-12-generic: Installed: 5.4.0-12.15 Candidate: 5.4.0-12.15 Version table: *** 5.4.0-12.15 500 500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages 100 /var/lib/dpkg/status 3. mount /dev/bcache0 && ls -al /dev/bcache/by-uuid/ + ls -al /dev/bcache/by-uuid/ total 0 drwxr-xr-x 2 root root 60 Feb 4 23:31 . drwxr-xr-x 3 root root 60 Feb 4 23:31 .. lrwxrwxrwx 1 root root 13 Feb 4 23:31 abdfd1f6-44ce-4266-91db-24667b9ae51a -> ../../bcache0 4. root@ubuntu:~# ls -al /dev/bcache/by-uuid ls: cannot access '/dev/bcache/by-uuid': No such file or directory ProblemType: Bug DistroRelease: Ubuntu 20.04 Package: linux-image-5.4.0-12-generic 5.4.0-12.15 ProcVersionSignature: Ubuntu 5.4.0-12.15-generic 5.4.8 Uname: Linux 5.4.0-12-generic x86_64 ApportVersion: 2.20.11-0ubuntu16 Architecture: amd64 Date: Tue Feb 4 23:31:52 2020 ProcEnviron: TERM=xterm-256color PATH=(custom, no user) LANG=C.UTF-8 SHELL=/bin/bash SourcePackage: linux-signed-5.4 UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1861941/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp