I am trying to build a Standalone HVM from the Kali Linux 2018.2 iso. I managed to install the following packages from
https://deb.qubes-os.org/r4.0/vm/pool/main/
libqrexec-utils2_4.0.20+deb8u1_amd64.deb
libqubesdb_4.0.8-1+deb8u1_amd64.deb
libqubes-rpc-filecopy2_4.0.20+deb8u1_amd64.deb
libvchan-xen_4.0.3-1+deb8u1_amd64.deb
libvchan-xen-dev_4.0.3-1+deb8u1_amd64.deb
libxen-4.8_4.8.4-1+deb8u1_amd64.deb
libxen-lowlevel1.0_4.8.4-1+deb8u1_amd64.deb
libxenstore3.0_4.8.4-1+deb8u1_amd64.deb
pulseaudio-qubes_4.0.15-1+deb8u1_amd64.deb
python-qubesdb_4.0.8-1+deb8u1_amd64.deb
python-xpyb_1.3.1-1_amd64.deb
qubes-core-agent_4.0.33-1+deb8u1_amd64.deb
qubes-core-agent-nautilus_4.0.33-1+deb8u1_amd64.deb
qubes-core-agent-networking_4.0.33-1+deb8u1_amd64.deb
qubes-core-agent-network-manager_4.0.33-1+deb8u1_amd64.deb
qubes-core-agent-passwordless-root_4.0.33-1+deb8u1_amd64.deb
qubes-core-agent-qrexec_4.0.33-1+deb8u1_amd64.deb
qubesdb_4.0.8-1+deb8u1_amd64.deb
qubesdb-vm_4.0.8-1+deb8u1_amd64.deb
qubes-desktop-linux-common_4.0.14-1+deb8u1_amd64.deb
qubes-gui-common_4.0.2+deb8u1_amd64.deb
qubes-input-proxy-receiver_1.0.12-1+deb8u1_amd64.deb
qubes-input-proxy-sender_1.0.12-1+deb8u1_amd64.deb
qubes-kernel-vm-support_4.0.20+deb8u1_amd64.deb
qubes-menus_4.0.14-1+deb8u1_amd64.deb
qubes-usb-proxy_1.0.18+deb8u1_amd64.deb
qubes-utils_4.0.20+deb8u1_amd64.deb
xenstore-utils_4.8.4-1+deb8u1_amd64.deb
xen-utils-common_4.8.4-1+deb8u1_all.deb
xserver-xorg-input-qubes_4.0.15-1+deb8u1_amd64.deb
xserver-xorg-video-dummyqbs_4.0.15-1+deb8u1_amd64.deb
But the trouble starts when I install these:
qubes-gui-agent_4.0.15-1+deb8u1_amd64.deb
qubes-vm-dependencies_4.0.2-1+deb8u1_amd64.deb
"vm-dependencies_4.0.2 depends on gui-agent already being installed."
When I install gui-agent_4.0.15, the X server shuts off and the window goes away. The VM is still running in the background but I cannot interact with it.
The dm log shows no noticeable errors except this:
qubes_gui: viewer disconnected, waiting for new connection
Rebooting the vm doesn't help unless I boot in single-user mode and remove gui-agent. Then I can run 'startx' and get the normal Kali desktop.
I cannot connect 'xl console' at any time. Running commands from dom0 with 'qvm-run' doesn't work. Shared clipboard doesn't work.
Networking and USB attaching both seem to work. File Copy works and nautilus menus are there. Passwordless-root does work. I did set a root password before installing the deb packages, but now it is blank, so I assume dom0 should have access to the X server to show application windows.
I have a feeling I am missing something... but I don't know what deb package does what.
Please let me know what I am missing or what I can check.
Thank you.