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

qubes-vm-settings fails for restored VMs #2947

Closed
kulinacs opened this Issue Aug 1, 2017 · 5 comments

Comments

Projects
None yet
5 participants
@kulinacs

kulinacs commented Aug 1, 2017

Qubes OS version (e.g., R3.2):

R4.0-rc1

Expected behavior:

qubes-vm-settings loads for restored VMs

Actual behavior:

Error causes failure

Steps to reproduce the behavior:

  • Restore VMs from backup (in my case, R3.2)
  • Run qubes-vm-settings on a restored vm

General notes:

Fix

BE CAREFUL EDITING /var/lib/qubes/qubes.xml by hand!

Replace

<features>
  <feature name="services.meminfo-writer">1</feature>
</features>

with:

<features/>

for all restored VMs in /var/lib/qubes/qubes.xml and restart.

Error

TypeError: setChecked(self, bool): argument 1 has unexpected type 'str'
at line 9
of file /usr/bin/qubes-vm-settings.


line: self.vm.features.get('services.meminfo-writer', True))
func: init_advanced_tab
line no.: 454
file: /usr/lib/python3.5/site-packages/qubesmanager/settings.py


line: self.init_advanced_tab()
func: init
line no.: 89
file: /usr/lib/python3.5/site-packages/qubesmanager/settings.py


line: settings_window = VMSettingsWindow(vm, qapp, args.tab)
func: main
line no.: 999
file: /usr/lib/python3.5/site-packages/qubesmanager/settings.py


line: load_entry_point('qubesmanager==4.0.4', 'console_scripts', 'qubes-vm-settings')()
func:
line no.: 9
file: /usr/bin/qubes-vm-settings


Related issues:

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Aug 1, 2017

Member

About workaround - use qvm-features tool for this.

Member

marmarek commented Aug 1, 2017

About workaround - use qvm-features tool for this.

@ktmdan

This comment has been minimized.

Show comment
Hide comment
@ktmdan

ktmdan Oct 2, 2017

Quick workaround for a lot of vms

for qube in `qvm-ls --format simple | cut -f1 -d ' '`; do qvm-features $qube services.meminfo-writer -D; done

ktmdan commented Oct 2, 2017

Quick workaround for a lot of vms

for qube in `qvm-ls --format simple | cut -f1 -d ' '`; do qvm-features $qube services.meminfo-writer -D; done

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Oct 2, 2017

Member
Member

marmarek commented Oct 2, 2017

@qubesos-bot

This comment has been minimized.

Show comment
Hide comment
@qubesos-bot

qubesos-bot Oct 16, 2017

Automated announcement from builder-github

The package qubes-manager-4.0.7-1.fc25 has been pushed to the r4.0 testing repository for dom0.
To test this update, please install it with the following command:

sudo qubes-dom0-update --enablerepo=qubes-dom0-current-testing

Changes included in this update

Automated announcement from builder-github

The package qubes-manager-4.0.7-1.fc25 has been pushed to the r4.0 testing repository for dom0.
To test this update, please install it with the following command:

sudo qubes-dom0-update --enablerepo=qubes-dom0-current-testing

Changes included in this update

@qubesos-bot qubesos-bot referenced this issue in QubesOS/updates-status Oct 16, 2017

Closed

manager v4.0.7 (r4.0) #270

@qubesos-bot

This comment has been minimized.

Show comment
Hide comment
@qubesos-bot

qubesos-bot Oct 30, 2017

Automated announcement from builder-github

The package qubes-manager-4.0.8-1.fc25 has been pushed to the r4.0 stable repository for dom0.
To install this update, please use the standard update command:

sudo qubes-dom0-update

Or update dom0 via Qubes Manager.

Changes included in this update

Automated announcement from builder-github

The package qubes-manager-4.0.8-1.fc25 has been pushed to the r4.0 stable repository for dom0.
To install this update, please use the standard update command:

sudo qubes-dom0-update

Or update dom0 via Qubes Manager.

Changes included in this update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment