Closed abitrolly closed 4 years ago
$ lxc launch ubuntu:18.10
Creating the container
Container name is: talented-deer
Starting talented-deer
$ lxc launch fedora:30
Error: The remote "fedora" doesn't exist
Didn't work for fedora, because ubuntu:
is lxc remote
.
$ lxc remote list -q
+-----------------+---------------------------------------------------+---------------+-------------+--------+--------+
| NAME | URL | PROTOCOL | AUTH TYPE | PUBLIC | STATIC |
+-----------------+---------------------------------------------------+---------------+-------------+--------+--------+
| images | https://images.linuxcontainers.org | simplestreams | none | YES | NO |
+-----------------+---------------------------------------------------+---------------+-------------+--------+--------+
| local (default) | unix:// | lxd | file access | NO | YES |
+-----------------+---------------------------------------------------+---------------+-------------+--------+--------+
| ubuntu | https://cloud-images.ubuntu.com/releases | simplestreams | none | YES | YES |
+-----------------+---------------------------------------------------+---------------+-------------+--------+--------+
| ubuntu-daily | https://cloud-images.ubuntu.com/daily | simplestreams | none | YES | YES |
+-----------------+---------------------------------------------------+---------------+-------------+--------+--------+
| ubuntu-minimal | https://cloud-images.ubuntu.com/minimal/releases/ | simplestreams | none | YES | NO |
+-----------------+---------------------------------------------------+---------------+-------------+--------+--------+
It can be fixed by usinh images:
remote for all OS.
$ lxc launch images:ubuntu/18.10
Creating the container
``
Now container starts successfully, and then the scripts fails with the below error.
✗ bin/lxd-runin.sh
Creating container 'linux' (fedora/30)
Creating linux
Starting linux
Error: Add disk devices: Failed to setup device: Source path /var/lib/snapd/hostfs/home/anatoli/a/linux doesn't exist for device linux-shared
/bin/sh: line 0: cd: linux: No such file or directory
@abitrolly looks like you're running lxc
from a snap. It really looks like https://github.com/lxc/lxd/issues/3660 which has been fixed. Can you tell your lxc
version?
✗ lxc version
Client version: 3.16
Server version: 3.16
I forgot that I am using remote LXD server to run containers. It probably can not add local disk device to remote host.
✗ lxc remote list
+----------------+------------------------------------------+---------------+-------------+--------+--------+
| NAME | URL | PROTOCOL | AUTH TYPE | PUBLIC | STATIC |
+----------------+------------------------------------------+---------------+-------------+--------+--------+
| images | https://images.linuxcontainers.org | simplestreams | none | YES | NO |
+----------------+------------------------------------------+---------------+-------------+--------+--------+
| local | unix:// | lxd | file access | NO | YES |
+----------------+------------------------------------------+---------------+-------------+--------+--------+
| ubuntu | https://cloud-images.ubuntu.com/releases | simplestreams | none | YES | YES |
+----------------+------------------------------------------+---------------+-------------+--------+--------+
| ubuntu-daily | https://cloud-images.ubuntu.com/daily | simplestreams | none | YES | YES |
+----------------+------------------------------------------+---------------+-------------+--------+--------+
| srxd (default) | https://192.168.0.12:3443 | lxd | tls | NO | NO |
Well, I am not sure that's LXD is capable to do anything on client side. After all, it is just a Go API over standard Linux containers, and magic happens on containers host. Therefore, yes - device add
won't work from your remove Fedora.
@techtonik ping.