テンプレートからVMを作成する

作成

host-a,bそれぞれでスクリプト実行

host-a

/v/bin/k3s/03-create-vms-host-a.sh

bash /v/bin/k3s/03-create-vms-host-a.sh

host-b

/v/bin/k3s/04-create-vms-host-b.sh

bash /v/bin/k3s/04-create-vms-host-b.sh

OS起動後対応

cloud-initがうまくいかなかったのでOS起動後、VNCで繋ぎ、下記を対応

IPアドレス

vi /etc/network...

物理構成

tx100s3-01 (Debian 11, 16GB)                tx100s3-02 (Debian 11, 16GB)
├── KVMゲスト1: ha-master1 (3GB)        ├── KVMゲスト1: hb-master (3GB)
├── KVMゲスト2: ha-worker1 (4GB)        ├── KVMゲスト2: hb-worker1 (4GB)
├── KVMゲスト3: ha-worker2 (4GB)        ├── KVMゲスト3: hb-worker2 (4GB)

論理構成

    今回...

公式github

https://github.com/winapps-org/winapps

Step 1: Configure a Windows VM

https://github.com/winapps-org/winapps/blob/main/docs/docker.md

  • QEMU+KVM+libvirtではなくdockerまたはpodmanでの構築を推奨しているようです。
    • セットアッププロセスを自動化し、Windows仮想マシンの手動構成と最適化の必要性を排除する為。
    • 裏でqemu-kvmが動いてるのでdockerでも動くようです

      pre sett

      ...

install kvm

環境

  • os : Debian 11
  • image dir : /v/images
  • vlan-bridge

install

sudo apt update
sudo apt -y install qemu-kvm libvirt-daemon qemu-system \
  qemu-utils python3 python3-pip \
  bridge-utils virtinst libvirt-daemon-system virt-manager

echo vhost_net >> /etc/modules 
echo 8021q...