LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-21-2013, 09:44 AM   #1
jayadhanesh
Member
 
Registered: Feb 2009
Location: Bangalore
Posts: 61

Rep: Reputation: 15
DHCP server on Dom0 in Xen


Hi,

Can I have DHCP server running on Dom0 of Xen and have the server assign IP address of the interfaces in DomU coming up. If so how do I do it?

Thanks,
Dhanesh.
 
Old 05-21-2013, 06:38 PM   #2
minty33
Member
 
Registered: Aug 2012
Location: earth
Distribution: Mint Xfce, Korora Gnome3, Ubuntu Server NoGui,
Posts: 136

Rep: Reputation: 1
well can and should is different. i beleive it is possible but really dom0 should only be used to supply the drivers ect... to xen. anything else compromises the whole purpose. the following is a quote from the xen FAQ at http://wiki.xen.org/wiki/Xen_FAQ_Networking

" Which parts of my network infrastructure should I run in dom0, and which should I run in domU?

Network infrastructure, such as DHCP, DNS and OpenVPN servers, should all run in domUs. Installing such services in dom0 is dangerous, as if the services are compromised, an attacker could access other running VMs.

As a general rule, a domU should be used to perform a small, independent task. Therefore if the OS crashes, or is compromised, the effect is constrained to a small part of your setup. This makes it easier to find the problem, and then fix."
 
Old 05-21-2013, 11:07 PM   #3
jayadhanesh
Member
 
Registered: Feb 2009
Location: Bangalore
Posts: 61

Original Poster
Rep: Reputation: 15
Fair point. But if I have DomU to get IP address through DHCP, how do I do it?

Thanks,
Dhanesh.
 
Old 05-22-2013, 12:31 AM   #4
minty33
Member
 
Registered: Aug 2012
Location: earth
Distribution: Mint Xfce, Korora Gnome3, Ubuntu Server NoGui,
Posts: 136

Rep: Reputation: 1
honestly i have read alot about xen but yet to run it to any real extent so i can't give you the commands,however, i have run some headless vbox servers with virtual networks and i think the same principles can be applied. mind you there are other set ups other than theses, maybe even better ones. think of your dom0 as the vbox software. it would do the routing and NAT(if needed) for the domU's. you could also have it just bridge one domU to the real router and have that domU also act as router, dhcp and NAT for the internal domU network while the physical router just provides the internet acces. to do this you would need two virtual nics on that particulainr domU, one for the external and one for the internal network. this same set up could also be used to have that domU act as a switch instead of a router to segment the network if you so desire. i really can't get more specific without knowing what you want you virtual network to look and act like. for example do you need remote acces to all the domU's, do you want some isolated from the external network or from certain internal machines, without these and other answers i can't tell you if you need a virtual switch, virtual router, two physical nics on your dom0, two virtual ones on a domU or just the one physical router with dom0 doing the forwarding. all theseare possible set-ups but which is best depends on what you are trying to accomplish
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Xen with dhcp in dom0 for domUs naquad Linux - Virtualization and Cloud 3 03-05-2010 05:13 AM
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: Setup Xen 3.3.0 Ubuntu Intrepid Server Dom0 via build xen-kernel based on http: LXer Syndicated Linux News 0 01-03-2009 05:50 PM
LXer: Setup Xen 3.3.0 Ubuntu Intrepid Server Dom0 via build xen-kernel based on http: LXer Syndicated Linux News 0 01-03-2009 02:50 PM
LXer: Setup Xen 3.3.0 Ubuntu Intrepid Server Dom0 via build xen-kernel based on http: LXer Syndicated Linux News 0 01-03-2009 12:00 PM


All times are GMT -5. The time now is 11:56 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration