https://github.com/frobware/ubuntu-fan-hacks
Scripts for setting up the ubuntu-fan on KVM instances
https://github.com/frobware/ubuntu-fan-hacks
Last synced: 6 months ago
JSON representation
Scripts for setting up the ubuntu-fan on KVM instances
- Host: GitHub
- URL: https://github.com/frobware/ubuntu-fan-hacks
- Owner: frobware
- Created: 2016-06-24T10:21:03.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-07-22T07:25:15.000Z (over 9 years ago)
- Last Synced: 2025-09-24T05:48:12.378Z (7 months ago)
- Language: Shell
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ubuntu-fan-hacks
Some notes for experimenting with the `ubuntu-fan` package.
## Network bridge
Create a network bridge for the fan VMs
```xml
$ virsh net-dumpxml fan
fan
fedc1cbe-5ae1-4d7c-937e-4d79252fb98e
```
## Make hostnames resolvable
Add this on the VM host machine:
```
$ cat /etc/NetworkManager/dnsmasq.d/fan.conf
server=/fan/172.30.0.1
```
## Create NoCloud config drives for each VM
```bash
for i in 1 2 3 ; do ./create-config-drive -h fan-vm-${i} -k ~/.ssh/id_rsa.pub -u ./user-data fan-vm-${i}-config.iso; done
```
Note: I copied and modified create-config-drive (missing attribution
because I don't recall where).
## Copy config drives for libvirt access
```bash
sudo cp -v fan-vm*-config.iso /var/lib/libvirt/images
```
## Create the VMs
```bash
./setup-vm.sh 1 2 3
```
## Verify VMs are running
This will take a little time because of cloud-init installing packages
and updates, et al.
```
$ virsh list
Id Name State
----------------------------------------------------
27 fan-vm-1 running
28 fan-vm-2 running
29 fan-vm-3 running
```
# /usr/sbin/fanatic testing
## Docker images (including network utilities)
```
$ docker pull frobware/ubuntu
$ docker tag frobware/ubuntu ubuntu
```
We tag that as `ubuntu` so that `fanatic` will just work. The
`frobware/ubuntu` image has the following networking utilities
installed:
```
apt-get -y update
apt-get -y install iputils-ping traceroute net-tools iproute2
```