Summary: | lxc-create -t altlinux не отрабатывает | ||
---|---|---|---|
Product: | Branch p8 | Reporter: | Michael Shigorin <mike> |
Component: | lxc | Assignee: | Andrey Cherepanov <cas> |
Status: | CLOSED FIXED | QA Contact: | qa-p8 <qa-p8> |
Severity: | normal | ||
Priority: | P3 | CC: | cas, dans, yulepikhin |
Version: | не указана | ||
Hardware: | all | ||
OS: | Linux |
Description
Michael Shigorin
2016-08-18 14:45:34 MSK
Пишут, что аналогично и на p8 с поправкой на путь: -/var/cache/lxc/altlinux/x86_64/7.0.5/default/rootfs +/var/cache/lxc/altlinux/x86_64/Server/default/rootfs Попробую пофиксить /usr/share/lxc/templates/lxc-altlinux, чтобы он был более универсальным. Правильно ли я понимаю, что достаточно изменить apt-conf-sisyphus на apt-conf? В качестве полумеры, которая работает всегда: mkdir /etc/lxc/profiles cat <<EOF > /etc/lxc/profiles/p8 interactivesystem apt apt-conf etcnet-full openssh-server systemd-sysvinit systemd-units systemd NetworkManager-daemon EOF lxc-create -n testalt -t altlinux -- -P p8 (В ответ на комментарий №2) > Правильно ли я понимаю, что достаточно изменить apt-conf-sisyphus на apt-conf? По идее, да; по крайней мере в m-p вижу так: pkg.in/lists/tagged/basesystem:apt-conf > В качестве полумеры, которая работает всегда: Спасибо, передал. В коде видел, но не разобрался сходу, куда именно лезет и что там ждёт. Заменил на apt-conf и сделал apt-get update После этого контейнер создался, но не запускается: root@comp-core-i5-4200u-b809f7 templates]# lxc-create -t altlinux -n test Checking cache download in /var/cache/lxc/altlinux/x86_64/Server/default/rootfs ... Cache found. Updating... Reading Package Lists... Building Dependency Tree... Reading Package Lists... Building Dependency Tree... 0 upgraded, 0 newly installed, 0 removed and 0 not upgraded. Update finished Copy /var/cache/lxc/altlinux/x86_64/Server/default/rootfs to /var/lib/lxc/test/rootfs ... Copying rootfs to /var/lib/lxc/test/rootfs ...setting root passwd to rooter container rootfs and config created network configured as veth in the virbr0 [root@comp-core-i5-4200u-b809f7 templates]# lxc-start -n test lxc-start: lxc_start.c: main: 344 The container failed to start. lxc-start: lxc_start.c: main: 346 To get more details, run the container in foreground mode. lxc-start: lxc_start.c: main: 348 Additional information can be obtained by setting the --logfile and --logpriority options. [root@comp-core-i5-4200u-b809f7 templates]# Что не так? В логе вот такое сообщение lxc-start 20160819110425.856 ERROR lxc_conf - conf.c:instantiate_veth:2594 - failed to attach 'vethKLNC9Y' to the bridge 'lxcbr0': Operation not permitted Что делать? > lxc-start 20160819110425.856 ERROR lxc_conf - conf.c:instantiate_veth:2594 -
> failed to attach 'vethKLNC9Y' to the bridge 'lxcbr0': Operation not permitted
>
> Что делать?
подозреваю, что запустить от рута.
Если не поможет, то данных недостаточно.
[#168754] DONE lxc.git=2.0.4-alt1 в сизиф отправлено. Просьба забрать для p8. #168759 AWAITING #1 p8 copy=lxc Запускал от рута. Какие ещё данные нужны? Обновил до 2.0.4 Сервер стал "Школьным" сервером. результат запуска контейнера тот же: [root@comp-core-i5-4200u-b809f7 lxc]# lxc-start -n test lxc-start: tools/lxc_start.c: main: 344 The container failed to start. lxc-start: tools/lxc_start.c: main: 346 To get more details, run the container in foreground mode. lxc-start: tools/lxc_start.c: main: 348 Additional information can be obtained by setting the --logfile and --logpriority options. [root@comp-core-i5-4200u-b809f7 lxc]# содержимое лога: [root@comp-core-i5-4200u-b809f7 lxc]# cat test.log lxc-start 20160823112515.049 ERROR lxc_conf - conf.c:instantiate_veth:2596 - failed to attach 'vethD2HM24' to the bridge 'lxcbr0': Operation not permitted lxc-start 20160823112515.056 ERROR lxc_conf - conf.c:lxc_create_network:2882 - failed to create netdev lxc-start 20160823112515.056 ERROR lxc_start - start.c:lxc_spawn:1081 - failed to create the network lxc-start 20160823112515.056 ERROR lxc_start - start.c:__lxc_start:1354 - failed to spawn 'test' lxc-start 20160823112520.061 ERROR lxc_start_ui - tools/lxc_start.c:main:344 - The container failed to start. lxc-start 20160823112520.061 ERROR lxc_start_ui - tools/lxc_start.c:main:346 - To get more details, run the container in foreground mode. lxc-start 20160823112520.062 ERROR lxc_start_ui - tools/lxc_start.c:main:348 - Additional information can be obtained by setting the --logfile and --logpriority options. [root@comp-core-i5-4200u-b809f7 lxc]# Что делать? (В ответ на комментарий №10) > Обновил до 2.0.4 Судя по логу ошибка, заявленная в текущем баге ушла. Я вас попрошу создать новый баг, поскольку это другая проблема. > [root@comp-core-i5-4200u-b809f7 lxc]# cat test.log > lxc-start 20160823112515.049 ERROR lxc_conf - > conf.c:instantiate_veth:2596 - failed to attach 'vethD2HM24' to the bridge > 'lxcbr0': Operation not permitted а приведите, для начала, вывод команд: ip a systemctl status lxc-net возможно пригодятся файлы: /etc/lxc/default.conf /etc/sysconfig/lxc-net (В ответ на комментарий №11) > (В ответ на комментарий №10) > > Обновил до 2.0.4 > Судя по логу ошибка, заявленная в текущем баге ушла. > Я вас попрошу создать новый баг, поскольку это другая проблема. > > > [root@comp-core-i5-4200u-b809f7 lxc]# cat test.log > > lxc-start 20160823112515.049 ERROR lxc_conf - > > conf.c:instantiate_veth:2596 - failed to attach 'vethD2HM24' to the bridge > > 'lxcbr0': Operation not permitted > > а приведите, для начала, вывод команд: > ip a > systemctl status lxc-net > > возможно пригодятся файлы: > /etc/lxc/default.conf > /etc/sysconfig/lxc-net Создан новый баг с подробностями: https://bugzilla.altlinux.org/show_bug.cgi?id=32423 |