Cannot Connect iPhone to MacOS Catalina Guest in Virtualbox on Ubuntu Host - iphone

I have MacOS Catalina running in VirtualBox on an Ubuntu Host. I've set up USB pass through for the iPhone.
When I plug in the iPhone it keeps trying to connect to the Host and failing. The iPhone vibrates on and off, usually in pulses of 3, and the Trust Computer dialogue on the iPhone briefly appears then disappears continuously. I suspect that it is failing to connect to the Guest and gets stuck in an infinite loop attempting to connect to the Host and Guest in turn.
While it's doing this the Device number for the iPhone in the host, as displayed by lsusb, will be constantly changing.
I've tried USB 1, 2, & 3 with no luck.
Same iPhone can connect to Windows Guest, and other USB devices can connect to Guest Catalina just fine.
I'm using:
Ubuntu 16.04 host
Virtual Box 6.1 with Extension pack
Catalina Guest with Guest additions
iPhone 7
VBox.log:
00:29:22.384244 usb-linux: Reset failed, rc=Not supported. errno=19.
00:29:22.384304 usb-linux: Reset failed, rc=Not supported. errno=19.
00:29:22.396584 usb-linux: Reset failed, rc=Not supported. errno=19.
00:29:22.399738 VUSB: Detached '00007f549c1c4af0[proxy 05ac:12a8]' from port 3 on RootHub#0
00:29:23.161507 VUSB: Disabled '00007f549c1c4af0[proxy 05ac:12a8]' remote wakeup for configuration 0
00:29:23.161536 VUSB: Disabled '00007f549c1c4af0[proxy 05ac:12a8]' remote wakeup for configuration 1
00:29:23.161538 VUSB: Disabled '00007f549c1c4af0[proxy 05ac:12a8]' remote wakeup for configuration 2
00:29:23.161539 VUSB: Disabled '00007f549c1c4af0[proxy 05ac:12a8]' remote wakeup for configuration 3
00:29:23.179012 VUSB: Attached '00007f549c1c4af0[proxy 05ac:12a8]' to port 3 on RootHub#0 (HighSpeed)
00:29:24.821059 VUSB: Detached '00007f549c1c4af0[proxy 05ac:12a8]' from port 3 on RootHub#0
00:29:25.951225 VUSB: Disabled '00007f549c1c4af0[proxy 05ac:12a8]' remote wakeup for configuration 0
00:29:25.951237 VUSB: Disabled '00007f549c1c4af0[proxy 05ac:12a8]' remote wakeup for configuration 1
00:29:25.951239 VUSB: Disabled '00007f549c1c4af0[proxy 05ac:12a8]' remote wakeup for configuration 2
00:29:25.951241 VUSB: Disabled '00007f549c1c4af0[proxy 05ac:12a8]' remote wakeup for configuration 3
00:29:25.951242 VUSB: Disabled '00007f549c1c4af0[proxy 05ac:12a8]' remote wakeup for configuration 4
00:29:25.971921 VUSB: Attached '00007f549c1c4af0[proxy 05ac:12a8]' to port 3 on RootHub#0 (HighSpeed)
00:29:26.372378 usb-linux: Reset failed, rc=Not supported. errno=19.
00:29:26.372512 usb-linux: Reset failed, rc=Not supported. errno=19.
00:29:26.384050 VUSB: Detached '00007f549c1c4af0[proxy 05ac:12a8]' from port 3 on RootHub#0
00:29:27.160467 VUSB: Disabled '00007f549c1c4af0[proxy 05ac:12a8]' remote wakeup for configuration 0
00:29:27.160504 VUSB: Disabled '00007f549c1c4af0[proxy 05ac:12a8]' remote wakeup for configuration 1
00:29:27.160507 VUSB: Disabled '00007f549c1c4af0[proxy 05ac:12a8]' remote wakeup for configuration 2
00:29:27.160518 VUSB: Disabled '00007f549c1c4af0[proxy 05ac:12a8]' remote wakeup for configuration 3
00:29:27.188315 VUSB: Attached '00007f549c1c4af0[proxy 05ac:12a8]' to port 3 on RootHub#0 (HighSpeed)
00:29:28.871512 VUSB: Detached '00007f549c1c4af0[proxy 05ac:12a8]' from port 3 on RootHub#0

Related

HW Debugging ARM Controller with J-Link error (Truncated register 16 in remote 'g' packet*)

I tried to debug my code with eclipse with the j-link debugger and gdb sserver and client.
I tried different settings but couldn't solve the error.
Eclipse error:
Error in final launch sequence
Failed to execute MI command:
-target-select remote localhost:2331
Error message from debugger back end:
Truncated register 16 in remote 'g' packet
Connecting to J-Link...
J-Link is connected.
Firmware: J-Link LITE-Cortex-M-5V compiled Mar 3 2016 12:49:54
GDB Server output:
Hardware: V8.00
S/N: 638100545
Feature(s): GDB
Checking target voltage...
Target voltage: 5.03 V
Listening on TCP/IP port 2331
Connecting to target...Connected to target
Waiting for GDB connection...Connected to 127.0.0.1
Reading all registers
GDB closed TCP/IP connection
Any hint what could solve my problem?

Can't connect iPhone 6 to macOS virtual machine

I'm trying to test a flutter app on iOS using my macOS virtual machine, but I can't get my old iPhone 6 to connect. I was able to get it to connect once last week, but since then it will immediately disconnect from the guest and back to the host whenever I plug it in. Here's some info about my setup:
Host OS: Ubuntu 20.04
Guest OS: macOS Big Sur 11.2
Phone: iPhone 6, iOS 12.5.1
Virtualization: VMWare player 16.1.0
I have the vm stored in a 2TB external USB drive
I added the line usb.quirks.device0 = "0x05ac:0x12a8 skip-reset, skip-refresh, skip-setconfig" to my vmx file which at least stops an infinite loop of connecting and disconnecting.
I have the vm settings to USB 2 and have all the options checked
If I plug the phone into a USB 3 port, I get a driver error, and if I plug it into a USB 2 port I sometimes get a message saying the device is busy.
I also get similar messages in the vmware log
2021-02-15T20:41:21.288-07:00| vmx| I005: USBGA: device 1000001d05ac12a8 arrived
2021-02-15T20:41:21.291-07:00| vmx| I005: MsgHint: msg.usb.disconnectHostProcess
2021-02-15T20:41:21.291-07:00| vmx| I005+ The specified device is in use by process:3922 /usr/libexec/gvfs-gphoto2-volume-monitor on the host operating system. Continuing will detach the device from the host operating system.
2021-02-15T20:41:21.291-07:00| vmx| I005+ ---------------------------------------
2021-02-15T20:41:21.297-07:00| vmx| W003: USBGL: failed to claim device (fd=19), interface 0. Retrying
2021-02-15T20:41:21.297-07:00| vmx| I005: USBGL: disconnect driver 'usbfs' from device 19, interface 0
2021-02-15T20:41:21.297-07:00| vmx| I005: USBGL: claimed device 19, interface 0 successfully
2021-02-15T20:41:21.297-07:00| vmx| I005: USBGL: Connected device 0x1000001d05ac12a8 successfully
2021-02-15T20:41:21.297-07:00| vmx| I005: USBG: Quirks for device 05ac:12a8 (user-defined,skip-setconfig,skip-reset,skip-refresh,slow-reconnect)
...
2021-02-15T20:41:21.617-07:00| vcpu-1| I005: USBGL: Disable port is not supported.
2021-02-15T20:41:21.719-07:00| vcpu-0| I005: USBG: Skipping device reset for 0x1000001d05ac12a8
2021-02-15T20:41:21.874-07:00| vmx| I005: USBG: Skipping SetConfiguration(1) for 0x1000001d05ac12a8
2021-02-15T20:41:21.879-07:00| vmx| W003: USBGL: failed to set device 19 to config 5: Device or resource busy
2021-02-15T20:41:21.879-07:00| vmx| I005: USBGL: claimed device 19, interface 0 successfully
2021-02-15T20:41:26.578-07:00| vmx| W003: USBGL: failed to submit urb to device 19: Device or resource busy
...
2021-02-15T20:41:26.579-07:00| vmx| W003: USBGL: failed to submit urb to device 19: Device or resource busy
2021-02-15T20:41:53.340-07:00| vmx| I005: USB: Disconnecting device 0x1000001e05ac12a8
2021-02-15T20:41:53.340-07:00| vmx| I005: USBG: Disconnecting 1000001e05ac12a8, port:0 reservedPort:5574C8CD9D20
2021-02-15T20:41:53.340-07:00| vmx| I005: USBGA: device 1000001e05ac12a8 already disconnected from host
The iPhone shows up under USB in system information. Manually connecting or disconnecting the device in the removable devices section of vmware doesn't seem to do anything.
Is there any other setting I can change or something I can try to get the iPhone to stay connected to the guest macOS?
Thanks so much!
Had the same problem. Need disable gvfs-gphoto2-volume-monitor and usbmuxd services in host OS (Ubuntu). Detail solution found here: https://www.insanelymac.com/forum/topic/326555-vmware-cant-connect-iphone/
Is the usbmuxd daemon that you need to disable but also to mask in order to prevent it from auto start again.
When you need to attach your iPhone to the VMWare Guest you need to execute the following commands:
sudo systemctl mask usbmuxd
sudo systemctl stop usbmuxd
When you finished and need to enable again the usbmuxd daemon you need to execute the following commands:
sudo systemctl unmask usbmuxd
sudo systemctl start usbmuxd
Also you may need to kill gvfs-gphoto2-volume-monitor by executing:
sudo killall gvfs-afc-volume-monitor
Tested and working on Fedora 36 with WMWare Workstation 16.2.3 and OSX guest 12.4
in the vmx file.... change the following line
usb_xhci:7.speed = "4"
like this
usb_xhci:7.speed = "2"
but it resets.Change the line after you open vmware...before starting the virtual machine....
you can check the port that iphone connects to from log....
in my case ... usb_xhci:7

mesos masters keep restarting

I have 3 mesos masters with version 0.26.0 setup with a quorum of 2. When I start them, they keep restarting even before I turn up any frameworks or slaves.
Here's the errors I'm seeing:
F0322 19:36:56.009903 51459 master.cpp:1368] Recovery failed: Failed to recover registrar: Failed to perform fetch within 1mins
E0322 19:37:18.300568 41095 process.cpp:1911] Failed to shutdown socket with fd 26: Transport endpoint is not connected
There's no firewall running.
I start them with supervisord and the following command:
/usr/sbin/mesos-master --cluster=int --log_dir=/var/log/mesos/int --quorum=2 --port=5050 --work_dir=/tmp/mesos/work/int --zk=zk://intMesosMaster01:2181,intMesosMaster02:2181,intMesosMaster03:2181/mesos
Zookeeper is up and running fine with 3 nodes. It's in use for other projects and has no issues at all with them.

Sequel Pro - Socket connection failed

I use Sequel Pro and MAMP on my Mac to develop wordpress sites locally. This morning when I tried to start up Sequel Pro it kept asking for my password to make changes (it has never done this before). I first tried rebooting my machine but it kept asking so I entered my password to allow (unknown) changes to be made.
Big mistake!
Now when I try to connect via socket I get the error message
Socket connection failed!
Unable to connect via the socket, or the request timed out.
Double-check that the socket path is correct and that you have the necessary privileges, and that the server is running.
MySQL said: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
When I check MAMP the Apache Server light is red, and the MySQL server light is green.
I am a complete novice when it comes to back-end stuff like this, a lot of the answers I have browsed list console commands but I have never used the console before.
I have found a file that is reference in the error - "mysql.sock". This is located in Applications > MAMP > tmp > mysql > mysql.sock
But im not sure what to do with this file (if anything!).
I also found this error log:
130312 11:07:29 mysqld_safe Starting mysqld daemon with databases from /Applications/MAMP/db/mysql
130312 11:07:29 [Warning] You have forced lower_case_table_names to 0 through a command-line option, even though your file system '/Applications/MAMP/db/mysql/' is case insensitive. This means > that you can corrupt a MyISAM table by accessing it with different cases. You should consider changing lower_case_table_names to 1 or 2
130312 11:07:29 [Warning] One can only use the --user switch if running as root
130312 11:07:29 [Note] Plugin 'FEDERATED' is disabled.
130312 11:07:29 [Note] Plugin 'ndbcluster' is disabled.
130312 11:07:29 InnoDB: Started; log sequence number 0 15469736
130312 11:07:30 [Note] Event Scheduler: Loaded 0 events
130312 11:07:30 [Note] /Applications/MAMP/Library/libexec/mysqld: ready for connections.
Version: '5.1.37' socket: '/Applications/MAMP/tmp/mysql/mysql.sock' port: 8889 Source distribution
130312 11:09:37 mysqld_safe A mysqld process already exists
I just dont know what to do with any of the info! Any help is greatly appreciated!
I have the same problem just go and on or start your MAMP and then connect
via socket in Sequel Pro it will work.

Debug Jboss 7.x with intellij idea

I am trying to debug the application on my macbook pro ( os Mountain Lion ). But when I click on debug it is alerting that: unable to connect localhost 4010. I set the port to 4010 on jboss. Here is the output while app starting.
Listening for transport dt_socket at address: 4010
On Jidea; settings for debug is "remote server"
Remote Connection Settings;
host : localhost
port : 4010
Most likely you are using debugger port in place for HTTP port:
In case if you just want to connect to your local application server:
Open "Run/Debug configurations" window.
Add new configuration - Remote
Set up Port to your Jboss socket port