Paste #573619

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
I have taken One server .[ram 24GB, HDD 1000GB, 8 core CPU]
->On that server Ubuntu 14.04 installed
->KVM installed by following the below.
http://www.howtogeek.com/117635/how-to-install-kvm-and-create-virtual-machines-on-ubuntu/

https://help.ubuntu.com/community/KVM/Installation


->Created One KVM Machine with Ubuntu 14.04
->Did System Update and Upgrade
From KVM host , I listed KVM VM’s
vedams@vedamsa013d8:~$ sudo virsh list --all
 Id    Name                           State
----------------------------------------------------
 12    maas-server                    running


1. configure you MAAS VM with static IP address
->/etc/network/interfaces  made static IP
2. disable libvirt DHCP, or it wont let MAAS provide DHCP
http://www.krisbuytaert.be/blog/disabling-dhcp-libvirt-setup
So you have this libvirt setup and you want to have a dhcp server on the virtual machines you are playing with , or you want to have all static IP's.
Libvirt uses dnsmasq to provide dhcp services. If you fully remove the dhcp section, then restart libvirt you'll notice dnsmasq running with no dhcpd on that subnet .

->Go to KVM Host machine, 
vedams@vedamsa013d8:/var/lib/libvirt/network$ vi default.xml
Comment dhcp part
root@vedamsa013d8:/var/lib/libvirt/network#  virsh net-edit default
<network>
  <name>default</name>
  <uuid>ba7fc590-fa00-4f48-b4a3-b563cbce0b84</uuid>
  <forward mode='nat'/>
  <bridge name='virbr0' stp='on' delay='0'/>
  <mac address='52:54:00:e6:35:3d'/>
  <ip address='192.168.122.1' netmask='255.255.255.0'>
<!--
Commented DHCP part
-->
  </ip>
</network>
sudo service libvirt-bin restart
Now Libvirt DHCP disabled.

->Installed MAAS packages On that machine
http://www.ubuntu.com/download/cloud

Able to Open MAAS UI. 

configured MAAS DHCP and Imported Images.

Issue:
======

Next I try to Create another KVM machine to act as maas-slave nodes with (node01, node02...) by enabling PXE boot. But it was throwing an error here. "Network selection does not Support PXE". I selected "Virtual Network 'Default' : NAT".  

But when we try to start installation then It was throwing the error like: "Unable to complete install, libvirt error : Connection closed"