Hi guys I am trying to setup a Clonezilla server but am having trouble getting DHCP to work when setting up DRBL. I am using Ubuntu Server 16:10
I am using a Dell Optplex 390 with only one network card. When I initially setup the machine I connected it to our company network via DHCP to update the server and install DRBL.
I want to keep the setup isolated from our other DHCP server on our network.
Once I had installed all the required DRBL packages I then disconected the ethernet and reconnected it into my isolated setup which consists of the following:
Optiplex 390 > Switch > Router
I have manually configured the router to hand out DHCP to anything connected to the switch. currently am using a 192.168.2.0 range.
I have tested the switch and computers get a I.P address from the router so technically the DHCP service on the router is working.
however when I run through the drblpush -i and get to the DHCP setup I get a wanring about only having one network card, When I finish the process the DHCP setup cannot be detected and fails.
Where am I going wrong folks? need some guidance from the wizards :)
Can all of this be acomplished with only one Network card?
Last edit: Ally Biggs 2017-09-14
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
DRBL does expect two network ports (well, at least the drblpush configuration script does). One for Internet access and one for the Clonezilla network. You could work around this by defining a virtual interface on the eth0 interface. The following doc describes the procedure a bit more: http://www.geekyprojects.com/cloning/setup-a-clonezilla-server-on-ubuntu/
The writer of that procedure uses the virtual interface for his Clonezilla network. Of course you could use it for your (fake) internet connection to fool the drblpush script. The drblpush script does however create its own DHCP service on the DRBL server. So if you want to use the DHCP service running on your switch instead you will have to disable it after configuration. Just make sure that the DHCP service running on the switch points to your DRBL server as being the boot server (tftp), otherwise your clients won't be able to boot from the DRBL server using PXE (if that is what you want).
By the way, it can be handy to have a second network interface for Internet access, since the DRBL server can be setup as a NAT server (also using the drblpush script). That way your clients will have immediate Internet access after a restore, so you can run for example Windows Updates, download drivers if needed, etc., without having to connect them to a different network. Also, the drblpush script will configure the DHCP service running on the DRBL server for the Clonezilla network only (it will only listen for DHCP requests on that network port, not for requests on the Internet network port), so it won't interfere with your production network at all. So you could decide not to use the DHCP service on your switch.
I hope this helps.
Last edit: Arthur Tromp 2017-09-15
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Does anybody have a setup of instructions or a easy to follow guide that explains how to setup Clonezilla Server with one nic, using a virtual I.P.
On my current network setup we have a router that is connected to a SME server that is handling DHCP for the whole buildings network, We also have on the network a Serva32/64 box which is running PXE.
I basically want to have the Clonezilla setup avoiding clashing with the DHCP / current PXE.
Using one ethernet card and a virtual I.P is this possible? how does it work I don't fully understand thank you.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Scrap that I have completely changed my layout the system I will be working with is the following:
[Proposed Configuration]
Dell Optiplex I have two nics installed:
1st ethernet will be connected to the main network and internet 192.168.1
2nd Network card I will assign the address 192.168.2.-
The 1st network card will be connected to a network port and the second one will be connected directly to a Switch.
However some caveats remain and I need help with the following:
Another PXE/TFTP server exists on the .1 subnet it is a serva32/64 box serving up Windows ISO various utilites such as memtest.
Will my [proposed Configuration] work? Without conflicting with this server? I wanted any nodes that I plug in on the seperate swtich (.2 network) to start the clonezilla process.
Regarding the Whole subnets thing from what I gather our main gateway only has a 192.168.1 subnet setup for the whole building....... If I just assing a .2 for the second ethernet card statically would the whole configuration still work? Or would I have to do some router wizadry?
Go easy on me I do not really understand subnets
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
We have a similar setup here. When you run your drblpush script to configure DRBL you will be asked which network port is used for internet access. Choose your first network port with the 192.168.1.x address. The script will then configure DHCP/PXE to be used with your second network port, the one with the 192.168.2.x address. It will also ask you for a range of IP address to be used for your Clonezilla clients. Make sure the static 192.168.2.x address isn't included in that range, or you will likely get an IP address conflict when that address is served to one of the clients. The drblpush script also gives you the opportunity to setup NAT on the DRBL server, so clients connected to your isolated imaging switch will have Internet access as well, using the DRBL server as gateway. This works only one-way, so only for your clients connected to your imaging switch. Systems connected to your production network (192.168.1) will not have access to your 192.168.2 network, so won't see the DHCP/PXE service listening to the 192.168.2.x port. And clients connected to your imaging system won't be able to see any DHCP/PXE service on your 192.168.1 network (DHCP requests won't be passed by the DRBL server). Don't worry about any routing. The NAT service on the DRBL server will take care of any routing your clients on the imaging network need to have internet access. So you don't have to configure any gateway for your second network port, just the static IP address (192.168.2.x) and the subnet mask (255.255.255.0).
I hope this helps.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi there thank you for the response, My DHCP is still not working.
I have the machine setup with two ethernet cards,
192.168.21.53
255.255.255.0
Our routers Gateway - this is the public facing ethernet
Second ethercard is
192.168.23.1
255.255.255.0
I said yes to allow NAT, and the secondary card has a i.p range of
192.168.23.30 - 192.168.23.40
Everything setup fine during drblpush -i
I got a message at the end saying connect your clients and put from PXE. So I attempted a boot and nothing.
I am not that good at networking, I am using a Dell PowerConnect 5324 switch the 2nd network card is plugged directly into port 24 at the end, And I am connecting up clients on port 1 on the switch I attempt a PXE boot it comes up with the mac address and attempting to contact the DHCP then nothing.
I am now stumped. Tried restarting the DHCP service this didn't work
much help appreciated.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You could try it without the switch, so connect a client directly to the second network card of your DRBL server. Just to make sure it isn't the switch blocking DHCP requests. And if the client has two network ports, try both. Even something as simple as giving your DRBL server a reboot might help.
Last edit: Arthur Tromp 2017-09-22
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you want to test if at least your DHCP works, try the following:
Login on your DRBL server and open a terminal window.
Give the following command and leave the terminal windows open:
sudo tail -f /var/log/syslog
Try to boot a client from the network.
If your DHCP service is working, you should see messages like the following appear in your terminal window:
Sep 22 08:26:55 clonezilla01 dhcpd: DHCPDISCOVER from 3c:d9:2b:79:c5:db via eth1
Sep 22 08:26:56 clonezilla01 dhcpd: DHCPOFFER on 192.168.51.10 to 3c:d9:2b:79:c5:db via eth1
Sep 22 08:26:59 clonezilla01 dhcpd: DHCPREQUEST for 192.168.51.10 (192.168.51.100) from 3c:d9:2b:79:c5:db via eth1
Sep 22 08:26:59 clonezilla01 dhcpd: DHCPACK on 192.168.51.10 to 3c:d9:2b:79:c5:db via eth1
Last edit: Arthur Tromp 2017-09-22
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Everything should be started automatically during the boot of the server.
If you suspect that some drbl related service isn't running, you can use the drbl-all-service script to stop/start/restart all drbl related services. See: http://drbl.org/management/techrpt.php?c=drbl-all-service&t=Start,%20restart%20or%20stop%20DRBL-related%20services
On my server a restart looks as follows (run the script as root):
# drbl-all-service restart
Now add the service: isc-dhcp-server rpcbind nis nfs-common nfs-kernel-server tftpd-hpa drbl-clients-nat
Force to add isc-dhcp-server service in this Debian DRBL server...
Force to add rpcbind service in this Debian DRBL server...
Force to add nis service in this Debian DRBL server...
Force to add nfs-common service in this Debian DRBL server...
Force to add nfs-kernel-server service in this Debian DRBL server...
Force to add tftpd-hpa service in this Debian DRBL server...
Force to add drbl-clients-nat service in this Debian DRBL server...
Now start the service: isc-dhcp-server rpcbind nis nfs-common nfs-kernel-server tftpd-hpa drbl-clients-nat
Now stop 'drbl-clients-nat' service in systemd-like environment...
Now start 'drbl-clients-nat' service in systemd-like environment...
ip_forward is already on.
There shouldn't be any errors, otherwise you will have to solve them.
Last edit: Arthur Tromp 2017-09-22
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
#GeneratedbyDRBL.#DoNOTmodifythisfileunlessyouknowwhatyouaredoing!default-lease-time300;max-lease-time300;optionsubnet-mask255.255.255.0;optiondomain-name-servers8.8.8.8127.0.0.53;optiondomain-name"drbl.org";ddns-update-stylenone;server-namedrbl;allowbooting;allowbootp;optionarchcode93=unsignedinteger16;optionspacepxelinux;optionpxelinux.magiccode208=string;optionpxelinux.configfilecode209=text;optionpxelinux.pathprefixcode210=text;optionpxelinux.reboottimecode211=unsignedinteger32;site-option-space"pxelinux";ifexistsdhcp-parameter-request-list{#AlwayssendthePXELINUXoptions(specifiedinhexadecimal)optiondhcp-parameter-request-list=concat(optiondhcp-parameter-request-list,d0,d1,d2,d3);}#Ref:#http://www.syslinux.org/wiki/index.php/PXELINUX#https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=720589#//NOTE// From DRBL 2.15, bootia32.efi and bootx64.efi could be the one from#(1)syslinux(scripts/sbin/prepare-files-for-PXE-client)#or#(2)grub(drbl-gen-grub-efi-nb)ifoptionarch=00:06{filename"bootia32.efi";}elseifoptionarch=00:07{filename"bootx64.efi";}elseifoptionarch=00:09{#ForiPXEuEFIclient.Ref: http://ipxe.org/cfg/platform#ThankstoDannyRussforprovidingthis.filename"bootx64.efi";}else{filename"pxelinux.0";}##Uncommentthefollowing"if block"whenyouhavesomebuggyPXENICcard(suchasannoyingsis900NIC).RemembertomodifytheMACvendorprefixandrestartdhcpdservice!!!##ThisisaworkroundforsomenetworkcardwithBADPXEcodeinfirmware.##ItwillonlyaffectthoseclientswithMACvendorprefixyouassigned.##Ref: http://syslinux.zytor.com/archives/2005-August/005640.html#ifsubstring(optionvendor-class-identifier,0,3)="PXE"{##**************************************************************##***MODIFY***theMACvendorprefixofclientnetworkcardhere.##**************************************************************##Forannoyingsis900networkcard,maybeitis00:07:95,00:0C:6E...#ifsubstring(hardware,1,3)=00:0C:6E{##sis900.zpxeisspeciallyforsis900NIC,youcandownloaditfrom##http://rom-o-matic.net/etherboot/etherboot-5.4.4/contrib/rom-o-matic#filename="sis900.zpxe";#}#}#Uncommentthefollowingtogetthedebug/verbosemessagesinsystemlog.Themessageslikethefollowingwillbeshown:#PXEClient:Arch:00009:UNDI:003016#Beginoflogcommand#log(info,vendor-class-identifier);#Endoflogcommand#Uncommentthefollowingtogetthedebug/verbosemessagesinsystemlog.Themessageslikethefollowingwillbeshown:#Client0:c:29:3b:34:fbrequests1:2:3:5:6:b:c:d:f:10:11:12:2b:36:3c:43:80:81:82:83:84:85:86:87-PXEClient:Arch:00000:UNDI:002001-nodhcp-client-id#Client0:c:29:3b:34:fbrequests1:3:6:c:f:1c:28:29:2a-DRBLClient-nodhcp-client-id#Beginoflogcommand#log(info,concat("Client ",#binary-to-ascii(16,8,":",substring(hardware,1,6)),#" requests ",#binary-to-ascii(16,8,":",optiondhcp-parameter-request-list),#" - ",#pick-first-value(optionvendor-class-identifier,"no vendor-id"),#" - ",#pick-first-value(optiondhcp-client-identifier,"no dhcp-client-id"))#);#Endoflogcommand#Thisclass'DRBL-Client'defines3kindofclients: PXE,Etherboot(1ststage)orDRBLclient(2ndstage,i.e.innetworkinitrd/initramfs(mkpxeinitrd-net))toleaseIPaddress.Thiswillonlyaffect'range'statementonly,notthe'host'statement.#Note!Thefollowingline(s)inthepoolstatement:'allow members of "DRBL-Client";'is/arecommentedtodisablethismechanismbydefault.#Ifyoudowanttousethismechanism,uncommentall'allow members of "DRBL-Client";',thenonlyPXE,etherbootandDRBLclientcanleaseIPaddressfromthisDHCPservice.#///NOTE/// In summary, two cases you can turn on this mechanism:#(1)ThisDRBLserverisnotusedasaclonezillaserver.#(2)ThisDRBLserverisusedasaClonezillaserver,withthefollowingconditions:#(a)'range'statementisusedinthisDRBLservice.#(b)ThereisanexistingDHCPservicewhichcanprovideIPaddressleasestotherestoredOS(eitherGNU/inuxorMSWindows)intheclient.Otherwiseifyouuncomment'allow members of "DRBL-Client";',restoredOSwon'tbeabletoleaseIPaddress.#TheDRBLclientclass:PXE,EtherbootorDRBLclientclass"DRBL-Client"{matchif(substring(optionvendor-class-identifier,0,9)="PXEClient")or(substring(optionvendor-class-identifier,0,9)="Etherboot")or(substring(optionvendor-class-identifier,0,10)="DRBLClient");}#IfyouwanttousespecialportforDHCPservice,edithere:#Formoreinfo,ref: http://drbl.sourceforge.net/faq/index.php#path=./2_System&entry=37_coexist_with_existing_dhcp.faq#local-port1067;#remote-port1068;subnet192.168.3.0netmask255.255.255.0{optionsubnet-mask255.255.255.0;optionrouters192.168.3.1;next-server192.168.3.1;pool{#allowmembersof"DRBL-Client";range192.168.3.2192.168.3.31;}}****
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Update
Hi guys I am trying to setup a Clonezilla server but am having trouble getting DHCP to work when setting up DRBL. I am using Ubuntu Server 16:10
I am using a Dell Optplex 390 with only one network card. When I initially setup the machine I connected it to our company network via DHCP to update the server and install DRBL.
I want to keep the setup isolated from our other DHCP server on our network.
Once I had installed all the required DRBL packages I then disconected the ethernet and reconnected it into my isolated setup which consists of the following:
Optiplex 390 > Switch > Router
I have manually configured the router to hand out DHCP to anything connected to the switch. currently am using a 192.168.2.0 range.
I have tested the switch and computers get a I.P address from the router so technically the DHCP service on the router is working.
however when I run through the drblpush -i and get to the DHCP setup I get a wanring about only having one network card, When I finish the process the DHCP setup cannot be detected and fails.
Where am I going wrong folks? need some guidance from the wizards :)
Can all of this be acomplished with only one Network card?
Last edit: Ally Biggs 2017-09-14
Another possibility is you can use the "lite server" mode in Clonezilla live. It allows you to reuse the existing DHCP service in the LAN.
Steven
DRBL does expect two network ports (well, at least the drblpush configuration script does). One for Internet access and one for the Clonezilla network. You could work around this by defining a virtual interface on the eth0 interface. The following doc describes the procedure a bit more: http://www.geekyprojects.com/cloning/setup-a-clonezilla-server-on-ubuntu/
The writer of that procedure uses the virtual interface for his Clonezilla network. Of course you could use it for your (fake) internet connection to fool the drblpush script. The drblpush script does however create its own DHCP service on the DRBL server. So if you want to use the DHCP service running on your switch instead you will have to disable it after configuration. Just make sure that the DHCP service running on the switch points to your DRBL server as being the boot server (tftp), otherwise your clients won't be able to boot from the DRBL server using PXE (if that is what you want).
By the way, it can be handy to have a second network interface for Internet access, since the DRBL server can be setup as a NAT server (also using the drblpush script). That way your clients will have immediate Internet access after a restore, so you can run for example Windows Updates, download drivers if needed, etc., without having to connect them to a different network. Also, the drblpush script will configure the DHCP service running on the DRBL server for the Clonezilla network only (it will only listen for DHCP requests on that network port, not for requests on the Internet network port), so it won't interfere with your production network at all. So you could decide not to use the DHCP service on your switch.
I hope this helps.
Last edit: Arthur Tromp 2017-09-15
Does anybody have a setup of instructions or a easy to follow guide that explains how to setup Clonezilla Server with one nic, using a virtual I.P.
On my current network setup we have a router that is connected to a SME server that is handling DHCP for the whole buildings network, We also have on the network a Serva32/64 box which is running PXE.
I basically want to have the Clonezilla setup avoiding clashing with the DHCP / current PXE.
Using one ethernet card and a virtual I.P is this possible? how does it work I don't fully understand thank you.
Scrap that I have completely changed my layout the system I will be working with is the following:
[Proposed Configuration]
Dell Optiplex I have two nics installed:
1st ethernet will be connected to the main network and internet 192.168.1
2nd Network card I will assign the address 192.168.2.-
The 1st network card will be connected to a network port and the second one will be connected directly to a Switch.
However some caveats remain and I need help with the following:
Another PXE/TFTP server exists on the .1 subnet it is a serva32/64 box serving up Windows ISO various utilites such as memtest.
Will my [proposed Configuration] work? Without conflicting with this server? I wanted any nodes that I plug in on the seperate swtich (.2 network) to start the clonezilla process.
Regarding the Whole subnets thing from what I gather our main gateway only has a 192.168.1 subnet setup for the whole building....... If I just assing a .2 for the second ethernet card statically would the whole configuration still work? Or would I have to do some router wizadry?
Go easy on me I do not really understand subnets
We have a similar setup here. When you run your drblpush script to configure DRBL you will be asked which network port is used for internet access. Choose your first network port with the 192.168.1.x address. The script will then configure DHCP/PXE to be used with your second network port, the one with the 192.168.2.x address. It will also ask you for a range of IP address to be used for your Clonezilla clients. Make sure the static 192.168.2.x address isn't included in that range, or you will likely get an IP address conflict when that address is served to one of the clients. The drblpush script also gives you the opportunity to setup NAT on the DRBL server, so clients connected to your isolated imaging switch will have Internet access as well, using the DRBL server as gateway. This works only one-way, so only for your clients connected to your imaging switch. Systems connected to your production network (192.168.1) will not have access to your 192.168.2 network, so won't see the DHCP/PXE service listening to the 192.168.2.x port. And clients connected to your imaging system won't be able to see any DHCP/PXE service on your 192.168.1 network (DHCP requests won't be passed by the DRBL server). Don't worry about any routing. The NAT service on the DRBL server will take care of any routing your clients on the imaging network need to have internet access. So you don't have to configure any gateway for your second network port, just the static IP address (192.168.2.x) and the subnet mask (255.255.255.0).
I hope this helps.
Hi there thank you for the response, My DHCP is still not working.
I have the machine setup with two ethernet cards,
192.168.21.53
255.255.255.0
Our routers Gateway - this is the public facing ethernet
Second ethercard is
192.168.23.1
255.255.255.0
I said yes to allow NAT, and the secondary card has a i.p range of
192.168.23.30 - 192.168.23.40
Everything setup fine during drblpush -i
I got a message at the end saying connect your clients and put from PXE. So I attempted a boot and nothing.
I am not that good at networking, I am using a Dell PowerConnect 5324 switch the 2nd network card is plugged directly into port 24 at the end, And I am connecting up clients on port 1 on the switch I attempt a PXE boot it comes up with the mac address and attempting to contact the DHCP then nothing.
I am now stumped. Tried restarting the DHCP service this didn't work
much help appreciated.
You could try it without the switch, so connect a client directly to the second network card of your DRBL server. Just to make sure it isn't the switch blocking DHCP requests. And if the client has two network ports, try both. Even something as simple as giving your DRBL server a reboot might help.
Last edit: Arthur Tromp 2017-09-22
If you want to test if at least your DHCP works, try the following:
sudo tail -f /var/log/syslog
If your DHCP service is working, you should see messages like the following appear in your terminal window:
Last edit: Arthur Tromp 2017-09-22
How do you restart the clonezilla service if you restart? or does it do it manually
Everything should be started automatically during the boot of the server.
If you suspect that some drbl related service isn't running, you can use the drbl-all-service script to stop/start/restart all drbl related services. See: http://drbl.org/management/techrpt.php?c=drbl-all-service&t=Start,%20restart%20or%20stop%20DRBL-related%20services
On my server a restart looks as follows (run the script as root):
There shouldn't be any errors, otherwise you will have to solve them.
Last edit: Arthur Tromp 2017-09-22
I still cannot get DHCP working I have tried plugging clients directly into the switch and connecting the 2nd network card into the client.
When I check the isc-dhcp-server status I am getting a warning saying failed. bad configuration.
Not sure where to go from here I have posterd up detials of my configuration. Thank you for help It means alot.
Ethernet settings:
auto enp2s0
iface enp2s0 inet static
auto enp2s0
address 192.168.21.67
netmask 255.255.255.0
gateway 192.168.21.1
dns-nameservers 8.8.8.8
enp3s0
iface enp3s0 inet static
address 192.168.3.1
netmask 255.255.0
gateway 192.168.21.67
/etc/default/isc-dhcp-server
INTERFACES="enp3s0"
my dhcpd.conf
can anybody help? I am going to try FOG Server as this software is driving me mad.
If above really is the contents of your /etc/dhcp/dhcpd.conf file, then the issue most likely is the last line:
Remove the 4 asteriks after the last closing accolade and restart your DHCP service:
Regarding your network configuration, you don't need to define a gateway on your Clonezilla network port, so you can change the entry
in just
But that has nothing to do with you DHCP configuration.
Last edit: Arthur Tromp 2017-09-25
Thank you I will investigate, I also noticedi in the DNS resolv.conf
For some reason I had a entry 127.0.0.53
Which I have resolved by following instructions here:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1624320