Skip to content

v1.1.40

Latest

Choose a tag to compare

@github-actions github-actions released this 30 Nov 16:13

変更内容

1.1.40: スマホに挿した USB メモリを扱えるようになりました。ブート用の ISO を書く・初期化する(z2-disk)と、仮想マシンのインストーラで USB メモリへ OS を入れる(z2-vm --target-usb)ができます。あわせて、スマホの中で仮想マシンを動かす z2-vm を足し、Alpine の Podman でコンテナが起動するようになりました(1.1.33〜1.1.40 の変更をまとめています)。

  • USB メモリにブート用の ISO を書く(z2-disk): z2-disk write <ISO> で ISO を丸ごと書き、書いた後に読み比べます。Windows のインストール用の ISO は z2-disk make <ISO> でファイルをコピーして、UEFI で起動できる形に作ります。z2-disk format fat32|exfat で初期化もできます。使っている間だけ USB メモリを Android から外し、終われば戻します。z2k エンジンで使えます。
  • 「Z2Term で開きますか?」: USB メモリを挿したときに z2term を選べるようになりました。選ぶと USB の許可も一緒に済むので、z2-usb allow を打たずに z2-disk を使えます。
  • スマホの中で仮想マシンを動かす(z2-vm): ISO から OS を起動し、画面は z2term のタブで開きます(z2-vm new <名前> --iso <ISO> → z2-vm start <名前>)。QEMU は Linux の OS のパッケージを使います。
  • USB メモリに OS を入れる(z2-vm --target-usb): 挿した USB メモリを仮想マシンのディスクにして、インストーラで OS をそこへ入れられます。入れた USB メモリで PC を起動できます。
  • Alpine の Podman: runc のコンテナが起動しなかったのを直しました。既定のネットワークも使えます(iptables の -j MARK などが通るようになりました)。
  • コンテナを使った後の起動: アプリを起動し直すと、プロンプトが出るまで長く待たされることがあったのを直しました。
  • 16KB ページの端末: z2k の細かいところを、ページの大きい端末向けに直しました。
  • README の中国語(簡体字)版: @11jianfeng さんが訳してくれました(#7)。

既知の不具合:

  • z2-disk・z2-vm --target-usb は z2k エンジンだけで使えます(z2root では案内を出して止まります)。
  • 仮想マシンのシリアルで Alpine を入れると、起動の設定に console=ttyS0 が入り、PC の画面に何も出ません。また Alpine は、準備に 5 秒以上かかる遅い USB メモリだと起動の途中で止まります。
  • runc の pod が、続けてたくさんのコンテナを起こした後などに起動しないことがあります。
  • crun の pause は終わりの印を返しますが、コンテナの中のプロセスは止まりません。
  • podman top に、コンテナの外のプロセスまで出ます。
  • Arch の podman logs が空になります(Arch の既定の記録先が journald のため)。--log-driver k8s-file を付けると残ります。
  • --privileged では、Android が /dev の一覧を読ませないので起動しません。

Changes

1.1.40: z2term can now work with a USB drive plugged into the phone: write a bootable ISO or format it (z2-disk), and install an OS onto it with a virtual machine's installer (z2-vm --target-usb). This release also adds z2-vm to run virtual machines on the phone, and containers now start with Podman on Alpine (changes from 1.1.33 to 1.1.40).

  • Write a bootable ISO to a USB drive (z2-disk): z2-disk write <ISO> writes a whole ISO and then compares it. For a Windows installation ISO, z2-disk make <ISO> copies its files so it boots with UEFI. z2-disk format fat32|exfat formats the drive. The drive is taken from Android only while in use and goes back afterwards. It works with the z2k engine.
  • "Open Z2Term?": when you plug in a USB drive, you can now choose z2term. That also gives the USB permission, so z2-disk works without typing z2-usb allow.
  • Run a virtual machine on the phone (z2-vm): boot an OS from an ISO with its screen in a z2term tab (z2-vm new <name> --iso <ISO> → z2-vm start <name>). QEMU comes from your Linux OS packages.
  • Install an OS onto a USB drive (z2-vm --target-usb): the USB drive becomes the virtual machine's disk, so the installer can put an OS onto it. A PC can then boot from that drive.
  • Podman on Alpine: runc containers failed to start; this is fixed. The default network works too (iptables rules such as -j MARK now work).
  • Starting after using containers: restarting the app could take a long time before the prompt appeared; this is fixed.
  • Devices with 16 KB pages: small fixes in z2k for devices with larger pages.
  • Simplified Chinese README: translated by @11jianfeng (#7). Thank you!

Known issues:

  • z2-disk and z2-vm --target-usb work only with the z2k engine (on z2root they stop with a hint).
  • Installing Alpine over the virtual machine's serial console puts console=ttyS0 into its boot settings, so a PC shows nothing on screen. Alpine also stops during boot on a slow USB drive that needs more than 5 seconds to get ready.
  • With runc, a pod sometimes fails to start, for example after many containers have been started in a row.
  • crun's pause reports success, but the processes in the container keep running.
  • podman top also lists processes outside the container.
  • podman logs is empty on Arch (Arch's default log driver is journald). Add --log-driver k8s-file to keep logs.
  • --privileged does not start, because Android does not allow listing /dev.

Full Changelog: v1.1.32...v1.1.40