Open main menu

CDOT Wiki β

Changes

SPO600 aarch64 QEMU on Ireland

949 bytes added, 10:31, 13 October 2023
no edit summary
[[Category:SPO600-future]]{{Chris Tyler Draft}}
{{Admon/obsolete|[[AArch64 Emulation]]}}
{{Admon/caution|Ireland Down|The host "ireland" was used for the Winter 2014 offering of SPO600. That computer is not currently available due to hardware failure.}}
== QEMU linux-user ==
== arm64 Mode ==
To enter your arm64/aarch64 chroot, execute this alias to invoke a chroot via sudo:
[user@ireland (x86_64) ~]$ '''arm64'''
These special filesystems may be mounted using the script ''specialmount''. To unmount these special filesystems, use the corresponding script ''specialumount'' while in the arm64 chroot.
{{Admon/caution|Superuser access - Danger!|While in the chroot environment, you are a superuser. Although the chroot provides partial protection against damage to the host x86_64 system, it is still possible to cause '''major damage'''. Take care not to delete entries in the special mounts or perform other actions that would affect the host or other users.}} {{Admon/tip|Back Up Your Work|The storage on Ireland is not backed up - you are responsible for protecting your own work. Since other students will have root access (see above), you should back up your work to another system frequently!}}
== Sample Code ==
There is some sample code in the directory <code>~/arm64/spo600/examples</code>, which is also accessible through the symlink <code>~/spo600-examples</code>.
 
== Setting Up Qemu On Home Machine ==
 
1. While on Ireland and in ARM64 mode at at root archive your ~/arm64 directory on Ireland:
 
tar -cvzf destdir.tgz *
 
2. copy that archive and the file /etc/binfmt.d/qemu-arm64.conf to your machine
 
3. unpack the arm64 archive (use -p to preserve permissions and timestamps) and put the qemu-arm64.conf file into /etc/binfmt.d/qemu-arm64.conf on your local machine
 
4. run:
 
sudo systemctl restart systemd-binfmt
 
5. to switch to arm64/aarch64 mode, type: sudo chroot ~/arm64 # or wherever you put your arm64 directory