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

Mouse pointer does not display after resuming paused VM in UTM SE and UTM on Mac #4665

Closed
SugarRayLua opened this issue Nov 13, 2022 · 3 comments
Milestone

Comments

@SugarRayLua
Copy link

Describe the issue
It's been a while (multiple releases) since I've used the paused and resume VM feature in UTM but wanted to go back to doing so while using the slower UTM SE until I can use UTM again with revised JitStreamer. Installed latest pre-release and noted that my Linux VMs run well but when I pause them, close UTM SE (or UTM on Mac in emulation mode), and then restart the VM, the mouse pointer does not appear. The VM otherwise functions well, and I can tell that I still have a mouse control because I can move my mouse around and left or right click and see that that the menus open at the appropriate place on the screen (just no mouse pointer arrow to guide me). Noted online that has happened more commonly with Spice and VMs in general (not just UTM and not just when pause/restart VM).

Configuration (required)

  • UTM Version: 4.1.0 pre-release
  • OS Version: 15.7.1 iPadOS, OSX 12.6 (Monterey)
  • Device Model: iPad Pro M1, intel iMac
  • Is it jailbroken (name jailbreak used)? No
  • How did you install UTM? Signulous

Debug log
Cannot find '/private/var/mobile/Library/Mobile Documents/comappleCloudDocs/Downloads/antiX-64bit.utm' in existing scoped access.
2022-11-13 14:23:18.865 UTM SE[72319:6105424] Cannot find '/private/var/mobile/Library/Mobile Documents/comappleCloudDocs/Downloads/antiX-64bit.utm' in existing scoped access.
Running: -L "/private/var/containers/Bundle/Application/3BE88E35-55E9-41F9-AD89-ED39FDFD22F6/UTM SE.app/qemu" -S -spice unix=on,addr=/private/var/mobile/Containers/Data/Application/1C9A66A5-C2FE-4DCA-9562-5E512120C6BC/tmp/D2E28A25-C3F1-42DB-B480-E106D488FFA6.spice,disable-ticketing=on,image-compression=off,playback-compression=off,streaming-video=off,gl=off -chardev spiceport,id=org.qemu.monitor.qmp,name=org.qemu.monitor.qmp.0 -mon chardev=org.qemu.monitor.qmp,mode=control -nodefaults -vga none -device e1000,mac=56:9F:1D:38:AD:78,netdev=net0 -netdev user,id=net0 -device virtio-vga -smp cpus=1,sockets=1,cores=1,threads=1 -machine q35,vmport=off,i8042=off -accel tcg,tb-size=768 -global PIIX4_PM.disable_s3=1 -global ICH9-LPC.disable_s3=1 -drive "if=pflash,format=raw,unit=0,file=/private/var/containers/Bundle/Application/3BE88E35-55E9-41F9-AD89-ED39FDFD22F6/UTM SE.app/qemu/edk2-x86_64-code.fd,readonly=on" -drive "if=pflash,unit=1,file=/private/var/mobile/Library/Mobile Documents/comappleCloudDocs/Downloads/antiX-64bit.utm/Data/efi_vars.fd" -m 3072 -device intel-hda -device hda-duplex -usb -device usb-tablet,bus=usb-bus.0 -device usb-mouse,bus=usb-bus.0 -device usb-kbd,bus=usb-bus.0 -device ide-cd,bus=ide.0,drive=driveCCC8268D-3776-491B-92D4-9EB112F7ABCF,bootindex=0 -drive if=none,media=cdrom,id=driveCCC8268D-3776-491B-92D4-9EB112F7ABCF -device ide-hd,bus=ide.1,drive=drive9FBA36CD-975C-492F-97F1-17C1C07995E6,bootindex=1 -drive "if=none,media=disk,id=drive9FBA36CD-975C-492F-97F1-17C1C07995E6,file=/private/var/mobile/Library/Mobile Documents/comappleCloudDocs/Downloads/antiX-64bit.utm/Data/9FBA36CD-975C-492F-97F1-17C1C07995E6.qcow2,discard=unmap,detect-zeroes=unmap" -device virtio-serial -device virtserialport,chardev=vdagent,name=com.redhat.spice.0 -chardev spicevmc,id=vdagent,debug=0,name=vdagent -fsdev "local,id=virtfs0,path=/private/var/mobile/Library/Mobile Documents/comappleCloudDocs/Downloads,security_model=mapped-xattr" -device virtio-9p-pci,fsdev=virtfs0,mount_tag=share -name antiX-64bit -loadvm suspend -uuid D2E28A25-C3F1-42DB-B480-E106D488FFA6 -device virtio-rng-pci
Loading qemu-x86_64-softmmu.framework/qemu-x86_64-softmmu
2022-11-13 14:23:18.915 UTM SE[72319:6105424] Running: -L "/private/var/containers/Bundle/Application/3BE88E35-55E9-41F9-AD89-ED39FDFD22F6/UTM SE.app/qemu" -S -spice unix=on,addr=/private/var/mobile/Containers/Data/Application/1C9A66A5-C2FE-4DCA-9562-5E512120C6BC/tmp/D2E28A25-C3F1-42DB-B480-E106D488FFA6.spice,disable-ticketing=on,image-compression=off,playback-compression=off,streaming-video=off,gl=off -chardev spiceport,id=org.qemu.monitor.qmp,name=org.qemu.monitor.qmp.0 -mon chardev=org.qemu.monitor.qmp,mode=control -nodefaults -vga none -device e1000,mac=56:9F:1D:38:AD:78,netdev=net0 -netdev user,id=net0 -device virtio-vga -smp cpus=1,sockets=1,cores=1,threads=1 -machine q35,vmport=off,i8042=off -accel tcg,tb-size=768 -global PIIX4_PM.disable_s3=1 -global ICH9-LPC.disable_s3=1 -drive "if=pflash,format=raw,unit=0,file=/private/var/containers/Bundle/Application/3BE88E35-55E9-41F9-AD89-ED39FDFD22F6/UTM SE.app/qemu/edk2-x86_64-code.fd,readonly=on" -drive "if=pflash,unit=1,file=/private/var/mobile/Library/Mobile Documents/comappleCloudDocs/Downloads/antiX-64bit.utm/Data/efi_vars.fd" -m 3072 -device intel-hda -device hda-duplex -usb -device usb-tablet,bus=usb-bus.0 -device usb-mouse,bus=usb-bus.0 -device usb-kbd,bus=usb-bus.0 -device ide-cd,bus=ide.0,drive=driveCCC8268D-3776-491B-92D4-9EB112F7ABCF,bootindex=0 -drive if=none,media=cdrom,id=driveCCC8268D-3776-491B-92D4-9EB112F7ABCF -device ide-hd,bus=ide.1,drive=drive9FBA36CD-975C-492F-97F1-17C1C07995E6,bootindex=1 -drive "if=none,media=disk,id=drive9FBA36CD-975C-492F-97F1-17C1C07995E6,file=/private/var/mobile/Library/Mobile Documents/comappleCloudDocs/Downloads/antiX-64bit.utm/Data/9FBA36CD-975C-492F-97F1-17C1C07995E6.qcow2,discard=unmap,detect-zeroes=unmap" -device virtio-serial -device virtserialport,chardev=vdagent,name=com.redhat.spice.0 -chardev spicevmc,id=vdagent,debug=0,name=vdagent -fsdev "local,id=virtfs0,path=/private/var/mobile/Library/Mobile Documents/comappleCloudDocs/Downloads,security_model=mapped-xattr" -device virtio-9p-pci,fsdev=virtfs0,mount_tag=share -name antiX-64bit -loadvm suspend -uuid D2E28A25-C3F1-42DB-B480-E106D488FFA6 -device virtio-rng-pci
2022-11-13 14:23:18.915 UTM SE[72319:6105424] Loading qemu-x86_64-softmmu.framework/qemu-x86_64-softmmu
qemu-system: warning: global PIIX4_PM.disable_s3=1 not used
qemu-system: warning: GSpice: main-1:0: could not set sockopt TCP_NODELAY: Operation not supported on socket
qemu-system: info: main channel: opened
qemu-system: warning: GSpice: display-2:0: could not set sockopt TCP_NODELAY: Operation not supported on socket
qemu-system: warning: GSpice: cursor-4:0: could not set sockopt TCP_NODELAY: Operation not supported on socket
qemu-system: warning: GSpice: playback-5:0: could not set sockopt TCP_NODELAY: Operation not supported on socket
qemu-system: warning: GSpice: record-6:0: could not set sockopt TCP_NODELAY: Operation not supported on socket
qemu-system: warning: GSpice: port-10:0: could not set sockopt TCP_NODELAY: Operation not supported on socket
qemu-system: warning: GSpice: inputs-3:0: could not set sockopt TCP_NODELAY: Operation not supported on socket
qemu-system: warning: Spice: playback:0 (0x10a141640): setsockopt failed, Operation not supported on socket
qemu-system: warning: Spice: record:0 (0x10a1416e0): setsockopt failed, Operation not supported on socket
Debug JSON recieved <- {
QMP = {
capabilities = (
);
version = {
package = "";
qemu = {
major = 7;
micro = 0;
minor = 1;
};
};
};
}
2022-11-13 14:23:20.055 UTM SE[72319:6105502] Debug JSON recieved <- {
QMP = {
capabilities = (
);
version = {
package = "";
qemu = {
major = 7;
micro = 0;
minor = 1;
};
};
};
}
Got QMP handshake: {
QMP = {
capabilities = (
);
version = {
package = "";
qemu = {
major = 7;
micro = 0;
minor = 1;
};
};
};
}
qemuQmpDidConnect
2022-11-13 14:23:20.056 UTM SE[72319:6105496] Got QMP handshake: {
QMP = {
capabilities = (
);
version = {
package = "";
qemu = {
major = 7;
micro = 0;
minor = 1;
};
};
};
}
2022-11-13 14:23:20.056 UTM SE[72319:6105496] qemuQmpDidConnect
Debug JSON send -> {
execute = "qmp_capabilities";
}
2022-11-13 14:23:20.056 UTM SE[72319:6105424] Debug JSON send -> {
execute = "qmp_capabilities";
}
Debug JSON recieved <- {
return = {
};
}
2022-11-13 14:23:20.057 UTM SE[72319:6105496] Debug JSON recieved <- {
return = {
};
}
Debug JSON send -> {
execute = cont;
}
2022-11-13 14:23:20.057 UTM SE[72319:6105424] Debug JSON send -> {
execute = cont;
}
Debug JSON recieved <- {
event = RESUME;
timestamp = {
microseconds = 57993;
seconds = 1668378200;
};
}
2022-11-13 14:23:20.058 UTM SE[72319:6105502] Debug JSON recieved <- {
event = RESUME;
timestamp = {
microseconds = 57993;
seconds = 1668378200;
};
}
qemuHasResumed
2022-11-13 14:23:20.058 UTM SE[72319:6105496] qemuHasResumed
Debug JSON recieved <- {
return = {
};
}
2022-11-13 14:23:20.060 UTM SE[72319:6105496] Debug JSON recieved <- {
return = {
};
}
Debug JSON send -> {
arguments = {
"command-line" = "delvm suspend";
};
execute = "human-monitor-command";
}
2022-11-13 14:23:20.060 UTM SE[72319:6105502] Debug JSON send -> {
arguments = {
"command-line" = "delvm suspend";
};
execute = "human-monitor-command";
}
Debug JSON recieved <- {
return = "";
}
2022-11-13 14:23:20.070 UTM SE[72319:6105496] Debug JSON recieved <- {
return = "";
}
delete save callback:
2022-11-13 14:23:20.070 UTM SE[72319:6105502] delete save callback:
Delete save completed
2022-11-13 14:23:20.070 UTM SE[72319:6105424] Delete save completed
resizing to (1194.000000, 834.000000)
2022-11-13 14:23:20.088 UTM SE[72319:6105417] resizing to (1194.000000, 834.000000)
qemu-system: GSpice: spice_main_channel_send_monitor_config: assertion 'c->agent_connected' failed
mouseDidBecomeCurrent: 0x28085efb0
2022-11-13 14:23:20.097 UTM SE[72319:6105417] mouseDidBecomeCurrent: 0x28085efb0
Debug JSON send -> {
arguments = {
"command-line" = "delvm suspend";
};
execute = "human-monitor-command";
}
2022-11-13 14:23:38.785 UTM SE[72319:6105423] Debug JSON send -> {
arguments = {
"command-line" = "delvm suspend";
};
execute = "human-monitor-command";
}
Debug JSON recieved <- {
return = "";
}
2022-11-13 14:23:38.787 UTM SE[72319:6106518] Debug JSON recieved <- {
return = "";
}
delete save callback:
2022-11-13 14:23:38.787 UTM SE[72319:6105423] delete save callback:
Delete save completed
2022-11-13 14:23:38.787 UTM SE[72319:6105424] Delete save completed
Debug JSON send -> {
execute = quit;
}
2022-11-13 14:23:38.798 UTM SE[72319:6106146] Debug JSON send -> {
execute = quit;
}
Debug JSON recieved <- {
return = {
};
}
2022-11-13 14:23:38.798 UTM SE[72319:6105423] Debug JSON recieved <- {
return = {
};
}
Debug JSON recieved <- {
data = {
guest = 0;
reason = "host-qmp-quit";
};
event = SHUTDOWN;
timestamp = {
microseconds = 798615;
seconds = 1668378218;
};
}
2022-11-13 14:23:38.798 UTM SE[72319:6105423] Debug JSON recieved <- {
data = {
guest = 0;
reason = "host-qmp-quit";
};
event = SHUTDOWN;
timestamp = {
microseconds = 798615;
seconds = 1668378218;
};
}
qemuWillQuit, reason = host-qmp-quit
2022-11-13 14:23:38.799 UTM SE[72319:6106519] qemuWillQuit, reason = host-qmp-quit

@osy osy added this to the v4.1 milestone Nov 23, 2022
@osy
Copy link
Contributor

osy commented Dec 31, 2022

I think this is because the guest doesn't re-send the cursor image when suspending. We may have to do it manually in UTM.

@osy osy modified the milestones: v4.1, v4.2 Dec 31, 2022
@SugarRayLua
Copy link
Author

Thanks for checking into this, @osy.

@osy osy closed this as completed in 8c372b1 Mar 21, 2023
@SugarRayLua
Copy link
Author

Thanks!
IMG_1242

Unfortunately, I'm not not able to seemingly save a VM.

I opened up a new issue for this problem.

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

2 participants