How to run manjaro on Windows 10 Hyper-V Gen2

Did you disable secureboot in the settings?

yes, I did. and I’m already goto the screen “Welcome to Manjaro”, but then I enter the “Boot: Manjaro.x86_64 xfce”, after many console scroll, It’s dislpay “[FAILED] fauled to start Light Dispalay Manager See ‘systemctl status lightdm.service’ for detail”.

manjaro-xfce-17.1.11-stable-x86_64.iso

manjaro-kde-17.1.11-stable-x86_64.iso

It’s stop this screen and blink continual

Can you switch to a tty? ctrl-alt-F3?

Yes, It’s can switch to a tty by ctrl-alt-F3

The text encoding looks like some problem, I use zh_CN.

login to the tty and run this command:
lightdm --test-mode --debug

It should tell you what the error with lightdm is.

[manjaro@manjaro ~]$ lightdm --test-mode --debug
[+0.00s] DEBUG: Logging to /home/manjaro/.cache/lightdm/log/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.26.0, UID=1000 PID=992
[+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
[+0.00s] DEBUG: Running in user mode
[+0.00s] DEBUG: Registered seat module local
[+0.00s] DEBUG: Registered seat module xremote
[+0.00s] DEBUG: Registered seat module unity
[+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.57s] DEBUG: Monitoring logind for seats
[+0.57s] DEBUG: New seat added from logind: seat0
[+0.57s] DEBUG: Seat seat0: Loading properties from config section Seat:*
[+0.57s] DEBUG: Seat seat0: Starting
[+0.57s] DEBUG: Seat seat0: Creating user session
[+0.57s] DEBUG: Loading users from org.freedesktop.Accounts
[+0.57s] DEBUG: User /org/freedesktop/Accounts/User1000 added
[+0.57s] DEBUG: Seat seat0: Creating display server of type x
[+0.58s] DEBUG: Could not run plymouth --ping: Failed to execute child process ?plymouth? (No such file or directory)
[+0.58s] DEBUG: Seat seat0: Starting local X display
[+0.58s] DEBUG: XServer 0: Logging to /home/manjaro/.cache/lightdm/log/x-0.log
[+0.58s] DEBUG: XServer 0: Writing X server authority to /run/lightdm/root/:0
[+0.58s] WARNING: Error reading existing Xauthority: Failed to open file ?/run/lightdm/root/:0?: Permission denied
[+0.58s] WARNING: XServer 0: Failed to write authority: Failed to open X authority /run/lightdm/root/:0: Permission denied
[+0.58s] DEBUG: XServer 0: Launching X Server
[+0.58s] DEBUG: Launching process 1004: /usr/bin/X :0 -seat seat0 -auth /run/lightdm/root/:0 -nolisten tcp
[+0.58s] DEBUG: XServer 0: Waiting for ready signal from X server :0
[+0.58s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.58s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+0.58s] WARNING: Could not enumerate user data directory /var/lib/lightdm-data: Error opening directory '/var/lib/lightdm-data': Permission denied
[+0.58s] DEBUG: Process 1004 exited with return value 1
[+0.58s] DEBUG: XServer 0: X server stopped
[+0.58s] DEBUG: XServer 0: Removing X server authority /run/lightdm/root/:0
[+0.58s] DEBUG: Seat seat0: Display server stopped
[+0.58s] DEBUG: Seat seat0: Stopping session
[+0.58s] DEBUG: Seat seat0: Session stopped
[+0.58s] DEBUG: Seat seat0: Stopping display server, no sessions require it
[+0.58s] DEBUG: Seat seat0: Active display server stopped, starting greeter
[+0.58s] DEBUG: Seat seat0: Creating greeter session
[+0.58s] DEBUG: Seat seat0: Creating display server of type x
[+0.58s] DEBUG: Seat seat0: Starting local X display
[+0.58s] DEBUG: XServer 0: Logging to /home/manjaro/.cache/lightdm/log/x-0.log
[+0.58s] DEBUG: XServer 0: Writing X server authority to /run/lightdm/root/:0
[+0.58s] WARNING: Error reading existing Xauthority: Failed to open file ?/run/lightdm/root/:0?: Permission denied
[+0.58s] WARNING: XServer 0: Failed to write authority: Failed to open X authority /run/lightdm/root/:0: Permission denied
[+0.58s] DEBUG: XServer 0: Launching X Server
[+0.58s] DEBUG: Launching process 1006: /usr/bin/X :0 -seat seat0 -auth /run/lightdm/root/:0 -nolisten tcp
[+0.58s] DEBUG: XServer 0: Waiting for ready signal from X server :0
[+0.58s] DEBUG: Process 1006 exited with return value 1
[+0.58s] DEBUG: XServer 0: X server stopped
[+0.58s] DEBUG: XServer 0: Removing X server authority /run/lightdm/root/:0
[+0.58s] DEBUG: Seat seat0: Display server stopped
[+0.58s] DEBUG: Seat seat0: Stopping session
[+0.58s] DEBUG: Seat seat0: Session stopped
[+0.58s] DEBUG: Seat seat0: Stopping display server, no sessions require it
[+0.58s] DEBUG: Seat seat0: Stopping; greeter display server failed to start
[+0.58s] DEBUG: Seat seat0: Stopping
[+0.58s] DEBUG: Seat seat0: Stopped
[+0.58s] DEBUG: Required seat has stopped
[+0.58s] DEBUG: Stopping display manager
[+0.58s] DEBUG: Display manager stopped
[+0.58s] DEBUG: Stopping daemon
[+0.59s] DEBUG: Exiting with return value 1
[manjaro@manjaro ~]$ 

Sorry…you need to run it as root or with sudo. I should have included that.

sudo lightdm --test-mode --debug

[manjaro@manjaro ~]$ sudo lightdm --test-mode --debug
[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.26.0, UID=0 PID=1280
[+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
[+0.00s] DEBUG: Registered seat module local
[+0.00s] DEBUG: Registered seat module xremote
[+0.00s] DEBUG: Registered seat module unity
[+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.01s] DEBUG: Monitoring logind for seats
[+0.01s] DEBUG: New seat added from logind: seat0
[+0.01s] DEBUG: Seat seat0: Loading properties from config section Seat:*
[+0.01s] DEBUG: Seat seat0: Starting
[+0.01s] DEBUG: Seat seat0: Creating user session
[+0.02s] DEBUG: Loading users from org.freedesktop.Accounts
[+0.02s] DEBUG: User /org/freedesktop/Accounts/User1000 added
[+0.02s] DEBUG: Seat seat0: Creating display server of type x
[+0.02s] DEBUG: Could not run plymouth --ping: Failed to execute child process ?plymouth? (No such file or directory)
[+0.02s] DEBUG: Using VT 7
[+0.02s] DEBUG: Seat seat0: Starting local X display on VT 7
[+0.02s] DEBUG: XServer 0: Logging to /var/log/lightdm/x-0.log
[+0.02s] DEBUG: XServer 0: Writing X server authority to /run/lightdm/root/:0
[+0.02s] DEBUG: XServer 0: Launching X Server
[+0.02s] DEBUG: Launching process 1285: /usr/bin/X :0 -seat seat0 -auth /run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+0.02s] DEBUG: XServer 0: Waiting for ready signal from X server :0
[+0.02s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.02s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+0.07s] DEBUG: Process 1285 exited with return value 1
[+0.07s] DEBUG: XServer 0: X server stopped
[+0.07s] DEBUG: Releasing VT 7
[+0.07s] DEBUG: XServer 0: Removing X server authority /run/lightdm/root/:0
[+0.07s] DEBUG: Seat seat0: Display server stopped
[+0.07s] DEBUG: Seat seat0: Stopping session
[+0.07s] DEBUG: Seat seat0: Session stopped
[+0.07s] DEBUG: Seat seat0: Stopping display server, no sessions require it
[+0.07s] DEBUG: Seat seat0: Active display server stopped, starting greeter
[+0.07s] DEBUG: Seat seat0: Creating greeter session
[+0.07s] DEBUG: Seat seat0: Creating display server of type x
[+0.07s] DEBUG: Using VT 7
[+0.07s] DEBUG: Seat seat0: Starting local X display on VT 7
[+0.07s] DEBUG: XServer 0: Logging to /var/log/lightdm/x-0.log
[+0.07s] DEBUG: XServer 0: Writing X server authority to /run/lightdm/root/:0
[+0.07s] DEBUG: XServer 0: Launching X Server
[+0.07s] DEBUG: Launching process 1286: /usr/bin/X :0 -seat seat0 -auth /run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+0.07s] DEBUG: XServer 0: Waiting for ready signal from X server :0
[+0.12s] DEBUG: Process 1286 exited with return value 1
[+0.12s] DEBUG: XServer 0: X server stopped
[+0.12s] DEBUG: Releasing VT 7
[+0.12s] DEBUG: XServer 0: Removing X server authority /run/lightdm/root/:0
[+0.12s] DEBUG: Seat seat0: Display server stopped
[+0.12s] DEBUG: Seat seat0: Stopping session
[+0.12s] DEBUG: Seat seat0: Session stopped
[+0.12s] DEBUG: Seat seat0: Stopping display server, no sessions require it
[+0.12s] DEBUG: Seat seat0: Stopping; greeter display server failed to start
[+0.12s] DEBUG: Seat seat0: Stopping
[+0.12s] DEBUG: Seat seat0: Stopped
[+0.12s] DEBUG: Required seat has stopped
[+0.12s] DEBUG: Stopping display manager
[+0.12s] DEBUG: Display manager stopped
[+0.12s] DEBUG: Stopping daemon
[+0.12s] DEBUG: Exiting with return value 1
[manjaro@manjaro ~]$ 
[manjaro@manjaro ~]$ systemctl status lightdm.service
● lightdm.service - Light Display Manager
   Loaded: loaded (/usr/lib/systemd/system/lightdm.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Tue 2018-08-14 00:07:12 CST; 8min ago
     Docs: man:lightdm(1)
  Process: 773 ExecStart=/usr/bin/lightdm (code=exited, status=1/FAILURE)
 Main PID: 773 (code=exited, status=1/FAILURE)

Aug 14 00:07:12 manjaro systemd[1]: lightdm.service: Main process exited, code=exited, status=1/FAILURE
Aug 14 00:07:12 manjaro systemd[1]: lightdm.service: Failed with result 'exit-code'.
Aug 14 00:07:12 manjaro systemd[1]: lightdm.service: Service RestartSec=100ms expired, scheduling restart.
Aug 14 00:07:12 manjaro systemd[1]: lightdm.service: Scheduled restart job, restart counter is at 5.
Aug 14 00:07:12 manjaro systemd[1]: Stopped Light Display Manager.
Aug 14 00:07:12 manjaro systemd[1]: lightdm.service: Start request repeated too quickly.
Aug 14 00:07:12 manjaro systemd[1]: lightdm.service: Failed with result 'exit-code'.
Aug 14 00:07:12 manjaro systemd[1]: Failed to start Light Display Manager.
[manjaro@manjaro ~]$ sudo systemctl status lightdm.service
● lightdm.service - Light Display Manager
   Loaded: loaded (/usr/lib/systemd/system/lightdm.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Tue 2018-08-14 00:07:12 CST; 9min ago
     Docs: man:lightdm(1)
  Process: 773 ExecStart=/usr/bin/lightdm (code=exited, status=1/FAILURE)
 Main PID: 773 (code=exited, status=1/FAILURE)

Aug 14 00:07:12 manjaro systemd[1]: lightdm.service: Main process exited, code=exited, status=1/FAILURE
Aug 14 00:07:12 manjaro systemd[1]: lightdm.service: Failed with result 'exit-code'.
Aug 14 00:07:12 manjaro systemd[1]: lightdm.service: Service RestartSec=100ms expired, scheduling restart.
Aug 14 00:07:12 manjaro systemd[1]: lightdm.service: Scheduled restart job, restart counter is at 5.
Aug 14 00:07:12 manjaro systemd[1]: Stopped Light Display Manager.
Aug 14 00:07:12 manjaro systemd[1]: lightdm.service: Start request repeated too quickly.
Aug 14 00:07:12 manjaro systemd[1]: lightdm.service: Failed with result 'exit-code'.
Aug 14 00:07:12 manjaro systemd[1]: Failed to start Light Display Manager.
[manjaro@manjaro ~]$ 

It looks like X is failing to run.

Anything special in the setup for the display adapter in hyper-v?

Which video driver are you using in Manjaro?

I use the default “driver=free”

I try the “driver=nonfree”, but get the same result.

[manjaro@manjaro ~]$ sudo systemctl status lightdm.service
● lightdm.service - Light Display Manager
   Loaded: loaded (/usr/lib/systemd/system/lightdm.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Tue 2018-08-14 07:44:24 CST; 1min 1s ago
     Docs: man:lightdm(1)
  Process: 712 ExecStart=/usr/bin/lightdm (code=exited, status=1/FAILURE)
 Main PID: 712 (code=exited, status=1/FAILURE)

8月 14 07:44:24 manjaro systemd[1]: lightdm.service: Main process exited, code=exited, status=1/FAILURE
8月 14 07:44:24 manjaro systemd[1]: lightdm.service: Failed with result 'exit-code'.
8月 14 07:44:24 manjaro systemd[1]: lightdm.service: Service RestartSec=100ms expired, scheduling restart.
8月 14 07:44:24 manjaro systemd[1]: lightdm.service: Scheduled restart job, restart counter is at 5.
8月 14 07:44:24 manjaro systemd[1]: Stopped Light Display Manager.
8月 14 07:44:24 manjaro systemd[1]: lightdm.service: Start request repeated too quickly.
8月 14 07:44:24 manjaro systemd[1]: lightdm.service: Failed with result 'exit-code'.
8月 14 07:44:24 manjaro systemd[1]: Failed to start Light Display Manager.
[manjaro@manjaro ~]$ sudo lightdm --test-mode --debug
[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.26.0, UID=0 PID=985
[+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
[+0.00s] DEBUG: Registered seat module local
[+0.00s] DEBUG: Registered seat module xremote
[+0.00s] DEBUG: Registered seat module unity
[+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.01s] DEBUG: Monitoring logind for seats
[+0.01s] DEBUG: New seat added from logind: seat0
[+0.01s] DEBUG: Seat seat0: Loading properties from config section Seat:*
[+0.01s] DEBUG: Seat seat0: Starting
[+0.01s] DEBUG: Seat seat0: Creating user session
[+0.01s] DEBUG: Loading users from org.freedesktop.Accounts
[+0.01s] DEBUG: User /org/freedesktop/Accounts/User1000 added
[+0.01s] DEBUG: Seat seat0: Creating display server of type x
[+0.01s] DEBUG: Could not run plymouth --ping: Failed to execute child process ?plymouth? (No such file or directory)
[+0.01s] DEBUG: Using VT 7
[+0.01s] DEBUG: Seat seat0: Starting local X display on VT 7
[+0.01s] DEBUG: XServer 0: Logging to /var/log/lightdm/x-0.log
[+0.01s] DEBUG: XServer 0: Writing X server authority to /run/lightdm/root/:0
[+0.01s] DEBUG: XServer 0: Launching X Server
[+0.01s] DEBUG: Launching process 991: /usr/bin/X :0 -seat seat0 -auth /run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+0.01s] DEBUG: XServer 0: Waiting for ready signal from X server :0
[+0.01s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.01s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+0.06s] DEBUG: Seat seat0 changes active session to 
[+0.10s] DEBUG: Process 991 exited with return value 1
[+0.10s] DEBUG: XServer 0: X server stopped
[+0.10s] DEBUG: Releasing VT 7
[+0.10s] DEBUG: XServer 0: Removing X server authority /run/lightdm/root/:0
[+0.10s] DEBUG: Seat seat0: Display server stopped
[+0.10s] DEBUG: Seat seat0: Stopping session
[+0.10s] DEBUG: Seat seat0: Session stopped
[+0.10s] DEBUG: Seat seat0: Stopping display server, no sessions require it
[+0.10s] DEBUG: Seat seat0: Active display server stopped, starting greeter
[+0.10s] DEBUG: Seat seat0: Creating greeter session
[+0.10s] DEBUG: Seat seat0: Creating display server of type x
[+0.10s] DEBUG: Using VT 7
[+0.10s] DEBUG: Seat seat0: Starting local X display on VT 7
[+0.10s] DEBUG: XServer 0: Logging to /var/log/lightdm/x-0.log
[+0.10s] DEBUG: XServer 0: Writing X server authority to /run/lightdm/root/:0
[+0.10s] DEBUG: XServer 0: Launching X Server
[+0.10s] DEBUG: Launching process 992: /usr/bin/X :0 -seat seat0 -auth /run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+0.10s] DEBUG: XServer 0: Waiting for ready signal from X server :0
[+0.14s] DEBUG: Process 992 exited with return value 1
[+0.14s] DEBUG: XServer 0: X server stopped
[+0.14s] DEBUG: Releasing VT 7
[+0.14s] DEBUG: XServer 0: Removing X server authority /run/lightdm/root/:0
[+0.14s] DEBUG: Seat seat0: Display server stopped
[+0.14s] DEBUG: Seat seat0: Stopping session
[+0.14s] DEBUG: Seat seat0: Session stopped
[+0.14s] DEBUG: Seat seat0: Stopping display server, no sessions require it
[+0.14s] DEBUG: Seat seat0: Stopping; greeter display server failed to start
[+0.14s] DEBUG: Seat seat0: Stopping
[+0.14s] DEBUG: Seat seat0: Stopped
[+0.14s] DEBUG: Required seat has stopped
[+0.14s] DEBUG: Stopping display manager
[+0.14s] DEBUG: Display manager stopped
[+0.14s] DEBUG: Stopping daemon
[+0.15s] DEBUG: Exiting with return value 1
[manjaro@manjaro ~]$ 

special nothing, I use default setup.

If it’s still relevant, try this:
Switch to a console (ctrl+alt+F3), then install a different graphics driver with sudo pacman -S xf86-video-fbdev. That one should work on Hyper-v. You should probably restart the whole VM.

It’a just livecd now, there nothing leaved after reboot.

After install driver, then sudo lightdm --test-mode --debug .

Struggle at the same point. When I run the live CD it stops at started account service because there is a problem to connect to the server X. If I run Ctrl Alt F2 then run the startx command I have

(==) Log file: "/var/log/Xorg.0.log", Time: Sat Nov 28 21:06:46 2015
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(EE) 
Fatal server error:
(EE) no screens found(EE) 
(EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org

Whether i run pacman -S xf86-video-fbdev or not. I have successfully installed Ubuntu with the same Hyper-V

Just managed to achieve this taking hints from above… After using Ctrl-Alt-F2 and logging in, run the following:

  1. sudo pacman -Sy
  2. sudo pacman -S xf86-video-fbdev
  3. sudo systemctl start lightdm

Once logged in you should see the icons and buttons for installing if you wish. If you do install, you may again experience issues with video on first boot as I did. To resolve, use Ctrl-Alt-F2 again, log in with your credentials, then repeat steps 1 and 2 above to install the video driver (permanently this time) then reboot.

2 Likes

I just tried what you recommended. It works nicely.
Thank you for sharing

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by