[LINUX] Boot CentOS 8 from Windows 10 with Wake On LAN

800px-Centos-logo-light.svg.png

Boot CentOS 8 from Windows 10 with Wake On LAN

Make it possible to boot CentOS 8 in the same LAN from Windows 10 by "magic packet" method with Wake On LAN (WOL).

environment

Starter: Windows 10 Home version 1909

The side to be started: CentOS Linux release 8.2.2004 (Core) BIOS MSI motherboard A78M-E35

BIOS settings on the booted side

<a href="https://support.ask-corp.jp/hc/ja/articles/360046270034-MSI%E8%A3%BD%E3%83%9E%E3%82%B6%E3%83%BC % E3% 83% 9C% E3% 83% BC% E3% 83% 89% E3% 81% A7% E3% 81% AEWake-On-LAN-WOL-% E3% 81% AE% E8% A8% AD% E5% AE% 9A% E6% 96% B9% E6% B3% 95% E3% 81% AB% E3% 81% A4% E3% 81% 84% E3% 81% A6 "target =" _ blank "> Made by MSI How to set up Wake On LAN (WOL) on the motherboard MSI motherboard A78M-E35 , so that setting. Set "EuP 2013" in Advanced → Power Management Settings to disabled (default is disabled) Set "Resume By PCI-E Device" in Advanced → Wake Up Event Setup to enable (default is disabled)

Check the settings of CentOS 8 on the booted side

In order to use Wake on LAN, it is necessary to set the item setting of "Wake-on" to "g".

# dnf install ethtool
Ethtool is Network A utility for configuring Interface Cards (NICs). This utility allows you to query and change settings such as speed and port, auto-negotiation, PCI location, and checksum offload for many network devices, especially Ethernet devices. Since it was included from the beginning, it can be omitted in the case of CentOS 8.
# ifconfig
Run to find out the label name of the target Ethernet device
# ethtool enp1s0
For "enp1s0", check with ifconfig for each environment and specify the label name of the corresponding Ethernet device.
Settings for enp1s0:
	Supported ports: [ TP MII ]
	Supported link modes:   10baseT/Half 10baseT/Full 
	                        100baseT/Half 100baseT/Full 
	                        1000baseT/Full 
	Supported pause frame use: Symmetric Receive-only
	Supports auto-negotiation: Yes
	Supported FEC modes: Not reported
	Advertised link modes:  10baseT/Half 10baseT/Full 
	                        100baseT/Half 100baseT/Full 
	                        1000baseT/Full 
	Advertised pause frame use: Symmetric Receive-only
	Advertised auto-negotiation: Yes
	Advertised FEC modes: Not reported
	Link partner advertised link modes:  10baseT/Half 10baseT/Full 
	                                     100baseT/Half 100baseT/Full 
	                                     1000baseT/Full 
	Link partner advertised pause frame use: No
	Link partner advertised auto-negotiation: Yes
	Link partner advertised FEC modes: Not reported
	Speed: 1000Mb/s
	Duplex: Full
	Port: MII
	PHYAD: 0
	Transceiver: internal
	Auto-negotiation: on
	Supports Wake-on: pumbg
	Wake-on: d
	Current message level: 0x00000033 (51)
			       drv probe ifdown ifup
	Link detected: yes

Since the item setting of "Wake-on" is "d" instead of "g", it is necessary to set this to "g".

Change the settings of CentOS 8 on the booted side

# ethtool -s enp1s0 wol g
If it is only once, you can change the item setting of "Wake-on" to "g". However, since it is necessary to execute it every time it is restarted, make the following settings to enable Wake on LAN even after restarting.
# vi /etc/rc.d/rc.local
The contents of the file are only "touch / var / lock / subsys / local" except for comments. Add a new "/ sbin / ethtool -s enp1s0 wol g"
touch /var/lock/subsys/local
/sbin/ethtool -s enp1s0 wol g
# chmod +x /etc/rc.d/rc.local
Change permissions. This will automatically set "ethtool -s enp1s0 wol g".

Install the Wake on LAN compatible PC boot tool on Windows 10 on the boot side

Wake on LAN for Windows You can search for PCs targeted for Wake on LAN by host name, IP address, and MAC address. If you have an IP address, you can also get the MAC address, so there is no need to look up the MAC address on the CentOS 8 that is started. 2020-11-07_200756.png

Send magic packet from Windows 10 on the booting side

Send magic packet to CentOS 8 with Wake on LAN compatible PC boot tool 2020-11-07_201403.png The "boot" tag lights up, and CentOS 8 can actually be booted.

Recommended Posts

Boot CentOS 8 from Windows 10 with Wake On LAN
Dual boot of Windows10, CentOS
Blogging with Pelican on Windows
OpenJTalk on Windows10 (Speak Japanese with Python from environment construction)
Connect to centos6 on virtualbox with ssh connection from Mac
Run SwitchBot on Windows 10 with Bleak
Use Tensorflow 2.1.0 with Anaconda on Windows 10!
Getting started with USD on Windows
Getting started with Python 3.8 on Windows
Run servo with Python on ESP32 (Windows)
Run Keras with CNTK backend from CentOS
Django + Apache with mod_wsgi on Windows Server 2016
A memo with Python2.7 and Python3 on CentOS
Enable WOL (Wake On LAN) on Manjaro KDE
Connecting from python to MySQL on CentOS 6.4
Install Mecab on Linux (CentOS) with brew
Data integration from Python app on Windows to Amazon Redshift with ODBC
Install PostgreSQL from source code on CentOS
Build CentOS 8 on ESXi 6.7 with minimal configuration
Microservices with GCP on RoR starting from scratch
Install Windows 10 from a Linux server with PXE
VM cannot boot with specific kernel of CentOS7
Build a python environment with ansible on centos6
[Ansible] Install dnf on Centos7 with Python3 interpreter
Install OpenCV 4.0 and Python 3.7 on Windows 10 with Anaconda
Cross-compile windows version from nim on arch | linux
Organize files on Windows with Linux commands-using WSL-
Run Flask on CentOS with python3.4, Gunicorn + Nginx.
Python on Windows
Reverse proxy from Apache on GCP to local Raspberry Pi Apache (NAT traversal Wake on LAN [3])
Play with CentOS 8
Run Kali Linux on Windows with GUI (without VirtualBox)
Run Tensorflow from Jupyter Notebook on Bash on Ubuntu on Windows
Problems with windows python being called on pipenv on WSL
Install Grub on USB memory (UEFI) ~ Boot Linux from grub on USB memory ~
Interact with Python on Android from PC via adb
PIL with Python on Windows 8 (for Google App Engine)
Create an OpenAI Gym environment with bash on Windows 10
How to operate Firefox with selenium on Windows Memo
I want to do Wake On LAN fully automatically
Make anaconda environment available from command prompt on windows
Set up Softether Server on GCP (Connect from iPhone / Raspberry Pi) (NAT traversal Wake on LAN [2])