On 6/3/19 2:17 PM, 'awokd' via qubes-users wrote:
Steve Coleman wrote on 6/3/19 5:11 PM:
So, it appears that just having that specific VM name will somehow
prevent it from ever running. When the AppVM has any other name then
it seems to work just fine. I just can't name any VM with the same
original VM name.
Rename the problem VMs to something else, then check your
/var/lib/qubes/qubes.xml. Confirm the new names are in there, then
delete any bad entries. Reboot. Cross fingers.
After renaming/deleting the broken VM's there are no references left in
the qubes.xml file.
However, after renaming the VM's to another name and deleting the log
files in:
/var/log/qubes/*.VMNAME*.log
/var/log/xen/console/*VMNAM*.log
/var/log/libvirt/libxl/VMNAME.log
then moving the VM name back, everything ran correctly. My guess is that
there was a file permission or ownership that got messed up and therefor
qubesdb-daemon was unable to open that resource so it bailed out with no
error message.
The ownership of the qrexec.VMNAME.log and qubesdb.VMNAME.log are now
username.qubes where they had previously been root.qubes. Apparently
when you delete or rename a VM the logfiles are persistent so the
permissions would prevent any new VM from writing to that same file as
well.
In furthur testing I found that simply removing the file
/var/log/qubes/qubesdb.VMNAME.log would allow that VM to start correctly
even without renaming anything. It's clearly a file
ownership/permissions problem.
The one mystery left is how did the logfile permissions get messed up
during the restore process in the first place. Perhaps from running the
qvm-backup-restore as root? I don't remember doing that but its possible.
Steve
--
You received this message because you are subscribed to the Google Groups
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/qubes-users/3103eb32-635f-1b17-1515-121fa08432d9%40jhuapl.edu.
For more options, visit https://groups.google.com/d/optout.