Forum Replies Created
-
AuthorPosts
-
I have some ideas but I have not implemented this in practice. I believe NVIDIA GPUDirect should support VMs as long as PCI passthrough is supported.
You need to add a route to whatever you are trying to reach via the external gateway once all your interfaces are up and the IPs are made publicly routable. The interface for the gateway should be ens7, but it might be something else. Here is a modified version of the cell under “Configure Node1 – FABnetv6” in the example notebook I shared. Note that adding 0.0.0.0/1 exposes the node to the entire internet; it might be a better idea to only add a route to your specific public network (home internet, school, etc…). Hope this helps!
try: # Get Node node1 = slice.get_node(name=node1_name) # Get Network node1_network = slice.get_network(name=network1_name) # Get Interface node1_iface = node1.get_interface(network_name=network1_name) # Configure first IP from the subnet node1_addr = network1_available_ips.pop(0) node1_iface.ip_addr_add(addr=node1_addr, subnet=network1.get_subnet()) node1.execute(f'sudo ip route add {node1_network.get_gateway()} dev ens7'); node1.execute(f'sudo ip route add 0.0.0.0/1 via {node1_network.get_gateway()}') stdout, stderr = node1.execute(f'ip addr show {node1_iface.get_os_interface()}') stdout, stderr = node1.execute(f'ip route list') except Exception as e: print(f"Exception: {e}")
Hi,
There is a good tutorial for this here. There are a couple of things to note:
- As of right now, you will need to copy the plugins.py file from the parent directory of this file into your experiment’s directory. This will allow the “from plugins import Plugins” to work (this will be ported to fablib in a future release to avoid this step).
- You will need the proper permissions in your FABRIC project to use external networking.
- All routes (even to the public internet) will need to be added manually once the slice is up and running.
Hope this helps!
Did you try to restart your server? I believe you can do this at File -> Hub Control Panel -> Stop My Server (you may have to click it twice). Let me know if this helps.
Hello,
Have you tried generating a new token and copying and pasting this into your id_token.json file? You can get to the token management page through the portal: portal -> Experiments -> Manage Tokens -> Open fabric credential manager -> Create token. You should be able to copy this value, open the token.json file in your fabric environment (may have to right click and press “open with editor” in jupyter), then restart the server.
Hopefully this helps!
February 22, 2023 at 11:21 pm in reply to: node.upload_directory() won’t upload nested folders if they have no contents #3887Thanks, I tested it and it works well 👍
Can you try doing ‘ping google.com’? I believe I had a similar issue with the IP not resolving, but specifying the domain name worked for me.
October 15, 2022 at 4:02 pm in reply to: FABRIC Slice Manager Not Displaying Stitched Network Slice #3312Thank you for the response! I will keep that in mind.
As an update, I found a pretty good solution.
- Update the configure_environment jupyter notebook to match the file structure of your local machine.
- Run the notebook.
- Shut down Jupyter server.
- ‘source’ the fabric_rc file created from the configure_environment notebook:
- source <path_to_fabric_rc>
- Start Jupyter server.
That should work. Please respond to this post if something seems wrong or if anyone else is having this issue.
Okay, I went through that and it still isn’t working. One thing I have noticed is that the environment variables aren’t persistent; I restarted my computer and the exported variables were no longer present. Could this have something to do with Mac using zsh?
-
AuthorPosts