[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XL Console: Accessing DomU Guis?


  • To: xen-users@xxxxxxxxxxxxxxxxxxxx
  • From: Paul Leiber <paul@xxxxxxxxxxxxxxxx>
  • Date: Thu, 4 Jan 2024 10:48:11 +0100
  • Arc-authentication-results: i=1; strato.com; arc=none; dkim=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1704361700; s=strato-dkim-0002; d=strato.com; h=In-Reply-To:From:References:To:Subject:Date:Message-ID:Cc:Date:From: Subject:Sender; bh=zAHpqyQXD6EHM5z63fUA6544kP0hJ1etU2dao+NYa/4=; b=Ee3ipAFnQPS/OKHEEftRC1PA85dWm4V28agayzQVEqqFQb2ta3IIn/r2vzA4uz1vmN qCZuucEL33PLmv6Dubr/QFFo+H6FEsoVYYTMbKtyTu9olRt+1KA3T+QZnj74G2ZvtUTV inj5qYktJ/cFhuItIw4SNwKzRsK2OEY/7JZ7MwQUnMN7iCSyzW8Ay9njcvhSSrWHqhZ8 d9Ew7kkg4pzXDzwroE0wo6BC9sgZpFco3bC66TxsbtIqDbH1FXeyQWqCW2ODygnSxFjM Ci5MDFEA/EPPlF+vj5olAXNCRJZ88xmUSU9ewzKBZZIP/Nl1iqtn1aBa97z7HD9UAr2H GKjg==
  • Arc-seal: i=1; a=rsa-sha256; t=1704361700; cv=none; d=strato.com; s=strato-dkim-0002; b=DLeDzPT+JQCqk/JJHfyhOW0jAoU/S/QNt6sWPdZK0fWQ/k150iTm9lJihI956Aajgb pAAKqD+RZz5KnXDFC8VsvN0V3W1mKrThiQ74+CfU6EJ0XnQsDUI520h7eebmhtZ8Jgqo kNYIOfGudNia9Q6X65qlUuvWrrHSJP66eNW97tOC0tzgOso9ds4tMU0fgS1T8yJVFjaM He0eCSw2O/+C3EDh3VWDvPQAO0NKLjHs1UbudkkTQd3a6Xud49bAcWPW3vmRKPDam/q5 TagkQ0tU5aDnHf9q2qXbhiDxwRa+aBKpCtUXG/XNgZKVmmD4HMHua5vtHMrkLCu9xR75 6fyQ==
  • Delivery-date: Thu, 04 Jan 2024 09:49:09 +0000
  • List-id: Xen user discussion <xen-users.lists.xenproject.org>

Hey John,

I have never used SDL so far and I am not an experienced KDE/Xfce user (my DomUs are mostly headless), so please take my reply with caution.

Am 04.01.2024 um 04:47 schrieb John L. Poole:
Goal:

I am trying to run 2 graphical environments ("guis"), KDE Plasma &
Windows 7, on a machine where the Xen hypervisor runs and where I can
access the guis on the monitor attached to the machine. I want to have
the machine act as a workstation giving me the ability to switch between
Gentoo & Win7 (Win for legacy Adobe products with I *own*) using the "xl
console" command. I believe I want SDL. I do not want the VNC delay.

I don't think "xl console" works in the way you want to use it, see below.

============================================

My guest VM, ryzdesk [desktop] herein "DomU" has KDE Plasma installed
and I can successfully launch tiger VNC within DomU and access the KDE
desktop through through VNC from a remote machine.

I assume from what you have written that you are running a TigerVNC server instance in the DomU. If you use the VNC option built into Xen (provided via QEMU, I belive), you don't need to use TigerVNC on the DomU.


I have tried the following:

1) In Dom0, launch as root Xfce4

2) In a console within Xfce4,
      start the DomU: "xl create ryzdesk.conf -c"

3) In the DomU console, log in as root. Run:
     xinit
    to launch the KDE desktop.

4) switch out of the DomU console with Ctrl+"]"

5) In the same Xfce4 console now activated in DomU,
    use: "xl console [#]" to jump into DomU.

When I am in the DomU session, nothing happens, there are only the
messages from the start of xinit. No KDE desktop pops up and replaced my
Xfce desktop. I then enter Ctrl + "c" to terminate the attempted launch
of the KDE desktop.  Log is below.

My understanding is that the Dom0 _console_ simply can't display the GUI from the DomU. "xl console" does what it says, it shows the console of the DomU. The output of the DomU console after starting xinit shows that this is working as intended. "xl create" with the "-c" option is equivalent to using "xl console". Also, a Dom0 console is not "activated" by the DomU in any way, I think a DomU influencing the Dom0 in such a way would violate the security aspect of virtualization.

GUI content from the DomU, be it transmitted via VNC or SDL or whatever, needs to be shown in a separate window in a GUI. Also, your Xfce desktop will not be "replaced" by anything. Xfce still is required for Dom0 to be able to render the windows in which the DomU GUI is shown.

If you have two DomUs you want to switch between (e. g. your Linux/KDE and your Windows DomU), you will have two separate Windows in your Dom0 Xfce GUI between which you can switch.

Xorg log file from an attempt to launch xinitc. In a prior attempt, I
waited 3 minutes after output on the display before I executed
Control-C; in this log, I only waited for about 20 seconds:

https://salemdata.us/xen/guis/Xorg.0._20240103_1741PST.log

I believe the ability to access the guis from Dom0 would be achieved by
selecting SDL in the configuration and executing the "xl console"
command from within a console on a gui. From my configurations file,
ryzdesk.conf:


    ...
    vfb = [ 'type=sdl' ]
    ...
    # ref: https://www.youtube.com/watch?v=s1Ro0KxHooQ
    #
    videoram=16
    stdvga=1
    sdl = 1
    vnc = 0


Two aspects come to my mind here:

1) There seem to be different options for SDL depending on the type of the DomU (PV or HVM). You seem to be setting options for both versions. Perhaps they get in the way of each other? See here: https://xenbits.xen.org/docs/unstable/man/xl.cfg.5.html

2) In the video you referenced, my point from above is confirmed: With starting the DomU, a separate X window opens automatically, the GUI of the DomU is _not_ shown in the terminal window. In fact, no "xl console" is ever executed.

The new hardware consists of:

   AMD Ryzen 7950+ processor
   ASRock X670E motherboard
   64 GB ram (non-ECC)

   Video:
     monitor: ViewSonic VA1655 15.6 Inch 1080p Portable IPS Monitor
     port: HDMI of motherboard

Operating system for Dom0 and DomU (same kernel)

     Gentoo Linux: 6.1.67-gentoo-x86_64

The VNC session demonstrates that the KDE Plasma desktop does work
-- I have been using the KDE desktop through VNC.

Here are links to the version of Xen (4.16.6_pre1) and Qemu I have
installed:

https://salemdata.us/xen/guis/qemu.script.202401031643PST.html
https://salemdata.us/xen/guis/xen.script.202401031643PST.html

Here is a dmesg listing with the Xorg.0.log of my attempt to
to start the KDE desktop.

https://salemdata.us/xen/guis/dmesg_ryzdesk_20240103_1936PST.script.html

1) Is my expectation that Xen will allow me to access guest desktops in
a gui fashion from a Dom0 console unrealistic?

2) What can I reference and/or provide to help troubleshoot the failure
to access a full gui of a guest VM on the hypervisor's monitor?

Do the Xen/QEMU logs on your Dom0 say anything relevant, e. g. about failing to start SDL?

Good luck!

Paul




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.