In external-ip mode, management server can get user VM's ip from
direct.attach.network.externalIpAllocator.url.
This simple tool provides such kind of ip allocator service.
How to:
1. setup the dnsmasq:
add the following in dnsmasq.conf:
dhcp-range=starting-ip-allocate-to-vm,end-ip,netmask,static
dhcp-option=option:router,gateway
2. run cloud-web-ipallocator,
The default listing port is 8080, if it's used by others, change the port by:
cloud-web-ipallocator other-port
3. set the following in direct.attach.network.externalIpAllocator.url:
http://your-host-ip:listening-port/ipallocator
The sequence:
1. add host in UI
2. scp setup_agent.sh to agent host, and execute it. This script receives hostip,zoneid, podid and guid, then runs "cloud-setup-agent" and "cloud-setup-console-proxy". Here, we assume that network/hostname and cloud-agent are already configed and installed.
3. Write a dummy kvm resource into the database, then wait for agent connects to server, by polling the database for every 1 minutes. If it finds the agent is in UP state in database, then return, or wait for at least 10 minutes.
The function stderr was being called with the wrong name of interpolation parameters. The exception was missing from the arguments to the function.
status 5876: resolved fixed