in virtual machines the graphical dektop environment randomly fails to show up

  • Done
  • quality assurance status badge
Details
3 participants
  • Catonano
  • Danny Milosavljevic
  • Ricardo Wurmus
Owner
unassigned
Submitted by
Catonano
Severity
normal
C
C
Catonano wrote on 1 Jan 2018 21:06
(address . bug-guix@gnu.org)
CAJ98PDxtrDHcPpWx+rsPZkZCa63C+WWuBxjv_1OKcfcUwhacig@mail.gmail.com
I created a virtual machine with this command

./pre-inst-env guix system vm ~/configs/vm-config-desktop.scm \
--image-size=10GB \
--expose=$HOME \
--share=$HOME/tmp=/exchange

I run this virtual machine with this command

/gnu/store/zlnjsjgw8d0b6p1p7c3dbh4g6x80mrq6-run-vm.sh

Sometimes the graphical login screen comes up

Sometimes it doesn't and a login form in a terminal gets proposed

This happens randomly
Attachment: file
D
D
Danny Milosavljevic wrote on 1 Jan 2018 21:47
(name . Catonano)(address . catonano@gmail.com)(address . 29934@debbugs.gnu.org)
20180101214735.734b62cd@scratchpost.org
Can you try to make it not show up and then check the log files in the guest?

Also, how does vm-config-desktop.scm look?
C
C
Catonano wrote on 1 Jan 2018 23:18
(name . Danny Milosavljevic)(address . dannym@scratchpost.org)(address . 29934@debbugs.gnu.org)
CAJ98PDz3LFgGYr_FkE78GHJAfQ91v35WD+CXmD+Q0vpBdDV2Ew@mail.gmail.com
2018-01-01 21:47 GMT+01:00 Danny Milosavljevic <dannym@scratchpost.org>:

Toggle quote (7 lines)
> Can you try to make it not show up and then check the log files in the
> guest?
>
> Also, how does vm-config-desktop.scm look?
>


This is the vm-config-desktop.scm file

As for the log in the guest, how wold I copy and paste it ?
Attachment: file
D
D
Danny Milosavljevic wrote on 2 Jan 2018 09:58
(name . Catonano)(address . catonano@gmail.com)(address . 29934@debbugs.gnu.org)
20180102095808.04d1111b@scratchpost.org
Toggle quote (2 lines)
> As for the log in the guest, how wold I copy and paste it ?

There's a stdio feature in qemu:

qemu-system-x86_64 -enable-kvm -hda Q -serial stdio -m 1G
^^^^^^^^^^^^^

So if you start qemu in a terminal, you can log into the guest from that terminal (at least when you pass (kernel-arguments '("console=ttyS0")) to the guest.

You can copy & paste normally from that terminal.
C
C
Catonano wrote on 2 Jan 2018 12:17
(name . Danny Milosavljevic)(address . dannym@scratchpost.org)(address . 29934@debbugs.gnu.org)
CAJ98PDxaBjLat4fTEJnchHbyVc1ss3M1+88s=oBjhxoNK6LkdA@mail.gmail.com
2018-01-02 9:58 GMT+01:00 Danny Milosavljevic <dannym@scratchpost.org>:

Toggle quote (16 lines)
>
> > As for the log in the guest, how wold I copy and paste it ?
>
> There's a stdio feature in qemu:
>
> qemu-system-x86_64 -enable-kvm -hda Q -serial stdio -m 1G
> ^^^^^^^^^^^^^
>
> So if you start qemu in a terminal, you can log into the guest from that
> terminal (at least when you pass (kernel-arguments '("console=ttyS0")) to
> the guest.
>
> You can copy & paste normally from that terminal.
>


It says:
qemu-system-x86_64: -hda Q: Could not open 'Q': No such file or directory

This is the ffile that I'm using to launch quemu
Attachment: file
D
D
Danny Milosavljevic wrote on 2 Jan 2018 12:51
(name . Catonano)(address . catonano@gmail.com)(address . 29934@debbugs.gnu.org)
20180102125103.3effc0fe@scratchpost.org
Toggle quote (3 lines)
> This is the ffile that I'm using to launch quemu
> https://paste.freshbakedyams.com/paste/T4NS0FD2

Yeah, so this one has already the "-serial stdio" option. And it also has the console=ttyS0 option.

So just run the VM from a terminal, it should print output and accept input in the terminal.
D
D
Danny Milosavljevic wrote on 2 Jan 2018 12:52
(name . Catonano)(address . catonano@gmail.com)(address . 29934@debbugs.gnu.org)
20180102125201.628f4cf1@scratchpost.org
Oh sorry, you edited it, right? Then remove the -hda Q, it's just an example. Just the -serial stdio and kernel option is enough.
C
C
Catonano wrote on 2 Jan 2018 13:08
(name . Danny Milosavljevic)(address . dannym@scratchpost.org)(address . 29934@debbugs.gnu.org)
CAJ98PDxzAOoO4=WFyH9t_5U_ZO9oRKg6K0AAVweq=cFhv9nttw@mail.gmail.com
2018-01-02 12:52 GMT+01:00 Danny Milosavljevic <dannym@scratchpost.org>:

Toggle quote (4 lines)
> Oh sorry, you edited it, right? Then remove the -hda Q, it's just an
> example. Just the -serial stdio and kernel option is enough.
>

This is the new version of the command to launch qemu

What happens now is that it hangs on:

Booting from ROM...

Here's a picture
Attachment: file
C
C
Catonano wrote on 2 Jan 2018 15:17
(name . Danny Milosavljevic)(address . dannym@scratchpost.org)(address . 29934@debbugs.gnu.org)
CAJ98PDxPo4F=JnTuK-xT+CZAh1LhfaoMZc6-F2OgSKQFFvgdcg@mail.gmail.com
2018-01-02 13:08 GMT+01:00 Catonano <catonano@gmail.com>:

Toggle quote (19 lines)
>
>
> 2018-01-02 12:52 GMT+01:00 Danny Milosavljevic <dannym@scratchpost.org>:
>
>> Oh sorry, you edited it, right? Then remove the -hda Q, it's just an
>> example. Just the -serial stdio and kernel option is enough.
>>
>
> This is the new version of the command to launch qemu
> https://paste.freshbakedyams.com/paste/NS4HNRQ9
>
> What happens now is that it hangs on:
>
> Booting from ROM...
>
> Here's a picture
> https://imgur.com/a/f7hpW
>

No, sorry, I think I used the wrong script

Now it works

Sometimes I need some pauses, I get tired. I apologize

So, this is what I could fetch in the terminal (cool trick ! Thhanks !)

2 Jan 15:15:07 ntpd[388]: Listen normally on 5 eth0
[fe80::f94:7e70:cad0:a679%2]:123
2 Jan 15:15:07 ntpd[388]: new interface(s) found: waking up resolver
New session c1 of user root.
/gnu/store/r4rfxxi8k4gql53vfcr3ns9l2mksd3m2-xauth-1.0.10/bin/xauth: file
/root/.Xauthority does not exist
error in finalization thread: Successo
[ 22.244616] fuse init (API version 7.26)
gnome-session-binary[441]: WARNING: Could not parse desktop file
xscreensaver.desktop or it references a not found TryExec binary
Jan 2 15:15:17 localhost gnome-keyring-daemon[490]: couldn't access
control socket: /run/user/0/keyring/control: File o directory non esistente
Jan 2 15:15:17 localhost gnome-keyring-daemon[491]: couldn't access
control socket: /run/user/0/keyring/control: File o directory non esistente
** Message: couldn't access control socket: /run/user/0/keyring/control:
File o directory non esistente
** Message: couldn't access control socket: /run/user/0/keyring/control:
File o directory non esistente
Jan 2 15:15:17 localhost gnome-keyring-daemon[492]: couldn't access
control socket: /run/user/0/keyring/control: File o directory non esistente
** Message: couldn't access control socket: /run/user/0/keyring/control:
File o directory non esistente
SSH_AUTH_SOCK=/run/user/0/keyring/ssh
SSH_AUTH_SOCK=/run/user/0/keyring/ssh
SSH_AUTH_SOCK=/run/user/0/keyring/ssh
Gjs-Message: JS WARNING: [resource:///org/gnome/shell/ui/main.js 317]:
reference to undefined property global.stage
Gjs-Message: JS WARNING: [resource:///org/gnome/shell/ui/layout.js 217]:
reference to undefined property global.window_group
Gjs-Message: JS WARNING:
[resource:///org/gnome/shell/ui/osdMonitorLabeler.js 59]: reference to
undefined property Meta.MonitorManager
GNOME Shell-Message: Failed to launch ibus-daemon: Esecuzione del processo
figlio «ibus-daemon» non riuscita (File o directory non esistente)
Gjs-Message: JS WARNING: [resource:///org/gnome/shell/ui/slider.js 34]:
reference to undefined property St.GenericAccessible
dbus[384]: [system] Activating service name='org.freedesktop.Accounts'
(using servicehelper)
dbus[384]: [system] Successfully activated service
'org.freedesktop.Accounts'
dbus[384]: [system] Activating service name='org.freedesktop.GeoClue2'
(using servicehelper)
dbus[384]: [system] Successfully activated service
'org.freedesktop.GeoClue2'
dbus[384]: [system] Activating service name='org.freedesktop.UDisks2'
(using servicehelper)
dbus[384]: [system] Successfully activated service 'org.freedesktop.UDisks2'
Gjs-Message: JS WARNING:
[resource:///org/gnome/gjs/modules/tweener/tweener.js 540]: reference to
undefined property properties[istr].isSpecialProperty
GNOME Shell-Message: No permission to trigger offline updates:
Polkit.Error: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Action
org.freedesktop.packagekit.trigger-offline-update is not registered
GNOME Shell-Message: Error loading calendars: Errore nel chiamare
StartServiceByName per org.gnome.Shell.CalendarServer:
GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Process
org.gnome.Shell.CalendarServer exited with status 1

(gsd-sharing:560): sharing-plugin-WARNING **: Failed to StopUnit service:
GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name
org.freedesktop.systemd1 was not provided by any .service files

(gsd-sharing:560): sharing-plugin-WARNING **: Failed to StopUnit service:
GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name
org.freedesktop.systemd1 was not provided by any .service files

(gsd-sharing:560): sharing-plugin-WARNING **: Failed to StopUnit service:
GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name
org.freedesktop.systemd1 was not provided by any .service files
dbus[384]: [system] Activating service name='org.freedesktop.ColorManager'
(using servicehelper)
dbus[384]: [system] Activating service name='org.freedesktop.GeoClue2'
(using servicehelper)
/gnu/store/llp6klxx0gz9zcwhfcaklhp0gv3x178f-gnome-disk-utility-3.26.2/libexec/gsd-disk-utility-notify:
Relink
`/gnu/store/x999chw1v0qz0z8k61k51q44jn5srqg6-libpng-1.6.29/lib/libpng16.so.16'
with
`/gnu/store/3h31zsqxjjg52da5gp3qmhkh4x8klhah-glibc-2.25/lib/libpthread.so.0'
for IFUNC symbol `longjmp'
dbus[384]: [system] Successfully activated service
'org.freedesktop.ColorManager'
dbus[384]: [system] Successfully activated service
'org.freedesktop.GeoClue2'
[ 34.770084] .colord-sane-re[661]: segfault at 30 ip 00007fdd577e4a94 sp
00007ffdcda44460 error 4 in libpthread-2.25.so[7fdd577db000+19000]
GNOME Shell-Message: Error looking up permission:
GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name
org.freedesktop.impl.portal.PermissionStore was not provided by any
.service files
GNOME Shell-Message: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied:
gnome-shell not allowed to act as agent

(gsd-color:570): color-plugin-WARNING **: failed to get edid: unable to get
EDID for output

(gsd-color:570): color-plugin-WARNING **: unable to get EDID for
xrandr-default: unable to get EDID for output
GNOME Shell started at Tue Jan 02 2018 15:15:22 GMT+0100 (CET)
Attachment: file
C
C
Catonano wrote on 2 Jan 2018 15:19
(name . Danny Milosavljevic)(address . dannym@scratchpost.org)(address . 29934@debbugs.gnu.org)
CAJ98PDywRAM49w7u0SFa1g0UYCY1m0Ectv=e2iuTVQJCDDqkPQ@mail.gmail.com
ehm...

i seems the login worked, this time

I guix pulled in thhe meantime, so maybe this had been solved already

Gosh I'm sorry





2018-01-02 15:17 GMT+01:00 Catonano <catonano@gmail.com>:

Toggle quote (130 lines)
>
>
> 2018-01-02 13:08 GMT+01:00 Catonano <catonano@gmail.com>:
>
>>
>>
>> 2018-01-02 12:52 GMT+01:00 Danny Milosavljevic <dannym@scratchpost.org>:
>>
>>> Oh sorry, you edited it, right? Then remove the -hda Q, it's just an
>>> example. Just the -serial stdio and kernel option is enough.
>>>
>>
>> This is the new version of the command to launch qemu
>> https://paste.freshbakedyams.com/paste/NS4HNRQ9
>>
>> What happens now is that it hangs on:
>>
>> Booting from ROM...
>>
>> Here's a picture
>> https://imgur.com/a/f7hpW
>>
>
> No, sorry, I think I used the wrong script
>
> Now it works
>
> Sometimes I need some pauses, I get tired. I apologize
>
> So, this is what I could fetch in the terminal (cool trick ! Thhanks !)
>
> 2 Jan 15:15:07 ntpd[388]: Listen normally on 5 eth0
> [fe80::f94:7e70:cad0:a679%2]:123
> 2 Jan 15:15:07 ntpd[388]: new interface(s) found: waking up resolver
> New session c1 of user root.
> /gnu/store/r4rfxxi8k4gql53vfcr3ns9l2mksd3m2-xauth-1.0.10/bin/xauth: file
> /root/.Xauthority does not exist
> error in finalization thread: Successo
> [ 22.244616] fuse init (API version 7.26)
> gnome-session-binary[441]: WARNING: Could not parse desktop file
> xscreensaver.desktop or it references a not found TryExec binary
> Jan 2 15:15:17 localhost gnome-keyring-daemon[490]: couldn't access
> control socket: /run/user/0/keyring/control: File o directory non esistente
> Jan 2 15:15:17 localhost gnome-keyring-daemon[491]: couldn't access
> control socket: /run/user/0/keyring/control: File o directory non esistente
> ** Message: couldn't access control socket: /run/user/0/keyring/control:
> File o directory non esistente
> ** Message: couldn't access control socket: /run/user/0/keyring/control:
> File o directory non esistente
> Jan 2 15:15:17 localhost gnome-keyring-daemon[492]: couldn't access
> control socket: /run/user/0/keyring/control: File o directory non esistente
> ** Message: couldn't access control socket: /run/user/0/keyring/control:
> File o directory non esistente
> SSH_AUTH_SOCK=/run/user/0/keyring/ssh
> SSH_AUTH_SOCK=/run/user/0/keyring/ssh
> SSH_AUTH_SOCK=/run/user/0/keyring/ssh
> Gjs-Message: JS WARNING: [resource:///org/gnome/shell/ui/main.js 317]:
> reference to undefined property global.stage
> Gjs-Message: JS WARNING: [resource:///org/gnome/shell/ui/layout.js 217]:
> reference to undefined property global.window_group
> Gjs-Message: JS WARNING: [resource:///org/gnome/shell/ui/osdMonitorLabeler.js
> 59]: reference to undefined property Meta.MonitorManager
> GNOME Shell-Message: Failed to launch ibus-daemon: Esecuzione del processo
> figlio «ibus-daemon» non riuscita (File o directory non esistente)
> Gjs-Message: JS WARNING: [resource:///org/gnome/shell/ui/slider.js 34]:
> reference to undefined property St.GenericAccessible
> dbus[384]: [system] Activating service name='org.freedesktop.Accounts'
> (using servicehelper)
> dbus[384]: [system] Successfully activated service
> 'org.freedesktop.Accounts'
> dbus[384]: [system] Activating service name='org.freedesktop.GeoClue2'
> (using servicehelper)
> dbus[384]: [system] Successfully activated service
> 'org.freedesktop.GeoClue2'
> dbus[384]: [system] Activating service name='org.freedesktop.UDisks2'
> (using servicehelper)
> dbus[384]: [system] Successfully activated service
> 'org.freedesktop.UDisks2'
> Gjs-Message: JS WARNING: [resource:///org/gnome/gjs/modules/tweener/tweener.js
> 540]: reference to undefined property properties[istr].isSpecialProperty
> GNOME Shell-Message: No permission to trigger offline updates:
> Polkit.Error: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Action
> org.freedesktop.packagekit.trigger-offline-update is not registered
> GNOME Shell-Message: Error loading calendars: Errore nel chiamare
> StartServiceByName per org.gnome.Shell.CalendarServer:
> GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Process
> org.gnome.Shell.CalendarServer exited with status 1
>
> (gsd-sharing:560): sharing-plugin-WARNING **: Failed to StopUnit service:
> GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name
> org.freedesktop.systemd1 was not provided by any .service files
>
> (gsd-sharing:560): sharing-plugin-WARNING **: Failed to StopUnit service:
> GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name
> org.freedesktop.systemd1 was not provided by any .service files
>
> (gsd-sharing:560): sharing-plugin-WARNING **: Failed to StopUnit service:
> GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name
> org.freedesktop.systemd1 was not provided by any .service files
> dbus[384]: [system] Activating service name='org.freedesktop.ColorManager'
> (using servicehelper)
> dbus[384]: [system] Activating service name='org.freedesktop.GeoClue2'
> (using servicehelper)
> /gnu/store/llp6klxx0gz9zcwhfcaklhp0gv3x178f-gnome-disk-utility-3.26.2/
> libexec/gsd-disk-utility-notify: Relink `/gnu/store/
> x999chw1v0qz0z8k61k51q44jn5srqg6-libpng-1.6.29/lib/libpng16.so.16' with
> `/gnu/store/3h31zsqxjjg52da5gp3qmhkh4x8klhah-glibc-2.25/lib/libpthread.so.0'
> for IFUNC symbol `longjmp'
> dbus[384]: [system] Successfully activated service
> 'org.freedesktop.ColorManager'
> dbus[384]: [system] Successfully activated service
> 'org.freedesktop.GeoClue2'
> [ 34.770084] .colord-sane-re[661]: segfault at 30 ip 00007fdd577e4a94 sp
> 00007ffdcda44460 error 4 in libpthread-2.25.so[7fdd577db000+19000]
> GNOME Shell-Message: Error looking up permission:
> GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name
> org.freedesktop.impl.portal.PermissionStore was not provided by any
> .service files
> GNOME Shell-Message: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied:
> gnome-shell not allowed to act as agent
>
> (gsd-color:570): color-plugin-WARNING **: failed to get edid: unable to
> get EDID for output
>
> (gsd-color:570): color-plugin-WARNING **: unable to get EDID for
> xrandr-default: unable to get EDID for output
> GNOME Shell started at Tue Jan 02 2018 15:15:22 GMT+0100 (CET)
>
>
>
Attachment: file
C
C
Catonano wrote on 2 Jan 2018 15:28
(name . Danny Milosavljevic)(address . dannym@scratchpost.org)(address . 29934@debbugs.gnu.org)
CAJ98PDxrNpphyUgO3AUKetreOy_z6pp5oyLPzg=qHqRyAy503g@mail.gmail.com
Ok, I think I've got something, finally

root can log in
catonano cannot

Here:

New session c5 of user catonano.
/gnu/store/r4rfxxi8k4gql53vfcr3ns9l2mksd3m2-xauth-1.0.10/bin/xauth: error
in locking authority file /home/catonano/.Xauthority
error in finalization thread: Successo
/home/catonano/.bash_profile: riga 5:
/home/catonano/guix/doc:/run/current-system/profile/share/info:/home/catonano/.guix-profile/share/info:/run/current-system/profile/share/info:
File o directory non esistente
declare -x BASH_LOADABLES_PATH="/run/current-system/profile/lib/bash"
declare -x DBUS_FATAL_WARNINGS="0"
declare -x
DICPATH="/home/catonano/.guix-profile/share/hunspell:/run/current-system/profile/share/hunspell"
declare -x DISPLAY=":0.0"
declare -x
GIO_EXTRA_MODULES="/home/catonano/.guix-profile/lib/gio/modules:/run/current-system/profile/lib/gio/modules"
declare -x GIT_SSL_CAINFO="/etc/ssl/certs/ca-certificates.crt"
declare -x GST_PLUGIN_PATH="/home/catonano/.guix-profile/lib/gstreamer-1.0"
declare -x
GST_PLUGIN_SYSTEM_PATH="/home/catonano/.guix-profile/lib/gstreamer-1.0:/run/current-system/profile/lib/gstreamer-1.0"
declare -x GTK_DATA_PREFIX="/run/current-system/profile"
declare -x
GUILE_LOAD_COMPILED_PATH="/home/catonano/.guix-profile/lib/guile/2.0/site-ccache:/home/catonano/.guix-profile/share/guile/site/2.0:/run/current-system/profile/lib/guile/2.2/site-ccache:/run/current-system/profile/share/guile/site/2.2"
declare -x
GUILE_LOAD_PATH="/home/catonano/.guix-profile/share/guile/site/2.0:/run/current-system/profile/share/guile/site/2.2"
declare -x GUIX_GTK2_PATH="/home/catonano/.guix-profile/lib/gtk-2.0"
declare -x GUIX_GTK3_PATH="/run/current-system/profile/lib/gtk-3.0"
declare -x GUIX_LOCPATH="/run/current-system/locale"
declare -x GUIX_PACKAGE_PATH="/home/catonano/projects/local_packages"
declare -x HOME="/home/catonano"
declare -x
INFOPATH="/run/current-system/profile/share/info:/home/catonano/.guix-profile/share/info:/run/current-system/profile/share/info"
declare -x LANG="it_IT.utf8"
declare -x
LIBRARY_PATH="/home/catonano/.guix-profile/lib:/home/catonano/.guix-profile/lib64"
declare -x LINUX_MODULE_DIRECTORY="/run/booted-system/kernel/lib/modules"
declare -x LOGNAME="catonano"
declare -x MAIL="/var/mail/catonano"
declare -x
MANPATH="/run/current-system/profile/share/man:/home/catonano/.guix-profile/share/man:/run/current-system/profile/share/man"
declare -x
NM_VPN_PLUGIN_DIR="/gnu/store/7m12paa3z0y2wl5ya82wqydkw67xj40l-network-manager-vpn-plugins/lib/NetworkManager/VPN"
declare -x OLDPWD
declare -x
PATH="/home/catonano/.guix-profile/bin:/home/catonano/.guix-profile/sbin:/home/catonano/.guix-profile/bin:/run/setuid-programs:/run/current-system/profile/bin:/run/current-system/profile/sbin"
declare -x PWD="/home/catonano"
declare -x
PYTHONPATH="/home/catonano/.guix-profile/lib/python3.5/site-packages"
declare -x QMAKEPATH="/home/catonano/.guix-profile/"
declare -x
SHELL="/gnu/store/ars9lm9jk9hgdifg0gqvf1jrvz5mdg1j-bash-4.4.12/bin/bash"
declare -x SHLVL="1"
declare -x SSL_CERT_DIR="/etc/ssl/certs"
declare -x SSL_CERT_FILE="/etc/ssl/certs/ca-certificates.crt"
declare -x
TZDIR="/gnu/store/bzj472nmnnj5hcfd5yvfiqip1wzw84p9-tzdata-2017b/share/zoneinfo"
declare -x USER="catonano"
declare -x XAUTHORITY="/home/catonano/.Xauthority"
declare -x
XCURSOR_PATH="/home/catonano/.icons:/home/catonano/.guix-profile/share/icons:/run/current-system/profile/share/icons"
declare -x
XDG_CONFIG_DIRS="/home/catonano/.guix-profile/etc/xdg:/run/current-system/profile/etc/xdg"
declare -x
XDG_DATA_DIRS="/run/current-system/profile/share:/home/catonano/.guix-profile/share:/run/current-system/profile/share"
declare -x XDG_RUNTIME_DIR="/run/user/1000"
declare -x XDG_SEAT="seat0"
declare -x XDG_SESSION_ID="c5"
declare -x XDG_VTNR="7"
declare -x X_XFCE4_LIB_DIRS="/run/current-system/profile/lib/xfce4"
No protocol specified

** (process:1256): WARNING **: Could not make bus activated clients aware
of XDG_CURRENT_DESKTOP=GNOME environment variable: Could not connect:
Connection refused
No protocol specified

(gnome-session-check-accelerated:1268): Gtk-WARNING **: cannot open
display: :0.0
No protocol specified

(gnome-session-check-accelerated:1269): Gtk-WARNING **: cannot open
display: :0.0
gnome-session-binary[1256]: WARNING: software acceleration check failed:
Processo figlio uscito con codice 1

** (gnome-session-failed:1270): WARNING **: Cannot open display:
(II) Server terminated successfully (0). Closing log file.
Removed session c5.
Respawning xorg-server.
Attachment: file
C
C
Catonano wrote on 2 Jan 2018 15:31
(name . Danny Milosavljevic)(address . dannym@scratchpost.org)(address . 29934@debbugs.gnu.org)
CAJ98PDxaxOoBwABipUdFQ-mjbuG=UG562DYS4OCQKNHVXbEgQw@mail.gmail.com
You said that I could have logged in from the host terminal, right ?

How do I do that ?

The host terminal is running qemu, there are the messages that I'm pasting
here, no prompt

Please bear with me



2018-01-02 15:28 GMT+01:00 Catonano <catonano@gmail.com>:

Toggle quote (105 lines)
>
>
> Ok, I think I've got something, finally
>
> root can log in
> catonano cannot
>
> Here:
>
> New session c5 of user catonano.
> /gnu/store/r4rfxxi8k4gql53vfcr3ns9l2mksd3m2-xauth-1.0.10/bin/xauth:
> error in locking authority file /home/catonano/.Xauthority
> error in finalization thread: Successo
> /home/catonano/.bash_profile: riga 5: /home/catonano/guix/doc:/run/
> current-system/profile/share/info:/home/catonano/.guix-
> profile/share/info:/run/current-system/profile/share/info: File o
> directory non esistente
> declare -x BASH_LOADABLES_PATH="/run/current-system/profile/lib/bash"
> declare -x DBUS_FATAL_WARNINGS="0"
> declare -x DICPATH="/home/catonano/.guix-profile/share/hunspell:/run/
> current-system/profile/share/hunspell"
> declare -x DISPLAY=":0.0"
> declare -x GIO_EXTRA_MODULES="/home/catonano/.guix-profile/lib/
> gio/modules:/run/current-system/profile/lib/gio/modules"
> declare -x GIT_SSL_CAINFO="/etc/ssl/certs/ca-certificates.crt"
> declare -x GST_PLUGIN_PATH="/home/catonano/.guix-profile/lib/
> gstreamer-1.0"
> declare -x GST_PLUGIN_SYSTEM_PATH="/home/catonano/.guix-profile/lib/
> gstreamer-1.0:/run/current-system/profile/lib/gstreamer-1.0"
> declare -x GTK_DATA_PREFIX="/run/current-system/profile"
> declare -x GUILE_LOAD_COMPILED_PATH="/home/catonano/.guix-profile/
> lib/guile/2.0/site-ccache:/home/catonano/.guix-profile/
> share/guile/site/2.0:/run/current-system/profile/lib/
> guile/2.2/site-ccache:/run/current-system/profile/share/guile/site/2.2"
> declare -x GUILE_LOAD_PATH="/home/catonano/.guix-profile/share/
> guile/site/2.0:/run/current-system/profile/share/guile/site/2.2"
> declare -x GUIX_GTK2_PATH="/home/catonano/.guix-profile/lib/gtk-2.0"
> declare -x GUIX_GTK3_PATH="/run/current-system/profile/lib/gtk-3.0"
> declare -x GUIX_LOCPATH="/run/current-system/locale"
> declare -x GUIX_PACKAGE_PATH="/home/catonano/projects/local_packages"
> declare -x HOME="/home/catonano"
> declare -x INFOPATH="/run/current-system/profile/share/info:/home/
> catonano/.guix-profile/share/info:/run/current-system/profile/share/info"
> declare -x LANG="it_IT.utf8"
> declare -x LIBRARY_PATH="/home/catonano/.guix-profile/lib:/home/
> catonano/.guix-profile/lib64"
> declare -x LINUX_MODULE_DIRECTORY="/run/booted-system/kernel/lib/modules"
> declare -x LOGNAME="catonano"
> declare -x MAIL="/var/mail/catonano"
> declare -x MANPATH="/run/current-system/profile/share/man:/home/
> catonano/.guix-profile/share/man:/run/current-system/profile/share/man"
> declare -x NM_VPN_PLUGIN_DIR="/gnu/store/7m12paa3z0y2wl5ya82wqydkw67xj4
> 0l-network-manager-vpn-plugins/lib/NetworkManager/VPN"
> declare -x OLDPWD
> declare -x PATH="/home/catonano/.guix-profile/bin:/home/catonano/.
> guix-profile/sbin:/home/catonano/.guix-profile/bin:/
> run/setuid-programs:/run/current-system/profile/bin:/
> run/current-system/profile/sbin"
> declare -x PWD="/home/catonano"
> declare -x PYTHONPATH="/home/catonano/.guix-profile/lib/python3.5/
> site-packages"
> declare -x QMAKEPATH="/home/catonano/.guix-profile/"
> declare -x SHELL="/gnu/store/ars9lm9jk9hgdifg0gqvf1jrvz5mdg
> 1j-bash-4.4.12/bin/bash"
> declare -x SHLVL="1"
> declare -x SSL_CERT_DIR="/etc/ssl/certs"
> declare -x SSL_CERT_FILE="/etc/ssl/certs/ca-certificates.crt"
> declare -x TZDIR="/gnu/store/bzj472nmnnj5hcfd5yvfiqip1wzw84
> p9-tzdata-2017b/share/zoneinfo"
> declare -x USER="catonano"
> declare -x XAUTHORITY="/home/catonano/.Xauthority"
> declare -x XCURSOR_PATH="/home/catonano/.icons:/home/catonano/.guix-
> profile/share/icons:/run/current-system/profile/share/icons"
> declare -x XDG_CONFIG_DIRS="/home/catonano/.guix-profile/etc/
> xdg:/run/current-system/profile/etc/xdg"
> declare -x XDG_DATA_DIRS="/run/current-system/profile/share:/home/
> catonano/.guix-profile/share:/run/current-system/profile/share"
> declare -x XDG_RUNTIME_DIR="/run/user/1000"
> declare -x XDG_SEAT="seat0"
> declare -x XDG_SESSION_ID="c5"
> declare -x XDG_VTNR="7"
> declare -x X_XFCE4_LIB_DIRS="/run/current-system/profile/lib/xfce4"
> No protocol specified
>
> ** (process:1256): WARNING **: Could not make bus activated clients aware
> of XDG_CURRENT_DESKTOP=GNOME environment variable: Could not connect:
> Connection refused
> No protocol specified
>
> (gnome-session-check-accelerated:1268): Gtk-WARNING **: cannot open
> display: :0.0
> No protocol specified
>
> (gnome-session-check-accelerated:1269): Gtk-WARNING **: cannot open
> display: :0.0
> gnome-session-binary[1256]: WARNING: software acceleration check failed:
> Processo figlio uscito con codice 1
>
> ** (gnome-session-failed:1270): WARNING **: Cannot open display:
> (II) Server terminated successfully (0). Closing log file.
> Removed session c5.
> Respawning xorg-server.
>
>
>
Attachment: file
D
D
Danny Milosavljevic wrote on 2 Jan 2018 18:11
(name . Catonano)(address . catonano@gmail.com)(address . 29934@debbugs.gnu.org)
20180102181120.0d73a71d@scratchpost.org
Hmm, does it work when you don't expose $HOME ?

Maybe X dislikes multiple concurrent users of its Xauthority files.
D
D
Danny Milosavljevic wrote on 2 Jan 2018 18:15
(name . Catonano)(address . catonano@gmail.com)(address . 29934@debbugs.gnu.org)
20180102181515.195ec353@scratchpost.org
On Tue, 2 Jan 2018 15:31:49 +0100
Catonano <catonano@gmail.com> wrote:

Toggle quote (7 lines)
> You said that I could have logged in from the host terminal, right ?
>
> How do I do that ?
>
> The host terminal is running qemu, there are the messages that I'm pasting
> here, no prompt

Then no getty is running.

Please add

(mingetty-service-type config =>
(mingetty-configuration
(inherit config)
(tty "/dev/ttyS0")))))

to (services ...) in vm-config-desktop.scm .

Maybe agetty instead of mingetty, I forgot...

That should start a login thingie on the serial.
C
C
Catonano wrote on 2 Jan 2018 20:39
(name . Danny Milosavljevic)(address . dannym@scratchpost.org)(address . 29934@debbugs.gnu.org)
CAJ98PDy1CAaQmsz0e=yJJp4nEG9Do15L6i3gMoBp9rs2H_eK=g@mail.gmail.com
2018-01-02 18:15 GMT+01:00 Danny Milosavljevic <dannym@scratchpost.org>:

Toggle quote (28 lines)
> On Tue, 2 Jan 2018 15:31:49 +0100
> Catonano <catonano@gmail.com> wrote:
>
> > You said that I could have logged in from the host terminal, right ?
> >
> > How do I do that ?
> >
> > The host terminal is running qemu, there are the messages that I'm
> pasting
> > here, no prompt
>
> Then no getty is running.
>
> Please add
>
> (mingetty-service-type config =>
> (mingetty-configuration
> (inherit config)
> (tty "/dev/ttyS0")))))
>
> to (services ...) in vm-config-desktop.scm .
>
> Maybe agetty instead of mingetty, I forgot...
>
> That should start a login thingie on the serial.
>


Good news !

adding the mingetty service I get this

<unknown location>: error: invalid field specifier

when calling guix system vm

Also, I fiddled with the mingetty service line, to no good

I read here that mingetty should be in the %base-services ?


Anyway, I tried without --expose=$HOME \ and it works

catonano CAN log in, now

Here:

New session c2 of user catonano.
/gnu/store/r4rfxxi8k4gql53vfcr3ns9l2mksd3m2-xauth-1.0.10/bin/xauth: file
/home/catonano/.Xauthority does not exist
error in finalization thread: Successo
gnome-session-binary[772]: WARNING: Could not parse desktop file
xscreensaver.desktop or it references a not found TryExec binary
Jan 2 20:18:53 localhost gnome-keyring-daemon[817]: couldn't access
control socket: /run/user/1000/keyring/control: File o directory non
esistente
** Message: couldn't access control socket: /run/user/1000/keyring/control:
File o directory non esistente
Jan 2 20:18:53 localhost gnome-keyring-daemon[818]: couldn't access
control socket: /run/user/1000/keyring/control: File o directory non
esistente
** Message: couldn't access control socket: /run/user/1000/keyring/control:
File o directory non esistente
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
Gjs-Message: JS WARNING: [resource:///org/gnome/shell/ui/main.js 317]:
reference to undefined property global.stage
Gjs-Message: JS WARNING: [resource:///org/gnome/shell/ui/layout.js 217]:
reference to undefined property global.window_group
Gjs-Message: JS WARNING:
[resource:///org/gnome/shell/ui/osdMonitorLabeler.js 59]: reference to
undefined property Meta.MonitorManager
GNOME Shell-Message: Failed to launch ibus-daemon: Esecuzione del processo
figlio «ibus-daemon» non riuscita (File o directory non esistente)
Gjs-Message: JS WARNING: [resource:///org/gnome/shell/ui/slider.js 34]:
reference to undefined property St.GenericAccessible
dbus[384]: [system] Activating service name='org.freedesktop.GeoClue2'
(using servicehelper)
dbus[384]: [system] Successfully activated service
'org.freedesktop.GeoClue2'
Gjs-Message: JS WARNING:
[resource:///org/gnome/gjs/modules/tweener/tweener.js 540]: reference to
undefined property properties[istr].isSpecialProperty
GNOME Shell-Message: No permission to trigger offline updates:
Polkit.Error: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Action
org.freedesktop.packagekit.trigger-offline-update is not registered
GNOME Shell-Message: Error loading calendars: Errore nel chiamare
StartServiceByName per org.gnome.Shell.CalendarServer:
GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Process
org.gnome.Shell.CalendarServer exited with status 1

(gsd-sharing:879): sharing-plugin-WARNING **: Failed to StopUnit service:
GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name
org.freedesktop.systemd1 was not provided by any .service files

(gsd-sharing:879): sharing-plugin-WARNING **: Failed to StopUnit service:
GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name
org.freedesktop.systemd1 was not provided by any .service files

(gsd-sharing:879): sharing-plugin-WARNING **: Failed to StopUnit service:
GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name
org.freedesktop.systemd1 was not provided by any .service files

(gsd-rfkill:877): rfkill-plugin-WARNING **: Could not open RFKILL control
device, please verify your installation
/gnu/store/llp6klxx0gz9zcwhfcaklhp0gv3x178f-gnome-disk-utility-3.26.2/libexec/gsd-disk-utility-notify:
Relink
`/gnu/store/x999chw1v0qz0z8k61k51q44jn5srqg6-libpng-1.6.29/lib/libpng16.so.16'
with
`/gnu/store/3h31zsqxjjg52da5gp3qmhkh4x8klhah-glibc-2.25/lib/libpthread.so.0'
for IFUNC symbol `longjmp'
GNOME Shell-Message: Error looking up permission:
GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name
org.freedesktop.impl.portal.PermissionStore was not provided by any
.service files
GNOME Shell-Message: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied:
gnome-shell not allowed to act as agent

(gsd-color:889): color-plugin-WARNING **: failed to get edid: unable to get
EDID for output

(gsd-color:889): color-plugin-WARNING **: unable to get EDID for
xrandr-default: unable to get EDID for output
GNOME Shell started at Tue Jan 02 2018 20:18:57 GMT+0100 (CET)






There's a shocking amount of warnings and erros, missing resources and so
on, in fact the resulting desktop is somewhat awkward (blu background, no
picture)

BUT it works

I opened the file browser (Nautilus ?) and the utility to visualize the
disk utilization

I'd say that the session is viable

I don't now why, as I don't understand the X layers stack, and I don't
understand qemu.
Which 2 users accessing the .Xauthority file ?
And what is this .Xauthority file useful for, anyway ?

But I'm satisfied nonetheless.

I want to use a virtual machine to test my Trytond service and Tryton has a
native GUI client so a graphical environment is necessary

I could connect a client running in the host to the sevice running in a so
called headless guest but I see this line, when I launch qemu

Warning: vlan 0 is not connected to host network

so I'm not sure I want to go there

Thank you Andy, I know I strained your patience
I appreciate that ?

Ciao
Attachment: file
D
D
Danny Milosavljevic wrote on 3 Jan 2018 02:03
(name . Catonano)(address . catonano@gmail.com)(address . 29934@debbugs.gnu.org)
20180103020315.7e9825fb@scratchpost.org
$ cat vm-config-desktop.scm

(operating-system
(host-name "antelope")
(timezone "Europe/Paris")
(locale "it_IT.utf8")
(kernel-arguments `("console=ttyS0"))

;; Assuming /dev/sdX is the target hard disk, and "my-root"
;; is the label of the target root file system.
(bootloader (grub-configuration (device "/dev/sda")))

(file-systems (cons (file-system
(device "my-root")
(title 'label)
(mount-point "/")
(type "ext4")
)
%base-file-systems))

(users (cons (user-account
(name "catonano")
(comment "Alice's brother")
(group "users")
(supplementary-groups '("wheel" "netdev"
"audio" "video"))
(home-directory "/home/catonano"))
%base-user-accounts))

;; This is where we specify system-wide packages.
(packages (cons* nss-certs ;for HTTPS access
gvfs ;for user mounts
%base-packages))

;; Add GNOME and/or Xfce---we can choose at the log-in
;; screen with F1. Use the "desktop" services, which
;; include the X11 log-in service, networking with Wicd,
;; and more.
(services (cons* (postgresql-service #:locale "it_IT.UTF-8")
;(service trytond-service-type)
(service agetty-service-type (agetty-configuration (tty "ttyS0")))
(gnome-desktop-service)
(xfce-desktop-service)
%desktop-services))

;; Allow resolution of '.local' host names with mDNS.
(name-service-switch %mdns-host-lookup-nss))


And then

$ `guix system vm ~/vm-config-desktop.scm --image-size=10GB --share=$HOME/tmp=/exchange` -serial stdio
...
This is the GNU system. Welcome.
antelope login:
C
C
Catonano wrote on 3 Jan 2018 07:56
(name . Danny Milosavljevic)(address . dannym@scratchpost.org)(address . 29934@debbugs.gnu.org)
CAJ98PDwkYeNV7VCCEPzAYgJ7DoqcTgGRXMAr3HL=UkHeTDjaFQ@mail.gmail.com
2018-01-03 2:03 GMT+01:00 Danny Milosavljevic <dannym@scratchpost.org>:

Toggle quote (61 lines)
> $ cat vm-config-desktop.scm
>
> (operating-system
> (host-name "antelope")
> (timezone "Europe/Paris")
> (locale "it_IT.utf8")
> (kernel-arguments `("console=ttyS0"))
>
> ;; Assuming /dev/sdX is the target hard disk, and "my-root"
> ;; is the label of the target root file system.
> (bootloader (grub-configuration (device "/dev/sda")))
>
> (file-systems (cons (file-system
> (device "my-root")
> (title 'label)
> (mount-point "/")
> (type "ext4")
>
> )
> %base-file-systems))
>
> (users (cons (user-account
> (name "catonano")
> (comment "Alice's brother")
> (group "users")
> (supplementary-groups '("wheel" "netdev"
> "audio" "video"))
> (home-directory "/home/catonano"))
> %base-user-accounts))
>
> ;; This is where we specify system-wide packages.
> (packages (cons* nss-certs ;for HTTPS access
> gvfs ;for user mounts
> %base-packages))
>
> ;; Add GNOME and/or Xfce---we can choose at the log-in
> ;; screen with F1. Use the "desktop" services, which
> ;; include the X11 log-in service, networking with Wicd,
> ;; and more.
> (services (cons* (postgresql-service #:locale "it_IT.UTF-8")
> ;(service trytond-service-type)
> (service agetty-service-type (agetty-configuration (tty
> "ttyS0")))
> (gnome-desktop-service)
> (xfce-desktop-service)
> %desktop-services))
>
> ;; Allow resolution of '.local' host names with mDNS.
> (name-service-switch %mdns-host-lookup-nss))
>
>
> And then
>
> $ `guix system vm ~/vm-config-desktop.scm --image-size=10GB
> --share=$HOME/tmp=/exchange` -serial stdio
> ...
> This is the GNU system. Welcome.
> antelope login:
>


Ok, now I can login into the guest from the host terminal

This will be uuseful !

Thanks
Attachment: file
R
R
Ricardo Wurmus wrote on 25 Feb 10:05 +0100
in virtual machines the graphical dektop environment randomly fails to show up
(address . 29934-done@debbugs.gnu.org)
87msro29rb.fsf@elephly.net
I'm closing this for lack of recent activity, and as it appears that the
issue has been solved.

If this decision was incorrect please open a new issue.

Thanks!

--
Ricardo
Closed
?