Windows USB integration with R4.1

Are you sure that iso is ok?

It was when I tried it a few days ago on Qubes 4.0.x.
I’ll recheck the sha1 on it.

Update: Same sha1. I took it over to my Linux box and it booted under VirtualBox.

Did you figure out how to install qubes-windows-tools to dom0?

I think I forgot set kernel to empty
qvm-prefs [windows-qube] kernel ""

Look at this topic. In short you can easily build it from sources and help to test it.

But there is no necessary QWT to test USB integration.

I have a suspicion…

My windows.iso is over 4G.
I’m trying a different windows.iso that is under 4G. (Waiting for the usb to finish writing.) My suspicion is that the usb-to-dom0 mount may be limited to 4G.

Empty kernel didn’t help? In common you don’t need to get iso to dom0, use it from sys-usb.

  1. Correct – empty kernel didn’t help.

  2. Got Windows to start the install process! The .iso file must NOT be larger than 4G. Now for the 30 minutes of “installing Windows”…

When this finished, I’ll be able to test the USB support. (I’m very excited that I got it this far.)

1 Like

One more finding to report: If the windows iso fails and it reports a segfault with the qube still running, then you can’t kill it from the qube manager AND shutdown will hang indefinitely. (Hard-shutdown by holding in the power button.)

Woo hoo!

Got Windows installed. Added the stubdom-linux-full, and set feature stubdom-qrexec.

I just tried a bunch of USB devices that I have lying around within arms reach of me.

  • Built-in laptop webcam: Attached and seen by Windows. Windows loads the drivers automagically and it appears to work.
  • Sound. Nope – requires pulseaudio. (Not a problem, my workaround is to assign the sound PCI card to Windows.)
  • USB thumb drive. Seen and detected as a drive. But eject generates a Qubes notification error "Detaching device USB… from win10 failed.
  • Built-in laptop fingerprint reader: Attached and seen by Windows. Windows loads the drivers.
  • USB calculator (I love my toys): Appears as a USB Composite device and acts like a keyboard. Works.

This is looking REALLY GOOD.

1 Like

Good news!

To get sound works in Windows try
qvm-features [windows-qube] audio-model ich6
and reboot VM.

Are you sure you tried attach USB not block device?
Was sys-usb (fedora-34?) updated with current-testing repos?..

Re: Sound
Woo hoo! Adding qvm-features [windows-qube] audio-model ich6 works great! Sound without any special changes.

Re: USB drive
I have a usb thumb drive. It has 1 partition. The partition is vfat named “NEAL”.
If I plug it into a linux box, it automounts as “NEAL”.
If I plug it into a standalone Windows box, it is seen as “NEAL (D:)”
If I plug it into Qubes 4.1, it is seen as two USB block devices:

  • sys-usb:sda - Flash_Disk()
  • sys-usb:sda1 - Flash_Disk (NEAL)

I tried attaching each block device (1 at a time) to the win10 VM. Both attach/detach cleanly from the Qubes side. However, win10 doesn’t see either of them.

The same drive also appears under “USB Devices” as sys-usb:2-4.1.2 - USB_2.0_Flash_Disk_[hex]. Attaching this to win10 immediately sees the drive and sees “NEAL (D:)”. Detaching generates a Qubes notification that it has been detached, and then a second notification ‘Error’ that it cannot be detached. (I think the eject function is being called twice.)

What do you think of lag in the sound? Really just curious. I bought a 20 dollar usb add on board and use that for a FIIO K3 dac in windows ;so, I probably won’t change unless my wife steals my DAC… :grinning:

This used to work on one of my VM’s. It’s broken now but on my newest HVM activating stubdom-qrexec just leads to a black screen and then halts.
Can we get a qvm-features list over what we need?
Several options clash, e.g. qrexec and stubdom-qrexec.
Currently stubdom-qrexec needs to be deleted, not just set to 0.
I installed full QWT and this package and USB passthrough worked magically. Now on my new one it doesn’t.
qvm-features gui-emulated 1?
qvm-features gui 1?

With current-testing for sys-usb you mean this repo right?

# Qubes updates candidates repository
#deb [arch=amd64] tor+http://deb.qubesosfasa4zl44o4tws22di6kepyzfeqv3tg4e3ztknltfxqrymdad.onion/r4.1/vm buster-testing main

Host system halted or HVM??? What about log messages in /var/log/xen/console/guest-[qube-name]-dm.log ?

Known windows related qvm-features:
gui-emulated - requires 1 for windows 10 systems with QWT, force stubdomain window instead of waiting qubes gui agent
gui - advertised by QWT to 1 to drop stubdomain window and wait qubes gui agent. Requires manual set 0 for windows 10 and keep 1 for windows 7 with QWT.
slic - feature to provide license stored in ACPI SLIC table to HVM. Might be useful for Windows 7/10 OEM version installed from host systems with fabricated Windows. Might be /sys/firmware/acpi/tables/SLIC or file, copied from another host.
audio-model - emulated model QEMU audio device. Might be ich6 or ich9.
qrexec - feature advertised by QWT to be ready to qrexec communication with guest qrexec-agent.
stubdom-qrexec - feature to redirect USB communication via stubdomain instead of guest service (which is unavailable for Windows).

correct. Pretty useful to enable on beta-version testing

With stubdom-qrexec 1:
qrexec-daemon startup failed: 2021-07-17 19:15:59.160 qrexec-daemon[32764]: qrexec-daemon.c:135:sigchld_parent_handler: Connection to the VM failed
VM halts. Qubes has never halted.

With

rpc-clipboard  1
gui            0
gui-emulated   1
qrexec         1

and trying to attach USB devices:
Error: QubesException - Device attach failed: [Timestamp] qrexec-client[44971]: qrexec-client.c:671:main: Failed to open datra vchan connection

Thanks for tipping me about gui 0. With gui 1 I only could launch a few games, which were buggy. Now I can launch pretty much any game, but there seems to be input problems without USB passthrough working.

Did you install xen-hvm-stubdom-linux-full package? Does dom0 fully updated with current-testing repos?

Yes, and strange thing is USB passhtrough worked on my first Windows HVM.
But after a lot of fiddling with it, I cannot launch it. I can do some more testing later.
But on the one I’ve been using the past couple days, I get those errors. Just strange.

Also log messages from stubdomain could help - /var/log/xen/console/guest-[qube-name]-dm.log

os              Windows
rpc-clipboard   1
gui             0
gui-emulated    1
audio-model     ich9
stubdom-qrexec  1

[2021-07-17 20:16:10] Logfile Opened
[2021-07-17 20:16:10] Linux version 5.4.74-xen-stubdom (mockbuild@build-fedora4) (gcc version 10.3.1 20210422 (Red Hat 10.3.1-1) (GCC)) #1 Wed Jun 23 14:50:13 CEST 2021
[2021-07-17 20:16:10] Command line: 
[2021-07-17 20:16:10] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[2021-07-17 20:16:10] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[2021-07-17 20:16:10] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[2021-07-17 20:16:10] x86/fpu: xstate_offset[2]:  576, xstate_sizes[2]:  256
[2021-07-17 20:16:10] x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'standard' format.
[2021-07-17 20:16:10] Released 0 page(s)
[2021-07-17 20:16:10] BIOS-provided physical RAM map:
[2021-07-17 20:16:10] Xen: [mem 0x0000000000000000-0x000000000009ffff] usable
[2021-07-17 20:16:10] Xen: [mem 0x00000000000a0000-0x00000000000fffff] reserved
[2021-07-17 20:16:10] Xen: [mem 0x0000000000100000-0x0000000008ffffff] usable
[2021-07-17 20:16:10] NX (Execute Disable) protection: active
[2021-07-17 20:16:10] Hypervisor detected: Xen PV
[2021-07-17 20:16:10] tsc: Fast TSC calibration failed
[2021-07-17 20:16:10] tsc: Detected 3990.778 MHz processor
[2021-07-17 20:16:10] last_pfn = 0x9000 max_arch_pfn = 0x400000000
[2021-07-17 20:16:10] x86/PAT: Configuration [0-7]: WB  WT  UC- UC  WC  WP  UC  UC  
[2021-07-17 20:16:10] RAMDISK: [mem 0x02000000-0x03b6cfff]
[2021-07-17 20:16:10] Zone ranges:
[2021-07-17 20:16:10]   DMA32    [mem 0x0000000000001000-0x0000000008ffffff]
[2021-07-17 20:16:10]   Normal   empty
[2021-07-17 20:16:10] Movable zone start for each node
[2021-07-17 20:16:10] Early memory node ranges
[2021-07-17 20:16:10]   node   0: [mem 0x0000000000001000-0x000000000009ffff]
[2021-07-17 20:16:10]   node   0: [mem 0x0000000000100000-0x0000000008ffffff]
[2021-07-17 20:16:10] Zeroed struct page in unavailable ranges: 28769 pages
[2021-07-17 20:16:10] Initmem setup node 0 [mem 0x0000000000001000-0x0000000008ffffff]
[2021-07-17 20:16:10] p2m virtual area at (____ptrval____), size is 200000
[2021-07-17 20:16:10] Remapped 0 page(s)
[2021-07-17 20:16:10] [mem 0x09000000-0xffffffff] available for PCI devices
[2021-07-17 20:16:10] Booting paravirtualized kernel on Xen
[2021-07-17 20:16:10] Xen version: 4.14.2 (preserve-AD)
[2021-07-17 20:16:10] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645519600211568 ns
[2021-07-17 20:16:10] Built 1 zonelists, mobility grouping on.  Total pages: 36170
[2021-07-17 20:16:10] Kernel command line: 
[2021-07-17 20:16:10] Dentry cache hash table entries: 32768 (order: 6, 262144 bytes, linear)
[2021-07-17 20:16:10] Inode-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[2021-07-17 20:16:10] mem auto-init: stack:byref_all, heap alloc:off, heap free:off
[2021-07-17 20:16:10] Memory: 101372K/147068K available (6146K kernel code, 366K rwdata, 400K rodata, 684K init, 968K bss, 45696K reserved, 0K cma-reserved)
[2021-07-17 20:16:10] random: get_random_u64 called from 0xffffffff8109d29c with crng_init=0
[2021-07-17 20:16:10] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[2021-07-17 20:16:10] Using NULL legacy PIC
[2021-07-17 20:16:10] NR_IRQS: 4352, nr_irqs: 24, preallocated irqs: 0
[2021-07-17 20:16:10] xen:events: Using FIFO-based ABI
[2021-07-17 20:16:10] printk: console [hvc0] enabled
[2021-07-17 20:16:10] clocksource: xen: mask: 0xffffffffffffffff max_cycles: 0x1cd42e4dffb, max_idle_ns: 881590591483 ns
[2021-07-17 20:16:10] installing Xen timer for CPU 0
[2021-07-17 20:16:10] clocksource: tsc-early: mask: 0xffffffffffffffff max_cycles: 0x730cac38ca2, max_idle_ns: 881591066539 ns
[2021-07-17 20:16:10] Calibrating delay loop (skipped), value calculated using timer frequency.. 7981.55 BogoMIPS (lpj=15963112)
[2021-07-17 20:16:10] pid_max: default: 4096 minimum: 301
[2021-07-17 20:16:10] Mount-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[2021-07-17 20:16:10] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[2021-07-17 20:16:10] Last level iTLB entries: 4KB 1024, 2MB 1024, 4MB 1024
[2021-07-17 20:16:10] Last level dTLB entries: 4KB 1024, 2MB 1024, 4MB 1024, 1GB 4
[2021-07-17 20:16:10] CPU: Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz (family: 0x6, model: 0x3c, stepping: 0x3)
[2021-07-17 20:16:10] Spectre V1 : Mitigation: usercopy/swapgs barriers and __user pointer sanitization
[2021-07-17 20:16:10] Spectre V2 : Mitigation: Full generic retpoline
[2021-07-17 20:16:10] Spectre V2 : Spectre v2 / SpectreRSB mitigation: Filling RSB on context switch
[2021-07-17 20:16:10] Spectre V2 : Enabling Restricted Speculation for firmware calls
[2021-07-17 20:16:10] Spectre V2 : mitigation: Enabling conditional Indirect Branch Prediction Barrier
[2021-07-17 20:16:10] Speculative Store Bypass: Mitigation: Speculative Store Bypass disabled via prctl and seccomp
[2021-07-17 20:16:10] SRBDS: Unknown: Dependent on hypervisor status
[2021-07-17 20:16:10] MDS: Mitigation: Clear CPU buffers
[2021-07-17 20:16:10] Performance Events: unsupported p6 CPU model 60 no PMU driver, software events only.
[2021-07-17 20:16:10] devtmpfs: initialized
[2021-07-17 20:16:10] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[2021-07-17 20:16:10] futex hash table entries: 16 (order: -4, 384 bytes, linear)
[2021-07-17 20:16:10] NET: Registered protocol family 16
[2021-07-17 20:16:10] xen:grant_table: Grant tables using version 1 layout
[2021-07-17 20:16:10] Grant table initialized
[2021-07-17 20:16:10] PCI: setting up Xen PCI frontend stub
[2021-07-17 20:16:10] xen:balloon: Initialising balloon driver
[2021-07-17 20:16:10] usbcore: registered new interface driver usbfs
[2021-07-17 20:16:10] usbcore: registered new interface driver hub
[2021-07-17 20:16:10] usbcore: registered new device driver usb
[2021-07-17 20:16:10] PCI: System does not support PCI
[2021-07-17 20:16:10] clocksource: Switched to clocksource xen
[2021-07-17 20:16:10] NET: Registered protocol family 2
[2021-07-17 20:16:10] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
[2021-07-17 20:16:10] TCP established hash table entries: 2048 (order: 2, 16384 bytes, linear)
[2021-07-17 20:16:10] TCP bind hash table entries: 2048 (order: 2, 16384 bytes, linear)
[2021-07-17 20:16:10] TCP: Hash tables configured (established 2048 bind 2048)
[2021-07-17 20:16:10] UDP hash table entries: 128 (order: 0, 4096 bytes, linear)
[2021-07-17 20:16:10] UDP-Lite hash table entries: 128 (order: 0, 4096 bytes, linear)
[2021-07-17 20:16:10] NET: Registered protocol family 1
[2021-07-17 20:16:10] Unpacking initramfs...
[2021-07-17 20:16:11] Freeing initrd memory: 28084K
[2021-07-17 20:16:11] workingset: timestamp_bits=62 max_order=15 bucket_order=0
[2021-07-17 20:16:11] xen:xen_evtchn: Event-channel device installed
[2021-07-17 20:16:11] Invalid max_queues (4), will use default max: 1.
[2021-07-17 20:16:11] tun: Universal TUN/TAP device driver, 1.6
[2021-07-17 20:16:11] xen_netfront: Initialising Xen virtual ethernet driver
[2021-07-17 20:16:11] vhci_hcd vhci_hcd.0: USB/IP Virtual Host Controller
[2021-07-17 20:16:11] vhci_hcd vhci_hcd.0: new USB bus registered, assigned bus number 1
[2021-07-17 20:16:11] vhci_hcd: created sysfs vhci_hcd.0
[2021-07-17 20:16:11] hub 1-0:1.0: USB hub found
[2021-07-17 20:16:11] hub 1-0:1.0: 8 ports detected
[2021-07-17 20:16:11] vhci_hcd vhci_hcd.0: USB/IP Virtual Host Controller
[2021-07-17 20:16:11] vhci_hcd vhci_hcd.0: new USB bus registered, assigned bus number 2
[2021-07-17 20:16:11] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[2021-07-17 20:16:11] hub 2-0:1.0: USB hub found
[2021-07-17 20:16:11] hub 2-0:1.0: 8 ports detected
[2021-07-17 20:16:11] NET: Registered protocol family 17
[2021-07-17 20:16:11] sched_clock: Marking stable (226778009, 169943)->(230478570, -3530618)
[2021-07-17 20:16:11] random: fast init done
[2021-07-17 20:16:11] blkfront: xvda: flush diskcache: enabled; persistent grants: enabled; indirect descriptors: enabled;
[2021-07-17 20:16:11]  xvda: xvda1 xvda2
[2021-07-17 20:16:11] blkfront: xvdb: flush diskcache: enabled; persistent grants: enabled; indirect descriptors: enabled;
[2021-07-17 20:16:11]  xvdb: xvdb1 xvdb2
[2021-07-17 20:16:11] blkfront: xvdc: flush diskcache: enabled; persistent grants: enabled; indirect descriptors: enabled;
[2021-07-17 20:16:11] Freeing unused kernel image memory: 684K
[2021-07-17 20:16:11] Write protecting the kernel read-only data: 10240k
[2021-07-17 20:16:11] Freeing unused kernel image memory: 2040K
[2021-07-17 20:16:11] Freeing unused kernel image memory: 1648K
[2021-07-17 20:16:11] Run /init as init process
[2021-07-17 20:16:11] + mount -t devtmpfs none /dev
[2021-07-17 20:16:11] + mount -t sysfs /sys /sys
[2021-07-17 20:16:11] + mount -t proc /proc /proc
[2021-07-17 20:16:11] + mount -t tmpfs -o 'size=1m,nodev,noexec' /tmp /tmp
[2021-07-17 20:16:11] + mount -o remount,ro /
[2021-07-17 20:16:11] + echo 1
[2021-07-17 20:16:11] + printf '%d\n' 1073741824
[2021-07-17 20:16:11] + /bin/xenstore-read target
[2021-07-17 20:16:11] + domid=19
[2021-07-17 20:16:11] + xenstore-read /local/domain/19/vm
[2021-07-17 20:16:11] + vm_path=/vm/588c219a-0772-41bf-9b7e-d08fbc5b1d0a
[2021-07-17 20:16:11] + sort
[2021-07-17 20:16:11] + xenstore-list -p /vm/588c219a-0772-41bf-9b7e-d08fbc5b1d0a/image/dm-argv
[2021-07-17 20:16:11] + xenstore-read /vm/588c219a-0772-41bf-9b7e-d08fbc5b1d0a/image/dm-argv/001 /vm/588c219a-0772-41bf-9b7e-d08fbc5b1d0a/image/dm-argv/002 /vm/588c219a-0772-41bf-9b7e-d08fbc5b1d0a/image/dm-argv/003 /vm/588c219a-0772-41bf-9b7e-d08fbc5b1d0a/image/dm-argv/004 /vm/588c219a-0772-41bf-9b7e-d08fbc5b1d0a/image/dm-argv/005 /vm/588c219a-0772-41bf-9b7e-d08fbc5b1d0a/image/dm-argv/006 /vm/588c219a-0772-41bf-9b7e-d08fbc5b1d0a/image/dm-argv/007 /vm/588c219a-0772-41bf-9b7e-d08fbc5b1d0a/image/dm-argv/008 /vm/588c219a-0772-41bf-9b7e-d08fbc5b1d0a/image/dm-argv/009 /vm/588c219a-0772-41bf-9b7e-d08fbc5b1d0a/image/dm-argv/010 /vm/588c219a-0772-41bf-9b7e-d08fbc5b1d0a/image/dm-argv/011 /vm/588c219a-0772-41bf-9b7e-d08fbc5b1d0a/image/dm-argv/012 /vm/588c219a-0772-41bf-9b7e-d08fbc5b1d0a/image/dm-argv/013 /vm/588c219a-0772-41bf-9b7e-d08fbc5b1d0a/image/dm-argv/014 /vm/588c219a-0772-41bf-9b7e-d08fbc5b1d0a/image/dm-argv/015 /vm/588c219a-0772-41bf-9b7e-d08fbc5b1d0a/image/dm-argv/016 /vm/588c219a-0772-41bf-9b7e-d08fbc5b1d0a/image/dm-argv/017 /vm/588c219a-0772-41bf-9b7e-d08fbc5b1d0a/image/dm-argv/018 /vm/588c219a-0772-41bf-9b7e-d08fbc5b1d0a/image/dm-argv/019 /vm/588c219a-0772-41bf-9b7e-d08fbc5b1d0a/image/dm-argv/020 /vm/588c219a-0772-41bf-9b7e-d08fbc5b1d0a/image/dm-argv/021 /vm/588c219a-0772-41bf-9b7e-d08fbc5b1d0a/image/dm-argv/022 /vm/588c219a-0772-41bf-9b7e-d08fbc5b1d0a/image/dm-argv/023 /vm/588c219a-0772-41bf-9b7e-d08fbc5b1d0a/image/dm-argv/024 /vm/588c219a-0772-41bf-9b7e-d08fbc5b1d0a/image/dm-argv/025 /vm/588c219a-0772-41bf-9b7e-d08fbc5b1d0a/image/dm-argv/026 /vm/588c219a-0772-41bf-9b7e-d08fbc5b1d0a/image/dm-argv/027 /vm/588c219a-0772-41bf-9b7e-d08fbc5b1d0a/image/dm-argv/028 /vm/588c219a-0772-41bf-9b7e-d08fbc5b1d0a/image/dm-argv/029 /vm/588c219a-0772-41bf-9b7e-d08fbc5b1d0a/image/dm-argv/030 /vm/588c219a-0772-41bf-9b7e-d08fbc5b1d0a/image/dm-argv/031 /vm/588c219a-0772-41bf-9b7e-d08fbc5b1d0a/image/dm-argv/032 /vm/588c219a-0772-41bf-9b7e-d08fbc5b1d0a/image/dm-argv/033 /vm/588c219a-0772-41bf-9b7e-d08fbc5b1d0a/image/dm-argv/034 /vm/588c219a-0772-41bf-9b7e-d08fbc5b1d0a/image/dm-argv/035 /vm/588c219a-0772-41bf-9b7e-d08fbc5b1d0a/image/dm-argv/036 /vm/588c219a-0772-41bf-9b7e-d08fbc5b1d0a/image/dm-argv/037 /vm/588c219a-0772-41bf-9b7e-d08fbc5b1d0a/image/dm-argv/038
[2021-07-17 20:16:11] + dm_args='-xen-domid
[2021-07-17 20:16:11] 19
[2021-07-17 20:16:11] -no-shutdown
[2021-07-17 20:16:11] -nodefaults
[2021-07-17 20:16:11] -no-user-config
[2021-07-17 20:16:11] -name
[2021-07-17 20:16:11] gpu_WHVM-back
[2021-07-17 20:16:11] -display
[2021-07-17 20:16:11] none
[2021-07-17 20:16:11] -device
[2021-07-17 20:16:11] VGA,vgamem_mb=16
[2021-07-17 20:16:11] -boot
[2021-07-17 20:16:11] order=dc
[2021-07-17 20:16:11] -device
[2021-07-17 20:16:11] usb-ehci,id=ehci
[2021-07-17 20:16:11] -device
[2021-07-17 20:16:11] usb-tablet,bus=ehci.0
[2021-07-17 20:16:11] -soundhw
[2021-07-17 20:16:11] ich9
[2021-07-17 20:16:11] -smp
[2021-07-17 20:16:11] 16,maxcpus=16
[2021-07-17 20:16:11] -device
[2021-07-17 20:16:11] rtl8139,id=nic0,netdev=net0,mac=00:16:3e:5e:6c:00
[2021-07-17 20:16:11] -netdev
[2021-07-17 20:16:11] type=tap,id=net0,ifname=vif19.0-emu,script=no,downscript=no
[2021-07-17 20:16:11] -display
[2021-07-17 20:16:11] qubes-gui,domid=0,log-level=0
[2021-07-17 20:16:11] -machine
[2021-07-17 20:16:11] xenfv
[2021-07-17 20:16:11] -qubes-net:client_ip=10.137.0.63,dns_0=10.139.1.1,dns_1=10.139.1.2,gw=10.137.0.23,netmask=255.255.255.255
[2021-07-17 20:16:11] -m
[2021-07-17 20:16:11] 5484
[2021-07-17 20:16:11] -drive
[2021-07-17 20:16:11] file=/dev/xvda,if=ide,index=0,media=disk,format=host_device,cache=writeback
[2021-07-17 20:16:11] -drive
[2021-07-17 20:16:11] file=/dev/xvdb,if=ide,index=1,media=disk,format=host_device,cache=writeback
[2021-07-17 20:16:11] -drive
[2021-07-17 20:16:11] file=/dev/xvdc,if=ide,index=2,media=disk,format=host_device,cache=writeback'
[2021-07-17 20:16:11] + usb_args=
[2021-07-17 20:16:11] + test -e /bin/qrexec-agent
[2021-07-17 20:16:11] + usb_args='-device
[2021-07-17 20:16:11] nec-usb-xhci,id=xhci'
[2021-07-17 20:16:11] + mkdir -p /var/run/qubes
[2021-07-17 20:16:11] + touch /dev/mdev.log
[2021-07-17 20:16:11] + USER=root qrexec-agent
[2021-07-17 20:16:11] + mdev -d
[2021-07-17 20:16:11] + sed -n '/^-soundhw/ {n;p}'
[2021-07-17 20:16:11] + echo '-xen-domid
[2021-07-17 20:16:11] 19
[2021-07-17 20:16:11] -no-shutdown
[2021-07-17 20:16:11] -nodefaults
[2021-07-17 20:16:11] -no-user-config
[2021-07-17 20:16:11] -name
[2021-07-17 20:16:11] gpu_WHVM-back
[2021-07-17 20:16:11] -display
[2021-07-17 20:16:11] none
[2021-07-17 20:16:11] -device
[2021-07-17 20:16:11] VGA,vgamem_mb=16
[2021-07-17 20:16:11] -boot
[2021-07-17 20:16:11] order=dc
[2021-07-17 20:16:11] -device
[2021-07-17 20:16:11] usb-ehci,id=ehci
[2021-07-17 20:16:11] -device
[2021-07-17 20:16:11] usb-tablet,bus=ehci.0
[2021-07-17 20:16:11] -soundhw
[2021-07-17 20:16:11] ich9
[2021-07-17 20:16:11] -smp
[2021-07-17 20:16:11] 16,maxcpus=16
[2021-07-17 20:16:11] -device
[2021-07-17 20:16:11] rtl8139,id=nic0,netdev=net0,mac=00:16:3e:5e:6c:00
[2021-07-17 20:16:11] -netdev
[2021-07-17 20:16:11] type=tap,id=net0,ifname=vif19.0-emu,script=no,downscript=no
[2021-07-17 20:16:11] -display
[2021-07-17 20:16:11] qubes-gui,domid=0,log-level=0
[2021-07-17 20:16:11] -machine
[2021-07-17 20:16:11] xenfv
[2021-07-17 20:16:11] -qubes-net:client_ip=10.137.0.63,dns_0=10.139.1.1,dns_1=10.139.1.2,gw=10.137.0.23,netmask=255.255.255.255
[2021-07-17 20:16:11] -m
[2021-07-17 20:16:11] 5484
[2021-07-17 20:16:11] -drive
[2021-07-17 20:16:11] file=/dev/xvda,if=ide,index=0,media=disk,format=host_device,cache=writeback
[2021-07-17 20:16:11] -drive
[2021-07-17 20:16:11] file=/dev/xvdb,if=ide,index=1,media=disk,format=host_device,cache=writeback
[2021-07-17 20:16:11] -drive
[2021-07-17 20:16:11] file=/dev/xvdc,if=ide,index=2,media=disk,format=host_device,cache=writeback'
[2021-07-17 20:16:11] + audio_model=ich9
[2021-07-17 20:16:11] + '[' -n ich9 ]
[2021-07-17 20:16:11] + model_args=
[2021-07-17 20:16:11] + '[' ich9 '==' ich6 ]
[2021-07-17 20:16:11] + export 'XDG_CONFIG_HOME=/tmp'
[2021-07-17 20:16:11] + pa_args='-audiodev
[2021-07-17 20:16:11] pa,id=qemupa,server=unix:/tmp/pa.sock'
[2021-07-17 20:16:11] + pulseaudio '--use-pid-file=no' '--daemonize=no' '--exit-idle-time=-1' '--disable-shm=yes' -n -L 'module-native-protocol-unix auth-anonymous=1 socket=/tmp/pa.sock' -L 'module-vchan-sink domid=0'
[2021-07-17 20:16:11] random: pulseaudio: uninitialized urandom read (4 bytes read)
[2021-07-17 20:16:11] + sed -n /^-qubes-net:/p
[2021-07-17 20:16:11] + echo '-xen-domid
[2021-07-17 20:16:11] 19
[2021-07-17 20:16:11] -no-shutdown
[2021-07-17 20:16:11] -nodefaults
[2021-07-17 20:16:11] -no-user-config
[2021-07-17 20:16:11] -name
[2021-07-17 20:16:11] gpu_WHVM-back
[2021-07-17 20:16:11] -display
[2021-07-17 20:16:11] none
[2021-07-17 20:16:11] -device
[2021-07-17 20:16:11] VGA,vgamem_mb=16
[2021-07-17 20:16:11] -boot
[2021-07-17 20:16:11] order=dc
[2021-07-17 20:16:11] -device
[2021-07-17 20:16:11] usb-ehci,id=ehci
[2021-07-17 20:16:11] -device
[2021-07-17 20:16:11] usb-tablet,bus=ehci.0
[2021-07-17 20:16:11] -soundhw
[2021-07-17 20:16:11] ich9
[2021-07-17 20:16:11] -smp
[2021-07-17 20:16:11] 16,maxcpus=16
[2021-07-17 20:16:11] -device
[2021-07-17 20:16:11] rtl8139,id=nic0,netdev=net0,mac=00:16:3e:5e:6c:00
[2021-07-17 20:16:11] -netdev
[2021-07-17 20:16:11] type=tap,id=net0,ifname=vif19.0-emu,script=no,downscript=no
[2021-07-17 20:16:11] -display
[2021-07-17 20:16:11] qubes-gui,domid=0,log-level=0
[2021-07-17 20:16:11] -machine
[2021-07-17 20:16:11] xenfv
[2021-07-17 20:16:11] -qubes-net:client_ip=10.137.0.63,dns_0=10.139.1.1,dns_1=10.139.1.2,gw=10.137.0.23,netmask=255.255.255.255
[2021-07-17 20:16:11] -m
[2021-07-17 20:16:11] 5484
[2021-07-17 20:16:11] -drive
[2021-07-17 20:16:11] file=/dev/xvda,if=ide,index=0,media=disk,format=host_device,cache=writeback
[2021-07-17 20:16:11] -drive
[2021-07-17 20:16:11] file=/dev/xvdb,if=ide,index=1,media=disk,format=host_device,cache=writeback
[2021-07-17 20:16:11] -drive
[2021-07-17 20:16:11] file=/dev/xvdc,if=ide,index=2,media=disk,format=host_device,cache=writeback'
[2021-07-17 20:16:11] + net_args='-qubes-net:client_ip=10.137.0.63,dns_0=10.139.1.1,dns_1=10.139.1.2,gw=10.137.0.23,netmask=255.255.255.255'
[2021-07-17 20:16:11] random: pulseaudio: uninitialized urandom read (4 bytes read)
[2021-07-17 20:16:11] W: [pulseaudio] authkey.c: .[1mFailed to open cookie file '/tmp/pulse/cookie': No such file or directory.[0m
[2021-07-17 20:16:11] W: [pulseaudio] authkey.c: .[1mFailed to load authentication key '/tmp/pulse/cookie': No such file or directory.[0m
[2021-07-17 20:16:11] W: [pulseaudio] authkey.c: .[1mFailed to open cookie file '//.pulse-cookie': No such file or directory.[0m
[2021-07-17 20:16:11] W: [pulseaudio] authkey.c: .[1mFailed to load authentication key '//.pulse-cookie': No such file or directory.[0m
[2021-07-17 20:16:11] random: pulseaudio: uninitialized urandom read (256 bytes read)
[2021-07-17 20:16:11] E: [pulseaudio] module-vchan-sink.c: .[1;31mvchan module loading.[0m
[2021-07-17 20:16:11] E: [pulseaudio] module-vchan-sink.c: .[1;31musing domid: 0.[0m
[2021-07-17 20:16:11] + sed /^-qubes-net:/d
[2021-07-17 20:16:11] + echo '-xen-domid
[2021-07-17 20:16:11] 19
[2021-07-17 20:16:11] -no-shutdown
[2021-07-17 20:16:11] -nodefaults
[2021-07-17 20:16:11] -no-user-config
[2021-07-17 20:16:11] -name
[2021-07-17 20:16:11] gpu_WHVM-back
[2021-07-17 20:16:11] -display
[2021-07-17 20:16:11] none
[2021-07-17 20:16:11] -device
[2021-07-17 20:16:11] VGA,vgamem_mb=16
[2021-07-17 20:16:11] -boot
[2021-07-17 20:16:11] order=dc
[2021-07-17 20:16:11] -device
[2021-07-17 20:16:11] usb-ehci,id=ehci
[2021-07-17 20:16:11] -device
[2021-07-17 20:16:11] usb-tablet,bus=ehci.0
[2021-07-17 20:16:11] -soundhw
[2021-07-17 20:16:11] ich9
[2021-07-17 20:16:11] -smp
[2021-07-17 20:16:11] 16,maxcpus=16
[2021-07-17 20:16:11] -device
[2021-07-17 20:16:11] rtl8139,id=nic0,netdev=net0,mac=00:16:3e:5e:6c:00
[2021-07-17 20:16:11] -netdev
[2021-07-17 20:16:11] type=tap,id=net0,ifname=vif19.0-emu,script=no,downscript=no
[2021-07-17 20:16:11] -display
[2021-07-17 20:16:11] qubes-gui,domid=0,log-level=0
[2021-07-17 20:16:11] -machine
[2021-07-17 20:16:11] xenfv
[2021-07-17 20:16:11] -qubes-net:client_ip=10.137.0.63,dns_0=10.139.1.1,dns_1=10.139.1.2,gw=10.137.0.23,netmask=255.255.255.255
[2021-07-17 20:16:11] -m
[2021-07-17 20:16:11] 5484
[2021-07-17 20:16:11] -drive
[2021-07-17 20:16:11] file=/dev/xvda,if=ide,index=0,media=disk,format=host_device,cache=writeback
[2021-07-17 20:16:11] -drive
[2021-07-17 20:16:11] file=/dev/xvdb,if=ide,index=1,media=disk,format=host_device,cache=writeback
[2021-07-17 20:16:11] -drive
[2021-07-17 20:16:11] file=/dev/xvdc,if=ide,index=2,media=disk,format=host_device,cache=writeback'
[2021-07-17 20:16:11] + dm_args='-xen-domid
[2021-07-17 20:16:11] 19
[2021-07-17 20:16:11] -no-shutdown
[2021-07-17 20:16:11] -nodefaults
[2021-07-17 20:16:11] -no-user-config
[2021-07-17 20:16:11] -name
[2021-07-17 20:16:11] gpu_WHVM-back
[2021-07-17 20:16:11] -display
[2021-07-17 20:16:11] none
[2021-07-17 20:16:11] -device
[2021-07-17 20:16:11] VGA,vgamem_mb=16
[2021-07-17 20:16:11] -boot
[2021-07-17 20:16:11] order=dc
[2021-07-17 20:16:11] -device
[2021-07-17 20:16:11] usb-ehci,id=ehci
[2021-07-17 20:16:11] -device
[2021-07-17 20:16:11] usb-tablet,bus=ehci.0
[2021-07-17 20:16:11] -soundhw
[2021-07-17 20:16:11] ich9
[2021-07-17 20:16:11] -smp
[2021-07-17 20:16:11] 16,maxcpus=16
[2021-07-17 20:16:11] -device
[2021-07-17 20:16:11] rtl8139,id=nic0,netdev=net0,mac=00:16:3e:5e:6c:00
[2021-07-17 20:16:11] -netdev
[2021-07-17 20:16:11] type=tap,id=net0,ifname=vif19.0-emu,script=no,downscript=no
[2021-07-17 20:16:11] -display
[2021-07-17 20:16:11] qubes-gui,domid=0,log-level=0
[2021-07-17 20:16:11] -machine
[2021-07-17 20:16:11] xenfv
[2021-07-17 20:16:11] -m
[2021-07-17 20:16:11] 5484
[2021-07-17 20:16:11] -drive
[2021-07-17 20:16:11] file=/dev/xvda,if=ide,index=0,media=disk,format=host_device,cache=writeback
[2021-07-17 20:16:11] -drive
[2021-07-17 20:16:11] file=/dev/xvdb,if=ide,index=1,media=disk,format=host_device,cache=writeback
[2021-07-17 20:16:11] -drive
[2021-07-17 20:16:11] file=/dev/xvdc,if=ide,index=2,media=disk,format=host_device,cache=writeback'
[2021-07-17 20:16:11] + test -e /sys/class/net/eth0
[2021-07-17 20:16:11] + ip link set eth0 address fe:ff:ff:ff:ff:fe
[2021-07-17 20:16:11] + ip addr flush eth0
[2021-07-17 20:16:11] + ip link set eth0 up
[2021-07-17 20:16:11] + brctl addbr br0
[2021-07-17 20:16:11] + brctl addif br0 eth0
[2021-07-17 20:16:11] br0: port 1(eth0) entered blocking state
[2021-07-17 20:16:11] br0: port 1(eth0) entered disabled state
[2021-07-17 20:16:11] E: [pulseaudio] module-vchan-sink.c: .[1;31mplay libvchan_fd_for_select=17, ctrl=0x227b1e0.[0m
[2021-07-17 20:16:11] E: [pulseaudio] module-vchan-sink.c: .[1;31mrec libvchan_fd_for_select=25, ctrl=0x227b350.[0m
[2021-07-17 20:16:11] device eth0 entered promiscuous mode
[2021-07-17 20:16:11] + ip link set br0 up
[2021-07-17 20:16:11] E: [vchan-sink] module-vchan-sink.c: .[1;31msink cork req state =1, now state=-2.[0m
[2021-07-17 20:16:11] E: [vchan-sink] module-vchan-sink.c: .[1;31msource cork req state =1, now state=-2.[0m
[2021-07-17 20:16:11] br0: port 1(eth0) entered blocking state
[2021-07-17 20:16:11] br0: port 1(eth0) entered forwarding state
[2021-07-17 20:16:11] + get_net_arg dns_0
[2021-07-17 20:16:11] + sed -n 's/^.*[:,]dns_0=\([^,]\+\).*$/\1/p'
[2021-07-17 20:16:11] + echo '-qubes-net:client_ip=10.137.0.63,dns_0=10.139.1.1,dns_1=10.139.1.2,gw=10.137.0.23,netmask=255.255.255.255'
[2021-07-17 20:16:11] + net_dns_0=10.139.1.1
[2021-07-17 20:16:11] + get_net_arg dns_1
[2021-07-17 20:16:11] + sed -n 's/^.*[:,]dns_1=\([^,]\+\).*$/\1/p'
[2021-07-17 20:16:11] + echo '-qubes-net:client_ip=10.137.0.63,dns_0=10.139.1.1,dns_1=10.139.1.2,gw=10.137.0.23,netmask=255.255.255.255'
[2021-07-17 20:16:11] + net_dns_1=10.139.1.2
[2021-07-17 20:16:11] + get_net_arg client_ip
[2021-07-17 20:16:11] + sed -n 's/^.*[:,]client_ip=\([^,]\+\).*$/\1/p'
[2021-07-17 20:16:11] + echo '-qubes-net:client_ip=10.137.0.63,dns_0=10.139.1.1,dns_1=10.139.1.2,gw=10.137.0.23,netmask=255.255.255.255'
[2021-07-17 20:16:11] + net_client_ip=10.137.0.63
[2021-07-17 20:16:11] + get_net_arg netmask
[2021-07-17 20:16:11] + sed -n 's/^.*[:,]netmask=\([^,]\+\).*$/\1/p'


Two-part log. If you can make some sense out of this, let me know.