Operation system: Ubuntu 16.04.6 LTS
QEMU emulator version: 2.5.0
#!/bin/bash | |
# Author: Hsieh-Ting Lin | |
# Title: "rename" | |
# Date: "2024-02-05" | |
# Version: 1.0.0 | |
# desc: rename by ChatGPT | |
API_ENDPOINT="https://api.openai.com/v1/chat/completions" | |
pdf_folder="." |
This allows you to run qemu-debootstrap armhf on arm64 systems that does not support armhf native. | |
``` | |
update-binfmts --package qemu-user-static --install qemu-arm /usr/bin/qemu-arm-static --magic "\x7f\x45\x4c\x46\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28\x00" --mask "\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff" --offset 0 --credential yes | |
``` | |
Then run `qemu-debootstrap` as normal |
# Docs: | |
- https://wiki.ubuntu.com/FoundationsTeam/AutomatedServerInstalls | |
- https://wiki.ubuntu.com/FoundationsTeam/AutomatedServerInstalls/ConfigReference | |
- https://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html | |
- https://discourse.ubuntu.com/t/please-test-autoinstalls-for-20-04/15250/53 | |
# Download ISO Installer: | |
wget https://ubuntu.volia.net/ubuntu-releases/20.04.1/ubuntu-20.04.1-live-server-amd64.iso | |
# Create ISO distribution dirrectory: |
This tool allows you to take a initramfs and add contents of a directory to it. This is very useful if you need to test initramfs, you can simply take the original and add your files "over".
Also, because it does not extract the original cpio archive, it works without root.
Usage: overlay-initramfs [ options ] source-initramfs directory [output]
This allows user to do automated installation of ubuntu. Provided here a a few different files/scripts for making this easier.
I've used this to verify that d-i kernel and initramfs from -proposed work as shown in bug 1511497.
The provided 'preseed' below can be used as a fully automated installation of ubuntu. Boot with qemu like:
This allows user to do automated installation of ubuntu. Provided here a a few different files/scripts for making this easier.
I've used this to verify that d-i kernel and initramfs from -proposed work as shown in bug 1511497.
The provided 'preseed' below can be used as a fully automated installation of ubuntu. Boot with qemu like:
#!/usr/bin/env python | |
from gevent import monkey | |
monkey.patch_all() # Patch everything | |
import gevent | |
import time | |
class Hub(object): | |
"""A simple reactor hub... In async!""" |
Curtin has a test suite named vmtest
. It has loads of configs for
installation that put curtin through a battery. As of this writing
it runs 192 installations on amd64 covering all supported ubuntu releases.
It runs nightly under jenkins. See example results in the
curtin-vmtest-devel-amd64 job.
If you're interested just a general use of curtin without starting a VM, see another article 'Curtin Development on uvt-kvm'.
You can deploy a node with the maas cli which is often preferable to clicking a button on a web UI.
$ SYSTEM_ID=node-787b19d8-d25c-11e4-9f9e-00163eca91de
$ NAME="random-nodename"
$ MAASNAME="maaslocal"
$ maas $MAASNAME machine allocate "name=$NAME"