Assign IP and Password for KVM Guest

kotakomputer

Renowned Member
May 14, 2012
429
13
83
Jakarta, Indonesia
www.proxmoxindo.com
Currently I create an automatic installer for Proxmox using WHMCS form order. But have issue with KVM:

1. How to assign IP for KVM Guest during installation automatically? Beside DHCP, is there a better way like OpenVZ does?
2. How to assign Password?

You idea is welcome.
 
Currently I create an automatic installer for Proxmox using WHMCS form order. But have issue with KVM:

1. How to assign IP for KVM Guest during installation automatically? Beside DHCP, is there a better way like OpenVZ does?
You idea is welcome.

I'll begin some work for an proxmox internal dhcp for kvm guest in the coming days.
I don't see other method than dhcp to manage ip of kvm guests.
 
Hi spirit,

thanks for that with the internal dhcp. But can you also implement ebtables support per gui. Me use a setup with external dhcp-server and ebtables support that a vm cant spoof an ip or mac.

Thanks.
 
Just finishing my DHCP Server, now every KVM Guests got their IP:
# apt-get install isc-dhcp-server

Now, I'm thinking to send arp result to tell WHMCS related IP.

I believe module gardens has a proxmox app coming for whmcs which will have the ability to assign ips as well as track bandwidth and more.

https://requests.whmcs.com/responses/proxmox-ve-2x-provisioning


Tomislav Tom Protich
Enterprise Vps Solutions
https://enterprisevpssolutions.com/
https://www.facebook.com/EnterpriseVpsSolutions
https://twitter.com/EnterpriseVps
http://www.linkedin.com/company/enterprise-vps-solutions-llc
 
I believe module gardens has a proxmox app coming for whmcs which will have the ability to assign ips as well as track bandwidth and more.

https://requests.whmcs.com/responses/proxmox-ve-2x-provisioning


Tomislav Tom Protich
Enterprise Vps Solutions
https://enterprisevpssolutions.com/
https://www.facebook.com/EnterpriseVpsSolutions
https://twitter.com/EnterpriseVps
http://www.linkedin.com/company/enterprise-vps-solutions-llc

module garden proxmox module is not yet released, but it should be in some days I think :)
 
I try to create custom WHMCS module. VPS created successfully and got IP from ISC-DHCP Server. I can see VPS IP using arp. But still thinking how to tell Proxmox or WHMCS its IP.

Any idea? Live easier if Proxmox API load the arp cache then save IP to correspondence VM :)
 
SOLVED: see http://stackoverflow.com/questions/15286002/parse-content-from-a-file

In short above link parse DHCP lease file to array so we can find the correct IP, see:
lease 192.168.98.25 {
starts 5 2012/10/05 21:18:41;
ends 5 2012/10/05 22:48:15;
tstp 5 2012/10/05 22:18:41;
binding state free;
hardware ethernet 78:d6:f0:c1:7f:b5; ---> this MAC compare to Proxmox API config
uid "\001x\326\360\301\177\265";
}

Fortunately Proxmox API return VM MAC Address, so we can find right IP.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!