VMM VM - 'dummy' based driver-based X11 server inside, not possible?

classic Classic list List threaded Threaded
15 messages Options
Reply | Threaded
Open this post in threaded view
|

VMM VM - 'dummy' based driver-based X11 server inside, not possible?

Jiri B-2
Is it possible to run 'dummy' based X11 (should be better that Xvfb)[1] inside
VMM VM?

$ Xorg -noreset +extension GLX +extension RANDR +extension RENDER -logfile ./10.log -config ./xorg.conf :10
(EE)
Fatal server error:
(EE) xf86OpenConsole: No console driver found
        Supported drivers: wscons
        Check your kernel's console driver configuration and /dev entries(EE)
(EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
(EE) Please also check the log file at "./10.log" for additional information.
(EE)
(EE) Server terminated with error (1). Closing log file.

$ cat 10.log
[    62.900] (--) checkDevMem: using aperture driver /dev/xf86
[    62.969] (EE)
Fatal server error:
[    62.970] (EE) xf86OpenConsole: No console driver found
        Supported drivers: wscons
        Check your kernel's console driver configuration and /dev entries(EE)
[    62.973] (EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
[    62.974] (EE) Please also check the log file at "./10.log" for additional information.
[    62.976] (EE)
[    62.992] (EE) Server terminated with error (1). Closing log file.

xorg.conf is from https://xpra.org/xorg.conf (attached in the end of the mail).

But same xorg.conf and same command work OK on headless baremetal.

[1] http://xpra.org/trac/wiki/Xdummy
[2] https://xpra.org/xorg.conf

Jiri

- from host

OpenBSD 6.2-current (GENERIC.MP) #6: Tue Feb 13 20:16:11 MST 2018
    [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8564375552 (8167MB)
avail mem = 8297807872 (7913MB)
enter_shared_special_pages: entered idt page va 0xffff800000010000 pa 0x1d5a000
enter_shared_special_pages: entered kutext page va 0xffffffff81831000 pa 0x1831000
enter_shared_special_pages: entered kutext page va 0xffffffff81832000 pa 0x1832000
enter_shared_special_pages: entered kutext page va 0xffffffff81833000 pa 0x1833000
enter_shared_special_pages: entered kudata page va 0xffffffff81ac9000 pa 0x1ac9000
cpu_enter_pages: entered tss+gdt page at va 0xffffffff81abd000 pa 0x1abd000
cpu_enter_pages: entered t.stack page at va 0xffffffff81abe000 pa 0x1abe000
cpu_enter_pages: cif_tss.tss_rsp0 = 0xffffffff81abe3e0
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0x9f000 (68 entries)
bios0: vendor American Megatrends Inc. version "1.1" date 05/27/2010
bios0: Supermicro X8SIL
acpi0 at bios0: rev 2
acpi0: sleep states S0 S1 S4 S5
acpi0: tables DSDT FACP APIC MCFG OEMB HPET GSCI DMAR SSDT
acpi0: wakeup devices P0P1(S4) P0P3(S4) P0P4(S4) P0P5(S4) P0P6(S4) BR1E(S4) USB0(S4) USB1(S4) USB2(S4) USB3(S4) USB4(S4) USB5(S4) USB6(S4) GBE_(S4) BR20(S4) BR21(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
lapic_map: entered lapic page va 0xffffffff81ab2000 pa 0xfee00000
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Xeon(R) CPU L3426 @ 1.87GHz, 1866.93 MHz
cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,MELTDOWN
cpu0: 256KB 64b/line 8-way L2 cache
acpitimer0: recalibrated TSC frequency 1866669986 Hz
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 133MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.1, IBE
cpu1 at mainbus0cpu_enter_pages: entered tss+gdt page at va 0xffff800021fff000 pa 0x10f7ab000
cpu_enter_pages: entered t.stack page at va 0xffff800022000000 pa 0x10f7ac000
cpu_enter_pages: cif_tss.tss_rsp0 = 0xffff8000220003e0
: apid 2 (application processor)
cpu1: Intel(R) Xeon(R) CPU L3426 @ 1.87GHz, 1866.67 MHz
cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,MELTDOWN
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0cpu_enter_pages: entered tss+gdt page at va 0xffff800022010000 pa 0x10f7b6000
cpu_enter_pages: entered t.stack page at va 0xffff800022011000 pa 0x10f7b7000
cpu_enter_pages: cif_tss.tss_rsp0 = 0xffff8000220113e0
: apid 4 (application processor)
cpu2: Intel(R) Xeon(R) CPU L3426 @ 1.87GHz, 1866.67 MHz
cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,MELTDOWN
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 0, core 2, package 0
cpu3 at mainbus0cpu_enter_pages: entered tss+gdt page at va 0xffff800022019000 pa 0x10f7b9000
cpu_enter_pages: entered t.stack page at va 0xffff80002201a000 pa 0x10f7ba000
cpu_enter_pages: cif_tss.tss_rsp0 = 0xffff80002201a3e0
: apid 6 (application processor)
cpu3: Intel(R) Xeon(R) CPU L3426 @ 1.87GHz, 1866.67 MHz
cpu3: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,MELTDOWN
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 0, core 3, package 0
cpu4 at mainbus0cpu_enter_pages: entered tss+gdt page at va 0xffff800022022000 pa 0x10f7bc000
cpu_enter_pages: entered t.stack page at va 0xffff800022023000 pa 0x10f7bd000
cpu_enter_pages: cif_tss.tss_rsp0 = 0xffff8000220233e0
: apid 1 (application processor)
cpu4: Intel(R) Xeon(R) CPU L3426 @ 1.87GHz, 1866.67 MHz
cpu4: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,MELTDOWN
cpu4: 256KB 64b/line 8-way L2 cache
cpu4: smt 1, core 0, package 0
cpu5 at mainbus0cpu_enter_pages: entered tss+gdt page at va 0xffff80002202b000 pa 0x10f7bf000
cpu_enter_pages: entered t.stack page at va 0xffff80002202c000 pa 0x10f7c0000
cpu_enter_pages: cif_tss.tss_rsp0 = 0xffff80002202c3e0
: apid 3 (application processor)
cpu5: Intel(R) Xeon(R) CPU L3426 @ 1.87GHz, 1866.67 MHz
cpu5: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,MELTDOWN
cpu5: 256KB 64b/line 8-way L2 cache
cpu5: smt 1, core 1, package 0
cpu6 at mainbus0cpu_enter_pages: entered tss+gdt page at va 0xffff800022034000 pa 0x10f7c2000
cpu_enter_pages: entered t.stack page at va 0xffff800022035000 pa 0x10f7c3000
cpu_enter_pages: cif_tss.tss_rsp0 = 0xffff8000220353e0
: apid 5 (application processor)
cpu6: Intel(R) Xeon(R) CPU L3426 @ 1.87GHz, 1866.67 MHz
cpu6: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,MELTDOWN
cpu6: 256KB 64b/line 8-way L2 cache
cpu6: smt 1, core 2, package 0
cpu7 at mainbus0cpu_enter_pages: entered tss+gdt page at va 0xffff80002203d000 pa 0x10f7c5000
cpu_enter_pages: entered t.stack page at va 0xffff80002203e000 pa 0x10f7c6000
cpu_enter_pages: cif_tss.tss_rsp0 = 0xffff80002203e3e0
: apid 7 (application processor)
cpu7: Intel(R) Xeon(R) CPU L3426 @ 1.87GHz, 1866.67 MHz
cpu7: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,MELTDOWN
cpu7: 256KB 64b/line 8-way L2 cache
cpu7: smt 1, core 3, package 0
ioapic0 at mainbus0: apid 8 pa 0xfec00000, version 20, 24 pins
, remapped to apid 8
acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255
acpihpet0 at acpi0: 14318179 Hz
acpihpet0: recalibrated TSC frequency 1866676240 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (P0P1)
acpiprt2 at acpi0: bus 1 (P0P3)
acpiprt3 at acpi0: bus 2 (P0P5)
acpiprt4 at acpi0: bus -1 (P0P6)
acpiprt5 at acpi0: bus 6 (BR1E)
acpiprt6 at acpi0: bus 3 (BR20)
acpiprt7 at acpi0: bus 4 (BR24)
acpiprt8 at acpi0: bus 5 (BR25)
acpicpu0 at acpi0: !C3(350@17 mwait.1@0x20), !C2(500@17 mwait.1@0x10), C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: !C3(350@17 mwait.1@0x20), !C2(500@17 mwait.1@0x10), C1(1000@1 mwait.1), PSS
acpicpu2 at acpi0: !C3(350@17 mwait.1@0x20), !C2(500@17 mwait.1@0x10), C1(1000@1 mwait.1), PSS
acpicpu3 at acpi0: !C3(350@17 mwait.1@0x20), !C2(500@17 mwait.1@0x10), C1(1000@1 mwait.1), PSS
acpicpu4 at acpi0: !C3(350@17 mwait.1@0x20), !C2(500@17 mwait.1@0x10), C1(1000@1 mwait.1), PSS
acpicpu5 at acpi0: !C3(350@17 mwait.1@0x20), !C2(500@17 mwait.1@0x10), C1(1000@1 mwait.1), PSS
acpicpu6 at acpi0: !C3(350@17 mwait.1@0x20), !C2(500@17 mwait.1@0x10), C1(1000@1 mwait.1), PSS
acpicpu7 at acpi0: !C3(350@17 mwait.1@0x20), !C2(500@17 mwait.1@0x10), C1(1000@1 mwait.1), PSS
acpibtn0 at acpi0: PWRB
ipmi at mainbus0 not configured
cpu0: Enhanced SpeedStep 1866 MHz: speeds: 1868, 1867, 1733, 1600, 1467, 1333, 1200 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Core DMI" rev 0x11
ppb0 at pci0 dev 3 function 0 "Intel Core PCIE" rev 0x11: msi
pci1 at ppb0 bus 1
ppb1 at pci0 dev 5 function 0 "Intel Core PCIE" rev 0x11: msi
pci2 at ppb1 bus 2
em0 at pci2 dev 0 function 0 "Intel 82576" rev 0x01: msi, address 90:e2:ba:04:28:c0
em1 at pci2 dev 0 function 1 "Intel 82576" rev 0x01: msi, address 90:e2:ba:04:28:c1
"Intel Core Management" rev 0x11 at pci0 dev 8 function 0 not configured
"Intel Core Scratch" rev 0x11 at pci0 dev 8 function 1 not configured
"Intel Core Control" rev 0x11 at pci0 dev 8 function 2 not configured
"Intel Core Misc" rev 0x11 at pci0 dev 8 function 3 not configured
"Intel Core QPI Link" rev 0x11 at pci0 dev 16 function 0 not configured
"Intel Core QPI Routing" rev 0x11 at pci0 dev 16 function 1 not configured
ehci0 at pci0 dev 26 function 0 "Intel 3400 USB" rev 0x05: apic 8 int 21
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb2 at pci0 dev 28 function 0 "Intel 3400 PCIE" rev 0x05: msi
pci3 at ppb2 bus 3
em2 at pci3 dev 0 function 0 "Intel 82576" rev 0x01: msi, address 90:e2:ba:04:2d:74
em3 at pci3 dev 0 function 1 "Intel 82576" rev 0x01: msi, address 90:e2:ba:04:2d:75
ppb3 at pci0 dev 28 function 4 "Intel 3400 PCIE" rev 0x05: msi
pci4 at ppb3 bus 4
em4 at pci4 dev 0 function 0 "Intel 82574L" rev 0x00: msi, address 00:25:90:3c:66:00
ppb4 at pci0 dev 28 function 5 "Intel 3400 PCIE" rev 0x05: msi
pci5 at ppb4 bus 5
em5 at pci5 dev 0 function 0 "Intel 82574L" rev 0x00: msi, address 00:25:90:3c:66:01
ehci1 at pci0 dev 29 function 0 "Intel 3400 USB" rev 0x05: apic 8 int 23
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb5 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0xa5
pci6 at ppb5 bus 6
vga1 at pci6 dev 3 function 0 "Matrox MGA G200eW" rev 0x0a
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pcib0 at pci0 dev 31 function 0 "Intel 3420 LPC" rev 0x05
ahci0 at pci0 dev 31 function 2 "Intel 3400 AHCI" rev 0x05: msi, AHCI 1.3
ahci0: port 0: 3.0Gb/s
ahci0: port 1: 3.0Gb/s
ahci0: port 2: 3.0Gb/s
ahci0: port 3: 3.0Gb/s
ahci0: port 4: 3.0Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: <ATA, WDC WD7500BPKT-6, 01.0> SCSI3 0/direct fixed naa.50014ee6580d48d5
sd0: 715404MB, 512 bytes/sector, 1465149168 sectors
sd1 at scsibus1 targ 1 lun 0: <ATA, WDC WD7500BPKT-6, 01.0> SCSI3 0/direct fixed naa.50014ee6580d4746
sd1: 715404MB, 512 bytes/sector, 1465149168 sectors
sd2 at scsibus1 targ 2 lun 0: <ATA, ST1000VX000-1ES1, CV27> SCSI3 0/direct fixed naa.5000c5009387182f
sd2: 953869MB, 512 bytes/sector, 1953525168 sectors
sd3 at scsibus1 targ 3 lun 0: <ATA, ST1000VX000-1ES1, CV27> SCSI3 0/direct fixed naa.5000c500939203ed
sd3: 953869MB, 512 bytes/sector, 1953525168 sectors
sd4 at scsibus1 targ 4 lun 0: <ATA, OCZ-VERTEX3, 2.22> SCSI3 0/direct fixed naa.5e83a97e2078f993
sd4: 122104MB, 512 bytes/sector, 250069680 sectors, thin
ichiic0 at pci0 dev 31 function 3 "Intel 3400 SMBus" rev 0x05: apic 8 int 18
iic0 at ichiic0
sdtemp0 at iic0 addr 0x18: mcp98243
sdtemp1 at iic0 addr 0x1a: mcp98243
"eeprom" at iic0 addr 0x50 not configured
"eeprom" at iic0 addr 0x52 not configured
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: console
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
com2 at isa0 port 0x3e8/8 irq 5: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
wbsio0 at isa0 port 0x2e/2: W83627DHG rev 0x25
wbsio0 port 0xa10/2 not configured
vmm0 at mainbus0: VMX/EPT
uhub2 at uhub0 port 1 configuration 1 interface 0 "Intel Rate Matching Hub" rev 2.00/0.00 addr 2
uhidev0 at uhub2 port 2 configuration 1 interface 0 "Winbond Electronics Corp Hermon USB hidmouse Device" rev 1.10/0.01 addr 3
uhidev0: iclass 3/1
ums0 at uhidev0: 3 buttons, Z dir
wsmouse0 at ums0 mux 0
uhidev1 at uhub2 port 2 configuration 1 interface 1 "Winbond Electronics Corp Hermon USB hidmouse Device" rev 1.10/0.01 addr 3
uhidev1: iclass 3/1
ukbd0 at uhidev1: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhub3 at uhub1 port 1 configuration 1 interface 0 "Intel Rate Matching Hub" rev 2.00/0.00 addr 2
uhidev2 at uhub3 port 2 configuration 1 interface 0 "American Power Conversion Back-UPS XS 1400U  FW:926.T2 .I USB FW:T2" rev 1.10/1.06 addr 3
uhidev2: iclass 3/0, 123 report ids
upd0 at uhidev2
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
...
machdep.allowaperture: 0 -> 2

- guest

OpenBSD 6.2-current (GENERIC.MP) #6: Tue Feb 13 20:16:11 MST 2018
    [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 2130706432 (2032MB)
avail mem = 2059182080 (1963MB)
enter_shared_special_pages: entered idt page va 0xffff800000010000 pa 0x1d55000
enter_shared_special_pages: entered kutext page va 0xffffffff81831000 pa 0x1831000
enter_shared_special_pages: entered kutext page va 0xffffffff81832000 pa 0x1832000
enter_shared_special_pages: entered kutext page va 0xffffffff81833000 pa 0x1833000
enter_shared_special_pages: entered kudata page va 0xffffffff81ac9000 pa 0x1ac9000
cpu_enter_pages: entered tss+gdt page at va 0xffffffff81abd000 pa 0x1abd000
cpu_enter_pages: entered t.stack page at va 0xffffffff81abe000 pa 0x1abe000
cpu_enter_pages: cif_tss.tss_rsp0 = 0xffffffff81abe3e0
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0
acpi at bios0 not configured
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel(R) Xeon(R) CPU L3426 @ 1.87GHz, 1857.87 MHz
cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,SSSE3,CX16,SSE4.1,SSE4.2,POPCNT,HV,NXE,RDTSCP,LONG,LAHF,ITSC,MELTDOWN
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
pvbus0 at mainbus0: OpenBSD
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "OpenBSD VMM Host" rev 0x00
virtio0 at pci0 dev 1 function 0 "Qumranet Virtio RNG" rev 0x00
viornd0 at virtio0
virtio0: irq 3
virtio1 at pci0 dev 2 function 0 "Qumranet Virtio Storage" rev 0x00
vioblk0 at virtio1
scsibus1 at vioblk0: 2 targets
sd0 at scsibus1 targ 0 lun 0: <VirtIO, Block Device, > SCSI3 0/direct fixed
sd0: 20480MB, 512 bytes/sector, 41943040 sectors
virtio1: irq 5
virtio2 at pci0 dev 3 function 0 "Qumranet Virtio Storage" rev 0x00
vioblk1 at virtio2
scsibus2 at vioblk1: 2 targets
sd1 at scsibus2 targ 0 lun 0: <VirtIO, Block Device, > SCSI3 0/direct fixed
sd1: 102400MB, 512 bytes/sector, 209715200 sectors
virtio2: irq 6
virtio3 at pci0 dev 4 function 0 "Qumranet Virtio Storage" rev 0x00
vioblk2 at virtio3
scsibus3 at vioblk2: 2 targets
sd2 at scsibus3 targ 0 lun 0: <VirtIO, Block Device, > SCSI3 0/direct fixed
sd2: 20480MB, 512 bytes/sector, 41943040 sectors
virtio3: irq 7
virtio4 at pci0 dev 5 function 0 "Qumranet Virtio Network" rev 0x00
vio0 at virtio4: address fe:e1:bb:d1:f6:d2
virtio4: irq 9
virtio5 at pci0 dev 6 function 0 "OpenBSD VMM Control" rev 0x00
vmmci0 at virtio5
virtio5: irq 10
isa0 at mainbus0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16450, no fifo
com0: console
vscsi0 at root
scsibus4 at vscsi0: 256 targets
softraid0 at root
scsibus5 at softraid0: 256 targets
root on sd0a (f5e67d8559c9bc27.a) swap on sd0b dump on sd0b

$ sysctl -a | grep aper                                                                                                                                                                                                                
machdep.allowaperture=2

- xorg.conf

# This xorg configuration file is meant to be used by xpra
# to start a dummy X11 server.
# For details, please see:
# https://xpra.org/Xdummy.html

Section "ServerFlags"
  Option "DontVTSwitch" "true"
  Option "AllowMouseOpenFail" "true"
  Option "PciForceNone" "true"
  Option "AutoEnableDevices" "false"
  Option "AutoAddDevices" "false"
EndSection

Section "InputDevice"
  Identifier "dummy_mouse"
  Option "CorePointer" "true"
  Driver "void"
EndSection

Section "InputDevice"
  Identifier "dummy_keyboard"
  Option "CoreKeyboard" "true"
  Driver "void"
EndSection

Section "Device"
  Identifier "dummy_videocard"
  Driver "dummy"
  Option "ConstantDPI" "true"
  #VideoRam 4096000
  #VideoRam 256000
  VideoRam 192000
EndSection

Section "Monitor"
  Identifier "dummy_monitor"
  HorizSync   5.0 - 1000.0
  VertRefresh 5.0 - 200.0
  #This can be used to get a specific DPI, but only for the default resolution:
  #DisplaySize 508 317
  #NOTE: the highest modes will not work without increasing the VideoRam
  # for the dummy video card.
  Modeline "32768x32768" 15226.50 32768 35800 39488 46208 32768 32771 32781 32953
  Modeline "32768x16384" 7516.25 32768 35544 39192 45616 16384 16387 16397 16478
  Modeline "16384x8192" 2101.93 16384 16416 24400 24432 8192 8390 8403 8602
  Modeline "8192x4096" 424.46 8192 8224 9832 9864 4096 4195 4202 4301
  Modeline "5496x1200" 199.13 5496 5528 6280 6312 1200 1228 1233 1261
  Modeline "5280x1080" 169.96 5280 5312 5952 5984 1080 1105 1110 1135
  Modeline "5280x1200" 191.40 5280 5312 6032 6064 1200 1228 1233 1261
  Modeline "5120x3200" 199.75 5120 5152 5904 5936 3200 3277 3283 3361
  Modeline "4800x1200" 64.42 4800 4832 5072 5104 1200 1229 1231 1261
  Modeline "3840x2880" 133.43 3840 3872 4376 4408 2880 2950 2955 3025
  Modeline "3840x2560" 116.93 3840 3872 4312 4344 2560 2622 2627 2689
  Modeline "3840x2048" 91.45 3840 3872 4216 4248 2048 2097 2101 2151
  Modeline "3840x1080" 100.38 3840 3848 4216 4592 1080 1081 1084 1093
  Modeline "3600x1200" 106.06 3600 3632 3984 4368 1200 1201 1204 1214
  Modeline "3288x1080" 39.76 3288 3320 3464 3496 1080 1106 1108 1135
  Modeline "2048x2048" 49.47 2048 2080 2264 2296 2048 2097 2101 2151
  Modeline "2048x1536" 80.06 2048 2104 2312 2576 1536 1537 1540 1554
  Modeline "2560x1600" 47.12 2560 2592 2768 2800 1600 1639 1642 1681
  Modeline "2560x1440" 42.12 2560 2592 2752 2784 1440 1475 1478 1513
  Modeline "1920x1440" 69.47 1920 1960 2152 2384 1440 1441 1444 1457
  Modeline "1920x1200" 26.28 1920 1952 2048 2080 1200 1229 1231 1261
  Modeline "1920x1080" 23.53 1920 1952 2040 2072 1080 1106 1108 1135
  Modeline "1680x1050" 20.08 1680 1712 1784 1816 1050 1075 1077 1103
  Modeline "1600x1200" 22.04 1600 1632 1712 1744 1200 1229 1231 1261
  Modeline "1600x900" 33.92 1600 1632 1760 1792 900 921 924 946
  Modeline "1440x900" 30.66 1440 1472 1584 1616 900 921 924 946
  ModeLine "1366x768" 72.00 1366 1414 1446 1494  768 771 777 803
  Modeline "1280x1024" 31.50 1280 1312 1424 1456 1024 1048 1052 1076
  Modeline "1280x800" 24.15 1280 1312 1400 1432 800 819 822 841
  Modeline "1280x768" 23.11 1280 1312 1392 1424 768 786 789 807
  Modeline "1360x768" 24.49 1360 1392 1480 1512 768 786 789 807
  Modeline "1024x768" 18.71 1024 1056 1120 1152 768 786 789 807
  Modeline "768x1024" 19.50 768 800 872 904 1024 1048 1052 1076


  #common resolutions for android devices (both orientations):
  Modeline "800x1280" 25.89 800 832 928 960 1280 1310 1315 1345
  Modeline "1280x800" 24.15 1280 1312 1400 1432 800 819 822 841
  Modeline "720x1280" 30.22 720 752 864 896 1280 1309 1315 1345
  Modeline "1280x720" 27.41 1280 1312 1416 1448 720 737 740 757
  Modeline "768x1024" 24.93 768 800 888 920 1024 1047 1052 1076
  Modeline "1024x768" 23.77 1024 1056 1144 1176 768 785 789 807
  Modeline "600x1024" 19.90 600 632 704 736 1024 1047 1052 1076
  Modeline "1024x600" 18.26 1024 1056 1120 1152 600 614 617 631
  Modeline "536x960" 16.74 536 568 624 656 960 982 986 1009
  Modeline "960x536" 15.23 960 992 1048 1080 536 548 551 563
  Modeline "600x800" 15.17 600 632 688 720 800 818 822 841
  Modeline "800x600" 14.50 800 832 880 912 600 614 617 631
  Modeline "480x854" 13.34 480 512 560 592 854 873 877 897
  Modeline "848x480" 12.09 848 880 920 952 480 491 493 505
  Modeline "480x800" 12.43 480 512 552 584 800 818 822 841
  Modeline "800x480" 11.46 800 832 872 904 480 491 493 505
  #resolutions for android devices (both orientations)
  #minus the status bar
  #38px status bar (and width rounded up)
  Modeline "800x1242" 25.03 800 832 920 952 1242 1271 1275 1305
  Modeline "1280x762" 22.93 1280 1312 1392 1424 762 780 783 801
  Modeline "720x1242" 29.20 720 752 856 888 1242 1271 1276 1305
  Modeline "1280x682" 25.85 1280 1312 1408 1440 682 698 701 717
  Modeline "768x986" 23.90 768 800 888 920 986 1009 1013 1036
  Modeline "1024x730" 22.50 1024 1056 1136 1168 730 747 750 767
  Modeline "600x986" 19.07 600 632 704 736 986 1009 1013 1036
  Modeline "1024x562" 17.03 1024 1056 1120 1152 562 575 578 591
  Modeline "536x922" 16.01 536 568 624 656 922 943 947 969
  Modeline "960x498" 14.09 960 992 1040 1072 498 509 511 523
  Modeline "600x762" 14.39 600 632 680 712 762 779 783 801
  Modeline "800x562" 13.52 800 832 880 912 562 575 578 591
  Modeline "480x810" 12.59 480 512 552 584 810 828 832 851
  Modeline "848x442" 11.09 848 880 920 952 442 452 454 465
  Modeline "480x762" 11.79 480 512 552 584 762 779 783 801
EndSection

Section "Screen"
  Identifier "dummy_screen"
  Device "dummy_videocard"
  Monitor "dummy_monitor"
  DefaultDepth 24
  SubSection "Display"
    Viewport 0 0
    Depth 24
    #Modes "32768x32768" "32768x16384" "16384x8192" "8192x4096" "5120x3200" "3840x2880" "3840x2560" "3840x2048" "2048x2048" "2560x1600" "1920x1440" "1920x1200" "1920x1080" "1600x1200" "1680x1050" "1600x900" "1400x1050" "1440x900" "1280x1024" "1366x768" "1280x800" "1024x768" "1024x600" "800x600" "320x200"
    Modes "5120x3200" "3840x2880" "3840x2560" "3840x2048" "2048x2048" "2560x1600" "1920x1440" "1920x1200" "1920x1080" "1600x1200" "1680x1050" "1600x900" "1400x1050" "1440x900" "1280x1024" "1366x768" "1280x800" "1024x768" "1024x600" "800x600" "320x200"
    #Virtual 32000 32000
    #Virtual 16384 8192
    Virtual 8192 4096
    #Virtual 5120 3200
  EndSubSection
EndSection

Section "ServerLayout"
  Identifier   "dummy_layout"
  Screen       "dummy_screen"
  InputDevice  "dummy_mouse"
  InputDevice  "dummy_keyboard"
EndSection
v

Reply | Threaded
Open this post in threaded view
|

Re: VMM VM - 'dummy' based driver-based X11 server inside, not possible?

Mike Larkin
On Thu, Feb 15, 2018 at 07:10:26PM -0500, Jiri B wrote:
> Is it possible to run 'dummy' based X11 (should be better that Xvfb)[1] inside
> VMM VM?
>

what are you trying to accomplish?

> $ Xorg -noreset +extension GLX +extension RANDR +extension RENDER -logfile ./10.log -config ./xorg.conf :10
> (EE)
> Fatal server error:
> (EE) xf86OpenConsole: No console driver found
>         Supported drivers: wscons
>         Check your kernel's console driver configuration and /dev entries(EE)
> (EE)
> Please consult the The X.Org Foundation support
>          at http://wiki.x.org
>  for help.
> (EE) Please also check the log file at "./10.log" for additional information.
> (EE)
> (EE) Server terminated with error (1). Closing log file.
>
> $ cat 10.log
> [    62.900] (--) checkDevMem: using aperture driver /dev/xf86
> [    62.969] (EE)
> Fatal server error:
> [    62.970] (EE) xf86OpenConsole: No console driver found
>         Supported drivers: wscons
>         Check your kernel's console driver configuration and /dev entries(EE)
> [    62.973] (EE)
> Please consult the The X.Org Foundation support
>          at http://wiki.x.org
>  for help.
> [    62.974] (EE) Please also check the log file at "./10.log" for additional information.
> [    62.976] (EE)
> [    62.992] (EE) Server terminated with error (1). Closing log file.
>
> xorg.conf is from https://xpra.org/xorg.conf (attached in the end of the mail).
>
> But same xorg.conf and same command work OK on headless baremetal.
>
> [1] http://xpra.org/trac/wiki/Xdummy
> [2] https://xpra.org/xorg.conf
>
> Jiri
>
> - from host
>
> OpenBSD 6.2-current (GENERIC.MP) #6: Tue Feb 13 20:16:11 MST 2018
>     [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> real mem = 8564375552 (8167MB)
> avail mem = 8297807872 (7913MB)
> enter_shared_special_pages: entered idt page va 0xffff800000010000 pa 0x1d5a000
> enter_shared_special_pages: entered kutext page va 0xffffffff81831000 pa 0x1831000
> enter_shared_special_pages: entered kutext page va 0xffffffff81832000 pa 0x1832000
> enter_shared_special_pages: entered kutext page va 0xffffffff81833000 pa 0x1833000
> enter_shared_special_pages: entered kudata page va 0xffffffff81ac9000 pa 0x1ac9000
> cpu_enter_pages: entered tss+gdt page at va 0xffffffff81abd000 pa 0x1abd000
> cpu_enter_pages: entered t.stack page at va 0xffffffff81abe000 pa 0x1abe000
> cpu_enter_pages: cif_tss.tss_rsp0 = 0xffffffff81abe3e0
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.6 @ 0x9f000 (68 entries)
> bios0: vendor American Megatrends Inc. version "1.1" date 05/27/2010
> bios0: Supermicro X8SIL
> acpi0 at bios0: rev 2
> acpi0: sleep states S0 S1 S4 S5
> acpi0: tables DSDT FACP APIC MCFG OEMB HPET GSCI DMAR SSDT
> acpi0: wakeup devices P0P1(S4) P0P3(S4) P0P4(S4) P0P5(S4) P0P6(S4) BR1E(S4) USB0(S4) USB1(S4) USB2(S4) USB3(S4) USB4(S4) USB5(S4) USB6(S4) GBE_(S4) BR20(S4) BR21(S4) [...]
> acpitimer0 at acpi0: 3579545 Hz, 24 bits
> acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
> lapic_map: entered lapic page va 0xffffffff81ab2000 pa 0xfee00000
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: Intel(R) Xeon(R) CPU L3426 @ 1.87GHz, 1866.93 MHz
> cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,MELTDOWN
> cpu0: 256KB 64b/line 8-way L2 cache
> acpitimer0: recalibrated TSC frequency 1866669986 Hz
> cpu0: smt 0, core 0, package 0
> mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
> cpu0: apic clock running at 133MHz
> cpu0: mwait min=64, max=64, C-substates=0.2.1.1, IBE
> cpu1 at mainbus0cpu_enter_pages: entered tss+gdt page at va 0xffff800021fff000 pa 0x10f7ab000
> cpu_enter_pages: entered t.stack page at va 0xffff800022000000 pa 0x10f7ac000
> cpu_enter_pages: cif_tss.tss_rsp0 = 0xffff8000220003e0
> : apid 2 (application processor)
> cpu1: Intel(R) Xeon(R) CPU L3426 @ 1.87GHz, 1866.67 MHz
> cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,MELTDOWN
> cpu1: 256KB 64b/line 8-way L2 cache
> cpu1: smt 0, core 1, package 0
> cpu2 at mainbus0cpu_enter_pages: entered tss+gdt page at va 0xffff800022010000 pa 0x10f7b6000
> cpu_enter_pages: entered t.stack page at va 0xffff800022011000 pa 0x10f7b7000
> cpu_enter_pages: cif_tss.tss_rsp0 = 0xffff8000220113e0
> : apid 4 (application processor)
> cpu2: Intel(R) Xeon(R) CPU L3426 @ 1.87GHz, 1866.67 MHz
> cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,MELTDOWN
> cpu2: 256KB 64b/line 8-way L2 cache
> cpu2: smt 0, core 2, package 0
> cpu3 at mainbus0cpu_enter_pages: entered tss+gdt page at va 0xffff800022019000 pa 0x10f7b9000
> cpu_enter_pages: entered t.stack page at va 0xffff80002201a000 pa 0x10f7ba000
> cpu_enter_pages: cif_tss.tss_rsp0 = 0xffff80002201a3e0
> : apid 6 (application processor)
> cpu3: Intel(R) Xeon(R) CPU L3426 @ 1.87GHz, 1866.67 MHz
> cpu3: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,MELTDOWN
> cpu3: 256KB 64b/line 8-way L2 cache
> cpu3: smt 0, core 3, package 0
> cpu4 at mainbus0cpu_enter_pages: entered tss+gdt page at va 0xffff800022022000 pa 0x10f7bc000
> cpu_enter_pages: entered t.stack page at va 0xffff800022023000 pa 0x10f7bd000
> cpu_enter_pages: cif_tss.tss_rsp0 = 0xffff8000220233e0
> : apid 1 (application processor)
> cpu4: Intel(R) Xeon(R) CPU L3426 @ 1.87GHz, 1866.67 MHz
> cpu4: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,MELTDOWN
> cpu4: 256KB 64b/line 8-way L2 cache
> cpu4: smt 1, core 0, package 0
> cpu5 at mainbus0cpu_enter_pages: entered tss+gdt page at va 0xffff80002202b000 pa 0x10f7bf000
> cpu_enter_pages: entered t.stack page at va 0xffff80002202c000 pa 0x10f7c0000
> cpu_enter_pages: cif_tss.tss_rsp0 = 0xffff80002202c3e0
> : apid 3 (application processor)
> cpu5: Intel(R) Xeon(R) CPU L3426 @ 1.87GHz, 1866.67 MHz
> cpu5: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,MELTDOWN
> cpu5: 256KB 64b/line 8-way L2 cache
> cpu5: smt 1, core 1, package 0
> cpu6 at mainbus0cpu_enter_pages: entered tss+gdt page at va 0xffff800022034000 pa 0x10f7c2000
> cpu_enter_pages: entered t.stack page at va 0xffff800022035000 pa 0x10f7c3000
> cpu_enter_pages: cif_tss.tss_rsp0 = 0xffff8000220353e0
> : apid 5 (application processor)
> cpu6: Intel(R) Xeon(R) CPU L3426 @ 1.87GHz, 1866.67 MHz
> cpu6: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,MELTDOWN
> cpu6: 256KB 64b/line 8-way L2 cache
> cpu6: smt 1, core 2, package 0
> cpu7 at mainbus0cpu_enter_pages: entered tss+gdt page at va 0xffff80002203d000 pa 0x10f7c5000
> cpu_enter_pages: entered t.stack page at va 0xffff80002203e000 pa 0x10f7c6000
> cpu_enter_pages: cif_tss.tss_rsp0 = 0xffff80002203e3e0
> : apid 7 (application processor)
> cpu7: Intel(R) Xeon(R) CPU L3426 @ 1.87GHz, 1866.67 MHz
> cpu7: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,MELTDOWN
> cpu7: 256KB 64b/line 8-way L2 cache
> cpu7: smt 1, core 3, package 0
> ioapic0 at mainbus0: apid 8 pa 0xfec00000, version 20, 24 pins
> , remapped to apid 8
> acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255
> acpihpet0 at acpi0: 14318179 Hz
> acpihpet0: recalibrated TSC frequency 1866676240 Hz
> acpiprt0 at acpi0: bus 0 (PCI0)
> acpiprt1 at acpi0: bus -1 (P0P1)
> acpiprt2 at acpi0: bus 1 (P0P3)
> acpiprt3 at acpi0: bus 2 (P0P5)
> acpiprt4 at acpi0: bus -1 (P0P6)
> acpiprt5 at acpi0: bus 6 (BR1E)
> acpiprt6 at acpi0: bus 3 (BR20)
> acpiprt7 at acpi0: bus 4 (BR24)
> acpiprt8 at acpi0: bus 5 (BR25)
> acpicpu0 at acpi0: !C3(350@17 mwait.1@0x20), !C2(500@17 mwait.1@0x10), C1(1000@1 mwait.1), PSS
> acpicpu1 at acpi0: !C3(350@17 mwait.1@0x20), !C2(500@17 mwait.1@0x10), C1(1000@1 mwait.1), PSS
> acpicpu2 at acpi0: !C3(350@17 mwait.1@0x20), !C2(500@17 mwait.1@0x10), C1(1000@1 mwait.1), PSS
> acpicpu3 at acpi0: !C3(350@17 mwait.1@0x20), !C2(500@17 mwait.1@0x10), C1(1000@1 mwait.1), PSS
> acpicpu4 at acpi0: !C3(350@17 mwait.1@0x20), !C2(500@17 mwait.1@0x10), C1(1000@1 mwait.1), PSS
> acpicpu5 at acpi0: !C3(350@17 mwait.1@0x20), !C2(500@17 mwait.1@0x10), C1(1000@1 mwait.1), PSS
> acpicpu6 at acpi0: !C3(350@17 mwait.1@0x20), !C2(500@17 mwait.1@0x10), C1(1000@1 mwait.1), PSS
> acpicpu7 at acpi0: !C3(350@17 mwait.1@0x20), !C2(500@17 mwait.1@0x10), C1(1000@1 mwait.1), PSS
> acpibtn0 at acpi0: PWRB
> ipmi at mainbus0 not configured
> cpu0: Enhanced SpeedStep 1866 MHz: speeds: 1868, 1867, 1733, 1600, 1467, 1333, 1200 MHz
> pci0 at mainbus0 bus 0
> pchb0 at pci0 dev 0 function 0 "Intel Core DMI" rev 0x11
> ppb0 at pci0 dev 3 function 0 "Intel Core PCIE" rev 0x11: msi
> pci1 at ppb0 bus 1
> ppb1 at pci0 dev 5 function 0 "Intel Core PCIE" rev 0x11: msi
> pci2 at ppb1 bus 2
> em0 at pci2 dev 0 function 0 "Intel 82576" rev 0x01: msi, address 90:e2:ba:04:28:c0
> em1 at pci2 dev 0 function 1 "Intel 82576" rev 0x01: msi, address 90:e2:ba:04:28:c1
> "Intel Core Management" rev 0x11 at pci0 dev 8 function 0 not configured
> "Intel Core Scratch" rev 0x11 at pci0 dev 8 function 1 not configured
> "Intel Core Control" rev 0x11 at pci0 dev 8 function 2 not configured
> "Intel Core Misc" rev 0x11 at pci0 dev 8 function 3 not configured
> "Intel Core QPI Link" rev 0x11 at pci0 dev 16 function 0 not configured
> "Intel Core QPI Routing" rev 0x11 at pci0 dev 16 function 1 not configured
> ehci0 at pci0 dev 26 function 0 "Intel 3400 USB" rev 0x05: apic 8 int 21
> usb0 at ehci0: USB revision 2.0
> uhub0 at usb0 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
> ppb2 at pci0 dev 28 function 0 "Intel 3400 PCIE" rev 0x05: msi
> pci3 at ppb2 bus 3
> em2 at pci3 dev 0 function 0 "Intel 82576" rev 0x01: msi, address 90:e2:ba:04:2d:74
> em3 at pci3 dev 0 function 1 "Intel 82576" rev 0x01: msi, address 90:e2:ba:04:2d:75
> ppb3 at pci0 dev 28 function 4 "Intel 3400 PCIE" rev 0x05: msi
> pci4 at ppb3 bus 4
> em4 at pci4 dev 0 function 0 "Intel 82574L" rev 0x00: msi, address 00:25:90:3c:66:00
> ppb4 at pci0 dev 28 function 5 "Intel 3400 PCIE" rev 0x05: msi
> pci5 at ppb4 bus 5
> em5 at pci5 dev 0 function 0 "Intel 82574L" rev 0x00: msi, address 00:25:90:3c:66:01
> ehci1 at pci0 dev 29 function 0 "Intel 3400 USB" rev 0x05: apic 8 int 23
> usb1 at ehci1: USB revision 2.0
> uhub1 at usb1 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
> ppb5 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0xa5
> pci6 at ppb5 bus 6
> vga1 at pci6 dev 3 function 0 "Matrox MGA G200eW" rev 0x0a
> wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
> wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
> pcib0 at pci0 dev 31 function 0 "Intel 3420 LPC" rev 0x05
> ahci0 at pci0 dev 31 function 2 "Intel 3400 AHCI" rev 0x05: msi, AHCI 1.3
> ahci0: port 0: 3.0Gb/s
> ahci0: port 1: 3.0Gb/s
> ahci0: port 2: 3.0Gb/s
> ahci0: port 3: 3.0Gb/s
> ahci0: port 4: 3.0Gb/s
> scsibus1 at ahci0: 32 targets
> sd0 at scsibus1 targ 0 lun 0: <ATA, WDC WD7500BPKT-6, 01.0> SCSI3 0/direct fixed naa.50014ee6580d48d5
> sd0: 715404MB, 512 bytes/sector, 1465149168 sectors
> sd1 at scsibus1 targ 1 lun 0: <ATA, WDC WD7500BPKT-6, 01.0> SCSI3 0/direct fixed naa.50014ee6580d4746
> sd1: 715404MB, 512 bytes/sector, 1465149168 sectors
> sd2 at scsibus1 targ 2 lun 0: <ATA, ST1000VX000-1ES1, CV27> SCSI3 0/direct fixed naa.5000c5009387182f
> sd2: 953869MB, 512 bytes/sector, 1953525168 sectors
> sd3 at scsibus1 targ 3 lun 0: <ATA, ST1000VX000-1ES1, CV27> SCSI3 0/direct fixed naa.5000c500939203ed
> sd3: 953869MB, 512 bytes/sector, 1953525168 sectors
> sd4 at scsibus1 targ 4 lun 0: <ATA, OCZ-VERTEX3, 2.22> SCSI3 0/direct fixed naa.5e83a97e2078f993
> sd4: 122104MB, 512 bytes/sector, 250069680 sectors, thin
> ichiic0 at pci0 dev 31 function 3 "Intel 3400 SMBus" rev 0x05: apic 8 int 18
> iic0 at ichiic0
> sdtemp0 at iic0 addr 0x18: mcp98243
> sdtemp1 at iic0 addr 0x1a: mcp98243
> "eeprom" at iic0 addr 0x50 not configured
> "eeprom" at iic0 addr 0x52 not configured
> isa0 at pcib0
> isadma0 at isa0
> com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
> com0: console
> com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
> com2 at isa0 port 0x3e8/8 irq 5: ns16550a, 16 byte fifo
> pckbc0 at isa0 port 0x60/5 irq 1 irq 12
> pckbd0 at pckbc0 (kbd slot)
> wskbd0 at pckbd0: console keyboard, using wsdisplay0
> pcppi0 at isa0 port 0x61
> spkr0 at pcppi0
> wbsio0 at isa0 port 0x2e/2: W83627DHG rev 0x25
> wbsio0 port 0xa10/2 not configured
> vmm0 at mainbus0: VMX/EPT
> uhub2 at uhub0 port 1 configuration 1 interface 0 "Intel Rate Matching Hub" rev 2.00/0.00 addr 2
> uhidev0 at uhub2 port 2 configuration 1 interface 0 "Winbond Electronics Corp Hermon USB hidmouse Device" rev 1.10/0.01 addr 3
> uhidev0: iclass 3/1
> ums0 at uhidev0: 3 buttons, Z dir
> wsmouse0 at ums0 mux 0
> uhidev1 at uhub2 port 2 configuration 1 interface 1 "Winbond Electronics Corp Hermon USB hidmouse Device" rev 1.10/0.01 addr 3
> uhidev1: iclass 3/1
> ukbd0 at uhidev1: 8 variable keys, 6 key codes
> wskbd1 at ukbd0 mux 1
> wskbd1: connecting to wsdisplay0
> uhub3 at uhub1 port 1 configuration 1 interface 0 "Intel Rate Matching Hub" rev 2.00/0.00 addr 2
> uhidev2 at uhub3 port 2 configuration 1 interface 0 "American Power Conversion Back-UPS XS 1400U  FW:926.T2 .I USB FW:T2" rev 1.10/1.06 addr 3
> uhidev2: iclass 3/0, 123 report ids
> upd0 at uhidev2
> vscsi0 at root
> scsibus2 at vscsi0: 256 targets
> softraid0 at root
> scsibus3 at softraid0: 256 targets
> ...
> machdep.allowaperture: 0 -> 2
>
> - guest
>
> OpenBSD 6.2-current (GENERIC.MP) #6: Tue Feb 13 20:16:11 MST 2018
>     [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> real mem = 2130706432 (2032MB)
> avail mem = 2059182080 (1963MB)
> enter_shared_special_pages: entered idt page va 0xffff800000010000 pa 0x1d55000
> enter_shared_special_pages: entered kutext page va 0xffffffff81831000 pa 0x1831000
> enter_shared_special_pages: entered kutext page va 0xffffffff81832000 pa 0x1832000
> enter_shared_special_pages: entered kutext page va 0xffffffff81833000 pa 0x1833000
> enter_shared_special_pages: entered kudata page va 0xffffffff81ac9000 pa 0x1ac9000
> cpu_enter_pages: entered tss+gdt page at va 0xffffffff81abd000 pa 0x1abd000
> cpu_enter_pages: entered t.stack page at va 0xffffffff81abe000 pa 0x1abe000
> cpu_enter_pages: cif_tss.tss_rsp0 = 0xffffffff81abe3e0
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0
> acpi at bios0 not configured
> cpu0 at mainbus0: (uniprocessor)
> cpu0: Intel(R) Xeon(R) CPU L3426 @ 1.87GHz, 1857.87 MHz
> cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,SSSE3,CX16,SSE4.1,SSE4.2,POPCNT,HV,NXE,RDTSCP,LONG,LAHF,ITSC,MELTDOWN
> cpu0: 256KB 64b/line 8-way L2 cache
> cpu0: smt 0, core 0, package 0
> pvbus0 at mainbus0: OpenBSD
> pci0 at mainbus0 bus 0
> pchb0 at pci0 dev 0 function 0 "OpenBSD VMM Host" rev 0x00
> virtio0 at pci0 dev 1 function 0 "Qumranet Virtio RNG" rev 0x00
> viornd0 at virtio0
> virtio0: irq 3
> virtio1 at pci0 dev 2 function 0 "Qumranet Virtio Storage" rev 0x00
> vioblk0 at virtio1
> scsibus1 at vioblk0: 2 targets
> sd0 at scsibus1 targ 0 lun 0: <VirtIO, Block Device, > SCSI3 0/direct fixed
> sd0: 20480MB, 512 bytes/sector, 41943040 sectors
> virtio1: irq 5
> virtio2 at pci0 dev 3 function 0 "Qumranet Virtio Storage" rev 0x00
> vioblk1 at virtio2
> scsibus2 at vioblk1: 2 targets
> sd1 at scsibus2 targ 0 lun 0: <VirtIO, Block Device, > SCSI3 0/direct fixed
> sd1: 102400MB, 512 bytes/sector, 209715200 sectors
> virtio2: irq 6
> virtio3 at pci0 dev 4 function 0 "Qumranet Virtio Storage" rev 0x00
> vioblk2 at virtio3
> scsibus3 at vioblk2: 2 targets
> sd2 at scsibus3 targ 0 lun 0: <VirtIO, Block Device, > SCSI3 0/direct fixed
> sd2: 20480MB, 512 bytes/sector, 41943040 sectors
> virtio3: irq 7
> virtio4 at pci0 dev 5 function 0 "Qumranet Virtio Network" rev 0x00
> vio0 at virtio4: address fe:e1:bb:d1:f6:d2
> virtio4: irq 9
> virtio5 at pci0 dev 6 function 0 "OpenBSD VMM Control" rev 0x00
> vmmci0 at virtio5
> virtio5: irq 10
> isa0 at mainbus0
> isadma0 at isa0
> com0 at isa0 port 0x3f8/8 irq 4: ns16450, no fifo
> com0: console
> vscsi0 at root
> scsibus4 at vscsi0: 256 targets
> softraid0 at root
> scsibus5 at softraid0: 256 targets
> root on sd0a (f5e67d8559c9bc27.a) swap on sd0b dump on sd0b
>
> $ sysctl -a | grep aper                                                                                                                                                                                                                
> machdep.allowaperture=2
>
> - xorg.conf
>
> # This xorg configuration file is meant to be used by xpra
> # to start a dummy X11 server.
> # For details, please see:
> # https://xpra.org/Xdummy.html
>
> Section "ServerFlags"
>   Option "DontVTSwitch" "true"
>   Option "AllowMouseOpenFail" "true"
>   Option "PciForceNone" "true"
>   Option "AutoEnableDevices" "false"
>   Option "AutoAddDevices" "false"
> EndSection
>
> Section "InputDevice"
>   Identifier "dummy_mouse"
>   Option "CorePointer" "true"
>   Driver "void"
> EndSection
>
> Section "InputDevice"
>   Identifier "dummy_keyboard"
>   Option "CoreKeyboard" "true"
>   Driver "void"
> EndSection
>
> Section "Device"
>   Identifier "dummy_videocard"
>   Driver "dummy"
>   Option "ConstantDPI" "true"
>   #VideoRam 4096000
>   #VideoRam 256000
>   VideoRam 192000
> EndSection
>
> Section "Monitor"
>   Identifier "dummy_monitor"
>   HorizSync   5.0 - 1000.0
>   VertRefresh 5.0 - 200.0
>   #This can be used to get a specific DPI, but only for the default resolution:
>   #DisplaySize 508 317
>   #NOTE: the highest modes will not work without increasing the VideoRam
>   # for the dummy video card.
>   Modeline "32768x32768" 15226.50 32768 35800 39488 46208 32768 32771 32781 32953
>   Modeline "32768x16384" 7516.25 32768 35544 39192 45616 16384 16387 16397 16478
>   Modeline "16384x8192" 2101.93 16384 16416 24400 24432 8192 8390 8403 8602
>   Modeline "8192x4096" 424.46 8192 8224 9832 9864 4096 4195 4202 4301
>   Modeline "5496x1200" 199.13 5496 5528 6280 6312 1200 1228 1233 1261
>   Modeline "5280x1080" 169.96 5280 5312 5952 5984 1080 1105 1110 1135
>   Modeline "5280x1200" 191.40 5280 5312 6032 6064 1200 1228 1233 1261
>   Modeline "5120x3200" 199.75 5120 5152 5904 5936 3200 3277 3283 3361
>   Modeline "4800x1200" 64.42 4800 4832 5072 5104 1200 1229 1231 1261
>   Modeline "3840x2880" 133.43 3840 3872 4376 4408 2880 2950 2955 3025
>   Modeline "3840x2560" 116.93 3840 3872 4312 4344 2560 2622 2627 2689
>   Modeline "3840x2048" 91.45 3840 3872 4216 4248 2048 2097 2101 2151
>   Modeline "3840x1080" 100.38 3840 3848 4216 4592 1080 1081 1084 1093
>   Modeline "3600x1200" 106.06 3600 3632 3984 4368 1200 1201 1204 1214
>   Modeline "3288x1080" 39.76 3288 3320 3464 3496 1080 1106 1108 1135
>   Modeline "2048x2048" 49.47 2048 2080 2264 2296 2048 2097 2101 2151
>   Modeline "2048x1536" 80.06 2048 2104 2312 2576 1536 1537 1540 1554
>   Modeline "2560x1600" 47.12 2560 2592 2768 2800 1600 1639 1642 1681
>   Modeline "2560x1440" 42.12 2560 2592 2752 2784 1440 1475 1478 1513
>   Modeline "1920x1440" 69.47 1920 1960 2152 2384 1440 1441 1444 1457
>   Modeline "1920x1200" 26.28 1920 1952 2048 2080 1200 1229 1231 1261
>   Modeline "1920x1080" 23.53 1920 1952 2040 2072 1080 1106 1108 1135
>   Modeline "1680x1050" 20.08 1680 1712 1784 1816 1050 1075 1077 1103
>   Modeline "1600x1200" 22.04 1600 1632 1712 1744 1200 1229 1231 1261
>   Modeline "1600x900" 33.92 1600 1632 1760 1792 900 921 924 946
>   Modeline "1440x900" 30.66 1440 1472 1584 1616 900 921 924 946
>   ModeLine "1366x768" 72.00 1366 1414 1446 1494  768 771 777 803
>   Modeline "1280x1024" 31.50 1280 1312 1424 1456 1024 1048 1052 1076
>   Modeline "1280x800" 24.15 1280 1312 1400 1432 800 819 822 841
>   Modeline "1280x768" 23.11 1280 1312 1392 1424 768 786 789 807
>   Modeline "1360x768" 24.49 1360 1392 1480 1512 768 786 789 807
>   Modeline "1024x768" 18.71 1024 1056 1120 1152 768 786 789 807
>   Modeline "768x1024" 19.50 768 800 872 904 1024 1048 1052 1076
>
>
>   #common resolutions for android devices (both orientations):
>   Modeline "800x1280" 25.89 800 832 928 960 1280 1310 1315 1345
>   Modeline "1280x800" 24.15 1280 1312 1400 1432 800 819 822 841
>   Modeline "720x1280" 30.22 720 752 864 896 1280 1309 1315 1345
>   Modeline "1280x720" 27.41 1280 1312 1416 1448 720 737 740 757
>   Modeline "768x1024" 24.93 768 800 888 920 1024 1047 1052 1076
>   Modeline "1024x768" 23.77 1024 1056 1144 1176 768 785 789 807
>   Modeline "600x1024" 19.90 600 632 704 736 1024 1047 1052 1076
>   Modeline "1024x600" 18.26 1024 1056 1120 1152 600 614 617 631
>   Modeline "536x960" 16.74 536 568 624 656 960 982 986 1009
>   Modeline "960x536" 15.23 960 992 1048 1080 536 548 551 563
>   Modeline "600x800" 15.17 600 632 688 720 800 818 822 841
>   Modeline "800x600" 14.50 800 832 880 912 600 614 617 631
>   Modeline "480x854" 13.34 480 512 560 592 854 873 877 897
>   Modeline "848x480" 12.09 848 880 920 952 480 491 493 505
>   Modeline "480x800" 12.43 480 512 552 584 800 818 822 841
>   Modeline "800x480" 11.46 800 832 872 904 480 491 493 505
>   #resolutions for android devices (both orientations)
>   #minus the status bar
>   #38px status bar (and width rounded up)
>   Modeline "800x1242" 25.03 800 832 920 952 1242 1271 1275 1305
>   Modeline "1280x762" 22.93 1280 1312 1392 1424 762 780 783 801
>   Modeline "720x1242" 29.20 720 752 856 888 1242 1271 1276 1305
>   Modeline "1280x682" 25.85 1280 1312 1408 1440 682 698 701 717
>   Modeline "768x986" 23.90 768 800 888 920 986 1009 1013 1036
>   Modeline "1024x730" 22.50 1024 1056 1136 1168 730 747 750 767
>   Modeline "600x986" 19.07 600 632 704 736 986 1009 1013 1036
>   Modeline "1024x562" 17.03 1024 1056 1120 1152 562 575 578 591
>   Modeline "536x922" 16.01 536 568 624 656 922 943 947 969
>   Modeline "960x498" 14.09 960 992 1040 1072 498 509 511 523
>   Modeline "600x762" 14.39 600 632 680 712 762 779 783 801
>   Modeline "800x562" 13.52 800 832 880 912 562 575 578 591
>   Modeline "480x810" 12.59 480 512 552 584 810 828 832 851
>   Modeline "848x442" 11.09 848 880 920 952 442 452 454 465
>   Modeline "480x762" 11.79 480 512 552 584 762 779 783 801
> EndSection
>
> Section "Screen"
>   Identifier "dummy_screen"
>   Device "dummy_videocard"
>   Monitor "dummy_monitor"
>   DefaultDepth 24
>   SubSection "Display"
>     Viewport 0 0
>     Depth 24
>     #Modes "32768x32768" "32768x16384" "16384x8192" "8192x4096" "5120x3200" "3840x2880" "3840x2560" "3840x2048" "2048x2048" "2560x1600" "1920x1440" "1920x1200" "1920x1080" "1600x1200" "1680x1050" "1600x900" "1400x1050" "1440x900" "1280x1024" "1366x768" "1280x800" "1024x768" "1024x600" "800x600" "320x200"
>     Modes "5120x3200" "3840x2880" "3840x2560" "3840x2048" "2048x2048" "2560x1600" "1920x1440" "1920x1200" "1920x1080" "1600x1200" "1680x1050" "1600x900" "1400x1050" "1440x900" "1280x1024" "1366x768" "1280x800" "1024x768" "1024x600" "800x600" "320x200"
>     #Virtual 32000 32000
>     #Virtual 16384 8192
>     Virtual 8192 4096
>     #Virtual 5120 3200
>   EndSubSection
> EndSection
>
> Section "ServerLayout"
>   Identifier   "dummy_layout"
>   Screen       "dummy_screen"
>   InputDevice  "dummy_mouse"
>   InputDevice  "dummy_keyboard"
> EndSection
> v
>

Reply | Threaded
Open this post in threaded view
|

Re: VMM VM - 'dummy' based driver-based X11 server inside, not possible?

Jiri B-2
On Thu, Feb 15, 2018 at 04:18:33PM -0800, Mike Larkin wrote:
> On Thu, Feb 15, 2018 at 07:10:26PM -0500, Jiri B wrote:
> > Is it possible to run 'dummy' based X11 (should be better that Xvfb)[1] inside
> > VMM VM?
> >
>
> what are you trying to accomplish?

A persistent remote display session, ie. xenodm->wm or users one accessible
via VNC with x11vnc.

Jiri

Reply | Threaded
Open this post in threaded view
|

Re: VMM VM - 'dummy' based driver-based X11 server inside, not possible?

Mike Larkin
On Thu, Feb 15, 2018 at 07:31:07PM -0500, Jiri B wrote:

> On Thu, Feb 15, 2018 at 04:18:33PM -0800, Mike Larkin wrote:
> > On Thu, Feb 15, 2018 at 07:10:26PM -0500, Jiri B wrote:
> > > Is it possible to run 'dummy' based X11 (should be better that Xvfb)[1] inside
> > > VMM VM?
> > >
> >
> > what are you trying to accomplish?
>
> A persistent remote display session, ie. xenodm->wm or users one accessible
> via VNC with x11vnc.
>
> Jiri

I found a solution to do this with about 1 minute of google searching. What
are you finding difficult?

Reply | Threaded
Open this post in threaded view
|

Re: VMM VM - 'dummy' based driver-based X11 server inside, not possible?

Jiri B-2
On Thu, Feb 15, 2018 at 06:48:53PM -0800, Mike Larkin wrote:
> > > what are you trying to accomplish?
> >
> > A persistent remote display session, ie. xenodm->wm or users one accessible
> > via VNC with x11vnc.
> >
> I found a solution to do this with about 1 minute of google searching. What
> are you finding difficult?

I'm not sure I can follow.

I would be happy to listen for your proposal for my use case.

I'll try to clarify my use case further. I'd like to attach of a persistent
remote display session in screen/tmux-like manner.

IIUC a 'persistent' disqualifies X11 forwarding over SSH, and it
disqualifies usage of "remote" DISPLAY=$ip:$display too.

Thus, IIUC, X11 server needs to run on remote OS as well, and because the VM
does not have real graphical card, it does need a kind of fake X11 server.

Xvfb or X11 native 'dummy'-driver based solution should work, the graphics
itself can be later attached in screen/tmux-like manner via VNC for example.

Solutions I'm aware:

- X11 forwarding (not persistent)
- X11 with remote DISPLAY (not persistent)
- X11 'dummy' driver (not working in VMM VM)
- Xvfb (works but seems slower/obsoleted by X11 native 'dummy' driver)

Thank you for help.

Jiri


Reply | Threaded
Open this post in threaded view
|

Re: VMM VM - 'dummy' based driver-based X11 server inside, not possible?

Mike Larkin
On Fri, Feb 16, 2018 at 03:14:49AM -0500, Jiri B wrote:

> On Thu, Feb 15, 2018 at 06:48:53PM -0800, Mike Larkin wrote:
> > > > what are you trying to accomplish?
> > >
> > > A persistent remote display session, ie. xenodm->wm or users one accessible
> > > via VNC with x11vnc.
> > >
> > I found a solution to do this with about 1 minute of google searching. What
> > are you finding difficult?
>
> I'm not sure I can follow.
>
> I would be happy to listen for your proposal for my use case.
>
> I'll try to clarify my use case further. I'd like to attach of a persistent
> remote display session in screen/tmux-like manner.
>
> IIUC a 'persistent' disqualifies X11 forwarding over SSH, and it
> disqualifies usage of "remote" DISPLAY=$ip:$display too.
>
> Thus, IIUC, X11 server needs to run on remote OS as well, and because the VM
> does not have real graphical card, it does need a kind of fake X11 server.
>
> Xvfb or X11 native 'dummy'-driver based solution should work, the graphics
> itself can be later attached in screen/tmux-like manner via VNC for example.
>
> Solutions I'm aware:
>
> - X11 forwarding (not persistent)
> - X11 with remote DISPLAY (not persistent)
> - X11 'dummy' driver (not working in VMM VM)
> - Xvfb (works but seems slower/obsoleted by X11 native 'dummy' driver)
>
> Thank you for help.
>
> Jiri
>
>

Xvfb + x11vnc worked fine in the test I just did.

Reply | Threaded
Open this post in threaded view
|

Re: VMM VM - 'dummy' based driver-based X11 server inside, not possible?

Jiri B-2
On Fri, Feb 16, 2018 at 12:19:44AM -0800, Mike Larkin wrote:
> Xvfb + x11vnc worked fine in the test I just did.

Yes, it does, thanks for confirmation.

I was curious why X11 'dummy' mode does not if it should be
used in environments without graphical card for headless X11
server.

Maybe it does not work as our xf86-video-dummy is old,
https://github.com/freedesktop/xorg-xf86-video-dummy/commit/87249af5faf85c8d093e910c069faa4db0aee843#diff-67e997bcfdac55191033d57a16d1408a

I'll stick to Xvfb for now and I'll give a try to build
newer xf86-video-dummy.

Jiri

Reply | Threaded
Open this post in threaded view
|

Re: VMM VM - 'dummy' based driver-based X11 server inside, not possible?

Dumitru Moldovan
In reply to this post by Jiri B-2
On 02/16/18 10:14, Jiri B wrote:

[…]

> I'll try to clarify my use case further. I'd like to attach of a persistent
> remote display session in screen/tmux-like manner.
>
> IIUC a 'persistent' disqualifies X11 forwarding over SSH, and it
> disqualifies usage of "remote" DISPLAY=$ip:$display too.
>
> Thus, IIUC, X11 server needs to run on remote OS as well, and because the VM
> does not have real graphical card, it does need a kind of fake X11 server.
>
> Xvfb or X11 native 'dummy'-driver based solution should work, the graphics
> itself can be later attached in screen/tmux-like manner via VNC for example.
>
> Solutions I'm aware:
>
> - X11 forwarding (not persistent)
> - X11 with remote DISPLAY (not persistent)
> - X11 'dummy' driver (not working in VMM VM)
> - Xvfb (works but seems slower/obsoleted by X11 native 'dummy' driver)
>
Might want to add this to your list: https://www.xpra.org/ (have never
tried it, but advertises itself as "screen for X11").


signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: VMM VM - 'dummy' based driver-based X11 server inside, not possible?

Jiri B-2
On Fri, Feb 16, 2018 at 09:42:25PM +0200, Dumitru Mi?u Moldovan wrote:

> On 02/16/18 10:14, Jiri B wrote:
>
> […]
>
> > I'll try to clarify my use case further. I'd like to attach of a persistent
> > remote display session in screen/tmux-like manner.
> >
> > IIUC a 'persistent' disqualifies X11 forwarding over SSH, and it
> > disqualifies usage of "remote" DISPLAY=$ip:$display too.
> >
> > Thus, IIUC, X11 server needs to run on remote OS as well, and because the VM
> > does not have real graphical card, it does need a kind of fake X11 server.
> >
> > Xvfb or X11 native 'dummy'-driver based solution should work, the graphics
> > itself can be later attached in screen/tmux-like manner via VNC for example.
> >
> > Solutions I'm aware:
> >
> > - X11 forwarding (not persistent)
> > - X11 with remote DISPLAY (not persistent)
> > - X11 'dummy' driver (not working in VMM VM)
> > - Xvfb (works but seems slower/obsoleted by X11 native 'dummy' driver)
> >
>
> Might want to add this to your list: https://www.xpra.org/ (have never
> tried it, but advertises itself as "screen for X11").

IIUC xpra uses 'dummy' X11 driver but I haven't checked too deeply
as there's no port for it right now.

Jiri



Reply | Threaded
Open this post in threaded view
|

Re: VMM VM - 'dummy' based driver-based X11 server inside, not possible?

Tinker
In reply to this post by Jiri B-2
On February 16, 2018 4:35 PM, Jiri B <[hidden email]> wrote:

> On Fri, Feb 16, 2018 at 12:19:44AM -0800, Mike Larkin wrote:
>
> > Xvfb + x11vnc worked fine in the test I just did.
>
> Yes, it does, thanks for confirmation.
>
> I was curious why X11 'dummy' mode does not if it should be
> used in environments without graphical card for headless X11
> server.
>
> Maybe it does not work as our xf86-video-dummy is old,
>
> https://github.com/freedesktop/xorg-xf86-video-dummy/commit/87249af5faf85c8d093e910c069faa4db0aee843#diff-67e997bcfdac55191033d57a16d1408a
>
> I'll stick to Xvfb for now and I'll give a try to build
> newer xf86-video-dummy.
>
> Jiri

(Thread crossreferenced with
https://marc.info/?t=152230713300003&r=1&w=2 .)

Thanks for reporting that you got X dummy working, though only on
baremetal but not in a VMM, the latter crashing at X start  with
message "(EE) xf86OpenConsole: No console driver found".

Do you have any idea what "No console driver found" here means, like,
is it trying to open some hardware descriptor and it can't find it in
VMM because VMM won't produce it while some PCI device on your
baremetal would? Anyhow weird considering the X is supposed to not
touch any hardware ("dummy" = graphics driver and "void" = mouse and
keyboard drivers.)

Did you get any idea about the detail cause?

If any patch needs testing e.g. upgrade to latest
https://github.com/freedesktop/xorg-xf86-video-dummy/ feel free to let
me know.

Thanks,
Tinker

Reply | Threaded
Open this post in threaded view
|

Re: VMM VM - 'dummy' based driver-based X11 server inside, not possible?

Mike Larkin
On Thu, Mar 29, 2018 at 11:03:21AM -0400, Tinker wrote:

> On February 16, 2018 4:35 PM, Jiri B <[hidden email]> wrote:
> > On Fri, Feb 16, 2018 at 12:19:44AM -0800, Mike Larkin wrote:
> >
> > > Xvfb + x11vnc worked fine in the test I just did.
> >
> > Yes, it does, thanks for confirmation.
> >
> > I was curious why X11 'dummy' mode does not if it should be
> > used in environments without graphical card for headless X11
> > server.
> >
> > Maybe it does not work as our xf86-video-dummy is old,
> >
> > https://github.com/freedesktop/xorg-xf86-video-dummy/commit/87249af5faf85c8d093e910c069faa4db0aee843#diff-67e997bcfdac55191033d57a16d1408a
> >
> > I'll stick to Xvfb for now and I'll give a try to build
> > newer xf86-video-dummy.
> >
> > Jiri
>
> (Thread crossreferenced with
> https://marc.info/?t=152230713300003&r=1&w=2 .)
>
> Thanks for reporting that you got X dummy working, though only on
> baremetal but not in a VMM, the latter crashing at X start  with
> message "(EE) xf86OpenConsole: No console driver found".
>
> Do you have any idea what "No console driver found" here means, like,
> is it trying to open some hardware descriptor and it can't find it in
> VMM because VMM won't produce it while some PCI device on your
> baremetal would? Anyhow weird considering the X is supposed to not
> touch any hardware ("dummy" = graphics driver and "void" = mouse and
> keyboard drivers.)
>
> Did you get any idea about the detail cause?
>
> If any patch needs testing e.g. upgrade to latest
> https://github.com/freedesktop/xorg-xf86-video-dummy/ feel free to let
> me know.
>
> Thanks,
> Tinker

what do you hope to achieve here?

Reply | Threaded
Open this post in threaded view
|

Re: VMM VM - 'dummy' based driver-based X11 server inside, not possible?

Tinker
On March 29, 2018 11:36 PM, Mike Larkin <[hidden email]> wrote:
..
> > (Thread crossreferenced with
> > https://marc.info/?t=152230713300003&r=1&w=2 .)
> >
> > Thanks for reporting that you got X dummy working, though only on
> > baremetal but not in a VMM, the latter crashing at X start with
> > message "(EE) xf86OpenConsole: No console driver found".
..
> what do you hope to achieve here?

Xvfb + X11vnc gives you a fixed-resolution graphical remote terminal.

My hope is that dummy X + X11vnc will give the same but allow dynamic
resizing of the X framebuffer upon request to do so via Xrandr from a
VNC resize command.

This protocol interaction is what happens when you resize a VNC client
window.

This will be practical when you have one X/VNC server that you will
access from different computers with different screens and screen
resolutions, or you just benefit of dynamically resizing the X
framebuffer without needing to restart all your running X programs.

With Xvfb you'd be inclined to have some different launch scripts for
your different monitors and usecases, e.g. 1400x1000px, 2500x1500px and
800x600px variants for surfing web, checking top, checking network
stats etc. . With dummy X you can just resize the same framebuffer as
you go along depending on needs from time to time.

Reply | Threaded
Open this post in threaded view
|

Re: VMM VM - 'dummy' based driver-based X11 server inside, not possible?

Mike Larkin
On Thu, Mar 29, 2018 at 11:59:21AM -0400, Tinker wrote:

> On March 29, 2018 11:36 PM, Mike Larkin <[hidden email]> wrote:
> ..
> > > (Thread crossreferenced with
> > > https://marc.info/?t=152230713300003&r=1&w=2 .)
> > >
> > > Thanks for reporting that you got X dummy working, though only on
> > > baremetal but not in a VMM, the latter crashing at X start with
> > > message "(EE) xf86OpenConsole: No console driver found".
> ..
> > what do you hope to achieve here?
>
> Xvfb + X11vnc gives you a fixed-resolution graphical remote terminal.
>
> My hope is that dummy X + X11vnc will give the same but allow dynamic
> resizing of the X framebuffer upon request to do so via Xrandr from a
> VNC resize command.
>
> This protocol interaction is what happens when you resize a VNC client
> window.
>
> This will be practical when you have one X/VNC server that you will
> access from different computers with different screens and screen
> resolutions, or you just benefit of dynamically resizing the X
> framebuffer without needing to restart all your running X programs.
>
> With Xvfb you'd be inclined to have some different launch scripts for
> your different monitors and usecases, e.g. 1400x1000px, 2500x1500px and
> 800x600px variants for surfing web, checking top, checking network
> stats etc. . With dummy X you can just resize the same framebuffer as
> you go along depending on needs from time to time.
>

I see. good luck.

Reply | Threaded
Open this post in threaded view
|

Re: VMM VM - 'dummy' based driver-based X11 server inside, not possible?

Karel Gardas
In reply to this post by Tinker
On Thu, 29 Mar 2018 11:59:21 -0400
Tinker <[hidden email]> wrote:

> On March 29, 2018 11:36 PM, Mike Larkin <[hidden email]> wrote:
> > what do you hope to achieve here?
>
> Xvfb + X11vnc gives you a fixed-resolution graphical remote terminal.
>
> My hope is that dummy X + X11vnc will give the same but allow dynamic
> resizing of the X framebuffer upon request to do so via Xrandr from a
> VNC resize command.

Have you tried Xvnc as a X server?

Reply | Threaded
Open this post in threaded view
|

Re: VMM VM - 'dummy' based driver-based X11 server inside, not possible?

Tinker
In reply to this post by Mike Larkin
On March 30, 2018 12:39 AM, Mike Larkin <[hidden email]> wrote:

> On Thu, Mar 29, 2018 at 11:59:21AM -0400, Tinker wrote:
> > On March 29, 2018 11:36 PM, Mike Larkin [hidden email] wrote:
> > ..
> > > > (Thread crossreferenced with
> > > > https://marc.info/?t=152230713300003&r=1&w=2 .)
> > > > Thanks for reporting that you got X dummy working, though only on
> > > > baremetal but not in a VMM, the latter crashing at X start with
> > > > message "(EE) xf86OpenConsole: No console driver found".
> > > > ..
> > > >
> > > > what do you hope to achieve here?
> >
> > Xvfb + X11vnc gives you a fixed-resolution graphical remote terminal.
> > My hope is that dummy X + X11vnc will give the same but allow dynamic
> > resizing of the X framebuffer upon request to do so via Xrandr from a
> > VNC resize command.
> >
> > This protocol interaction is what happens when you resize a VNC client
> > window.
> >
> > This will be practical when you have one X/VNC server that you will
> > access from different computers with different screens and screen
> > resolutions, or you just benefit of dynamically resizing the X
> > framebuffer without needing to restart all your running X programs.
> > With Xvfb you'd be inclined to have some different launch scripts for
> > your different monitors and usecases, e.g. 1400x1000px, 2500x1500px and
> > 800x600px variants for surfing web, checking top, checking network
> > stats etc. . With dummy X you can just resize the same framebuffer as
> > you go along depending on needs from time to time.
>
> I see. good luck.

So, I did get dummy X going.

Start command "Xorg +extension GLX +extension RANDR +extension RENDER
-config custom-xorg.conf", draft /etc/X11/custom-xorg.conf copied below.


VNC seems to not support dynamic resizing according to the definition i
suggested above.

"resizing" may mean that the xrandr CLI tool lets you choose between a
selection of 16:9 resolutions, and that the VNC client would resize its
framebuffer, instead of disconnecting.

I tried with two of the most popular VNC clients and they did *not*
handle the resize but instead disconnected. Not sure why.


On March 30, 2018 1:09 AM, Karel Gardas <[hidden email]> wrote:

> On Thu, 29 Mar 2018 11:59:21 -0400
> Tinker [hidden email] wrote:
> > On March 29, 2018 11:36 PM, Mike Larkin [hidden email] wrote:
> > > what do you hope to achieve here?
> >
> > Xvfb + X11vnc gives you a fixed-resolution graphical remote terminal.
> >
> > My hope is that dummy X + X11vnc will give the same but allow dynamic
> >
> > resizing of the X framebuffer upon request to do so via Xrandr from a
> >
> > VNC resize command.
>
> Have you tried Xvnc as a X server?

Not recently. What about it?


Are you aware of any tool that gives a "persistent" X environment that
also allows very convenient live resizing of the framebuffer?

Best regards,
Tinker

/etc/X11/custom-xorg.conf:

Section "ServerLayout"
  Identifier  "Layout0"
  Screen      0 "Screen0"
  InputDevice "Keyboard0" "CoreKeyboard"
  InputDevice "Mouse0"    "CorePointer"
EndSection

Section "ServerFlags"
  Option "DontVTSwitch"       "true"
  Option "AllowMouseOpenFail" "true"
  Option "PciForceNone"       "true"
  Option "AutoEnableDevices"  "false"
  Option "AutoAddDevices"     "false"
EndSection

Section "Module"
  Load "dbe"
  Load "extmod"
  Load "freetype"
  Load "glx"
EndSection

Section "InputDevice"
  Identifier "Mouse0"
  Option     "CorePointer" "true"
  Driver     "void"
EndSection

Section "InputDevice"
  Identifier "Keyboard0"
  Option     "CoreKeyboard" "true"
  Driver     "void"
EndSection

Section "Device"
  Identifier "Device0"
  Driver "dummy"
  # Option "ConstantDPI" "true"
  # VideoRam 4096000
  # VideoRam 256000
  VideoRam 192000
EndSection

Section "Monitor"
  Identifier "Monitor0"
  HorizSync   5.0 - 1000.0
  VertRefresh 5.0 - 200.0
  # Modeline "1440x900"
  Option      "DPMS"
EndSection

Section "Screen"
  Identifier   "Screen0"
  Device       "Device0"
  Monitor      "Monitor0"
  DefaultDepth 24
  SubSection "Display"
    # Viewport 0 0
    Depth 24
    # Modes "1440x900"
    # Virtual 8192 4096
  EndSubSection
EndSection