-
-
Save rick-masters/383157dc73f4440841db6a74a459037c to your computer and use it in GitHub Desktop.
VirtualBox for live-bootstrap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -euo pipefail | |
set -v | |
rm -rf live-bootstrap | |
git clone https://github.com/fosslinux/live-bootstrap | |
cd live-bootstrap | |
git submodule update --init --recursive | |
sed -i bak "/^ if args.bare_metal:/d" rootfs.py | |
sed -i bak "/^ args.no_create_config = True/d" rootfs.py | |
./rootfs.py -b -p | |
cd .. | |
# Intel MacOS Ventura 13.3.1 + VirtualBox Version 7.0.8 r156879 (Qt5.15.2) | |
VBOXMANAGE=VBoxManage | |
$VBOXMANAGE controlvm live-bootstrap-test1 poweroff || true | |
$VBOXMANAGE unregistervm live-bootstrap-test1 --delete || true | |
rm -f sysa.vdi | |
$VBOXMANAGE convertfromraw live-bootstrap/tmp/sysa/sysa.img sysa.vdi | |
$VBOXMANAGE createvm --name live-bootstrap-test1 --ostype Other --register | |
$VBOXMANAGE modifyvm live-bootstrap-test1 --cpus 1 --memory 4096 --vram 1 --uart1 0x3F8 4 --uartmode1 file /Users/richardmasters/fiwix.out --apic on | |
$VBOXMANAGE storagectl live-bootstrap-test1 --name "IDE Controller" --add ide --bootable on | |
$VBOXMANAGE storageattach live-bootstrap-test1 --storagectl "IDE Controller" --port 0 --device 0 --type hdd --medium sysa.vdi | |
$VBOXMANAGE startvm live-bootstrap-test1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment