Post

Replies

Boosts

Views

Activity

Reply to Port forwarding with VZVmnetNetworkDeviceAttachment
[quote='884854022, DTS Engineer, /thread/822658?answerId=884854022#884854022'] The bad news is that this is a known limitation of vmnet (FB7731708). [/quote] I think i need to wait for the fix. however i released my app with this limitation. Hoping that it will be fixed soon. How can i track the bug myself. because i cant access the feedback you have mentioned
Topic: App & System Services SubTopic: Core OS Tags:
1w
Reply to process.waitUntilExit never exits in tahoe 26.3
now it fails in 26.5 beta 2 with operation not permitted error. I am not sure why apple keep introducing new bugs for this feature. we cant rely on this method at all. need a better stable way for creating asif disk programmatically. apple keeps breaking things . what will happen to live applications on appstore. i am very disappointed Update: Downlaoded xcode 26.5 and it seems to be fixed the problem. sorry about the above post
Topic: App & System Services SubTopic: Core OS Tags:
2w
Reply to Port forwarding with VZVmnetNetworkDeviceAttachment
My understanding is that software running on the host Mac is unable to connect to a server running on the VM via the public port (8000), even though you have forwarding configured in vmnet. Have you tried doing the same from some other machine on the host’s network, so X in this case? Wow. that worked. If i try to access from computer x in my host network with the ip address of the host:8000 it worked. when i try the same in the host itlsef with localhost or host ip it is not working. Is this is the way by design. Why it is not working if i do it from the host itself strange. Do i need to make some changes for this to work. Please enlighten me. thank you very much Now i know the port forwarding api is working as exected witht the limitation of not able to access the public port 8000 from the host itself.
Topic: App & System Services SubTopic: Core OS Tags:
2w
Reply to Programmatic IP Discovery for VZVirtualMachine in an App Store Sandbox
Is that a realistic user scenario that you’re trying to support? You are correct—this is exactly the scenario I am trying to implement. The primary challenge is that the network configuration cannot be modified while it is active. Currently, when a user attempts to change the network settings while it is in use, I prompt them either to restart the application or to stop any virtual machines using the network. This allows me to properly clean up and recreate the network with the updated configuration. At this stage, I have chosen to require an application restart for network modifications, as I have not found a reliable method to fully release the vmnet network. The documentation suggests using CFRelease, but this is not directly compatible with ARC. I did identify a workaround that appears to function correctly; however, the limitation remains that the network configuration cannot be changed while it is active. Additionally, it is not possible to hot-plug or remove network attachments from a running virtual machine, which further constrains dynamic reconfiguration. Given this, my current focus has shifted to resolving the port forwarding issue. Even when the configuration is predefined, port forwarding is not functioning as expected, despite the API call returning success. I am investigating why this discrepancy is occurring. This is where i need help. Instead of ip discovery i asked the user to set static ip which i can get it work with dhcp reservation with the network.
Topic: App & System Services SubTopic: Core OS Tags:
2w
Reply to Port forwarding with VZVmnetNetworkDeviceAttachment
[quote='884370022, DTS Engineer, /thread/822658?answerId=884370022#884370022'] ard to say without more context. Specifically: [/quote] The guest acquiring the ip address correct for test i have created web server on the guest listen on port 5264 when i try to acces the port directly with the ip address of the guest it is working. i can reach the guest ip from the host with the port 5264. so i forward port 8000 of host as external port in the sample code what i have provided and i access http://localhost:8000 on the host and it does not work. Hope i have give enough details.
Topic: App & System Services SubTopic: Core OS Tags:
2w
Reply to Programmatic IP Discovery for VZVirtualMachine in an App Store Sandbox
[quote='884369022, DTS Engineer, /thread/822025?answerId=884369022#884369022'] Why is that? [/quote] Let me explain i present a settings screen where the user can define their own networks with their own subnet. After that the user can pick up the desired network in vm creation. So i allow the user to share the same network for various virtual machine. It is a user choice who decide which netwotk the vm belong to.
Topic: App & System Services SubTopic: Core OS Tags:
2w
Reply to Programmatic IP Discovery for VZVirtualMachine in an App Store Sandbox
I tried creating new vmnet config and vmnet network for the second vm with same subnet and it failed. It seems to be we cant use the same subnet for new vmnet network. if i provide different subnet it is working fine. But i dont want to have a different subnet for each vm. I think we cant use vmnet_interfce_start_with_network because this is being taken care by the mac os virtuliaztion framewoth with the network we provide. any how i tried this it crashes with bad acces
Topic: App & System Services SubTopic: Core OS Tags:
2w
Reply to Add shared folders to running VzVirtualMachine
Thank you for the reference i tired it and it worked like a charm.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
1d
Reply to deduplicated_symbol error
Hi, Thank you for the reply. I was able to solve the problem. The problme is not becuase of deduplicated_symbols. I had some data race conditions modifying published vars from different threads rather than on main thread. Now it is fixed.
Replies
Boosts
Views
Activity
4d
Reply to Port forwarding with VZVmnetNetworkDeviceAttachment
[quote='884854022, DTS Engineer, /thread/822658?answerId=884854022#884854022'] The bad news is that this is a known limitation of vmnet (FB7731708). [/quote] I think i need to wait for the fix. however i released my app with this limitation. Hoping that it will be fixed soon. How can i track the bug myself. because i cant access the feedback you have mentioned
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
1w
Reply to Programmatic IP Discovery for VZVirtualMachine in an App Store Sandbox
Here is the FB No. FB22589442
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
1w
Reply to Programmatic IP Discovery for VZVirtualMachine in an App Store Sandbox
I wasn’t able to find an equivalent bug for DHCP reservations, so I recommend that your file your own about that. I think i wont file the bug since it is not a bug and it is by design it is clearly documented here https://developer.apple.com/documentation/vmnet/vmnet_network_configuration_add_dhcp_reservation(_:_:_:)?language=objc
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
1w
Reply to process.waitUntilExit never exits in tahoe 26.3
utm app uses this method https://github.com/utmapp/UTM/blob/30c8202c630c5af2e3c3403df1bb95c962459bc6/Services/UTMASIFImage.m#L18 is it allowed in sandboxed environment?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
2w
Reply to process.waitUntilExit never exits in tahoe 26.3
now it fails in 26.5 beta 2 with operation not permitted error. I am not sure why apple keep introducing new bugs for this feature. we cant rely on this method at all. need a better stable way for creating asif disk programmatically. apple keeps breaking things . what will happen to live applications on appstore. i am very disappointed Update: Downlaoded xcode 26.5 and it seems to be fixed the problem. sorry about the above post
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
2w
Reply to Port forwarding with VZVmnetNetworkDeviceAttachment
My understanding is that software running on the host Mac is unable to connect to a server running on the VM via the public port (8000), even though you have forwarding configured in vmnet. Have you tried doing the same from some other machine on the host’s network, so X in this case? Wow. that worked. If i try to access from computer x in my host network with the ip address of the host:8000 it worked. when i try the same in the host itlsef with localhost or host ip it is not working. Is this is the way by design. Why it is not working if i do it from the host itself strange. Do i need to make some changes for this to work. Please enlighten me. thank you very much Now i know the port forwarding api is working as exected witht the limitation of not able to access the public port 8000 from the host itself.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
2w
Reply to Port forwarding with VZVmnetNetworkDeviceAttachment
I tried to manually port forward using pfctl temporarily and found that it also does not work for the scenario. But i found that reaching http://guestip:port worked fine. not sure is there any check i have to do at os level to make it work.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
2w
Reply to Programmatic IP Discovery for VZVirtualMachine in an App Store Sandbox
still I am interested in discovering the IP for bdridged & default nat networking as the title says. If i need to the port forwarding without static ip i need this the default nat network. and also diplaying the ip address in the app is very useful info for the user. the user dont need to dig into the guest for this.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
2w
Reply to Programmatic IP Discovery for VZVirtualMachine in an App Store Sandbox
Is that a realistic user scenario that you’re trying to support? You are correct—this is exactly the scenario I am trying to implement. The primary challenge is that the network configuration cannot be modified while it is active. Currently, when a user attempts to change the network settings while it is in use, I prompt them either to restart the application or to stop any virtual machines using the network. This allows me to properly clean up and recreate the network with the updated configuration. At this stage, I have chosen to require an application restart for network modifications, as I have not found a reliable method to fully release the vmnet network. The documentation suggests using CFRelease, but this is not directly compatible with ARC. I did identify a workaround that appears to function correctly; however, the limitation remains that the network configuration cannot be changed while it is active. Additionally, it is not possible to hot-plug or remove network attachments from a running virtual machine, which further constrains dynamic reconfiguration. Given this, my current focus has shifted to resolving the port forwarding issue. Even when the configuration is predefined, port forwarding is not functioning as expected, despite the API call returning success. I am investigating why this discrepancy is occurring. This is where i need help. Instead of ip discovery i asked the user to set static ip which i can get it work with dhcp reservation with the network.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
2w
Reply to Port forwarding with VZVmnetNetworkDeviceAttachment
[quote='884370022, DTS Engineer, /thread/822658?answerId=884370022#884370022'] ard to say without more context. Specifically: [/quote] The guest acquiring the ip address correct for test i have created web server on the guest listen on port 5264 when i try to acces the port directly with the ip address of the guest it is working. i can reach the guest ip from the host with the port 5264. so i forward port 8000 of host as external port in the sample code what i have provided and i access http://localhost:8000 on the host and it does not work. Hope i have give enough details.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
2w
Reply to Programmatic IP Discovery for VZVirtualMachine in an App Store Sandbox
[quote='884369022, DTS Engineer, /thread/822025?answerId=884369022#884369022'] Why is that? [/quote] Let me explain i present a settings screen where the user can define their own networks with their own subnet. After that the user can pick up the desired network in vm creation. So i allow the user to share the same network for various virtual machine. It is a user choice who decide which netwotk the vm belong to.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
2w
Reply to Programmatic IP Discovery for VZVirtualMachine in an App Store Sandbox
I tried creating new vmnet config and vmnet network for the second vm with same subnet and it failed. It seems to be we cant use the same subnet for new vmnet network. if i provide different subnet it is working fine. But i dont want to have a different subnet for each vm. I think we cant use vmnet_interfce_start_with_network because this is being taken care by the mac os virtuliaztion framewoth with the network we provide. any how i tried this it crashes with bad acces
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
2w
Reply to Programmatic IP Discovery for VZVirtualMachine in an App Store Sandbox
[quote='884231022, DTS Engineer, /thread/822025?answerId=884231022#884231022'] Coming back to your IP address issue, [/quote] Sorry i was confused between network and interface how to create a new interface should i use this https://developer.apple.com/documentation/vmnet/vmnet_interface_start_with_network(::::) ?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
2w