Files
talos/docs/website/content/v0.2/en/guides/hypervisors/kvm.md
Andrew Rynhard 655aaa3149 docs: add documentation website
This will allow us to iterate faster on documentation for multiple
versions of Talos.

Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
2019-10-18 21:28:40 -07:00

1.5 KiB

title
title
KVM

Creating a Master Node

On the KVM host, install a master node to an available block device:

docker run \
 --rm \
 --privileged \
 --volume /dev:/dev \
 talos-systems/talos:latest image -b /dev/sdb -f \
 -p metal -u http://${IP}:8080/master.yaml

http://${IP}:8080/master.yaml should be reachable by the VM and contain a valid master configuration file.

Now, create the VM:

virt-install \
    -n master \
    --description "Kubernetes master node." \
    --os-type=Linux \
    --os-variant=generic \
    --virt-type=kvm \
    --cpu=host \
    --vcpus=2 \
    --ram=4096 \
    --disk path=/dev/sdb \
    --network bridge=br0,model=e1000,mac=52:54:00:A8:4C:E1 \
    --graphics none \
    --boot hd \
    --rng /dev/random

Creating a Worker Node

On the KVM host, install a worker node to an available block device:

docker run \
 --rm \
 --privileged \
 --volume /dev:/dev \
 talos-systems/talos:latest image -b /dev/sdc -f \
 -p metal -u http://${IP}:8080/worker.yaml

http://${IP}:8080/worker.yaml should be reachable by the VM and contain a valid worker configuration file.

Now, create the VM:

virt-install \
    -n master \
    --description "Kubernetes worker node." \
    --os-type=Linux \
    --os-variant=generic \
    --virt-type=kvm \
    --cpu=host \
    --vcpus=2 \
    --ram=4096 \
    --disk path=/dev/sdc \
    --network bridge=br0,model=e1000,mac=52:54:00:B9:5D:F2 \
    --graphics none \
    --boot hd \
    --rng /dev/random