16

I am in the process of installing Void Linux inside a virtual machine on my M1 MacBook. I have followed the guide for chroot installation and I am having trouble getting it to work.

This is what I have done, and please correct me if I am wrong:

1- Created an empty virtual hard drive

2- Booted a live image of Arch Linux aarch64 due to the lack of Void Linux live image.

3- Using cfdisk, I create a gpt partition label and write 2 partitions (500MB /dev/vda1) and (Remaining free space /dev/vda2) with mount points (/boot/efi/) and (/), respectively.

4- Format as vfat and ext4, respectively.

5- Mount them as per the guide and then manually enter chroot.

6- Again, do pretty much everything as listed in the guide.

7- For (/etc/fstab), I do the following

# Corresponds to /dev/vda1
UUID=1a2b.....uvw  /boot/efi   vfat defaults 0 2
# Corresponds to /dev/vda2
UUID=3c4d.....xyz  /   ext4 defaults 0 1
tmpfs   /tmp  tmpfs   defaults,nosuid,nodev   0 0

I am not using swap for sake of simplicity.

8- I install grub-arm64-efi and then issue the command grub-install --target=arm64-efi --efi-directory=/boot/efi --bootloader-id="Void" --no-nvram. Note the --no-nvram because for some reason EFI variables are not available to me in UTM.

9- After the xbps-reconfigure -fa command, I exit and them attempt to unmount using umount -R /mnt only to be told that the device is busy. Using lsof returns nothing so I shutdown, remove the live Arch Linux image, and boot the system again only to be greeted with the UEFI shell.

I am not sure where my issue is and I would appreciate any help, advice, and/or guidance anyone can provide.

Thank you

top 2 comments
sorted by: hot top controversial new old
[-] ShittyBeatlesFCPres@lemmy.world 5 points 1 year ago

I can’t help but I’m very curious what your use case is. Are you just playing around with distros or is there a whole M1 MacBook Void Linux VM situation I’ve never encountered?

[-] admin@lemmy.mohammadodeh.com 2 points 1 year ago

I have a crappy old laptop and I wanted to extend its life and usability by installing a resource light OS on it. I decided on Void Linux and proceeded to try it out in a VM on my MacBook before I installed it on the potato laptop.

I know I could emulate it using UTM but I figured that attempting a chroot installation would be a nice learning experience. I also haven’t seen much guides on it online — especially for aarch64 machines — and figured I could contribute and fill some of the void (pun not intended but very welcome).

this post was submitted on 06 Sep 2023
16 points (100.0% liked)

Linux

47365 readers
1316 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS