我想为qemu定制轻量级linux ISO,安装python和其他一些包。
我发现阿尔卑斯linux通过简单的脚本提供了这种可能性。然而,它却发出了这样的信息:
> apk not found, downloading static apk-tools
2020-04-21 18:14:17 URL:*big-url*apk-tools-2.10.4-x86_64-linux.tar.gz
-> "apk-tools-2.10.4-x86_64-linux.tar.gz" [1]
apk-tools-2.10.4-x86_64-linux.tar.gz: ЦЕЛ
> Attaching image image.iso as a NBD device
WARNING: Image format was not specified for 'image.iso' and probing guessed raw.
Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
Specify the 'raw' format explicitly to remove the restrictions.然后退出。创建的ISO是不可用的,我想它是空的。我做错什么了?
我的包装脚本:
export PACKAGES="python3 chromium chromium-chromedriver
setup-xorg-base xfce4 xfce4-terminal
lightdm-gtk-greeter dbus-x11 sudo"
export IMAGE_SIZE="512M"
./alpine-make-vm-image --packages "$PACKAGES" image.iso -- ./additional_install.sh 发布于 2020-04-21 19:17:53
在我的例子中,我必须通过--image-format选项显式地声明qemu映像类型。
./alpine-make-vm-image --image-format qcow2https://unix.stackexchange.com/questions/581583
复制相似问题