まず Cloudflare にログインする。Cloudflare の Web コンソールは非常にわかりにくい(自分にとって)。今、どこにいるのかわからなくなる。似たような(もしくは同じ)名前の項目が複数個所にあり、どこがどこなんだか。Zero Trust に入る前、入った後とか、本当にわかりづらい(自分が理解できていないだけだと思うんだが)。
左のナビゲーションから Account home を表示すると「<ユーザ名>’s Account」が表示され、その下にタブが表示される。この状態では Zero Trust と Domain と Developer Platform の 3 つがある。この Domain をクリックする。
Domain タブが選択された状態になると、Boost your site’s speed and security と表示されているので、使うドメイン名を入力して、ラジオボタンでは Quick scan for DNS records を選択、Instruct AI bot traffic with robots.txt をオフにして、Continue をクリックする。
プランをどれにするか聞かれるので、Free を選択する。
スキャン結果が表示される。普通ならこの段階で変更することはないはず。Cloudflare に DNS サーバを移すことで MX などちゃんと使えるのかという問題もあるので、必要ないレコードは削除して良いだろう。
最終的には LXC/VM で Web サービスを公開したいと思っているので、ネットワークを切ってそこにそれらで使う LXC/VM を入れる。このネットワークは 172.16.192.0/24 にしようと思っている。
Proxmox のインストール
Proxmox のサイトの Proxmox Virtual Environment のダウンロードページから ISO をダウンロードする。今回ダウンロードするタイミングでは、Proxmox VE 9.1 ISO Installer でバージョンは 9.1-1 だった。ISO をダウンロードしたら rufus で USB メモリに焼く。
焼き終わったら再起動して、USB から PC を起動する。インストーラが起動する。IP アドレスを設定する部分以外は特に悩むこともないと思う。自分はノード名を pve-n100 とした。
インストールが完了して再起動したら、Linux へのログイン画面になっている(テキスト画面の方ね)。「この URL にアクセスして設定しなよ」と書かれているので作業用 PC のブラウザでアクセスする。
auto vmbr0 iface vmbr0 inet static address 172.16.128.130/24 gateway 172.16.128.1 bridge-ports nic0 bridge-stp off bridge-fd 0
iface nic1 inet manual
auto vmbr1 iface vmbr1 inet static address 172.16.192.1/24 bridge_ports none bridge_stp off bridge_fd 0
source /etc/network/interfaces.d/*
どんな具合か確認する。
root@pve-n100:~# 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 noprefixroute valid_lft forever preferred_lft forever 2: nic0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel master vmbr0 state UP group default qlen 1000 link/ether e8:ff:1e:df:52:93 brd ff:ff:ff:ff:ff:ff altname enxe8ff1edf5293 3: wlo1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000 link/ether bc:cd:99:af:31:3d brd ff:ff:ff:ff:ff:ff altname wlp0s20f3 altname wlxbccd99af313d 5: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000 link/ether e8:ff:1e:df:52:93 brd ff:ff:ff:ff:ff:ff inet 172.16.128.130/24 scope global vmbr0 valid_lft forever preferred_lft forever inet6 fe80::eaff:1eff:fedf:5293/64 scope link proto kernel_ll valid_lft forever preferred_lft forever 6: vmbr1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1000 link/ether da:76:5a:11:d3:2f brd ff:ff:ff:ff:ff:ff inet 172.16.192.1/24 scope global vmbr1 valid_lft forever preferred_lft forever inet6 fe80::d876:5aff:fe11:d32f/64 scope link proto kernel_ll valid_lft forever preferred_lft forever root@pve-n100:~# ip route default via 172.16.128.1 dev vmbr0 proto kernel onlink 172.16.128.0/24 dev vmbr0 proto kernel scope link src 172.16.128.130 172.16.192.0/24 dev vmbr1 proto kernel scope link src 172.16.192.1
root@dnsmasq01:systemctl status dnsmasq * dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server Loaded: loaded (/usr/lib/systemd/system/dnsmasq.service; enabled; preset: enabled) Active: active (running) since Mon 2025-12-01 09:04:59 UTC; 1min 23s ago Invocation: 75c968bbaf954d9788983a2a1776287a Docs: man:dnsmasq(8) Process: 1875 ExecStartPre=/usr/share/dnsmasq/systemd-helper checkconfig (code=exited, status=0/SUCCESS) Process: 1881 ExecStart=/usr/share/dnsmasq/systemd-helper exec (code=exited, status=0/SUCCESS) Process: 1887 ExecStartPost=/usr/share/dnsmasq/systemd-helper start-resolvconf (code=exited, status=0/SUCCESS) Main PID: 1886 (dnsmasq) Tasks: 1 (limit: 18623) Memory: 2M (peak: 4.6M) CPU: 26ms CGroup: /system.slice/dnsmasq.service `-1886 /usr/sbin/dnsmasq -x /run/dnsmasq/dnsmasq.pid -u dnsmasq -7 /etc/dnsmasq.d,.dpkg-dist,.dpkg-old,.dpkg-new>
Dec 01 09:04:59 dnsmasq01 systemd[1]: Starting dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server... Dec 01 09:04:59 dnsmasq01 dnsmasq[1886]: started, version 2.91 cachesize 150 Dec 01 09:04:59 dnsmasq01 dnsmasq[1886]: DNS service limited to local subnets Dec 01 09:04:59 dnsmasq01 dnsmasq[1886]: compile time options: IPv6 GNU-getopt DBus no-UBus i18n IDN2 DHCP DHCPv6 no-Lua TFTP> Dec 01 09:04:59 dnsmasq01 dnsmasq[1886]: reading /etc/resolv.conf Dec 01 09:04:59 dnsmasq01 dnsmasq[1886]: using nameserver 172.16.128.1#53 Dec 01 09:04:59 dnsmasq01 dnsmasq[1886]: read /etc/hosts - 8 names Dec 01 09:04:59 dnsmasq01 systemd[1]: Started dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server. lines 1-23/23 (END)
/etc/dnsmasq.conf を編集する。
# If you want dnsmasq to listen for DHCP and DNS requests only on # specified interfaces (and the loopback) give the name of the # interface (eg eth0) here. # Repeat the line for more than one interface. interface=eth0
# Uncomment this to enable the integrated DHCP server, you need # to supply the range of addresses available for lease and optionally # a lease time. If you have more than one network, you will need to # repeat this for each network on which you want to supply DHCP # service. dhcp-range=172.16.192.129,172.16.192.159,12h
# Override the default route supplied by dnsmasq, which assumes the # router is the same machine as the one running dnsmasq. dhcp-option=3,172.16.192.1
次に VM をつくる。Proxmox の Web インタフェースで Datacenter > pve-n100 を選択する。pve-n100 はその人々が付ける名前なんで、各人違うと思う。
画面右上の Create CT をクリックすると Create: Virtual Machine というダイアログが開くので、まずは General タブから設定していくが、適当な VM ID と名前を設定するだけ。
OS タブでは Use CD/DVD disc image file (iso) を選択して、先ほど保存した ISO を選択する(local に保存した Windows 11 のインストール ISO)。Guest OS は Type で Microsoft Windows を選択する。自動的に Version が入る。 あと Add additional drive for VirtIO drivers チェックボックスをオンにして、先ほど保存した ISO を選択する(local に保存した VirtIO の ISO)。
しかし、目指すところは Plasma が良いのだが、使い心地は Gnome の方が良い。KDE Plasma では雑になっているのがデザインにおいても実装においても目立つ感じがするのだ。マウスを動かしたときにスカスカした感じがするとか、ボタンクリックしたときのキャレットの入り心地とか。Gnome が最高というわけではなく macOS と比べたら全然なんだけれど(macOS も最初に Mac OS X が出たときにはそれまでの Mac OS と違った感じで気持ち悪かった)。