utmapp / utmapp/UTM

Executing file in UTM shared-directory produces "Network dropped connection on reset" error

Open
#4,819 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
35.5k
Forks
1.8k
Avg merge
5d 5h
Merged PRs (30d)
7

Description

I have a MacStudio and use UTM (stable release) with ArchLinux.

When I run a c-executable file within the shared-directory, I always get an error message like
`-bash: ./hello: Network dropped connection on reset`.

However, when I change the content of a file in the shared directory (either on my mac or in the emulation), the changes will be applied (and visible on both devices).

Configuration
* UTM Version: Version 4.0.9 (68)
* macOS Version: 13.1
* Mac Chip (M1):




How to reproduce this behavior.

1. Go to https://mac.getutm.app/gallery/archlinux-arm and select "Open in UTM"
2. Connect a directory as shared library.
3. Start ArchLinux in UTM
4. I made the following installations.

```shell
pacman -Syu
pacman -S gcc
```
5. Navigate to the shared directory
```shell
cd /mnt/share/
```
6. Create a simple C program and execute it.
```shell
echo "#include

int main(void) {
printf("Hello, world!\n");
return 0;
}" > hello.c
```
```shell
gcc hello.c -o hello
./hello
```
The shell output will be
```shell
-bash: ./hello: Network dropped connection on reset
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.