[qubes-users] [R2b2] No such file or directory: '/var/lib/qubes/qubes.xml'

After the first reboot during install, there is a master, which guides through configuration steps.
I choose second option: “Just create default service VMs”, but the same result when I choose first option (all default VMs).

The configuration tool gives me the following error box:

Creating default Network VM failure:

Traceback (most recent call last):
File “/usr/bin/qvm-pci”, line 98, in main ()
File “/usr/bin/qvm-pci”, line 52, in main qvm_collection.lock_db_for_writing()
File “/usr/lib64/python2.7/site-packages/qubes/qubes.py”, line 2900, in lock_db_for_writing
self.qubes_store_file=open(self.qubes_store_filename,‘r+’)
IOError: [Errno 2] No such file or directory: ‘/var/lib/qubes/qubes.xml’

So, what should I do to complete setup?

Strange... This file should be created during installation process. You can
fix it manually:
qvm-init-storage
qvm-add-template --rpm fedora-18-x64
And then either rerun firstboot from root:
rm /etc/sysconfig/firstboot; firstboot
or create default VMs manually (search qubes-devel group archive for commands)

But I'm curious what goes wrong, can you provide logs from installation
process (/var/log/anaconda*)?

I tried to execute this sequence of commands:

rm /etc/sysconfig/firstboot
qvm-init-storage
qvm-add-template --rpm fedora-18-x64

ERROR: VM’s kernels directory doesn’t exist: /var/lib/qubes/vm-kernels/None

I’m curious what goes wrong, can you provide logs from installation process (/var/log/anaconda*)?

These lines looks suspicious for me:

21:49:43,570 INFO anaconda: Running Thread: AnaInstallThread (139923466352384)
21:49:45,138 INFO anaconda: Creating ext4 on /dev/sdc12
21:49:48,110 DEBUG anaconda: notifying kernel of ‘change’ event on device /sys/class/block/sdc12
21:49:48,521 DEBUG anaconda: isys.py:mount()- going to mount /dev/sdc12 on /mnt/sysimage as ext4 with options defaults
21:49:48,557 DEBUG anaconda: isys.py:mount()- going to mount /dev on /mnt/sysimage/dev as bind with options defaults,bind
21:49:48,570 DEBUG anaconda: isys.py:mount()- going to mount devpts on /mnt/sysimage/dev/pts as devpts with options gid=5,mode=620
21:49:48,581 INFO anaconda: failed to set SELinux context for /mnt/sysimage/dev/pts: [Errno 95] Operation not supported
21:49:48,583 DEBUG anaconda: isys.py:mount()- going to mount tmpfs on /mnt/sysimage/dev/shm as tmpfs with options defaults
21:49:48,593 INFO anaconda: failed to get default SELinux context for /proc: [Errno 2] No such file or directory
21:49:48,593 DEBUG anaconda: isys.py:mount()- going to mount proc on /mnt/sysimage/proc as proc with options defaults
21:49:48,601 INFO anaconda: failed to get default SELinux context for /proc: [Errno 2] No such file or directory
21:49:48,664 DEBUG anaconda: isys.py:mount()- going to mount sysfs on /mnt/sysimage/sys as sysfs with options defaults
21:49:48,675 INFO anaconda: failed to set SELinux context for /mnt/sysimage/sys: [Errno 95] Operation not supported
21:49:48,712 INFO anaconda: copy_to_sysimage: source ‘/etc/multipath/wwids’ does not exist.
21:49:48,712 INFO anaconda: copy_to_sysimage: source ‘/etc/multipath/bindings’ does not exist.
21:57:06,093 INFO anaconda: Performing post-install setup tasks
21:57:06,101 INFO anaconda: Installing bootloader
21:57:16,005 INFO anaconda: Thread Done: AnaInstallThread (139923466352384)

other errors:

grep [Ee]rror -B 3 *

I tried to execute this sequence of commands:

rm /etc/sysconfig/firstboot
qvm-init-storage
qvm-add-template --rpm fedora-18-x64

ERROR: VM's kernels directory doesn't exist: /var/lib/qubes/vm-kernels/None

Try to set default kernel with qubes-prefs tools. Then retry with
qvm-add-template.

I'm curious what goes wrong, can you provide logs from installation process

(/var/log/anaconda*)?

These lines looks suspicious for me:

21:49:43,570 INFO anaconda: Running Thread: AnaInstallThread
(139923466352384)
21:49:45,138 INFO anaconda: Creating ext4 on /dev/sdc12

(...)

21:49:48,581 INFO anaconda: failed to set SELinux context for
/mnt/sysimage/dev/pts: [Errno 95] Operation not supported

This is ok, SELinux is disabled in Qubes.

other errors:

# grep [Ee]rror -B 3 *
--
anaconda.packaging.log-
anaconda.packaging.log-21:57:06,088 INFO packaging: Installing
qubes-core-dom0-2.1.15-1.fc18.x86_64 (850/860)
anaconda.packaging.log-
anaconda.packaging.log:21:57:06,088 INFO packaging: xc: error: Could not
obtain handle on privileged command interface (2 = No such file or
directory): Internal error
--
anaconda.packaging.log-
anaconda.packaging.log-21:57:06,088 INFO packaging: xc =
xen.lowlevel.xc.xc()
anaconda.packaging.log-
anaconda.packaging.log:21:57:06,089 INFO packaging: xen.lowlevel.xc.Error:
(1, 'Internal error', 'xc_interface_open failed: No such file or directory')

This is the source of problem. Looks like you've started installer without
Xen. How did you done that? Some customized bootloader configuration?
There is slight chance that packages was installed in wrong order (some
missing dependencies), but haven't seen such problem ever in R2B2...

you’ve started installer without Xen

yes, that was the reason of failure.
Now I successfully completed the setup of Qubes R2 beta 2 from PXE.
(because setup from flash doesn’t work on my machine)