ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] systemd/machinectl
@ 2015-06-28  5:44 Eugene Prokopiev
  2015-06-28  6:24 ` Eugene Prokopiev
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Eugene Prokopiev @ 2015-06-28  5:44 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussions

Здравствуйте!

В последнем systemd попытался воспользоваться machinectl, но сначала
оно затребовало btrfs:

# machinectl import-tar systemd-bare-20150226-x86_64.tar.xz
Failed transfer image: /var/lib/machines is not a btrfs file system.
Operation is not supported on legacy file systems.

Переделал раздел в btrfs, и все равно не помогло:

# machinectl import-tar systemd-bare-20150226-x86_64.tar.xz
Enqueued transfer job 1. Press C-c to continue download in background.
Importing '/root/systemd-bare-20150226-x86_64.tar.xz', saving as
'systemd-bare-20150226-x86_64'.
Imported 0%.
...
Imported 99%.
Failed to move image into place: Function not implemented
Exiting.

Я помню письмо, в котором предлагалось распаковать тарболл вручную, но
там же было обещана возможность когда-нибудь использовать штатные
инструменты :)

-- 
WBR,
Eugene Prokopiev

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [sisyphus] systemd/machinectl
  2015-06-28  5:44 [sisyphus] systemd/machinectl Eugene Prokopiev
@ 2015-06-28  6:24 ` Eugene Prokopiev
  2015-06-28  6:57 ` Eugene Prokopiev
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 7+ messages in thread
From: Eugene Prokopiev @ 2015-06-28  6:24 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussions

28 июня 2015 г., 8:44 пользователь Eugene Prokopiev <enp@altlinux.org> написал:

> Я помню письмо, в котором предлагалось распаковать тарболл вручную ...

Распаковал, запускаю:

# machinectl start box0
Job for systemd-nspawn@box0.service failed because the control process
exited with error code. See "systemctl status
systemd-nspawn@box0.service" and "journalctl -xe" for details.

# systemctl status systemd-nspawn@box0.service
● systemd-nspawn@box0.service - Container box0
   Loaded: loaded (/lib/systemd/system/systemd-nspawn@.service;
disabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Вс 2015-06-28 09:08:59 MSK; 14s ago
     Docs: man:systemd-nspawn(1)
  Process: 1276 ExecStart=/usr/bin/systemd-nspawn --quiet --keep-unit
--boot --link-journal=try-guest --network-veth --machine=%I
(code=exited, status=1/FAILURE)
 Main PID: 1276 (code=exited, status=1/FAILURE)
   Status: "Terminating..."

июн 28 09:08:59 vbox systemd[1]: Starting Container box0...
июн 28 09:08:59 vbox systemd-nspawn[1276]: Failed to create directory
/var/lib/machines/box0/sys/fs/selinux: Read-only file system
июн 28 09:08:59 vbox systemd-nspawn[1276]: Failed to create directory
/var/lib/machines/box0/sys/fs/selinux: Read-only file system
июн 28 09:08:59 vbox systemd-nspawn[1276]: /etc/localtime is not a
symlink, not updating container timezone.
июн 28 09:08:59 vbox systemd-nspawn[1276]: Host and machine ids are
equal (fb6a5fbb4884f8a4eafcb29f558ec9c5): refusing to link journals
июн 28 09:08:59 vbox systemd[1]: systemd-nspawn@box0.service: Main
process exited, code=exited, status=1/FAILURE
июн 28 09:08:59 vbox systemd[1]: Failed to start Container box0.
июн 28 09:08:59 vbox systemd[1]: systemd-nspawn@box0.service: Unit
entered failed state.
июн 28 09:08:59 vbox systemd[1]: systemd-nspawn@box0.service: Failed
with result 'exit-code'.

systemd-nspawn -M /var/lib/machines/box0 отрабатывал и внутрь меня
пускал, правда с теми же ошибками на консоль, что приведены выше.

Как бороться?

-- 
WBR,
Eugene Prokopiev

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [sisyphus] systemd/machinectl
  2015-06-28  5:44 [sisyphus] systemd/machinectl Eugene Prokopiev
  2015-06-28  6:24 ` Eugene Prokopiev
@ 2015-06-28  6:57 ` Eugene Prokopiev
  2015-06-28  7:01   ` Eugene Prokopiev
  2015-06-29 17:40 ` Eugene Prokopiev
    3 siblings, 1 reply; 7+ messages in thread
From: Eugene Prokopiev @ 2015-06-28  6:57 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussions

> Failed to move image into place: Function not implemented
> Exiting.

C чужими архивами похожая ерунда:

# machinectl pull-tar
https://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-i386-root.tar.gz
Enqueued transfer job 1. Press C-c to continue download in background.
Pulling 'https://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-i386-root.tar.gz',
saving as 'trusty-server-cloudimg-i386-root'.
Downloading 836B for
https://cloud-images.ubuntu.com/trusty/current/SHA256SUMS.gpg.
Download of https://cloud-images.ubuntu.com/trusty/current/SHA256SUMS.gpg
complete.
Downloading 175.8M for
https://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-i386-root.tar.gz.
Downloading 1.9K for https://cloud-images.ubuntu.com/trusty/current/SHA256SUMS.
Download of https://cloud-images.ubuntu.com/trusty/current/SHA256SUMS complete.
Got 1% of https://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-i386-root.tar.gz.
4min 26s left at 669.1K/s.
...
Got 99% of https://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-i386-root.tar.gz.
3s left at 546.2K/s.
Download of https://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-i386-root.tar.gz
complete.
SHA256 checksum of
https://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-i386-root.tar.gz
is valid.
gpg: Signature made Fri 26 Jun 2015 04:39:41 AM MSK using RSA key ID 7DB87C81
gpg: Good signature from "UEC Image Automatic Signing Key <cdimage@ubuntu.com>"
gpg: WARNING: Using untrusted key!
Signature verification succeeded.
Failed to rename to final image name: Function not implemented
Exiting.

Однако распаковать его вручную и запустить (после создания
etc/machine-id) таки удалось. После этого обратил внимание на Host and
machine ids are equal (fb6a5fbb4884f8a4eafcb29f558ec9c5): refusing to
link journals при запуске альтового архива, сменил etc/machine-id и он
тоже запустился

-- 
WBR,
Eugene Prokopiev


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [sisyphus] systemd/machinectl
  2015-06-28  6:57 ` Eugene Prokopiev
@ 2015-06-28  7:01   ` Eugene Prokopiev
  0 siblings, 0 replies; 7+ messages in thread
From: Eugene Prokopiev @ 2015-06-28  7:01 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussions

> ... сменил etc/machine-id и он тоже запустился

А как кстати правильно это делать (не считая какого-нибудь uuidgen или apg)?

-- 
WBR,
Eugene Prokopiev

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [sisyphus] systemd/machinectl
  2015-06-28  5:44 [sisyphus] systemd/machinectl Eugene Prokopiev
  2015-06-28  6:24 ` Eugene Prokopiev
  2015-06-28  6:57 ` Eugene Prokopiev
@ 2015-06-29 17:40 ` Eugene Prokopiev
      3 siblings, 1 reply; 7+ messages in thread
From: Eugene Prokopiev @ 2015-06-29 17:40 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussions

> В последнем systemd попытался воспользоваться machinectl ...

Кстати и с автозапуском гостей какие-то странности. Делаю machinectl
enable box0 и после перезагрузки:

[root@vbox ~]# ls /var/lib/machines/
box0
[root@vbox ~]# machinectl status box0
Could not get path to machine: No machine 'box0' known
[root@vbox ~]# machinectl start box0
[root@vbox ~]# machinectl status box0
box0
           Since: Пн 2015-06-29 20:37:50 MSK; 1s ago
           ...

Почему так?

-- 
WBR,
Eugene Prokopiev

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [sisyphus] systemd/machinectl
  @ 2015-06-30  5:12     ` Eugene Prokopiev
  0 siblings, 0 replies; 7+ messages in thread
From: Eugene Prokopiev @ 2015-06-30  5:12 UTC (permalink / raw)
  To: shaba, ALT Linux Sisyphus discussions

29 июня 2015 г., 21:15 пользователь Alexey Shabalin
<a.shabalin@gmail.com> написал:
>
>
> 29 июня 2015 г., 20:40 пользователь Eugene Prokopiev <enp@itx.ru> написал:
>
>> > В последнем systemd попытался воспользоваться machinectl ...
>>
>> Кстати и с автозапуском гостей какие-то странности. Делаю machinectl
>> enable box0 и после перезагрузки:
>>
>> [root@vbox ~]# ls /var/lib/machines/
>> box0
>> [root@vbox ~]# machinectl status box0
>> Could not get path to machine: No machine 'box0' known
>> [root@vbox ~]# machinectl start box0
>> [root@vbox ~]# machinectl status box0
>> box0
>>            Since: Пн 2015-06-29 20:37:50 MSK; 1s ago
>>            ...
>>
>> Почему так?
>>
> ну это просто :)
> никто не смонтировал вашу новую btrfs?

Да ну! А вон выше вывод ls /var/lib/machines/ и status после start. А еще:

[root@vbox ~]# mount | grep btrfs
/dev/sdb1 on /var/lib/machines type btrfs (rw,relatime,space_cache)
[root@vbox ~]# grep btrfs /etc/fstab
/dev/sdb1       /var/lib/machines               btrfs   relatime        0 0

-- 
WBR,
Eugene Prokopiev

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [sisyphus] systemd/machinectl
  @ 2015-06-30  5:15   ` Eugene Prokopiev
  0 siblings, 0 replies; 7+ messages in thread
From: Eugene Prokopiev @ 2015-06-30  5:15 UTC (permalink / raw)
  To: shaba, ALT Linux Sisyphus discussions

> как у вас смонтирована btrfs?
> # cat /etc/fstab | grep btrfs
> UUID=1a708b87-c38c-4c59-a428-577adeacb6c9 /var/lib/machines btrfs relatime 0
> 0

Аналогично - показал в предыдущем письме.

Правда и хост, и гость у меня i586. Сегодня пересоберу образы обоих
для x86_64 и проверю с ними.

-- 
WBR,
Eugene Prokopiev

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-06-30  5:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-28  5:44 [sisyphus] systemd/machinectl Eugene Prokopiev
2015-06-28  6:24 ` Eugene Prokopiev
2015-06-28  6:57 ` Eugene Prokopiev
2015-06-28  7:01   ` Eugene Prokopiev
2015-06-29 17:40 ` Eugene Prokopiev
2015-06-30  5:12     ` Eugene Prokopiev
2015-06-30  5:15   ` Eugene Prokopiev

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git