Skip to content

Commit

Permalink
Modify post 2023-08-13-vms on m2 pro2.md
Browse files Browse the repository at this point in the history
  • Loading branch information
purejava committed Aug 14, 2023
1 parent f71bb0e commit 3df0b6f
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 2 deletions.
50 changes: 48 additions & 2 deletions _posts/2023-08-13-vms on m2 pro2.md
Expand Up @@ -15,7 +15,7 @@ I could not find out, what it is. As this is closed source, there is no reasonab
Searching for an alternative, I found **[UTM ](https://mac.getutm.app/)**, a virtualization tool for macOS and iOS, that employs Apple's Hypervisor virtualization framework to run ARM64 operating systems on Apple Silicon at near native speeds. That sounds good and is good!

# Getting the App from the App Store
It's unbelievable, but the app is free! You can get it from the link above or at the **App Store**. I recommend, to buy it at the App Store for only 10 Eur, which supports further development and ensures, that you'll be noticed about updates of the app, once installed.
It's unbelievable, but the app is free! You can get it from the link above or at the **App Store**. I recommend, to buy it at the App Store for only 10 Eur, which supports further development and ensures, that you'll be notified about updates of the app, once installed.

# Retrieving your VM
UTM even provides pre-defined VMs, ready to download and install on your computer. That's fantastic - even an **ARM64 Arch Linux** VM is available. The only thing that needs to be noticed is, that you should use the **download** link to get the VM. There is a second option in the UTM app gallery - a web page that lists available VMs for your platform - for the VM to start: "open in UTM". This lets you start the VM, but it is only available within UTM until the next reboot of your host.
Expand Down Expand Up @@ -93,6 +93,52 @@ df -h
```

# Some obstacles, that need to be circumvented
t.b.c.
After having the VM configuration ready to install a desktop environment, this should easily be possible.
I hit a couple of smaller issues doing so, but they all could be solved.

## libcrypto.so.1.1 is missing
Using `pacman` to install the required software led to the error message above quite quickly. From the first time, `pacman` complains about the missing shared library, it's impossible to use `pacman` to fix this or install more packages without manual intervention.

The easiest way to avoid this situation is to install `openssl-1.1` the _first time_ you use pacman. `openssl-1.1` provides `libcrypto.so.1.1 `:
```shell
pacman -S openssl-1.1
```

## Dependency conflict between gedit and gedit-code-assistance
My favorite desktop environment is **GNOME**. On installing the `gnome` and `gnome-extra` groups, pacman complains, that gedit and gedit-code-assistance conflict with each other. This is not a problem on **x64** and I don't know why this is a problem on **ARM64**.

Personally, I don't use gedit anyway and solved this by excluding both packages from my installation:

```shell
pacman --ignore gedit gedit-code-assistance -S gnome gnome-extra network-manager-applet networkmanager
```

After the GNOME desktop environment has been installed and started, two small problems remained.

## Installed packages are not up-to-date
Although I synchronized the repository databases with `pacman -Syy` before installing packages, the final system had quite a few packages installed, that were _not_ up-to-date.
This can easily be solved by updating all installed packages:


```shell
pacman -Syu
```

## Application icons and tray icons are blurry and missing
The final problem was kinda surprising too, and I never experienced it on installing the GNOME desktop environment before. The applications and tray icons were broken and looked like this[^footnote1]:

![img-description](/assets/IbKXM1Q.png){: width="480" height="270" }
_GNOME not displaying icons properly_

Analyzing this led to the cognition, that there is one library, that is responsible to render all SVG icons. Re-installing it fixed this issue:


```shell
pacman -S librsvg
```

I have no idea, why the packages mention above weren't up-to-date on installing them. This might have been a one-off problem with synchronizing the repository databases. As all the issues could be solved quickly, I did not analyze the root cause any further.

## Footnotes
[^footnote]: [How To Increase a UTM Virtual Machine Disk Size](https://siytek.com/increase-utm-virtual-machine-disk-size/)
[^footnote1]: Screenshot borrowed from a [similar issue](https://bbs.archlinux.org/viewtopic.php?id=265874).
Binary file added assets/IbKXM1Q.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3df0b6f

Please sign in to comment.