Hi folks, I have a working Dom0 with a Windows and Debian host running, yay! I’m now looking to configure them with fixed IPs rather than DHCP as I’ll need this in production but struggling to find some docs so if anyone can point me to them that would be great. Here’s my config file for the Debian host, but it still boots with a DHCP! Thanks ☺ # # Configuration file for the Xen instance test-pv, created # by xen-tools 4.3.1 on Wed May 8 16:44:02 2013. # # # Kernel + memory size # bootloader = '/usr/lib/xen-default/bin/pygrub' vcpus = '2' memory = '512' # # Disk device(s). # root = '/dev/xvda2 ro' disk = [ 'phy:/dev/vg0/test-pv-disk,xvda2,w', 'phy:/dev/vg0/test-pv-swap,xvda1,w', ] # # Physical volumes # # # Hostname # name = 'test-pv' # # Networking # # dhcp = 'dhcp' vif = [ 'mac=00:16:3E:14:D8:42,bridge=xenbr0,ip=10.0.0.101' ] # # Behaviour # on_poweroff = 'destroy' on_reboot = 'restart' on_crash = 'restart' _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Hi Simon, you should be able to set it up already. Your setup uses bridged networking with xenbr0 so if your dom0 is configured properly your domUs could communicate through this interface. You can delete "ip=10.0.0.101" from vif config line. Jan Dne 14.5.2013 14:30, Simon Jones napsal(a):> Hi folks, > > I have a working Dom0 with a Windows and Debian host running, yay! I’m now looking to configure them with fixed IPs rather than DHCP as I’ll need this in production but struggling to find some docs so if anyone can point me to them that would be great. Here’s my config file for the Debian host, but it still boots with a DHCP! > > Thanks ☺ > > > # > # Configuration file for the Xen instance test-pv, created > # by xen-tools 4.3.1 on Wed May 8 16:44:02 2013. > # > > # > # Kernel + memory size > # > > > bootloader = ''/usr/lib/xen-default/bin/pygrub'' > > vcpus = ''2'' > memory = ''512'' > > # > # Disk device(s). > # > root = ''/dev/xvda2 ro'' > disk = [ > ''phy:/dev/vg0/test-pv-disk,xvda2,w'', > ''phy:/dev/vg0/test-pv-swap,xvda1,w'', > ] > > > # > # Physical volumes > # > > > # > # Hostname > # > name = ''test-pv'' > > # > # Networking > # > # dhcp = ''dhcp'' > vif = [ ''mac=00:16:3E:14:D8:42,bridge=xenbr0,ip=10.0.0.101'' ] > > # > # Behaviour > # > on_poweroff = ''destroy'' > on_reboot = ''restart'' > on_crash = ''restart'' > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xen.org > http://lists.xen.org/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Hello. El 14/05/13 07:30, Simon Jones escribió:> I’m now looking to configure them with fixed IPs rather than DHCP > as I’ll need this in production but struggling to find some docs so > if anyone can point me to them that would be great.Threat this as your DomUs where normal, not virtualized computers. Configure a static IP on their's network interfaces, in /etc/network/interfaces.> Here’s my config file for the Debian host, but it still boots with a DHCP!It boots with DHCP because the guest OS has it's network interface configured so.> [...] > # dhcp = 'dhcp' > vif = [ 'mac=00:16:3E:14:D8:42,bridge=xenbr0,ip=10.0.0.101' ]This settings does not affects the guest's network interface IP configuration. The address set as "ip=" makes Dom0 to apply ipfilter rules to make sure this VIF is allowed to communicate while using this IP. If you are not using a paranoid local firewall on Dom0, "ip=" is not needed. -- Alexandre Kouznetsov _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users