Skip to content

Instantly share code, notes, and snippets.

@kbruner
Created November 3, 2020 06:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kbruner/9e47a563830220ec7e8d96b28d6bcda1 to your computer and use it in GitHub Desktop.
Save kbruner/9e47a563830220ec7e8d96b28d6bcda1 to your computer and use it in GitHub Desktop.
booting Arch from virtual disk installation
grub> linux (hd0,1)/boot/vmlinuz-linux root=/dev/vda1
grub> initrd (hd0,1)/boot/initramfs-linux.img
grub> boot
root@nucklehead:/vm # bhyve -H -A -P \
-c 2 -m 1024M \
-s 0,hostbridge \
-s 1,lpc \
-s 2:0,virtio-net,tap0 \
-s 3,virtio-blk,linux.img \
-l com1,stdio \
arch
[ ... ]
Arch Linux 5.9.2-arch1-1 (ttyS0)
archlinux login: root
Password:
[root@archlinux ~]#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment