diff --git a/virtualization_11.m b/virtualization_11.m index 07fb15c..49b402f 100644 --- a/virtualization_11.m +++ b/virtualization_11.m @@ -103,6 +103,17 @@ - (void)virtualMachine:(VZVirtualMachine *)virtualMachine [networkDevice debugDescription], networkDevice.attachment, error); + + int i = 0; + for (VZNetworkDevice *nd in virtualMachine.networkDevices) { + if (nd == networkDevice) { + NSLog(@"Index network devices %d, %@", i, nd.attachment); + break; + } + i++; + } + NSLog(@"debug is finished"); + [networkDevice setAttachment:[[VZNATNetworkDeviceAttachment alloc] init]]; } @end