-
-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
qvm-clone, maximum memory and disabled memory balancing (disabled meminfo-writer service) #5306
Comments
in the qubes.xml, what exactly is the differences between <feature name="qubesmanager.maxmem_value" ... and <property name="maxmem" ...? FWIW, I think there appear to be some gaps between what I can get correctly stored for a cloned windows hvm via the GUI and via cli using qvm- commands. |
|
Hmm, I think the weird behavior I am seeing with the Qubes Setting GUI's maxmem being 4000 instead of 4096 on the clone is related to the source VM having a PCI device configured but no value for qubesmanager.maxmem_value (as it was created entirely via CLI). Both have the "Include in memory balancing" setting unchecked in the GUI, but the copy keeps showing a greyed out 4000 in the maxmem field, while the source correctly shows a greyed out 4096 in the maxmem field. Manually checking the "Include in memory balancing", clicking apply, and unchecking it, clicking apply and clicking OK clears the weird behavior (presumably as it sets the qubesmanager.maxmem_value correctly? Notably, the copy created by qvm-clone does not have a PCI device configured.
Brendan |
The clone part is solved by marmarta/qubes-core-admin-client@c0a8c65 , (this PR: QubesOS/qubes-core-admin-client#136 ). Still working on the second problem :) |
Thanks! |
When a VM is not included in memory balancing, there is no point (and it can be actively harmful via deception) in showing warnings about init_mem and maxmem mismatch. fixes QubesOS/qubes-issues#5306 (cherry picked from commit b058db4)
Automated announcement from builder-github The package
|
Automated announcement from builder-github The package
Or update dom0 via Qubes Manager. |
Qubes OS version
R4.0 current-testing
Affected component(s) or functionality
qvm-clone
Brief summary
source VM: initial=4096; max=4096; Include in memory balancing=UNCHECKED
To Reproduce
qvm-clone sourcevm targetvm
Expected behavior
target VM: initial=4096; max=4096; Include in memory balancing=UNCHECKED
Actual behavior
target VM: initial=4096; max=4000; Include in memory balancing=UNCHECKED
Right...4000, not 4096...plus there's also a hidden issue, discussed below.
Additional context
This leads to two issues:
I cannot detect any significant differences between the output of qvm-preferences and qvm-features of the source and target (both have 0 in the maxmem), but the source does not have this issue and the target does.
I suspect what is happening is multi-pronged:
Checking the checkbox, clicking apply, verifying or fixing the maxmem to 4096 if the UI hasn't already fixed it, then unchecking the checkbox and clicking OK resolves the issue each time.
Related, non-duplicate issues
#4480
As above, the hidden qmemman setting was fixed in qvm-preferences and/or Qubes Settings, but was missed in qvm-clone.
From this previous thread, I don't even know if meminfo-writer is really a thing any more.
B
The text was updated successfully, but these errors were encountered: