# Tested on Ubuntu 16.04
# Install hyperd, hyperctl, Hyper's kernel and guest image, and their QEMU binary
wget https://hypercontainer-download.s3-us-west-1.amazonaws.com/qemu-hyper/qemu-hyper_2.4.1-1_amd64.deb
wget https://hypercontainer-download.s3-us-west-1.amazonaws.com/0.8/ubuntu/hypercontainer_0.8.1-1_amd64.deb
wget https://hypercontainer-download.s3-us-west-1.amazonaws.com/0.8/ubuntu/hyperstart_0.8.1-1_amd64.deb
dpkg -i qemu-hyper_2.4.1-1_amd64.deb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Hotplugging cpu: | |
| Start QEMU with QMP socket available and with startup amount of CPUs less than maxcpus: | |
| ./qemu-system-x86_64 -qmp unix:/tmp/qmp-sock,server,nowait -smp 2,maxcpus=8 | |
| Connect to qmp socket and add cpu: | |
| socat /tmp/qmp-sock - | |
| { "execute": "cpu-add", "arguments": { "id": 2 } } | |
| Hotpluggable Cpu's can be queried as: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Clear Linux install configuration | |
| # | |
| # /dev/sda1 / | |
| # /dev/sda2 /boot | |
| # /dev/sda3 (reserved partition for devicemapper) | |
| # | |
| DEVICE="/dev/sda3" | |
| echo "Stopping docker" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| *.img | |
| *.raw |
virtio is a kernel virtual bus. From drivers/virtio/virtio.c:
static struct bus_type virtio_bus = {
.name = "virtio",
.match = virtio_dev_match,
.dev_groups = virtio_dev_groups,
.uevent = virtio_uevent,
.probe = virtio_dev_probe,
.remove = virtio_dev_remove,- https://kubernetes.io/docs/tasks/administer-cluster/access-cluster-api/
- https://thenewstack.io/taking-kubernetes-api-spin/ <-- This is just in case.
There are two ways you can talk to the KUBE API.
Start a kube proxy server which will act as a reverse proxy for the client.
Wed 25 Apr 16:15:47 BST 2018
Setting up the experimental vsock/nfs between a host Linux machine and a KVM/QEMU client is not quite trivial - let's write it down...
over in kata containers, we use 9pfs to mount host side filesystems into the QEMU/KVM Virtual Machine.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #git status | |
| #On branch stable-2.11 | |
| #Your branch is up-to-date with 'origin/stable-2.11'. | |
| #nothing to commit, working directory clean | |
| ./configure --disable-bluez --disable-brlapi --disable-docs --disable-curses --disable-gtk --disable-opengl --disable-sdl --disable-spice --disable-vte --disable-vnc --disable-vnc-jpeg --disable-vnc-png --disable-vnc-sasl --disable-fdt --disable-glusterfs --disable-libiscsi --disable-libnfs --disable-bzip2 --disable-lzo --disable-snappy --disable-seccomp --disable-tpm --disable-slirp --disable-libusb --disable-usb-redir --disable-tcg --disable-uuid --disable-debug-tcg --disable-qom-cast-debug --disable-tcg-interpreter --disable-tcmalloc --disable-curl --disable-rdma --disable-tools --disable-xen --disable-linux-aio --enable-kvm --enable-vhost-net --enable-virtfs --enable-attr --enable-cap-ng --target-list=x86_64-softmmu --extra-cflags=" -O3 -fno-semantic-interposition -falign-functions=32 -D_FORTIFY_SOURCE=2 -fPIE" --extra-ldflags=" -z noexecstack -z relro -z now" --static -- |