Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error from event: The operation couldn’t be completed. (OSStatus error -2700.) #5963

Closed
ElSamhaa opened this issue Dec 11, 2023 · 2 comments
Milestone

Comments

@ElSamhaa
Copy link

Describe the issue
Whenever I try to run utmctl exec fedora --cmd ls I get the below error:

Error from event: The operation couldn’t be completed. (OSStatus error -2700.)
The QEMU guest agent is not running or not installed on the guest.

Configuration

  • UTM Version: 4.4.5
  • macOS Version: 14.1.2 (23B92)
  • Mac Chip (Intel, M1, ...): M1

Debug log
https://gist.github.com/ElSamhaa/acef64abd26307ce2eae6bbbeb44d6e6

Upload VM
https://gist.github.com/ElSamhaa/6f6aeb914f8795f5e551a59eeac2331b

@natemccurdy
Copy link

I'm seeing similar behavior when running utmctl exec against a Debian 12 (bookwork) guest:

$ utmctl exec deb-bookworm --cmd whoami                                    
Error from event: The operation couldn’t be completed. (OSStatus error -2700.)
The QEMU guest agent is not running or not installed on the guest.

The guest VM has the qemu-guest-agent package installed and running.
I can see in the qemu logs that the command is making its way to the VM. It seems like maybe utmctl isn't handling the response correctly, maybe?

nate@localhost:~$ sudo systemctl status qemu-guest-agent
● qemu-guest-agent.service - QEMU Guest Agent
     Loaded: loaded (/lib/systemd/system/qemu-guest-agent.service; static)
     Active: active (running) since Fri 2024-01-19 21:50:39 UTC; 4min 50s ago
   Main PID: 315 (qemu-ga)
      Tasks: 2 (limit: 4595)
     Memory: 1.6M
        CPU: 256ms
     CGroup: /system.slice/qemu-guest-agent.service
             └─315 /usr/sbin/qemu-ga

Jan 19 21:50:39 localhost systemd[1]: Started qemu-guest-agent.service - QEMU Guest Agent.
nate@localhost:~$ sudo journalctl -f -u qemu-guest-agent
Jan 19 21:50:39 localhost systemd[1]: Started qemu-guest-agent.service - QEMU Guest Agent.
Jan 19 21:52:38 localhost qemu-ga[315]: info: guest-exec called: "whoami"
Jan 19 21:55:27 localhost qemu-ga[315]: info: guest-exec called: "whoami"
Jan 19 21:55:41 localhost qemu-ga[315]: info: guest-exec called: "whoami"
Jan 19 21:56:50 localhost qemu-ga[315]: info: guest-exec called: "whoami"
Jan 19 21:57:00 localhost qemu-ga[315]: info: guest-exec called: "whoami"

On my MacOS (Intel) host, I'm running:

utmctl exec deb-bookworm --cmd whoami

Configuration

  • UTM Version: 4.4.5 (94)
  • Host: Intel MacOS 14.2.1
  • Guest:
    • Debian 12
    • quemu-guest-agent version 1:7.2+dfsg-7+deb12u3

@osy osy added this to the v4.5 milestone Feb 26, 2024
@osy
Copy link
Contributor

osy commented Feb 26, 2024

Debug JSON recieved <- {
    return =     {
        pid = 1147;
    };
}

I wonder why it returns that error...

So it is executing on the guest.

@osy osy closed this as completed in 2724075 Mar 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants