forked from Rust-for-Linux/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Steps
MariusDoe edited this page May 18, 2022
·
60 revisions
apt install qemu qemu-system
pacman -S qemu-full
-
Create the virtual disk image
qemu-img create -f qcow2 void.img 10G
-
Download the image from https://voidlinux.org/download/ (base live glibc)
-
Run the VM
qemu-system-x86_64 -m 1024 -hda void.img -cdrom void-live-x86_64-20210930.iso -boot d
- Depending on output, you might need to use a VNC viewer
-
Default credentials are username:
root
, password:voidlinux
-
Run the Void Linux installer (on the default US keymap, the
-
is the key to the right of the0
)void-installer
-
Configuration
- Keyboard:
de-latin1
- RootPassword:
root
- Partition (using
cfdisk
):dos
(MBR), 7.5G primary Linux, 2.5G Free space - BootLoader: /dev/sda
- Filesystems: 7.5G ext4,
/
- Keyboard:
-
Install (ignore
sed
error) -
Reboot
-
Pick "Boot first HD found by BIOS"
-
You can shutdown using
poweroff
-
Run the VM without the live ISO
qemu-system-x86_64 -m 1024 -hda void.img
-
Update the system
xbps-install -Su
-
Install git
xbps-install -S git
-
Install the necessary dependencies
- Arch Linux
pacman -S lld
- Ubuntu
apt install clang flex bison lld
- Arch Linux
-
Follow the quickstart
-
Configure the kernel
make LLVM=1 menuconfig
-
/
RUST -> ensure "Depends on:" is met
-
-
Build the kernel
make LLVM=1
qemu-system-x86_64 -m 1024 -hda void.img -append "root=/dev/sda1" -kernel ../Rust-for-Linux/arch/x86/boot/bzImage