You are not logged in.

#1 2020-07-12 07:39:04

ParanoidNemo
Member
Registered: 2015-06-10
Posts: 5

Cannot use save machine in hyper-v

Hi all,
have just made an Arch installation on an Hyper-V VM and everything works except the save state.
With that I mean that I can save the machine without problem (the issue is not on Windows side) but the when I resume the saved machine I'm thrown into a tty that require user and password (should not ask me those because I saved a already logged in machine) and after that it simply remain on a black screen.
I'm starting Arch in an enanched session and also I've alredy exstensively tried the same thing with an ubuntu VM with the same enanched session options and worked without problem (when resumed bring me back directly into the DE without asking user/password and without problems).
I don't know if it could be correlated but I'm using gnome and when I shut down the machine (from inside it, not from Hyper-v) it says to me that another user is logged in (and give me the same username that the user that I'm using, that is the only user on the system).

Thanks in advance for your help.

Offline

#2 2020-07-12 16:55:12

twelveeighty
Member
Registered: 2011-09-04
Posts: 1,456

Re: Cannot use save machine in hyper-v

Are you sure that the machine was resumed and didn't just do a restart? What do you mean specifically by "thrown into a tty" - the standard getty terminal?

Do you use a Display Manager? What DE? You'll need to give us some information.

Check your journal, it should tell you if the machine was simply rebooted by the host (instead of Suspended), or if Suspend failed.

Offline

#3 2020-07-12 18:10:41

ParanoidNemo
Member
Registered: 2015-06-10
Posts: 5

Re: Cannot use save machine in hyper-v

twelveeighty wrote:

Are you sure that the machine was resumed and didn't just do a restart? What do you mean specifically by "thrown into a tty" - the standard getty terminal?

Do you use a Display Manager? What DE? You'll need to give us some information.

Check your journal, it should tell you if the machine was simply rebooted by the host (instead of Suspended), or if Suspend failed.

Thanks for the reply, as said, but probably slipped in the river of words, I'm using gnome.
I'm starting it directly via xinitrc due to the fact that I'm using an enhanced session and the wiki suggest which command to use in the specific case to start the DE.

Here my .xinitrc

export XDG_SESSION_TYPE=x11
export GDK_BACKEND=x11
exec gnome-session

and my .bash_profile

#
# ~/.bash_profile
#

[[ -f ~/.bashrc ]] && . ~/.bashrc

if systemctl -q is-active graphical.target && [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
	exec startx
fi

With "thrown in a tty" I mean that the system started as I was just installed arch without a DE, and that's strange because if hyper-v just shut it down instead of saving it, it should be started in the enhanced session login screen as always. It's like that it was halfway done.
That being said that's my journal log when I filter the suspend keyword.

Jul 11 13:40:21 shell gsd-power[626]: Error calling suspend action: GDBus.Error:org.freedesktop.DBus.Error.InteractiveAuthorizationRequired: Interactive authentication required.

That's strike me as a obviously permission problem, that also happens now that I think about it when I shutdown the machine, because the system ask me for the root password. Have I maybe have to add my user to some specific group to make it work? Also my question is: Ubuntu (the other system that I've tried with the same, as far as possible, configurations) also asked me for the password when shutdown the machine, even from the gnome menu, but the save function was working correctly there.

Last edited by ParanoidNemo (2020-07-12 18:22:02)

Offline

Board footer

Powered by FluxBB