Test station


  • Testers

    I’m setting up a small desktop running Ubuntu server 12.04 with 2 NICs for testing fog changes the first NIC will be DHCP and connected to my main network for web access so i can patch and upgrade fog from repositories. I would like the second to be the one fog uses as an isolated network with it’s own DHCP service PXE etc… Being a bit of a Linux noob I was looking for advice on setting this up.


  • Developer

    i have a suggestion that will make it so that you don’t need an isolated network for testing. what i do is redirect the boot.php requests for my test clients to my test server in the default.ipxe of my production fog server file, like so:
    [CODE]#!ipxe
    cpuid --ext 29 && set arch x86_64 || set arch i386
    params
    param mac0 ${net0/mac}
    param arch ${arch}
    param product ${product}
    param manufacturer ${product}
    param ipxever ${version}
    param filename ${filename}
    isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
    isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme

    :bootme

    redirected to dev server for test environments

    ##test-3020 optiplex 3020
    iseq ${serial} F8HLK02 && chain http://<dev-server-ip-address>/fog/service/ipxe/boot.php##params ||
    ##testing VM
    iseq ${net0/mac} 00:0c:29:ce:74:46 && chain http://<dev-server-ip-address>/fog/service/ipxe/boot.php##params ||

    normal fog server

    chain http://<normal-server-ip-address>/fog/service/ipxe/boot.php##params
    [/CODE]


  • Developer

    When you run the Fog installer, it will ask which interface to use FOG with.

    eth0 will probably be the first nic

    you can use the ifconfig command to display all the current adapters.

    eth1 will probably be your second nic.

    During FOG installation you will have a question that will ask if you “would like to change the default interface from eth0”, if you would like press y, press enter and add the interface.

    I have not tested a set up like this, but it should work.

    You will want to edit your interfaces file and set a static ip for eth1, or use the network manager and set a static ip for eth1.


Log in to reply
 

359
Online

39.3k
Users

11.0k
Topics

104.4k
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.