yixiaoer / tpux

A set of Python scripts that makes your experience on TPU better
MIT License
37 stars 0 forks source link

nfs_folder detached from other vm when rebooting #1

Open carlesoctav opened 2 months ago

carlesoctav commented 2 months ago

try to run this command: echo sudo reboot | podrun -i, and after that ssh back to the main vm and run any script that on nfs_folder.

carlesoctav commented 2 months ago

i've create simple script to reattach (modified from tpu-starter)

sudo exportfs -a
sudo systemctl restart nfs-kernel-server
echo sudo mount {hostvm-ip}:/nfs_share /nfs_share | podrun
echo ln -sf /nfs_share ~/nfs_share | podrun -i
ayaka14732 commented 2 months ago

Thank you for pointing this out! The nfs server should be "enabled", making it start on boot. This is an issue that should be fixed