Permalink
Browse files

Tweaked to create a vm for maas 2 installation

  • Loading branch information...
1 parent 6f5824c commit 5f5b736308bfdfb15af84fe7986d252b7ef0990b @babbageclunk committed Jul 27, 2016
Showing with 10 additions and 10 deletions.
  1. +1 −1 Makefile
  2. +5 −5 meta-data
  3. +2 −2 setup-vm.sh
  4. +2 −2 user-data
View
@@ -1,7 +1,7 @@
.PHONY: all
CONFIG_DRIVES := \
- vm-co-19-config.iso
+ vm-co-config.iso
IMAGE_DIR := /var/lib/libvirt/images
View
@@ -1,12 +1,12 @@
instance-id: IID-UUID
hostname: HOSTNAME
local-hostname: HOSTNAME
-fqdn: HOSTNAME.maas
+fqdn: HOSTNAME.maas2
manage_etc_hosts: false
preserve_hostname: true
network: {config: disabled}
network-interfaces: |
- auto eth0
- iface eth0 inet static
- address 192.168.100.2/24
- gateway 192.168.100.1
+ auto ens3
+ iface ens3 inet static
+ address 192.168.150.2/24
+ gateway 192.168.150.1
View
@@ -5,7 +5,7 @@ set -e
for i in "$@"; do
name=vm-${i}
virsh pool-refresh default
- virsh vol-clone --pool default trusty-server-cloudimg-amd64-disk1.img ${name}.img
+ virsh vol-clone --pool default xenial-server-cloudimg-amd64-disk1.img ${name}.img
virsh vol-resize --pool default ${name}.img +10G
virsh pool-refresh default
virt-install -r 1024 \
@@ -16,6 +16,6 @@ for i in "$@"; do
--boot hd \
--disk vol=default/${name}.img,format=qcow2,bus=virtio,cache=writeback,size=${DISK_SIZE:-10} \
--disk vol=default/${name}-config.iso,bus=virtio \
- --network network=maas,model=virtio
+ --network network=maas2,model=virtio
done
View
@@ -31,10 +31,10 @@ write_files:
network: {config: disabled}
- path: /etc/apt/apt.conf.d/02apt-cacher
content: |
- Acquire::http { Proxy "http://192.168.100.1:3142"; };
+ Acquire::http { Proxy "http://192.168.150.1:3142"; };
- path: /etc/resolvconf/resolv.conf.d/head
content: |
- nameserver 192.168.100.1
+ nameserver 192.168.150.1
package_reboot_if_required: true

0 comments on commit 5f5b736

Please sign in to comment.