Wednesday, January 21, 2015

linux - Question on DNS Resolving, Multiple Virtual Hosts, Virtualization and DHCP



Preface:




  • there are several virtual machine instances (one of KVM/XEN/OpenVZ/VirtualBox)

  • each virtual machine instance can hold several virtual hosts (e.g.
    static.machine0, streaming.vmachine0,
    static.vmachine1,
    streaming.vmachine1,

    static.vmachine2, ...)

  • IP's are assigned via DHCP for easy to use

  • there is a network of several physical servers with VT-X hardware
    support, which serve as hosts to
    virtual machine instances. IP's are
    assigned via DHCP for easy to use



Solution needs to:





  • use Internet withing VM instances

  • both physical servers and VM instances within local network can
    access VM instance via it's hostname

  • SSH access within VM instances

  • ability to clone VM instances and reconfigure host settings.



Possible keywords:
DNS Resolving, Multiple Virtual Hosts, Virtualization, DHCP,

UNIX/Linux, Linux, System Administration



Please give me a clue or possible ways of solving this problem and applicable technologies. Thank you.


Answer



I didn't understand very well what the 'problem' is, but for the DNS problem you can configure Dynamic DNS, so each machine will be automatically registered on DNS when it gets an IP address from the DHCP. You of course need a DNS/DHCP server that supports it (named/BIND and dhcpd from linux can do it). Here is a good tutorial about DDNS.



As for virtualization, I like Xen and Ganeti to provide management and migration/failover operations.


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...