Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upRenaming VMs doesn't change qubes-manager entry #2054
Comments
ghost
changed the title from
Renaming standalone VMs create problems
to
Renaming standalone VMs doesn't change qubes-manager entry
Jun 8, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
andrewdavidwong
Jun 8, 2016
Member
Starting the qube from the command-line (qvm-start [vm]) results in the output A VM with the name 'untrusted-2' does not exist in the system.
Sounds like it's not just a Qubes Manager issue, but rather that qubes.xml isn't getting updated.
Sounds like it's not just a Qubes Manager issue, but rather that |
andrewdavidwong
added
bug
C: core
labels
Jun 8, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Jun 8, 2016
Member
Did you get any error while renaming the VM? Have you tried renaming using qvm-prefs?
|
Did you get any error while renaming the VM? Have you tried renaming using |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
ghost
Jun 9, 2016
Marek Marczykowski-Górecki:
Did you get any error while renaming the VM? Have you tried renaming using
qvm-prefs?
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
#2054 (comment)
No, I didn't get any errors when renaming the VM. I used the manager for
renaming, and haven't tested with qvm-prefs. Reporting back soon.
ghost
commented
Jun 9, 2016
|
Marek Marczykowski-Górecki:
No, I didn't get any errors when renaming the VM. I used the manager for |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
ghost
Jun 9, 2016
Marek Marczykowski-Górecki:
Have you tried renaming using
qvm-prefs?
I've now tested renaming a StandaloneVM with qvm-prefs. No problems,
but at the same time no problems occurred using Qubes manager. It's just
sometimes that this problem occur. The files from the VM with problems
still exist, something from there (logs, etc.) that can help you? Can't
start the VM, but I assume that it's possible to access the files
another way, or possible to manually add the VM?
ghost
commented
Jun 9, 2016
|
Marek Marczykowski-Górecki:
I've now tested renaming a StandaloneVM with |
andrewdavidwong
added
the
C: qubes-manager
label
Jun 20, 2016
ghost
changed the title from
Renaming standalone VMs doesn't change qubes-manager entry
to
Renaming VMs doesn't change qubes-manager entry
Jun 20, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
pstansell
Jul 9, 2016
Hello,
I just wanted to say that I had a similar problem with R3.1. I
recently installed Qubes and during the course of exploring it's
behaviour I renamed a template VM using the VM Manager. It didn't
report any errors, but the name displayed by the VM Manager was not
updated.
Now both the commands
qvm-prefs old-vm-name
and
qvm-prefs new-vm-name
report that the VM "does not exist in the system", but I still have
3.5G of files in /var/lib/qubes/vm-templates/new-vm-name.
After this I can no longer start the VM from the Manager or from the
command line. Using the Manager I deleted the VM (which still had the
old name). That worked in that the name has gone from the Manager,
but the files are still present on my system (under the new name).
Is there any way I can edit a config file by hand so that the VM Manager
can see the VM in /var/lib/qubes/vm-templates/new-vm-name?
Thanks
pstansell
commented
Jul 9, 2016
•
|
Hello, I just wanted to say that I had a similar problem with R3.1. I Now both the commands qvm-prefs old-vm-name and qvm-prefs new-vm-name report that the VM "does not exist in the system", but I still have After this I can no longer start the VM from the Manager or from the Is there any way I can edit a config file by hand so that the VM Manager Thanks |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
andrewdavidwong
Jul 10, 2016
Member
@pstansell, check /var/lib/qubes/qubes.xml for the old and new VM names, but be very careful if editing this file.
|
@pstansell, check |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
pstansell
Jul 10, 2016
Thanks for the advice. I managed to break my installation other ways too (eg. "qvm-trim-template fedora-23" stopped working with error "File exists: /var/lib/gubes/appvms/fedora-23-fstrim"), so I reinstalled the whole system and started again. It's all part of the learning experience!
pstansell
commented
Jul 10, 2016
|
Thanks for the advice. I managed to break my installation other ways too (eg. "qvm-trim-template fedora-23" stopped working with error "File exists: /var/lib/gubes/appvms/fedora-23-fstrim"), so I reinstalled the whole system and started again. It's all part of the learning experience! |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
xloem
Aug 9, 2016
Just to confirm, I had this issue, and editing /var/lib/qubes/qubes.xml worked for me. I changed the name three times: the path, the conf file, and the name itself. Then the vm launched fine.
xloem
commented
Aug 9, 2016
|
Just to confirm, I had this issue, and editing |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
tntdynamight
Aug 12, 2016
Same here on Qubes R3.1. andrewdavidwong/xloem's workaround worked for me nicely, thanks!
tntdynamight
commented
Aug 12, 2016
•
|
Same here on Qubes R3.1. andrewdavidwong/xloem's workaround worked for me nicely, thanks! |
andrewdavidwong
added this to the Far in the future milestone
Dec 24, 2016
entr0py
referenced this issue
Dec 25, 2016
Open
Renaming HVM-Template sometimes results in complete Data Loss #2539
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
jpouellet
Feb 21, 2017
Contributor
It looks like this ABA problem may be addressed generally in core3 as result of QubesOS/qubes-core-admin@0141e1a
|
It looks like this ABA problem may be addressed generally in core3 as result of QubesOS/qubes-core-admin@0141e1a |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Feb 21, 2017
Member
@jpouellet I don't think this is the problem - API in 3.x explicitly allow this already, and it is used by Qubes Manager.
|
@jpouellet I don't think this is the problem - API in 3.x explicitly allow this already, and it is used by Qubes Manager. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarta
Jul 19, 2018
3.1 is no longer supported, and I can't seem to reproduce it on 3.2; I think this one is safe to close.
marmarta
commented
Jul 19, 2018
|
3.1 is no longer supported, and I can't seem to reproduce it on 3.2; I think this one is safe to close. |
ghost commentedJun 8, 2016
•
edited by ghost
Edited 1 time
-
ghost
edited Jun 20, 2016 (most recent)
Qubes OS version (e.g.,
R3.1):R3.1
Affected TemplateVMs (e.g.,
fedora-23, if applicable):All
Expected behavior:
Renaming an VM modify and moves all relevant files, and no problems with finding relevant files.
Actual behavior:
The files and directory change (
/var/lib/qubes/appvms) but the entry in the Qubes manager doesn't. This make it impossible to start the VM, both from the application launcher and via command-line.When I'm trying to start an application in the qube from the application launcher results in the icons just jumping (indicating loading) and then dissaprears. Nothing else happens.
Starting the qube from the command-line (
qvm-start [vm]) results in the outputA VM with the name '[VM-name]' does not exist in the system.Steps to reproduce the behavior:
NOTE: I can't reliable reproduce this bug, but is has occurred several times for me.
General notes:
It has occurred for both standalone VMs and appVMs. This happens on a seemly random basis.