What do you think about adding this step by step guide to wiki/Tor? Then have a step in the Whonix 14 testers blog that has users copy and paste Tor State File from sys-whonix-13 to sys-whonix-14. ( and also has a link to these instructions?)
Copying Tor State to secondary sys-whonix
torjunkie: the language in this guide is not complete. Just wanted to get your opinion before I went any further. Aslo these instructions assume sys-whonix is based on Whonix-14 and sys-whonix-13 (obvious)
-
In
sys-whonixstop Tor.sudo systemctl stop tor@default -
In
sys-whonixremove Tor State File. Note: Its likely that this command will complain that the process is busy. This can be ignored.sudo rm -r /var/lib/tor -
In
sys-whonix, ensure/var/lib/toris empty. This command should produce no output.sudo ls /var/lib/tor -
In
sys-whonix-13, stop tor.sudo systemctl stop tor@default -
In
sys-whonix-13, copy the Tor State File tosys-whonix. Users must upgrade to a root prompt (root@host:# ) for the command to exit successfully.Note: If users encounter this error it can be ignored. qfile-agent: Fatal error: stat “VM” (error type: No such file or directory) . Hit “OK” when prompted
sudo suqvm-copy /var/lib/tor sys-whonix -
In
sys-whonix, list the QubesIncoming directory to ensure Tor State File was copied over successfully.ls ~/QubesIncoming/sys-whonix-13/torThe output should include these files:
cached-certs cached-microdescs lock
cached-microdesc-consensus cached-microdescs.new state -
In
sys-whonix, move Tor State File to/var/lib/tor.sudo mv ~/QubesIncoming/sys-whonix-13/tor/* /var/lib/tor -
In
sys-whonix, ensure all files listed in step 6 are now in/var/lib/torand have the proper ownership. For Tor to function, files in this directory should be owned bydebian-tor. If files do not have proper ownership, proceed to step 9. Otherwise skip to step 10.sudo ls -l /var/lib/torNote: The first 2 lines of the output should look similar to this. Notice the proper file ownership ‘
debian-tor debian-tor’.-rw------- 1 debian-tor debian-tor 20442 Feb 22 21:22 cached-certs
-rw------- 1 debian-tor debian-tor 1985454 Apr 4 00:04 cached-microdesc-consensus -
In
sys-whonix, change ownership of the Tor State File todebian-tor.sudo chown debian-tor: -R /var/lib/tor -
In
sys-whonix, verify Tor State file is owned bydebian-tor.sudo ls -l /var/lib/tor -
In
sys-whonix, start Tor.sudo systemctl start tor@default -
In
sys-whonix, verify Tor is functioning properly.whonixcheck -v