Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Unable to start graphical session Xfce
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
kahraman
n00b
n00b


Joined: 10 Mar 2021
Posts: 52

PostPosted: Sat Sep 24, 2022 6:37 pm    Post subject: [SOLVED] Unable to start graphical session Xfce Reply with quote

Good evening,

I installed Gentoo Linux as a guest system with Virtual Machine Manager (KVM, Qemu, Libvirt, Virt-Manager) on an Arch Linux host system. Installation is unfold without particular difficulty.

For installing Gentoo Linux, I followed the official Gentoo AMD64 Handbook documentation. For installing and configuring Kernel, I used the manual method (make menucongig, make, make modules_install, make install).

Thereafter, I modified the basic profile (Profile no 1 with OpenRC) and I moved to desktop profile (Profile no 5 with OpenRC). I did a full system update.

Subsequently, I modified the /etc/portage/make.conf file and installed Server X (x11-base/xorg-server x11-base/xwayland x11-drivers/xf86-input-libinput x11-drivers /xf86-video-fbdev x11-drivers/xf86-video-qxl x11-drivers/xf86-video-vesa x11-apps/xinit x11-apps/xhost x11-apps/xrandr x11-apps/xsetroot x11-apps/setxkbmap) .

I continued by installing Lighdm and Xfce.

But I can't get Xfce GUI. I tested with user account and root account with ligtdm and startx. In both cases, it is impossible for me to have a graphical interface.

For several days I have been searching the internet, but I can't find a topic similar to my case (Installing Gentoo Linux as a guest system with Virtual Machine Manager (KVM, Qemu, Libvirt, Virt-Manager)).

I need help diagnosing and solving the problem.

Please find below some system files that may be useful for problem diagnosis.

/home/kahraman/.local/share/xorg/Xorg.0.log : http://pastebin.fr/109735
/var/log/Xorg.0.log : http://pastebin.fr/109736
/usr/src/linux/.config : http://pastebin.fr/109754
dmesg : http://pastebin.fr/109753
emerge --info : http://pastebin.fr/109737
/etc/portage/make.conf : http://pastebin.fr/109738
rc-update : http://pastebin.fr/109740
qlist -I : http://pastebin.fr/109741

Not: I apologize for my English. I am sincerely sorry. I know there must be a lot of spelling and grammar mistakes. I use the Google translator to write to you.


Cordially


Last edited by kahraman on Mon Sep 26, 2022 5:30 pm; edited 5 times in total
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Sat Sep 24, 2022 6:56 pm    Post subject: Reply with quote

Extra kernel config needed for Gentoo as KVM guest.
Plz see
https://wiki.gentoo.org/wiki/QEMU/Linux_guest
You are missing
Code:

CONFIG_VIRTIO_PCI_*
CONFIG_HW_RANDOM_VIRTIO

and maybe others.
Just plz follow the above wiki.
_________________
:)
Back to top
View user's profile Send private message
kahraman
n00b
n00b


Joined: 10 Mar 2021
Posts: 52

PostPosted: Sat Sep 24, 2022 7:39 pm    Post subject: Reply with quote

@alamahant

Thank you for your reply.

I had seen and read the Qemu (https://wiki.gentoo.org/wiki/QEMU) and QEMU/Linux guest (https://wiki.gentoo.org/wiki/QEMU/Linux_guest) documentation and I I have activated the indicated options. But I think I didn't do it right. I will review the Kernel documentation and configuration.

Thank you and good evening.
Back to top
View user's profile Send private message
kahraman
n00b
n00b


Joined: 10 Mar 2021
Posts: 52

PostPosted: Sun Sep 25, 2022 1:29 pm    Post subject: Reply with quote

Hello

I reviewed the documentation and the kernel configuration. I find no anomaly.

The VM starts well, the kernel loads well, but when displaying Lightdm it's the black screen.

As the VM goes to black screen, I can connect to VM in SSH from the host system.

I did enable framebuffer option in kernel config.

Here is the return of the commands about connection manager.

Code:
# /etc/init.d/display-manager status
 * status: crashed


Code:
# /etc/init.d/display-manager stop
 * Stopping lightdm ...


Code:
# /etc/init.d/display-manager start
 * Setting up lightdm ...


Code:
# /etc/init.d/display-manager status
 * status: crashed


I can't find what's preventing it.

Does anyone have any other ideas?
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Sun Sep 25, 2022 1:34 pm    Post subject: Reply with quote

Did you make the suggested changes to your kernel?
_________________
:)
Back to top
View user's profile Send private message
kahraman
n00b
n00b


Joined: 10 Mar 2021
Posts: 52

PostPosted: Sun Sep 25, 2022 1:51 pm    Post subject: Reply with quote

I didn't make any changes. The options tell you they were already enabled.
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Sun Sep 25, 2022 2:00 pm    Post subject: Reply with quote

No you havent
You are missing
Code:

CONFIG_HW_RANDOM_VIRTIO
and possibly others

Code:

KERNEL
Processor type and features  --->
    [*] Linux guest support --->
        [*] Enable Paravirtualization code
        [*] KVM Guest support (including kvmclock)
Device Drivers  --->
    [*] Virtio drivers  --->
        <*> PCI driver for virtio devices
    [*] Block devices  --->
        <*> Virtio block driver
    SCSI device support  --->
        [*] SCSI low-level drivers  --->
            [*] virtio-scsi support
    [*] Network device support  --->
        [*] Network core driver support
            <*> Virtio network driver
    Graphics support  --->
        <*> Virtio GPU driver
    Character devices --->
       <*>   Hardware Random Number Generator Core support --->
           <*>   VirtIO Random Number Generator support

You are getting a sefgault in your startx
Code:

 Backtrace:
[   364.452] (EE) 0: /usr/bin/X (xorg_backtrace+0x5b) [0x561551fa0c7b]
[   364.453] (EE) 1: /usr/bin/X (0x561551e67000+0x13d8f5) [0x561551fa48f5]
[   364.453] (EE) 2: /lib64/libc.so.6 (0x7f345ffa2000+0x3daa0) [0x7f345ffdfaa0]
[   364.453] (EE) 3: /usr/bin/X (xf86InitViewport+0x49) [0x561551fbbba9]
[   364.453] (EE) 4: /usr/bin/X (InitOutput+0xb26) [0x561551fc1be6]
[   364.453] (EE) 5: /usr/bin/X (0x561551e67000+0x76ad3) [0x561551eddad3]
[   364.453] (EE) 6: /lib64/libc.so.6 (0x7f345ffa2000+0x2920a) [0x7f345ffcb20a]
[   364.453] (EE) 7: /lib64/libc.so.6 (__libc_start_main+0x7c) [0x7f345ffcb2bc]
[   364.453] (EE) 8: /usr/bin/X (_start+0x21) [0x561551ea3051]
[   364.453] (EE)
[   364.453] (EE) Segmentation fault at address 0x24
[   364.453] (EE)
Fatal server error:
[   364.453] (EE) Caught signal 11 (Segmentation fault). Server aborting

_________________
:)


Last edited by alamahant on Sun Sep 25, 2022 2:08 pm; edited 1 time in total
Back to top
View user's profile Send private message
kahraman
n00b
n00b


Joined: 10 Mar 2021
Posts: 52

PostPosted: Sun Sep 25, 2022 2:08 pm    Post subject: Reply with quote

Virtio PCI screenshot : https://goopics.net/i/7dm2ml
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Sun Sep 25, 2022 2:11 pm    Post subject: Reply with quote

How about the
Code:

CONFIG_HW_RANDOM_VIRTIO

Can you plz dpaste your dmesg?
_________________
:)
Back to top
View user's profile Send private message
kahraman
n00b
n00b


Joined: 10 Mar 2021
Posts: 52

PostPosted: Sun Sep 25, 2022 2:15 pm    Post subject: Reply with quote

Screenshot HW_RANDOM_VIRTIO : https://goopics.net/i/6yxmex
Back to top
View user's profile Send private message
kahraman
n00b
n00b


Joined: 10 Mar 2021
Posts: 52

PostPosted: Sun Sep 25, 2022 2:19 pm    Post subject: Reply with quote

The dmesg file and .config file URL link is at the bottom of my first post.
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Sun Sep 25, 2022 2:25 pm    Post subject: Reply with quote

Well this
Code:

CONFIG_HW_RANDOM_VIRTIO

does not reflect your .config
Code:

# CONFIG_HW_RANDOM_VIRTIO is not set


You have posted two different configs.
Code:

/home/kahraman/.local/share/xorg/Xorg.0.log : http://pastebin.fr/109735
/var/log/Xorg.0.log : http://pastebin.fr/109736
/usr/src/linux/.config : http://pastebin.fr/109754
dmesg : http://pastebin.fr/109753
emerge --info : http://pastebin.fr/109737
/etc/portage/make.conf : http://pastebin.fr/109738
/usr/src/linux/.config : http://pastebin.fr/109739
rc-update : http://pastebin.fr/109740
qlist -I : http://pastebin.fr/109741


thus the confusion
_________________
:)
Back to top
View user's profile Send private message
kahraman
n00b
n00b


Joined: 10 Mar 2021
Posts: 52

PostPosted: Sun Sep 25, 2022 2:45 pm    Post subject: Reply with quote

Excuse me, I just corrected.
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Sun Sep 25, 2022 2:50 pm    Post subject: Reply with quote

Yes please kindly do not edit your pastebins--if you do-- because it is confusing.
I advice you to
Code:

emerge -av dracut
emerge -av gentoo-kernel-bin
grub-mkconfig -o /boot/grub/grub.cfg
reboot

Let us check if you can boot this way and then work more on what is wrong with your current setup.
_________________
:)
Back to top
View user's profile Send private message
kahraman
n00b
n00b


Joined: 10 Mar 2021
Posts: 52

PostPosted: Sun Sep 25, 2022 3:15 pm    Post subject: Reply with quote

Ok, I will try what you recommend. Thanks for your help.
Back to top
View user's profile Send private message
kahraman
n00b
n00b


Joined: 10 Mar 2021
Posts: 52

PostPosted: Sun Sep 25, 2022 3:19 pm    Post subject: Reply with quote

These lines from /home/kahraman/.local/share/xorg/Xorg.0.log file, one catches my attention, but I don't know what to do with it!

Code:
...
[   188.212] (==) No Layout section.  Using the first Screen section.
[   188.212] (==) No screen section available. Using defaults.
[   188.212] (**) |-->Screen "Default Screen Section" (0)
[   188.212] (**) |   |-->Monitor "<default monitor>"
[   188.212] (==) No monitor specified for screen "Default Screen Section".
...
[   188.212] (WW) The directory "/usr/share/fonts/misc" does not exist.
[   188.212]    Entry deleted from font path.
[   188.212] (WW) The directory "/usr/share/fonts/TTF" does not exist.
[   188.212]    Entry deleted from font path.
[   188.212] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[   188.212]    Entry deleted from font path.
[   188.212] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[   188.212]    Entry deleted from font path.
[   188.212] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
[   188.212]    Entry deleted from font path.
[   188.212] (WW) The directory "/usr/share/fonts/75dpi" does not exist.
[   188.212]    Entry deleted from font path.
...
[   188.217] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_31
...
[   188.225] xf86EnableIO: failed to enable I/O ports 0000-03ff (Operation not permitted)
...
[   188.225] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
...
[   188.225] (EE) Screen(s) found, but none have a usable configuration.
...
Fatal server error:
[   188.225] (EE) no screens found(EE)
...
[   188.231] (EE) Server terminated with error (1). Closing log file.
...
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Sun Sep 25, 2022 3:27 pm    Post subject: Reply with quote

kahraman wrote:
These lines from Xorg.0.log file, one catches my attention, but I don't know what to do with it!

Code:
...
[   188.212] (==) No Layout section.  Using the first Screen section.
[   188.212] (==) No screen section available. Using defaults.
[   188.212] (**) |-->Screen "Default Screen Section" (0)
[   188.212] (**) |   |-->Monitor "<default monitor>"
[   188.212] (==) No monitor specified for screen "Default Screen Section".
...
[   188.212] (WW) The directory "/usr/share/fonts/misc" does not exist.
[   188.212]    Entry deleted from font path.
[   188.212] (WW) The directory "/usr/share/fonts/TTF" does not exist.
[   188.212]    Entry deleted from font path.
[   188.212] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[   188.212]    Entry deleted from font path.
[   188.212] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[   188.212]    Entry deleted from font path.
[   188.212] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
[   188.212]    Entry deleted from font path.
[   188.212] (WW) The directory "/usr/share/fonts/75dpi" does not exist.
[   188.212]    Entry deleted from font path.
...
[   188.217] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_31
...
[   188.225] xf86EnableIO: failed to enable I/O ports 0000-03ff (Operation not permitted)
...
[   188.225] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
...
[   188.225] (EE) Screen(s) found, but none have a usable configuration.
...
Fatal server error:
[   188.225] (EE) no screens found(EE)
...
[   188.231] (EE) Server terminated with error (1). Closing log file.
...

Again these errors are NOT reflected in your xorg logs you provided.
You have the habit of changing the provided matterial(by you).
_________________
:)
Back to top
View user's profile Send private message
kahraman
n00b
n00b


Joined: 10 Mar 2021
Posts: 52

PostPosted: Sun Sep 25, 2022 3:28 pm    Post subject: Reply with quote

And these lines of file /var/log/Xorg.0.log, it catches my attention, but I don't know what to do with it!

Code:
...
[   364.390] (==) No Layout section.  Using the first Screen section.
[   364.390] (==) No screen section available. Using defaults.
[   364.390] (**) |-->Screen "Default Screen Section" (0)
[   364.390] (**) |   |-->Monitor "<default monitor>"
[   364.390] (==) No monitor specified for screen "Default Screen Section".
...
[   364.390] (WW) The directory "/usr/share/fonts/misc" does not exist.
[   364.390]    Entry deleted from font path.
[   364.390] (WW) The directory "/usr/share/fonts/TTF" does not exist.
[   364.390]    Entry deleted from font path.
[   364.390] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[   364.390]    Entry deleted from font path.
[   364.390] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[   364.390]    Entry deleted from font path.
[   364.390] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
[   364.391]    Entry deleted from font path.
[   364.391] (WW) The directory "/usr/share/fonts/75dpi" does not exist.
[   364.391]    Entry deleted from font path.
...
[   364.435] (WW) Falling back to old probe method for modesetting
[   364.435] (EE) open /dev/dri/card0: No such file or directory
...
[   364.438] (WW) qxl(0): No outputs definitely connected, trying again...
[   364.438] (WW) qxl(0): Unable to find connected outputs - setting 1024x768 initial framebuffer
...
[   364.453] (EE) Segmentation fault at address 0x24
...
Fatal server error:
[   364.453] (EE) Caught signal 11 (Segmentation fault). Server aborting
...
[   364.477] (EE) Server terminated with error (1). Closing log file.
...
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Sun Sep 25, 2022 3:31 pm    Post subject: Reply with quote

I told you you had a segfault already.

This WAS in your original logs.
_________________
:)
Back to top
View user's profile Send private message
kahraman
n00b
n00b


Joined: 10 Mar 2021
Posts: 52

PostPosted: Sun Sep 25, 2022 4:03 pm    Post subject: Reply with quote

It's true that I've been working on Gentoo Linux for a few days as the content of the /usr/src/linux/.config file and the content of the Xorg.0.log files can be modified slightly.

This is the reson for which I modify the links and I put the new pastebin links. But the main problem remains the same.

In the meantime I changed the host system. I moved from Arch Linux to Debian.

I am sincerely sorry if I have created confusion and gene.
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Sun Sep 25, 2022 4:18 pm    Post subject: Reply with quote

Its OK.

Did you try these:
alamahant wrote:
Yes please kindly do not edit your pastebins--if you do-- because it is confusing.
I advice you to
Code:

emerge -av dracut
emerge -av gentoo-kernel-bin
grub-mkconfig -o /boot/grub/grub.cfg
reboot

Let us check if you can boot this way and then work more on what is wrong with your current setup.

?
_________________
:)
Back to top
View user's profile Send private message
kahraman
n00b
n00b


Joined: 10 Mar 2021
Posts: 52

PostPosted: Sun Sep 25, 2022 4:26 pm    Post subject: Reply with quote

I'm doing a full system upgrade, including upgrading linux-5.15.68-gentoo to linux-5.15.69-gentoo.
Back to top
View user's profile Send private message
kahraman
n00b
n00b


Joined: 10 Mar 2021
Posts: 52

PostPosted: Sun Sep 25, 2022 6:43 pm    Post subject: Reply with quote

Updating linux-5.15.68-gentoo to linux-5.15.69-gentoo and installing gentoo-kernel-bin and dracut didn't change anything. The Gentoo system has absolutely the same behavior.

I have a question: How do you go from a source kernel or kernel-bin to a genkernel?
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Sun Sep 25, 2022 7:16 pm    Post subject: Reply with quote

To which kernel have you booted?
Plz post
Code:

uname -r
and also
ls /boot

Genkernel is not a kernel but a tool.
https://wiki.gentoo.org/wiki/Genkernel
_________________
:)
Back to top
View user's profile Send private message
kahraman
n00b
n00b


Joined: 10 Mar 2021
Posts: 52

PostPosted: Sun Sep 25, 2022 7:26 pm    Post subject: Reply with quote

I booted on kernel 5.15.69-gentoo-dist

Code:
gentoo ~ # uname -r
5.15.69-gentoo-dist


Code:
gentoo ~ # ls /boot
config-5.15.69-gentoo       grub                               System.map-5.15.69-gentoo       vmlinuz-5.15.69-gentoo
config-5.15.69-gentoo-dist  initramfs-5.15.69-gentoo-dist.img  System.map-5.15.69-gentoo-dist  vmlinuz-5.15.69-gentoo-dist


Code:
gentoo ~ # ls /lib/modules/
5.15.69-gentoo  5.15.69-gentoo-dist


Code:
gentoo ~ # ls /usr/src/
linux  linux-5.15.69-gentoo  linux-5.15.69-gentoo-dist
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum