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

Installer silently failed to setup templates. #3122

Open
test1943 opened this Issue Sep 25, 2017 · 6 comments

Comments

Projects
None yet
5 participants
@test1943

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

4.0-RC1

Affected TemplateVMs (e.g., fedora-23, if applicable):

All templates.


Steps to reproduce the behavior:

Download 4.0-RC1 iso and install, finish setup with default options(install templates, add sys-net/sys-usb and add domains.)

Expected behavior:

Installer should setup templates

Actual behavior:

Templates are not setup correctly, have no apps on any template or domain. sys-firewall won't start so could not reinstall templates.

[user@dom0]$ ls /var/lib/qubes/vm-templates/
debian-8  fedora-25  tmp-debian-8  tmp-fedora-25
[user@dom0]$ ls /var/lib/qubes/vm-templates/debian-8/
icon.png
[user@dom0]$ ls /var/lib/qubes/vm-templates/tmp-debian-8/
apps  root.img.part.00  root.img.part.01  root.img.part.02  icon.png (etc.)

[user@dom0]$ ls /var/lib/qubes/vm-templates/fedora-25/
icon.png
@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Sep 25, 2017

Member

Do you have them listed by qvm-ls? Almost empty /var/lib/qubes/vm-templates/fedora-25/ is ok, because now template data live in LVM.

Member

marmarek commented Sep 25, 2017

Do you have them listed by qvm-ls? Almost empty /var/lib/qubes/vm-templates/fedora-25/ is ok, because now template data live in LVM.

@test1943

This comment has been minimized.

Show comment
Hide comment
@test1943

test1943 Sep 26, 2017

Hi, @marmarek,

here are some screenshots of my new install(without debian template):

image

image

image

image
sys-firewall vm exits inmediately after this screenshot.

test1943 commented Sep 26, 2017

Hi, @marmarek,

here are some screenshots of my new install(without debian template):

image

image

image

image
sys-firewall vm exits inmediately after this screenshot.

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Sep 26, 2017

Member

Ok, so there is indeed something wrong with template setup, but not lack of the files.
There are two things:

  1. Why it happened.
  2. How to fix it.

The later one should be simple:

  1. Start fedora-25 template (either from the menu, or using qvm-start). Wait for the startup to complete (VM window will disappear, but VM will remain running).
  2. Call qvm-run --pass-io --service fedora-25 qubes.PostInstall
  3. Shutdown the template

This should fix menu etc.

As for diagnosis about why it happened, check sudo journalctl - about the date of initial configuration. Look for errors from initial-setup service.

Member

marmarek commented Sep 26, 2017

Ok, so there is indeed something wrong with template setup, but not lack of the files.
There are two things:

  1. Why it happened.
  2. How to fix it.

The later one should be simple:

  1. Start fedora-25 template (either from the menu, or using qvm-start). Wait for the startup to complete (VM window will disappear, but VM will remain running).
  2. Call qvm-run --pass-io --service fedora-25 qubes.PostInstall
  3. Shutdown the template

This should fix menu etc.

As for diagnosis about why it happened, check sudo journalctl - about the date of initial configuration. Look for errors from initial-setup service.

@DonnchaC

This comment has been minimized.

Show comment
Hide comment
@DonnchaC

DonnchaC Oct 10, 2017

I encountered a similar broken state after template setup. Sorry for the confusing explanation. I don't know the proper names for the different parts of the installer. In my case the problem was caused after going into the template options part of the installer a second time.

I selected the templates that I wanted and the installer began configuring those templates after I clicked to go back to the main screen. I then clicked into the template options again, after clicking back to the main screen again the installer started to configure the templates a second time, this time as 'debian-8-tmp' and 'fedora-tmp'. Perhaps there is a problem where the installer does not recognise that the VMs have already been configured.

This second configuration eventually failed with a bunch of Python exceptions from qvm-template-postprocess qubesadmin.exc.QubesException: root.img not found. The VMs that were left seemed misconfigured and had names like "fedora-25-tmp"

I encountered a similar broken state after template setup. Sorry for the confusing explanation. I don't know the proper names for the different parts of the installer. In my case the problem was caused after going into the template options part of the installer a second time.

I selected the templates that I wanted and the installer began configuring those templates after I clicked to go back to the main screen. I then clicked into the template options again, after clicking back to the main screen again the installer started to configure the templates a second time, this time as 'debian-8-tmp' and 'fedora-tmp'. Perhaps there is a problem where the installer does not recognise that the VMs have already been configured.

This second configuration eventually failed with a bunch of Python exceptions from qvm-template-postprocess qubesadmin.exc.QubesException: root.img not found. The VMs that were left seemed misconfigured and had names like "fedora-25-tmp"

@andrewdavidwong

This comment has been minimized.

Show comment
Hide comment
@andrewdavidwong

andrewdavidwong Oct 11, 2017

Member

@DonnchaC: That sounds familiar. I remember seeing something similar (#2433) in R3.2.

Member

andrewdavidwong commented Oct 11, 2017

@DonnchaC: That sounds familiar. I remember seeing something similar (#2433) in R3.2.

@SelfRando

This comment has been minimized.

Show comment
Hide comment
@SelfRando

SelfRando Oct 30, 2017

4.0 RC2 Initial Setup

I had the same problem that DonnchaC reports above.
The initial setup ran correctly the first time. I had left the room and when I returned I clicked again on the Qubes OS banner (which was now highlighted in blue so looked different from the previous time I had seen it).
The next screen opened and since I did not wish to make any changes I clicked Done at which point the setup script ran again. This time it failed (after quite a while) with some error messages that I did not record.

I booted Qubes for the first time and it loaded okay however no VMs would start.

To resolve this issue I did a full reinstall.

I suggest the Initial Setup script set a flag to show that it has been executed.

4.0 RC2 Initial Setup

I had the same problem that DonnchaC reports above.
The initial setup ran correctly the first time. I had left the room and when I returned I clicked again on the Qubes OS banner (which was now highlighted in blue so looked different from the previous time I had seen it).
The next screen opened and since I did not wish to make any changes I clicked Done at which point the setup script ran again. This time it failed (after quite a while) with some error messages that I did not record.

I booted Qubes for the first time and it loaded okay however no VMs would start.

To resolve this issue I did a full reinstall.

I suggest the Initial Setup script set a flag to show that it has been executed.

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