From 866a70b8d806bad06817c5dae08e949d19e9b542 Mon Sep 17 00:00:00 2001 From: "al0115@student.uni-lj.si" Date: Mon, 15 Dec 2014 23:42:19 +0000 Subject: neeeee git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@89 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414 --- .../tasks/isc_dhcp_live_boot/howtos/si/index.html | 26 ++++++++++++++++------ 1 file changed, 19 insertions(+), 7 deletions(-) (limited to 'kpov_judge/tasks') diff --git a/kpov_judge/tasks/isc_dhcp_live_boot/howtos/si/index.html b/kpov_judge/tasks/isc_dhcp_live_boot/howtos/si/index.html index 9970ba2..474170e 100644 --- a/kpov_judge/tasks/isc_dhcp_live_boot/howtos/si/index.html +++ b/kpov_judge/tasks/isc_dhcp_live_boot/howtos/si/index.html @@ -241,7 +241,7 @@ Server!

slika-13

We got it! We install DHCP server using apt-get install isc-dhcp-server

slika-14 -

We see a bunch of errors. Why? Bacause, we have not internet access!
+

We see a bunch of errors. Why? Bacause, we have no internet access!
We need to specify the Gateway for our inteface. Our Gateway bo seveda IP našega simpleArbiter navideznega računalnika.
To naredimo s pomočjo ukaza route add default gw 192.168.251.1 eth0

slika-15

Try pinging Google's DNS server at 8.8.8.8, to check if now have internet access.
@@ -267,21 +267,33 @@ Server!

(subnet) We set the subnet and the IP range, which the DHCP server should use, and which file it should serve.

Some PXEs are so unintelligent, that you should specify where they should get the files from and to do that you specify next-server
(IP from which it will be served from, in our case simpleArbiter), we also specify gateway, which, in our case is also simpleArbiter.

Ker bi radi, da v primeru zagona navideznega računalnika BootableClient B serviramo drugo datoteko, to naredimo tako da definiramo nek dodaten host na sledeč način:
(host special) Pod hardware ethernet zapišemo MAC naslov našega BootableClient B katerega bo imel, dodelimo mu nek statičen ip naslov ter povemo še iz kje se naj datoteka live-ISO zažene.

We save the settings and kill terthe process with ubijemo named dnsmasqusingkilall dnsmasq.

slika-22 -

Sledi restart našega DHCP strežnika, da bo deloval z novimi nastavitvami, to naredimo z ukazom service isc-dhcp-server restart
DHCP Strežnik je pripravljen! Pripravimo BootableClientA ter BootableClientB ter testirajmo!

+

Sledi restart našega DHCP strežnika, da bo deloval z novimi nastavitvami, to naredimo z ukazom service isc-dhcp-server restart
DHCP server is now ready! We supply BootableClientA and BootableClientB and test them!

Postavitev BootableClient A

-

Odpremo VirtualBox ter izberemo New in pod Name napišemo BootableClient A ter pod Hard drive izberemo Do not add a virtual hard drive (saj si želimo računalnik brez diska),
in pritisnemo na gump Create, da se nam ustvari navidezni računalnik. Želimo, da bo računalnik priklopljen na Internal network zato označimo naš Bootable Client A ter pritisnimo na
Settings->Network in prvi Adapter 1 spremenimo na Internal Network.

+

We open VirtualBox and select New, for the y +Name field we specify +BootableClient A and for the Hard drive we select Do not add a +virtual +hard drive (as we want diskless device),
and select Create. +We want the computer to be on Internal network so vse select our +Bootable Client +A and select
Settings->Network where we change Adapter +1 to Internal Network.

slika-23 -

Želimo še, da se računalnik boot-a preko mreže, zato to nastavimo pod zavihkom System

tako, da pod Boot Order obkljukamo samo Network.
- Nastavitve shranimo z pritiskom na gumb OK

+

We also wan our computer to boot through network, so +underBoot Ordertab select Network.
+ We save the setting by clicking OK

slika-24 -

Poženemo našega BootableClient-a A in odličnoo, dobi ip naslov s pomočjo DHCP strežnika in simpleArbiter mu servira točno to datoteko katero si želimo A.0

+

We run our BootableClient-a A and it get's it's +IP(which is great), using the DHCP server and the simpleArbiter serves +it exactly the file we specified. A.0

slika-25 -

Postavitev BootableClient B

+

Setting upBootableClient +B

Odpremo VirtualBox ter izberemo New in pod Name napišemo BootableClient B ter pod Hard drive izberemo Do not add a virtual hard drive (saj si želimo računalnik brez diska),
in pritisnemo na gump Create, da se nam ustvari navidezni računalnik. Želimo, da bo računalnik priklopljen na Internal network zato označimo naš Bootable Client B ter pritisnimo na
Settings->Network in prvi Adapter 1 spremenimo na Internal Network.
Poleg tega nastavimo še pod MAC Address takšen MAC naslov, kot ga imamo v nastavitvah DHCP strežnika (dhcpd.conf -> host special), saj želimo da bo ta naš računalnik izjema
in bo ob zagonu dobil drugo datoteko kot ostali in sicer live-ISO

slika-26 -- cgit v1.2.1