私的AI研究会 > DualBoot
AI 機械学習のために用意した新しいマシンで「Windows11」「Ubuntu22.04LTS」デュアルブートを構成する
HP ENVY Desktop TE02-1097jp
■ 参考:Intel® CPU について
NVIDIAのGPUアーキテクチャ
[ 0.344334] ACPI BIOS Error (bug): Failure creating named object [\_SB.PC00.R IP21.PXSX.TURP], AE_ALREADY_EXISTS (20221020/dswload2-326) [ 0.344342] ACPI Error: AE_ALREADY_EXISTS, During name lookup/catalog (20221020/psobject-220) [ 0.344344] ACPI BIOS Error (bug): Failure creating named object [\_SB.PC00.R P21.PXSX.TBDU], AE_ALREADY_EXISTS (20221020/dswload2-326) [ 0.344346] ACPI Error: AE_ALREADY_EXISTS, During name lookup/catalog (20221020/psobject-220) [ 1.376781] blacklist: Problem blacklisting hash (-13) [ 1.376800] blacklist: Problem blacklisting hash (-13) [ 1.376837] blacklist: Problem blacklisting hash (-13) [ 1.376869] blacklist: Problem blacklisting hash (-13) [ 1.376907] blacklist: Problem blacklisting hash (-13) [ 1.376937] blacklist: Problem blacklisting hash (-13) [ 1.588745] DMAR: DRHD: handling fault status reg 2 [ 1.588784] DMAR: CDMA Write NO_PASID] Request device [05:00.0] fault addr 0x5a5db000 [fault reason 0x05] PTE Write access is not set [ 2.335557] nouveau 0000:01:00.0: unknown chipset (194000a1)
linux /casper/vmlinuz file=/cdrom/preseed/ubuntu.seed maybe-ubiquity quiet splash ---・変更後(「nomodeset」を追加する)
linux /casper/vmlinuz file=/cdrom/preseed/ubuntu.seed maybe-ubiquity quiet splash nomodeset ---
※ インストール詳細 → Ubuntu22.04LTS のインストールと設定
GRUB_TIMEOUT_STYLE=menu ← メニューを表示するように 'hidden' から変更する GRUB_TIMEOUT=5 ← 表示秒数 GRUB_DISABLE_OS_PROBER=false ← Windows を起動できるように追記する・grub の更新を実行する
$ sudo update-grub・次回起動から Grubメニューが5秒間表示された後 Ubuntu が起動する
$ nvidia-smi Wed Jan 10 03:40:26 2024 +---------------------------------------------------------------------------------------+ | NVIDIA-SMI 535.129.03 Driver Version: 535.129.03 CUDA Version: 12.2 | |-----------------------------------------+----------------------+----------------------+ | GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. | | | | MIG M. | |=========================================+======================+======================| | 0 NVIDIA GeForce RTX 4070 Ti Off | 00000000:01:00.0 On | N/A | | 30% 28C P8 5W / 285W | 399MiB / 12282MiB | 8% Default | | | | N/A | +-----------------------------------------+----------------------+----------------------+ +---------------------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=======================================================================================| | 0 N/A N/A 1939 G /usr/lib/xorg/Xorg 168MiB | | 0 N/A N/A 2178 G /usr/bin/gnome-shell 71MiB | | 0 N/A N/A 2925 G ...irefox/3600/usr/lib/firefox/firefox 147MiB | +---------------------------------------------------------------------------------------+
$ sudo apt install nautilus-admin
$ nautilus -q
$ sudo apt install openssh-server -y・SSHのステータスをチェックする
$ sudo systemctl status ssh ● ssh.service - OpenBSD Secure Shell server Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: e> Active: active (running) since Fri 2023-12-08 13:13:31 JST; 42s ago Docs: man:sshd(8) man:sshd_config(5) Main PID: 9717 (sshd) Tasks: 1 (limit: 76721) Memory: 1.7M CPU: 47ms CGroup: /system.slice/ssh.service └─9717 "sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups" 12月 08 13:13:31 NUC-GEN10 systemd[1]: Starting OpenBSD Secure Shell server... 12月 08 13:13:31 NUC-GEN10 sshd[9717]: Server listening on 0.0.0.0 port 22. 12月 08 13:13:31 NUC-GEN10 sshd[9717]: Server listening on :: port 22. 12月 08 13:13:31 NUC-GEN10 systemd[1]: Started OpenBSD Secure Shell server.・SSH のパスワード認証を有効にする
PasswordAuthentication yes・SSH サービスの再起動
$ sudo systemctl restart ssh・IPアドレスの確認する
$ ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether 1c:69:7a:a1:48:f1 brd ff:ff:ff:ff:ff:ff altname enp0s31f6 inet 192.168.0.14/24 brd 192.168.0.255 scope global dynamic noprefixroute eno1 valid_lft 251391sec preferred_lft 251391sec inet6 fe80::9c7e:ccf0:33d9:3da8/64 scope link noprefixroute valid_lft forever preferred_lft forever 3: wlp0s20f3: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000 link/ether 44:af:28:0b:21:ab brd ff:ff:ff:ff:ff:ff
$ vi ~/.vimrc set nocompatible set backspace=indent,eol,start set expandtab set tabstop=4 set shiftwidth=4 set autoindent・sudo 付きで vi を実行した場合は、root の設定が使用されるので、rootの .vimrcを ~/vimrc のシンボリックリンクにする
$ sudo ln -s ~/.vimrc /root/.vimrc $ sudo ls -la /root 合計 24 drwx------ 4 root root 4096 3月 31 19:07 . drwxr-xr-x 20 root root 4096 3月 31 17:29 .. -rw-r--r-- 1 root root 3106 12月 5 2019 .bashrc drwx------ 2 root root 4096 2月 10 03:51 .cache -rw-r--r-- 1 root root 161 12月 5 2019 .profile lrwxrwxrwx 1 root root 19 3月 31 19:07 .vimrc -> /home/mizutu/.vimrc drwxr-xr-x 3 root root 4096 3月 31 17:33 snap
(py37y) $ sudo hwclock -D --systohc --localtime hwclock: use --verbose, --debug has been deprecated.
[************] DMAR: DRHD: handling fault status reg 2 [************] DMAR: CDMA Write NO_PASID] Request device [05:00.0] fault addr 8x5a5db000 [fault reason 8x851 PTE Write access is not set・'DNARR:'のエラーx4 以降はすぐに起動する(トータル起動時間:
[ 0.271308] ACPI BIOS Error (bug): Failure creating named object [\_SB.PC00.R P21.PXSX.TURP], AE_ALREADY_EXISTS (20230331/dswload2-326) [ 0.271316] ACPI Error: AE_ALREADY_EXISTS, During name lookup/catalog (202303 31/psobject-228) [ 0.271319] ACPI BIOS Error (bug): Failure creating named object [\_SB.PC08.R P21.PXSX.TBDU], AE_ALREADY_EXISTS (20230331/dswload2-326) [ 0.271321] ACPI Error: AE_ALREADY_EXISTS, During name lookup/catalog (202303 31/psobject-228) [ 1.365905] DMAR: DRHD: handling fault status reg 2 [ 1.365962] DMAR: CDMA Write NO_PASID] Request device [05:00.0] fault addr 8x5a5db000 [fault reason 8x851 PTE Write access is not set [ 21.650096] DMAR: DRHD: handling fault status reg 2 [ 21.650161] DMAR: [DMA Write NO_PASID] Request device [05:00.0] fault addr 0x5a5db000 [fault reason 8x05] PTE Write access is not set [ 42.130080] DMAR: DRHD: handling fault status reg 2 [ 42.138122] DMAR: [DMA Write NO_PASID] Request device [05:00.01 fault addr 8x5a5db000 [fault reason 8x05] PTE Write access is not set [ 62.610876] DMAR: DRHD: handling fault status reg 2 [ 62.618123] DMAR: [DMA Write NO_PASID] Request device [05:00.01 fault addr 0x5a5db000 [fault reason 0x85) PTE Write access is not set [ 83.006636] thunderbolt 0000:05:00.0: failed to send driver ready to ICH /dev/nweinip2: clean, 935706/62400304 files, 31200611/249919744 blocks [ 84.103874] [ 84.117171] ACPI BIOS Error (bug): AE_AHL PACKAGE_LIMIT, Index (0x00000004A) is beyond end of object (length 0x4A) (20230331/exoparg2-393) [ 84.117203] ACPI Error: Aborting method \_SB.PCOO.CNVN.HGDS due to previous error (AE_AHL PACKAGE LIMIT) (20290331/psparse-529) [ 84.126226] imimifi 0000:00:14.3: HRT: Invalid buffer destin・動作に支障はないので現状は無視することにする