LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 03-04-2010, 10:21 AM   #1
naquad
Member
 
Registered: Feb 2007
Posts: 34

Rep: Reputation: 15
Xen with dhcp in dom0 for domUs


Hi.

I want to setup next configuration:
dom0 running dhcp server for domUs, dhcp shouldn't be accessible from external network, domUs should get additional static routes and ip aliases (if such exist for specific domU) from dhcp.
How do i do this?

Regards, Daniel.

Last edited by naquad; 03-04-2010 at 10:30 AM.
 
Old 03-04-2010, 07:41 PM   #2
HasC
Member
 
Registered: Oct 2009
Location: South America - Paraguay
Distribution: Debian 5 - Slackware 13.1 - Arch - Some others linuxes/*BSDs through KVM and Xen
Posts: 329

Rep: Reputation: 55
Quote:
dhcp shouldn't be accessible from external network
Well, what kind of Xen networking you're using? Bridged, routed, NATed?
If you're using a bridge, you can configure your DHCP server to listen for connections only from the Xen bridge - xenbr0 or something.
 
Old 03-04-2010, 08:08 PM   #3
naquad
Member
 
Registered: Feb 2007
Posts: 34

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by HasC View Post
Well, what kind of Xen networking you're using? Bridged, routed, NATed?
I'll set any networking method if required. Main problem is to don't send dhcp requests from domUs to external network and don't accept dhcp requests from external network. In case of banal dhcpd xenbr0 it fails both purposes and i have to make firewall to drop those packets.

I thought about next config:
create virtual network with domUs on dummy0 interface, put dhcp there,
enable ip_forward, set dom0 as router for domUs using dhcp configuration.
this approach has only one flow: all my domUs got different cidrs, so i'll have to manually add them to dom0s routing table.
if i could make dhcpd to add routes according to static leases (looks stupid, i know, but i need 0-configuration networking) this approach would be the best.

Last edited by naquad; 03-04-2010 at 08:21 PM.
 
Old 03-05-2010, 05:13 AM   #4
HasC
Member
 
Registered: Oct 2009
Location: South America - Paraguay
Distribution: Debian 5 - Slackware 13.1 - Arch - Some others linuxes/*BSDs through KVM and Xen
Posts: 329

Rep: Reputation: 55
Try the BRouter networking approach. That's what I'm using to achieve exactly what you want: have domUs fully separated from external network, and easily connecting each other if needed.
 
  


Reply

Tags
dhcp, xen



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setup Slackware64 HVM with Xen Dom0 Kernel 2.6.31.4 in Fedora 11 x86-64 Dom0 Teo En Ming Linux - Virtualization and Cloud 0 11-01-2009 08:24 AM
LXer: Install Ubuntu Jaunty PV & HVM DomUs at Xen 3.4 Dom0 (kernel 2.6.30-rc6-tip) sh LXer Syndicated Linux News 0 05-21-2009 08:41 PM
LXer: Backport Intrepid Xen 3.3 Hypervisor to Ubuntu Hardy Dom0 (2.6.24-21-xen) LXer Syndicated Linux News 0 11-13-2008 06:11 PM
LXer: Install CentOS 5.2 & F9 PV DomUs at OpenSuse 11 Dom0 via local HTTP Server (all LXer Syndicated Linux News 0 10-16-2008 09:30 AM
LXer: Pygrub & loading OpenSuse 11 PV DomUs at Xen 3.3 CentOS 5.2 Dom0 (all 64-bit) LXer Syndicated Linux News 0 09-22-2008 08:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 03:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration