a-barinov / liteqube

Liteqube - put Qubes OS on a diet
52 stars 5 forks source link

1.Base install script renders OS useless #10

Closed kennethrrosen closed 2 years ago

kennethrrosen commented 2 years ago

I ran the install script within 1.Base, then attempted to run the install script from 2.Network, but received an error saying the disposable qvm wasn't installed. I rebooted the machine. Now I cannot access any VM, any dom0 application other than terminal, and the base uninstall script threw an error. I'm unable to use my system. Qvm-start from dom0 yields endless errors. Short of a fresh install, what are my options to recover my system?

a-barinov commented 2 years ago

Similar situation happened to me once when Qubes OS root ran out of free space and /var/lib/qubes/qubes.xml got destroyed. If that's the case then just restore latest backup from /var/lib/qubes/backup and you,ll be fine.

[EDIT] The way I found out my qubes.xml got destroyed is by looking at 'journalctl | grep error' (and using some other nasty words in place of 'error') to find what exactly goes wrong at startup.

kennethrrosen commented 2 years ago

I ended up doing fresh install and restoring from backup. How can I prevent on the next go around? After restore I'll try again.

a-barinov commented 2 years ago

Did you install from the latest release or from Master? I'm happy to run a test fresh install for you today to test the code paths, although still believe this was a qubes.xml corruption issue.

On the install you have, can you please provide the output of 'df' in dom0?

kennethrrosen commented 2 years ago

from the latest release

Filesystem 1K-blocks Used Available Use% Mounted on devtmpfs 1975360 0 1975360 0% /dev tmpfs 1996136 0 1996136 0% /dev/shm tmpfs 1996136 2816 1993320 1% /run /dev/mapper/qubes_dom0-root 51421872 5240668 43837012 11% / tmpfs 1996136 0 1996136 0% /tmp xenstore 1996136 640 1995496 1% /var/lib/xenstored /dev/nvme0n1p1 996780 121860 806108 14% /boot tmpfs 399224 24 399200 1% /run/user/1000

kennethrrosen commented 2 years ago

I've run 1.Base install script, moved to 2.Network and receive this error:

ERROR: core-dvm NOT FOUND, PLEASE RUN BASE INSTALL

as a test, I created a DVM named core-dvm and tried to rerun the script, only to get this error message:

ERROR: core-xorg NOT FOUND, PLEASE RUN BASE INSTALL

and when I attempt to uninstall BASE, it shows multiple errors that there are no such domains as core-xorg, core-keys, etc. and on a reattempt to reinstaall, I receive the following: qvm-template: error: Template 'debian-11-minimal' not found. I unpacked the latest release again to attempt a reinstall, but received an error that "vm-debian-core-root" already exists so it aborted

a-barinov commented 2 years ago

from the latest release

Filesystem 1K-blocks Used Available Use% Mounted on devtmpfs 1975360 0 1975360 0% /dev tmpfs 1996136 0 1996136 0% /dev/shm tmpfs 1996136 2816 1993320 1% /run /dev/mapper/qubes_dom0-root 51421872 5240668 43837012 11% / tmpfs 1996136 0 1996136 0% /tmp xenstore 1996136 640 1995496 1% /var/lib/xenstored /dev/nvme0n1p1 996780 121860 806108 14% /boot tmpfs 399224 24 399200 1% /run/user/1000

Definitely not a free disk space issue (which caused metadata corruption once for me). I'll now check my commits to lib.sh since last release to see what can cause ill side effects.

kennethrrosen commented 2 years ago

appreciate it and sorry for the bother! standing by

a-barinov commented 2 years ago

Hopefully fixed by commit #e9b0886861aa46ba4cc4469c1488ed4694304ef1 pushed a minute ago. A pretty silly bug causing every created qube to be called 'core-sound'. Base installer was not touched for a while now so I expect no other surprises for you. And thanks for your patience!

kennethrrosen commented 2 years ago

Hopefully fixed by commit #e9b0886861aa46ba4cc4469c1488ed4694304ef1 pushed a minute ago. A pretty silly bug causing every created qube to be called 'core-sound'. Base installer was not touched for a while now so I expect no other surprises for you. And thanks for your patience!

Success. Using litequbes as my base system now. Please let me know if I might assist with further testing.