jefby
---------- Forwarded message ---------- From: jefby jef199006@gmail.com Date: 2015-04-01 20:18 GMT+08:00 Subject: how to make an iso image in aarch64 To: arm-owner@lists.fedoraproject.org
Hello,
Now i want to make an bootable iso image for aarch64,but when i installed the livecd-tools ,it can't use like x86_64,it prints like below: "Traceback (most recent call last): File "/usr/bin/livecd-creator", line 28, in <module> import imgcreate File "/usr/lib/python2.7/site-packages/imgcreate/__init__.py", line 19, in <module> from imgcreate.live import * File "/usr/lib/python2.7/site-packages/imgcreate/live.py", line 1040, in <module> raise CreatorError("Architecture not supported!") imgcreate.errors.CreatorError: Architecture not supported! " and i have a question : How to make the fedora21 DVD for aarch64 ??
Thanks very much
jefby
Hi Jefby,
Hello,
Now i want to make an bootable iso image for aarch64,but when i installed the livecd-tools ,it can't use like x86_64,it prints like below: "Traceback (most recent call last): File "/usr/bin/livecd-creator", line 28, in <module> import imgcreate File "/usr/lib/python2.7/site-packages/imgcreate/__init__.py", line 19, in
<module> from imgcreate.live import * File "/usr/lib/python2.7/site-packages/imgcreate/live.py", line 1040, in <module> raise CreatorError("Architecture not supported!") imgcreate.errors.CreatorError: Architecture not supported! " and i have a question : How to make the fedora21 DVD for aarch64 ??
http://fedoraproject.org/wiki/How_to_create_a_Fedora_install_ISO_for_testing
Paul
On Wed, Apr 01, 2015 at 08:19:57PM +0800, jefby wrote:
Hello,
Now i want to make an bootable iso image for aarch64,but when i installed the livecd-tools ,it can't use like x86_64,it prints like below: "Traceback (most recent call last): File "/usr/bin/livecd-creator", line 28, in <module> import imgcreate File "/usr/lib/python2.7/site-packages/imgcreate/__init__.py", line 19, in <module> from imgcreate.live import * File "/usr/lib/python2.7/site-packages/imgcreate/live.py", line 1040, in
<module> raise CreatorError("Architecture not supported!") imgcreate.errors.CreatorError: Architecture not supported! " and i have a question : How to make the fedora21 DVD for aarch64 ??
If you just want an F21 bootable *virtual* image for testing then you can build one directly with virt-builder from any other Fedora >= 20 host [including from x86-64 hosts, but some less important virt-builder options won't work]:
$ virt-builder --arch aarch64 fedora-21 --size 20G [ 2.0] Downloading: http://libguestfs.org/download/builder/fedora-21-aarch64.xz [ 3.0] Planning how to build this image [ 3.0] Uncompressing [ 13.0] Resizing (using virt-resize) to expand the disk to 20.0G [ 51.0] Opening the new disk [ 73.0] Setting a random seed [ 73.0] Setting passwords virt-builder: Setting random password of root to B0gV73BwMCxLfnyu [ 74.0] Finishing off Output file: fedora-21.img Output size: 20.0G Output format: raw Total usable space: 19.0G Free space: 18.2G (95%)
Such an image can be imported into libvirt on your aarch64 host using a `virt-install --import' command which is listed in the virt-builder man page[1]. You can also boot it on x86-64 hosts under software emulation using [2].
It may also be possible to boot this image on baremetal by writing it to a USB stick: add the virt-builder `--output /dev/sdX' option. However this depends on whether your aarch64 firmware can boot from USB, which may or may not be possible. I think the firmware on the Mustangs can boot from USB DVDs but not USB keys, but I've not tried either so I don't know for sure.
Virt-builder cannot create CDs/DVDs/ISOs.
Rich.
[1] http://libguestfs.org/virt-builder.1.html [2] https://rwmj.wordpress.com/2015/02/27/how-to-boot-a-fedora-21-aarch64-uefi-g...
On Sat, Apr 04, 2015 at 02:53:42PM +0100, Richard W.M. Jones wrote:
$ virt-builder --arch aarch64 fedora-21 --size 20G
[...]
It may also be possible to boot this image on baremetal by writing it to a USB stick: add the virt-builder `--output /dev/sdX' option.
That should be:
Add the virt-builder --output /dev/sdX option and *drop* the --size 20G option, since virt-builder detects the size from the output device. The final command line for USB sticks would be:
$ virt-builder --arch aarch64 fedora-21 --output /dev/sdX
Rich.
Thanks very much.I will try this method. I have followed the mock instruction by Paul Whalen , and now I get a DVD iso files, but there are some warning or errors in the process like below:
preparing to build output tree and boot images rebuilding initramfs images rebuilding boot/initramfs-3.19.3-200.fc21.aarch64.img No '/dev/log' or 'logger' included for syslog logging Failed to read /proc/cmdline, ignoring: No such file or directory cat: write error: Broken pipe rebuilding boot/upgrade-3.19.3-200.fc21.aarch64.img No '/dev/log' or 'logger' included for syslog logging Failed to read /proc/cmdline, ignoring: No such file or directory cat: write error: Broken pipe populating output tree and building boot images running aarch64.tmpl INFO:program:Running...
maybe it's the mock configuration caused??
jefby
2015-04-04 21:59 GMT+08:00 Richard W.M. Jones rjones@redhat.com:
On Sat, Apr 04, 2015 at 02:53:42PM +0100, Richard W.M. Jones wrote:
$ virt-builder --arch aarch64 fedora-21 --size 20G
[...]
It may also be possible to boot this image on baremetal by writing it to a USB stick: add the virt-builder `--output /dev/sdX' option.
That should be:
Add the virt-builder --output /dev/sdX option and *drop* the --size 20G option, since virt-builder detects the size from the output device. The final command line for USB sticks would be:
$ virt-builder --arch aarch64 fedora-21 --output /dev/sdX
Rich.
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-builder quickly builds VMs from scratch http://libguestfs.org/virt-builder.1.html
On Mon, Apr 06, 2015 at 10:17:36PM +0800, jefby wrote:
Thanks very much.I will try this method. I have followed the mock instruction by Paul Whalen , and now I get a DVD iso files, but there are some warning or errors in the process like below:
preparing to build output tree and boot images rebuilding initramfs images rebuilding boot/initramfs-3.19.3-200.fc21.aarch64.img No '/dev/log' or 'logger' included for syslog logging Failed to read /proc/cmdline, ignoring: No such file or directory cat: write error: Broken pipe rebuilding boot/upgrade-3.19.3-200.fc21.aarch64.img No '/dev/log' or 'logger' included for syslog logging Failed to read /proc/cmdline, ignoring: No such file or directory cat: write error: Broken pipe populating output tree and building boot images running aarch64.tmpl INFO:program:Running...
maybe it's the mock configuration caused??
Those look fairly harmless. It's probably caused by dracut running in the chroot expecting to find /proc mounted. If the final DVD works, then you can probably ignore them.
Rich.