Open LukeShortCloud opened 2 years ago
Install mesa-git
. This will automatically build Mesa with the required vulkan-drivers=virtio-experimental
flag.
[<USER>@arch ~]$ yay -S mesa-git
Install lib32-mesa-git
. This does NOT have the required flag enabled. We need to manually modify the PKGBUILD file.
[<USER>@arch ~]$ git clone https://aur.archlinux.org/lib32-mesa-git.git
[<USER>@arch ~]$ cd lib32-mesa-git/
[<USER>@arch lib32-mesa-git]$ vim PKGBUILD
-D vulkan-drivers=amd,intel,virtio-experimental \
[<USER>@arch lib32-mesa-git]$ makepkg -s -i
Test Vulkan pass-through support.
[<USER>@arch ~]$ sudo pacman -S vulkan-tools
[<USER>@arch ~]$ export VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/virtio_icd.i686.json:/usr/share/vulkan/icd.d/virtio_icd.x86_64.json
[<USER>@arch ~]$ vulkaninfo
[<USER>@arch ~]$ vkcube
Make the Vulkan driver permanent.
[<USER>@arch ~]$ sudo vim /etc/environment
VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/virtio_icd.i686.json:/usr/share/vulkan/icd.d/virtio_icd.x86_64.json
For demo purposes on hardware limited to Vulkan 1.0, use the Vulkan build of Quake. Use MangoHUD to show benchmarks and to prove it is using Vulkan.
https://steamlists.com/quake-run-vulkan-vk-on-steam/
Otherwise, with Vulkan 1.2 support, demo a game like Halo 3 or Skyrim with Proton using the DXVK HUD.
More documentation for Arch Linux: https://faq.fydeos.com/en/recipes/install-arch-linux/
Arch Linux
First, start the
termina
virtual machine.In a separate terminal, create a new container. It will seemingly fail because the Crostini integrations have not been installed yet.
Log into the container.
A default account with the username of the Google account without the
@gmail.com
will be automatically created. Verify that username.Set a password for the user:
Enable 32-bit packages.
Update the package repository cache and then install the
sudo
package.Give the user password-less
sudo
(root) access.Install
yay
so AUR packages can be installed.Install Wayland and Xorg for GUI applications:
Exit the container and re-enter it via a console. This will allow
systemd
commands to work properly.Install and enable the Crostini guest tools:
Enable SFTP for file sharing:
https://github.com/Jguer/yay https://wiki.archlinux.org/title/Chrome_OS_devices/Crostini