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

Cannot choose boot device for a Qube. bootfromdevice.py: 'qubesadmin.tools' has no attribute 'qvm_start' #3421

Closed
80tf3262p8 opened this Issue Dec 23, 2017 · 5 comments

Comments

Projects
None yet
7 participants
@80tf3262p8

Qubes OS version:

4.0

Affected TemplateVMs:

just dom0


Steps to reproduce the behavior:

Create a Qubes VM, no template, and try to choose a boot device.

Expected behavior:

The OK and Cancel buttons do something.

Actual behavior:

The OK and Cancel buttons do nothing.

General notes:

If I run qubes-vm-boot-from-device VMNAME I can see this error:

Traceback (most recent call last):
  File "/usr/lib/python3.5/site-packages/qubesmanager/bootfromdevice.py", line 65, in save_and_apply
    tools.qvm_start.main(['--cdrom', cdrom_location, self.vm.name])
AttributeError: module 'qubesadmin.tools' has no attribute 'qvm_start'

The problem seems to go away if I add, in the import section of /usr/lib/python3.5/site-packages/qubesmanager/bootfromdevice.py,

import qubesadmin.tools.qvm_start

@80tf3262p8

This comment has been minimized.

Show comment
Hide comment
@80tf3262p8

80tf3262p8 Dec 23, 2017

I don't know if that import line I gave really fixes the whole problem. I still can't select an ISO but I may just not know what I'm doing.

I don't know if that import line I gave really fixes the whole problem. I still can't select an ISO but I may just not know what I'm doing.

@opposablebrain

This comment has been minimized.

Show comment
Hide comment
@opposablebrain

opposablebrain Dec 23, 2017

Same here (4.0 latest testing). The import line is sufficient and I can complete a Win7 installation.

Same here (4.0 latest testing). The import line is sufficient and I can complete a Win7 installation.

@stephanemoulec

This comment has been minimized.

Show comment
Hide comment
@stephanemoulec

stephanemoulec Dec 26, 2017

Adding the import fixed error "AttributeError: module 'qubesadmin.tools' has no attribute 'qvm_start'" for me but I still can't add an ISO. When I click OK on qubes-vm-boot-from-device, I get the error message "Got empty response from qubesd. See journalctl in dom0 for details." Error in journalctl is:

File "/usr/share/qubes/templates/libvirt/devices/block.xml", line 3, in top-level template code
<source dev="{{ device.device_node }}" />
jinja2.exceptions.UndefinedError: 'qubes.devices.UnknownDevice object' has no attribute 'device_node'

stephanemoulec commented Dec 26, 2017

Adding the import fixed error "AttributeError: module 'qubesadmin.tools' has no attribute 'qvm_start'" for me but I still can't add an ISO. When I click OK on qubes-vm-boot-from-device, I get the error message "Got empty response from qubesd. See journalctl in dom0 for details." Error in journalctl is:

File "/usr/share/qubes/templates/libvirt/devices/block.xml", line 3, in top-level template code
<source dev="{{ device.device_node }}" />
jinja2.exceptions.UndefinedError: 'qubes.devices.UnknownDevice object' has no attribute 'device_node'

@marmarta marmarta referenced this issue in QubesOS/qubes-manager Jan 8, 2018

Merged

Boot gui fix #53

@marmarek marmarek referenced this issue in QubesOS/qubes-core-admin-client Jan 12, 2018

Merged

Various tools fixes/improvements #48

@marmarek marmarek reopened this Jan 12, 2018

@qubesos-bot

This comment has been minimized.

Show comment
Hide comment
@qubesos-bot

qubesos-bot Jan 12, 2018

Automated announcement from builder-github

The package qubes-manager-4.0.10-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.10-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

This comment has been minimized.

Show comment
Hide comment
@qubesos-bot

qubesos-bot Feb 6, 2018

Automated announcement from builder-github

The package qubes-manager-4.0.13-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.13-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