Hello and DHCP Questions.

8 posts / 0 new
Last post
#1 Tue, 11/13/2012 - 14:10
Franco Nogarin

Hello and DHCP Questions.

First, off, I am a new customer/user. I Have been running cloudmin GPL for a few weeks in my SOHO IT environment, and so decided to go for it in my Govt. Job and build a cloud system using Cloudmin Pro.

So let me begin this by saying thank you for keeping your source open, as well as your minds :)

My first big question is related to my inexperience with the cloudmin product.

I have 3 blade servers, with 24-30 megs ram and dual quad core processors in each with a raid for OS and a raid for storage on each.

smvmhost (cloudmin pro master) smvmbackup64 (webmin) smvmhost64 (production libvirt KVM server, with )

I have cloudmin master installed on one and webmin on the other two. I am slowly migrating my libvirt VMs off of qcow2 images of my production server onto my cloumin master.

The big hitch here is that each blade server is running two nics with one on a private corporate lan, and the other in a small provate network connecting to the internet theough a Firewall.

Both networks provide DHCP services.

I dont seem to be able to create VMs that use DHCP to get an address through my bridges by default, I can only specify a static address or to allow cloudmin to assign, how would you suggest I do this?

Thanks Franco.

Tue, 11/13/2012 - 15:23
andreychek

Howdy,

Sorry, I don't believe there's a way to do that with the default images.

Even with "Assign automatically", that's still going to be using a static IP... it just uses a Cloudmin generated static IP, rather than choosing it yourself.

Using DHCP, rather than a static IP, involves a slightly different networking setup, and would require some changes in the image.

Your options there are --

  1. You could manually switch it to DHCP, after creating the VM.

  2. You could create images of your own (perhaps based on the existing Virtualmin images, which should keep things simple), which are setup to use DHCP rather than static IP's.

There's details here on how to create an image:

https://www.virtualmin.com/documentation/cloudmin/vm/making-images

Tue, 11/13/2012 - 16:22
Franco Nogarin

Ok, this makes more sense, so its tied to the images used to create VMs, and the best solution is what you have offered - to create my own images to start from. Thanks! Franco

Tue, 11/13/2012 - 22:16
andreychek

You know, as I think through how all that works, it strikes me that even if you had your own custom built image, that's not preventing Cloudmin from writing out a static IP in your network bootup config file.

I'll go ask Jamie how one would go about setting up a server with DHCP :-)

-Eric

Wed, 11/14/2012 - 13:07
andreychek

Okay, after speaking with Jamie, it does sound this can work... now, it's not really setup to work the way you're describing. Cloudmin expects to either assign a static IP, or at least know what IP is being given to the VM when using the "automatic" setup... and if a VM obtains it's IP from an alternate DHCP server, that won't be the case.

But, if you'd really like to use an alternate DHCP server, Jamie tells me that you can do this by setting up Cloudmin to automatically assign the IP, but then making sure that DHCP is disabled on the Cloudmin master.

At that point, the VM should pick up the IP address from one of your other DHCP servers.

I'm not sure what problems to expect in that particular case :-) You may want to do some testing to see what sorts of issues, if any, come up while doing that.

-Eric

Wed, 11/14/2012 - 13:50
Franco Nogarin

Great Idea, thanks, the main reason for this scenario is that I do not have control of the IP addresses, my Upline IT resources do not support my Linux work so they simply tell me, we wont support you or what you are doing, you can get IPs via DHCP only.

Ok I will give this try later this week and report back, thank you Eric! Franco

Wed, 11/14/2012 - 13:54
Franco Nogarin

Hmm, cannot delete my own comment, so I will edit it instead, and if you are interested, this Aquia module will provide that functionality to Drupal 7. http://drupal.org/project/comment_goodness

Thu, 11/15/2012 - 10:05
Franco Nogarin

So this did not seem to work for me. I disabled both the DHCP server and the IP6 one and it did not work. I will experiment further. Franco

Topic locked