Qubes 4.0 rc4 / Qubes backup doesn't find the directory

62 views
Skip to first unread message

ThierryIT

unread,
Feb 26, 2018, 2:04:44 PM2/26/18
to qubes-users
Hi,

I would like to backup few of my VMs.
I have mount my external usb (not using sys-usb) HDD.
From the console where my HDD is attached/mounted, I have access through /mnt/removable to all my previous (3.2) backup files.
I have created, in /mnt/removable, a new folder.
When running the Qubes backup, and choosing the newly created folder, I have this error:

Selected directory do not exists or not a directory

I have created others folders, I have change permissions ... Same problem.
Today all my folders are:

- drwxrwxr-x 3 user:user AppVM_bck

Same pb if root:root

??

Tim W

unread,
Feb 26, 2018, 6:03:07 PM2/26/18
to qubes-users
On the last part you are saying even picking root of the removable it still fails same error?

Rusty Bird

unread,
Feb 26, 2018, 7:09:00 PM2/26/18
to ThierryIT, qubes-users
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

ThierryIT:
> When running the Qubes backup, and choosing the newly created folder, I have this error:
>
> Selected directory do not exists or not a directory

https://github.com/QubesOS/qubes-issues/issues/3594

Rusty
-----BEGIN PGP SIGNATURE-----

iQJ8BAEBCgBmBQJalJ81XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ4NEI1OUJDRkM2MkIxMjlGRTFCMDZEMDQ0
NjlENzhGNDdBQUYyQURGAAoJEEadePR6ryrfryAP/28evKg0iq6zu5caEecRQqrH
uPlmPw1LOzuST16lTQWLdNqzOtJdovDazUbWS9fhEh33N8iwZajSqC3efHQYv3Dt
zN1M4Krakky+UqDxxecCfcJ64WJ6TpcuqtPUuqF4M5G3XOevasN/O0Q55PzMjFp2
981dYjJb5W0wyhqlvFJ4JwMlh8FkR6DTAVwKLP/Ga2ClUHBaxr89gsj+uRmFSogi
XB8ECuSL9TrTCK/+cEyolS38yukmjpQTVLVx23dXLNd4cYZovmleyKL9DZ5LrJjl
HRYDdtrHEbdTV+WZcxu04OCWOU8HTrqy91E13/OppJU8TsaP6Q9eA6eZIJJzoMnC
LC0A1H7O8fHNgHhWlBg46Y6hQvCAaYgYKuipa7EzzNPZ3EkbRIZ6ztoyMbTkxWIM
waRcxsIl+oEFCt0IJnKY1YuglvwCr/y9LS/7sANTSj0atiTkN5YFIsaijt/9n3tW
RLc/msNeBp8CmPGawiZxPIccpfJnksFz9DLFArRCJMDWWVhKj6bRp4XBYGSkJizg
QEW8Fpw8/VYdonDRf75mMdJXLosUSTBt8MV2z4hOrv5FHY36AUGhbWN9X3g/QS88
rONqsp40ApjaI+POOvsOvYa2wgelpI4vSAtZs86HcTGoKabovX7BQO3u2NTNLHCd
T7I76JkdWog2kFZmmCpv
=I+Ot
-----END PGP SIGNATURE-----

Yuraeitha

unread,
Feb 26, 2018, 7:39:25 PM2/26/18
to qubes-users

I don't think it's a permission issue, it can't find the folder, so it's likely not even getting to the point where it's asking the system for permissions.

Missing information:
- If you're not using sys-usb, are you then running backup from dom0 or from an USB controller directly pass-through into an AppVM?

- Did you remember to use '' marks for spaces in the address?

- Did you mixup the domain:device flag with the -d flag, such as between qvm-usb/qvm-pci and qvm-backup?

- What is the full qvm-backup path you use? By full, I mean the whole thing.


In case you're not doing this from dom0, but from an USB controller directly passed into "any" AppVM, then to followup on the answer and link from Rusty Bird, to quote mig5 in the link:

"As proof, I can 'cheat' this by running sudo mkdir /mnt/removable on my dom0, and then I can proceed to backup my VMs on the disk mounted on sys-usb at /mnt/removable"

Essentially, it seems you can bypass this error by making a similar path available in dom0, even though the path in dom0 won't be used. Apparently it fails if the path isn't available in dom0, despite the path being used is actually inside the AppVM.


However, if you're running the USB from dom0 directly, then to my knowledge it has never really worked in Qubes 4, be it RC-1 or RC-4, due to the redesign including the admin tools, and it seemingly was not made to include dom0 qvm-backup. I haven't checked, but maybe it was fixed since not all hardware can make a sys-usb (for example when touchscreen is tied to USB and the controller can't be moved away from dom0 without freezing the entire screen, not just touch, but literally freezing the picture <--- which is just one example why some still need to run USB controllers in dom0).

What is your situation? More information?

Yuraeitha

unread,
Feb 26, 2018, 7:50:05 PM2/26/18
to qubes-users
On Monday, February 26, 2018 at 8:04:44 PM UTC+1, ThierryIT wrote:

Apologies, I overlooked the "- drwxrwxr-x 3 user:user AppVM_bck" line in your post. Since your USB controller then must be directly passed into the AppVM, you can try create a direct path copy directly in dom0, even though you won't be using this path. As suggested in Rusty Bird's link. Does it work for you?

ThierryIT

unread,
Feb 27, 2018, 1:00:46 AM2/27/18
to qubes-users
I have created the "/mnt/removable" in dom0.
If using as path: /mnt/removable/AppVM_bck I do still have the same error message.
If using as path: /mnt/removable I do have a permission denied.

drwxr-xr-x root root mnt
drwxr-xr-x root root removable
drwxrwxr-x user user AppVM_bck

Are the permissions correct ? It should be root:root or user:user ?

Thx

Yuraeitha

unread,
Feb 27, 2018, 5:39:06 AM2/27/18
to qubes-users
It looks like you did the permissions correctly, lets try something else. I suggest you try make a new fixed artificial mounting path rather than the dynamic allocated one, because it may quite reasonably be why Qubes 4 can't find its way to the path when special symbolic location letters are used as path shortcuts, such as $HOME/ or ~/ and similar for /home/user, which seems similar to /run/removable. So it may be that dynamic folders aren't working very well.

For example XFCE4 keybinding a script located in /home/user/ can be a huge hassle if using $HOME/ or ~/ to bypass dynamic user-names in different Linux systems, and instead one has to write the actual user-name in the path, which means it only works if using the full path name, rather than path shortcuts. Maybe it's the same that happens with /mnt/removable. In which case, it may be useful to abandon this location to something not bound by location rules, which can be anywhere but the official places.

Perhaps this bug could even be related to the recent $ some days back? I dunno though, but without any insight, it seems like it maybe could be.

So try un-mount the USB drive in the AppVM, and make a new fixed location folder, it could be in /mnt/some-folder <--- give folder a name, but without spaces and special letters to avoid issues.

Change the some-older's ownership to user and give it permissions. Then once that is done, mount your drive to the folder with appropriate mounting permissions. Then do the same new path in dom0, with same ownership/permissions.

Generally only the last folder should have the same permission, at least as far as I know the parent folder permission shouldn't matter much. So don't worry about the parent folders, just focus on the final folder in the path.

Does it make a difference when you clear out dynamic paths for fixed paths, then remount it, and ensure all permissions are in place?

Also I don't think you need the dom0 trick if you try this approach, although I could be wrong. I think the dom0 identical path trick is a method to trick the system to not fail on the shortcut path. So by avoiding shortcut paths altogether, you may not need to do the dom0 trick to bypass the bug. I'm not 100% sure if this how it actually works, but it may be worth a try.

Alex Dubois

unread,
Feb 27, 2018, 10:37:53 AM2/27/18
to qubes-users
fyi, I had same problem, and doing the back-up at the root of the mount point allowed me to continue (/media on a DispVM in my case where I had bound a second HD on my SATA temporarilly).

ThierryIT

unread,
Feb 27, 2018, 10:41:38 AM2/27/18
to qubes-users
I have tried at the mounting point too "/mnt" without succes
Reply all
Reply to author
Forward
0 new messages