Virtual Box to Virtual Box PXE Boot with Warewulf

837 views
Skip to first unread message

Barry Moore

unread,
Sep 23, 2016, 5:08:13 PM9/23/16
to Warewulf
Hey All,

Looking for some guidance. I want to provision some virtual boxes using warewulf.

My computer is a Mac (OS X 10.11.6) running VBox 5.1.6. I have setup a NAT Network so I can ssh/tftp between the VMs. Each VM is running on my NAT Network using the "Intel PRO/1000 MT Desktop (82540EM)" NIC. 

 I have 3 VMs:

1. warewulf-master: warewulf 3.7 installed with the following information (dhcpd, xinetd, httpd are all running):
[root@warewulf-master ~]# cat /etc/redhat-release 
CentOS Linux release 7.2.1511 (Core)
[root@warewulf-master ~]# wwsh
Warewulf> node list
NAME                GROUPS              IPADDR              HWADDR            
================================================================================
n0
.cluster          wwnodes             10.0.2.6            08:00:27:50:08:19  
Warewulf> bootstrap list
BOOTSTRAP NAME            SIZE
(M)
3.10.0-327.36.1.el7.x86_64 26.4    
Warewulf> vnfs list
VNFS NAME            SIZE
(M) CHROOT LOCATION
centos
-7             74.8     /var/chroots/centos-7

 
2. warewulf-test: I am using this to test my tftp server (10.0.2.4 is warewulf-master).
[root@warewulf-test ~]# tftp
(to) 10.0.2.4
tftp
> get warewulf/pxelinux.0
tftp
> quit
[root@warewulf-test ~]# ls
anaconda
-ks.cfg  pxelinux.0

3. warewulf-slave: The VM set to Network Boot.

If I let the warewulf-slave boot without intervention, I get:
...
net0
: 10.0.2.6/255.255.255.0 gw 10.0.2.1
Nothing to boot: No such file of directory (http://ipxe.org/2d03e13b)
No more network devices
FATAL
: Could not read from the boot medium! System halted.

If I intervene and try to do things manually from iPXE:
iPXE> dhcp
DHCP
(net0 08:00:27:50:08:19)...... ok
iPXE
> route
net0
10.0.2.6/255.255.255.0 gw 10.0.2.1
iPXE
> chain tftp://10.0.2.4/warewulf/pxelinux.0

it hangs for a long time and eventually (I also tried lpxelinux.0 too, with the same result):
Failed to load ldlinux.x32
Boot failed: press a key to retry, or wait for reset...


The last lines from journalctl on warewulf-master:
Sep 23 16:55:11 warewulf-master dhcpd[2830]: DHCPDISCOVER from 08:00:27:50:08:19 via enp0s3
Sep 23 16:55:21 warewulf-master dhcpd[2830]: default_router: host unknown.
Sep 23 16:55:21 warewulf-master dhcpd[2830]: DHCPOFFER on 10.0.2.6 to 08:00:27:50:08:19 via enp0s3
Sep 23 16:55:21 warewulf-master dhcpd[2830]: DHCPDISCOVER from 08:00:27:50:08:19 via enp0s3
Sep 23 16:55:21 warewulf-master dhcpd[2830]: DHCPOFFER on 10.0.2.6 to 08:00:27:50:08:19 via enp0s3
Sep 23 16:55:21 warewulf-master dhcpd[2830]: DHCPREQUEST for 10.0.2.6 (10.0.2.3) from 08:00:27:50:08:19 via enp0s3
Sep 23 16:55:21 warewulf-master dhcpd[2830]: DHCPACK on 10.0.2.6 to 08:00:27:50:08:19 via enp0s3
Sep 23 16:58:54 warewulf-master dhclient[691]: DHCPREQUEST on enp0s3 to 10.0.2.3 port 67 (xid=0x19582f90)
Sep 23 16:58:54 warewulf-master dhcpd[2830]: DHCPREQUEST for 10.0.2.4 from 08:00:27:31:3b:ab via enp0s3: unknown lease 10.0.2.4.
Sep 23 16:58:54 warewulf-master dhclient[691]: DHCPACK from 10.0.2.3 (xid=0x19582f90)
Sep 23 16:58:54 warewulf-master NetworkManager[624]: <info>    address 10.0.2.4
Sep 23 16:58:54 warewulf-master NetworkManager[624]: <info>    plen 24 (255.255.255.0)
Sep 23 16:58:54 warewulf-master NetworkManager[624]: <info>    gateway 10.0.2.1
Sep 23 16:58:54 warewulf-master NetworkManager[624]: <info>    server identifier 10.0.2.3
Sep 23 16:58:54 warewulf-master NetworkManager[624]: <info>    lease time 1200
Sep 23 16:58:54 warewulf-master NetworkManager[624]: <info>  (enp0s3): DHCPv4 state changed bound -> bound
Sep 23 16:58:54 warewulf-master dhclient[691]: bound to 10.0.2.4 -- renewal in 522 seconds.
Sep 23 16:58:54 warewulf-master dbus[630]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatc
Sep 23 16:58:54 warewulf-master systemd[1]: Starting Network Manager Script Dispatcher Service...
Sep 23 16:58:54 warewulf-master dbus-daemon[630]: dbus[630]: [system] Activating via systemd: service name='
org.freedesktop.nm_dispatcher' unit='dbus-org.free
Sep 23 16:58:54 warewulf-master dbus[630]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Sep 23 16:58:54 warewulf-master dbus-daemon[630]: dbus[630]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Sep 23 16:58:54 warewulf-master nm-dispatcher[2884]: Dispatching action 'dhcp4-change' for enp0s3
Sep 23 16:58:54 warewulf-master systemd[1]: Started Network Manager Script Dispatcher Service.

I don't see anything obvious in /var/log/httpd/error_log either. I was hoping someone has some ideas from trying this in the past. I am going to move onto our cluster and provision things, but I was hopeful to have something running local which I could hack on.

Thanks!!!!!

Barry


 
 
 


Ian Kaufman

unread,
Sep 23, 2016, 5:37:20 PM9/23/16
to ware...@lbl.gov
I would simplify things and just set your WW master to 10.0.2.1 and have it act as the DHCP server, tftp server, default router, and WW master. Is that possible with your VM set up? Keep it as simple as possible.

Ian

--
You received this message because you are subscribed to the Google Groups "Warewulf" group.
To unsubscribe from this group and stop receiving emails from it, send an email to warewulf+u...@lbl.gov.
To post to this group, send email to ware...@lbl.gov.
To view this discussion on the web visit https://groups.google.com/a/lbl.gov/d/msgid/warewulf/c138ef56-a6ce-4a23-ac3e-5cc9783a8894%40lbl.gov.
For more options, visit https://groups.google.com/a/lbl.gov/d/optout.



--
Ian Kaufman
Research Systems Administrator
UC San Diego, Jacobs School of Engineering ikaufman AT ucsd DOT edu

John Hanks

unread,
Sep 23, 2016, 5:56:11 PM9/23/16
to ware...@lbl.gov
It's been a long long time since I did it, but if I recall correctly I had to use a host-only network with VirtualBox rather than a NAT. Seems like the NAT in VirtualBox somehow interfered with communication between VMs. Take this with a grain of salt though, it's been years since I used VirtualBox for this. 

jbh

--
‘[A] talent for following the ways of yesterday, is not sufficient to improve the world of today.’
 - King Wu-Ling, ruler of the Zhao state in northern China, 307 BC

Barry Moore

unread,
Sep 25, 2016, 11:16:49 AM9/25/16
to Warewulf
John,

Worked great. It hangs on "Getting base node configuration" and goes to a blank screen. I will try some things before asking questions.

Thanks,

Barry

Jeff Davis

unread,
Sep 25, 2016, 11:37:09 AM9/25/16
to ware...@lbl.gov

I'm stuck in the same place...  If you figure it out,  I'd be interested.


Barry Moore

unread,
Sep 25, 2016, 12:34:54 PM9/25/16
to Warewulf
Jeff,

My current suspicion is that /WW is not being served by httpd. I put a simple "Hello World" into the file: /var/www/html/hello. Then did a wget from my test node (wget http://192.168.56.101/hello) and it worked, however my /WW wget doesn't work (wget http://192.168.56.103/WW/nodeconfig?hwaddr=08:00:27:50:08:19). I tried sym linking the warewulf httpd config to the standard httpd conf.d directory (ln -s /usr/local/etc/httpd/conf.d/warewulf-httpd.conf /etc/httpd/conf.d/) and restart httpd, but this didn't help. 

Thanks,

Barry

Jason Stover

unread,
Sep 25, 2016, 12:39:35 PM9/25/16
to ware...@lbl.gov
Hi Barry,

What is the distro you're running for the provisioner? The default
conf file works on a RHEL 6.x based system (based on the distro
apache). I think there may be some small tweaks needed for 7.x.

-J
> https://groups.google.com/a/lbl.gov/d/msgid/warewulf/974250cc-60bc-4dc0-88fa-b34fba82c0b9%40lbl.gov.

Barry Moore

unread,
Sep 25, 2016, 12:41:12 PM9/25/16
to Warewulf
Jason,

Yeah I am provisioning from:

[root@warewulf-master ~]# cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)

- Barry

Jeff Davis

unread,
Sep 25, 2016, 12:45:39 PM9/25/16
to ware...@lbl.gov

I'm using apache so it's a bit different..  I can wget nodeconfig.pl.  I have to experiment some more.  I have stuff working nicely on redhat.    Mint not so much.


Jason Stover

unread,
Sep 25, 2016, 12:46:07 PM9/25/16
to ware...@lbl.gov
Oh ... I'm an idiot... it's installed under /usr/local

In the configfile, it should have the directory /usr/libexec/warewulf/
specified. That needs to change to be where it's actually located at.

-J
> https://groups.google.com/a/lbl.gov/d/msgid/warewulf/ac570e61-2559-4543-83f4-2b09a5a6823b%40lbl.gov.

Barry Moore

unread,
Sep 25, 2016, 12:53:21 PM9/25/16
to Warewulf
Jason,

I am sorry, which config? This one? 

/usr/local/etc/warewulf/vnfs/include/etc/rc.d/init.d/wwfirstboot

- Barry

Jason Stover

unread,
Sep 25, 2016, 12:53:49 PM9/25/16
to ware...@lbl.gov
As an addition... it _should_ be set by autoconf to the correct
location when built. But... something could have got messed up. I'd
double check that the config file is actually pointing to the right
place.

That's the only thing I can think of ATM. Are you running from nightly?

-J

Jason Stover

unread,
Sep 25, 2016, 12:55:49 PM9/25/16
to ware...@lbl.gov
No, the warewulf-httpd.conf file. It has the path setup for /WW in it.

It _should_ be correct ... but it's feasible that the wrong path is in
the config file for the actual location of the CGI scripts.

-J
> https://groups.google.com/a/lbl.gov/d/msgid/warewulf/bb6621d2-c813-4bc2-88ef-7c6003bffa97%40lbl.gov.

Barry Moore

unread,
Sep 25, 2016, 1:12:26 PM9/25/16
to Warewulf
Jason,

I made the sym link mentioned above, and the contents look correct (pasted below)

<IfModule !perl_module>
    LoadModule perl_module modules/mod_perl.so
</IfModule>
PerlSwitches -w
PerlSwitches -T
PerlSwitches -I/var/www/stage/cgi-bin


# This is disabled as RHEL6 perl_mod seems to be missing this support
#PerlPreConnectionHandler Apache2::Reload


Alias /WW/static /usr/local/share/warewulf/www
Alias /WW/vnfs_cache /var/tmp/warewulf_cache


ScriptAlias /WW/file /usr/local/libexec/warewulf/cgi-bin/file.pl
ScriptAlias /WW/script /usr/local/libexec/warewulf/cgi-bin/script.pl
ScriptAlias /WW/nodeconfig /usr/local/libexec/warewulf/cgi-bin/nodeconfig.pl
ScriptAlias /WW/vnfs /usr/local/libexec/warewulf/cgi-bin/vnfs.pl


<Directory /usr/local/libexec/warewulf/cgi-bin>
    SetHandler perl-script
    PerlResponseHandler ModPerl::Registry
    PerlOptions +ParseHeaders
    Options +ExecCGI
   
<IfVersion >= 2.4>
        Require all granted
   
</IfVersion>
</Directory>


<Directory /usr/local/share/warewulf/www>
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
   
<IfVersion >= 2.4>
        Require all granted
   
</IfVersion>
</Directory>


<Directory /var/tmp/warewulf_cache>
    AllowOverride None
    Order allow,deny
    Allow from all
   
<IfVersion >= 2.4>
        Require all granted
   
</IfVersion>
</Directory>

- Barry

Jason Stover

unread,
Sep 25, 2016, 1:25:00 PM9/25/16
to ware...@lbl.gov
Okay... Some debugging then. Whoo!

1) Are you seeing an HTTP request come in?
2) Can you access the URL locally from the cluster address
(http://192.168.56.103/WW/nodeconfig?hwaddr=08:00:27:50:08:19)? If no,
what about loopback?
3) Is there anything showing up in syslog?

And you had mentioned not having anything in the error_log correct?

-J
> https://groups.google.com/a/lbl.gov/d/msgid/warewulf/6845786e-3f01-4989-8c28-393759bfc15e%40lbl.gov.

Jason Stover

unread,
Sep 25, 2016, 1:27:04 PM9/25/16
to ware...@lbl.gov
Oh ... and what about manually attempting the HTTP request by
telneting to port 80 and doing an http request, or even sending:

HEAD /WW

-J

Jeff Davis

unread,
Sep 25, 2016, 3:11:08 PM9/25/16
to ware...@lbl.gov
Some things I tried:

jeff@acer-laptop /etc/apache2 $ HEAD /WW/nodeconfig?hwaddr=00:13:d3:2e:bf:7a
404 File `/WW/nodeconfig' does not exist
Client-Date: Sun, 25 Sep 2016 19:07:02 GMT

jeff@acer-laptop /etc/apache2 $ HEAD /WW/nodeconfig,pl
404 File `/WW/nodeconfig,pl' does not exist
Client-Date: Sun, 25 Sep 2016 19:07:09 GMT

jeff@acer-laptop /etc/apache2 $ HEAD
/usr/local/libexec/warewulf/cgi-bin/nodeconfig?hwaddr=00:13:d3:2e:bf:7a
404 File `/usr/local/libexec/warewulf/cgi-bin/nodeconfig' does not exist
Client-Date: Sun, 25 Sep 2016 19:07:19 GMT

jeff@acer-laptop /etc/apache2 $ HEAD
/usr/local/libexec/warewulf/cgi-bin/nodeconfig.pl
200 OK
Content-Length: 2861
Content-Type: text/plain
Last-Modified: Sat, 24 Sep 2016 03:03:15 GMT
Client-Date: Sun, 25 Sep 2016 19:07:31 GMT

jeff@acer-laptop /etc/apache2 $ HEAD /WW/nodeconfig.pl
404 File `/WW/nodeconfig.pl' does not exist
Client-Date: Sun, 25 Sep 2016 19:07:52 GMT

jeff@acer-laptop /etc/apache2 $ HEAD /WW
404 File `/WW' does not exist
Client-Date: Sun, 25 Sep 2016 19:08:18 GMT
> --
> You received this message because you are subscribed to the Google Groups
> "Warewulf" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to warewulf+u...@lbl.gov.
> To post to this group, send email to ware...@lbl.gov.
> To view this discussion on the web visit
> https://groups.google.com/a/lbl.gov/d/msgid/warewulf/CAGfAqt9ZR481ZtisFohpkTkCqsuY2c5q6PtH%3DOSt4aLM5rv%3DxQ%40mail.gmail.com.

Jason Stover

unread,
Sep 25, 2016, 3:19:52 PM9/25/16
to ware...@lbl.gov
> 404 File `/WW/nodeconfig' does not exist

This seems like the ScriptAlias declaration isn't being read right...
If you put something into wherever /WW/static is defined at being
located, can you access it?

-J
> To view this discussion on the web visit https://groups.google.com/a/lbl.gov/d/msgid/warewulf/CADKtzDHKYOBTNEs3-6ATcjKyEU6DcEgE0fLESvXtH5rNBLpW0A%40mail.gmail.com.

Jeff Davis

unread,
Sep 25, 2016, 3:26:33 PM9/25/16
to ware...@lbl.gov

I'll try this later when I get home... Thanks!


Jeff Davis

unread,
Sep 25, 2016, 8:04:59 PM9/25/16
to ware...@lbl.gov
From /usr/local/etc/apache2/conf.d/warewulf-httpd.conf:

Alias /WW/static /usr/local/share/warewulf/www
Alias /WW/vnfs_cache /var/tmp/warewulf_cache

...those directories don't even exist????

I created www and didn't have any luck. How does apache know to us this file?
>> lbl.gov/d/msgid/warewulf/CAGfAqt-SbBkLD9G3Rh6sFVP289YhRA7LwN_
>> DH%2BUiG8_VAgShvg%40mail.gmail.com.

Jason Stover

unread,
Sep 25, 2016, 8:25:24 PM9/25/16
to ware...@lbl.gov
It won't ... unless you copy it. The /usr/local prefix throws off
where everything usually goes, so you'll need to symlink the conf file
into the location in /etc/, or copy it (or add an include entry).

Does [/usr/local]/usr/share/warewulf/www exist, or
/usr/local/var/tmp/warewulf_cache ?

-J
> To view this discussion on the web visit https://groups.google.com/a/lbl.gov/d/msgid/warewulf/CADKtzDHn%3DD%3DBr36Le7AriZQxGx-0bw3T-wjKWsuA9Dcf025KAQ%40mail.gmail.com.

Jeff Davis

unread,
Sep 25, 2016, 8:40:37 PM9/25/16
to Warewulf
/usr/local/share/warewulf/www does now because created the www bit

/usr/local/var/tmp/warewulf_cache  does not...

Not sure what I need to do to make this work... Sorry to be so needy but I really appreciate your help.

Jeff Davis

unread,
Sep 25, 2016, 8:50:27 PM9/25/16
to Warewulf
I tried this to no avail:

jeff@acer-laptop /etc/apache2/conf-enabled $ pwd
/etc/apache2/conf-enabled
jeff@acer-laptop /etc/apache2/conf-enabled $ sudo ln -s
/usr/local/etc/apache2/conf.d/warewulf-httpd.conf warewulf-httpd.conf


On 9/25/16, Jeff Davis <jeffr...@gmail.com> wrote:
> /usr/local/share/warewulf/www does now because created the www bit
>
> /usr/local/var/tmp/warewulf_cache does not...
>
> Not sure what I need to do to make this work... Sorry to be so needy but I
> really appreciate your help.
>
> On Sunday, September 25, 2016 at 8:25:24 PM UTC-4, Jason Stover wrote:
>>
>> It won't ... unless you copy it. The /usr/local prefix throws off
>> where everything usually goes, so you'll need to symlink the conf file
>> into the location in /etc/, or copy it (or add an include entry).
>>
>> Does [/usr/local]/usr/share/warewulf/www exist, or
>> /usr/local/var/tmp/warewulf_cache ?
>>
>> -J
>>
>>
>> On Sun, Sep 25, 2016 at 7:04 PM, Jeff Davis <jeffr...@gmail.com
>> <javascript:>> wrote:
>> > From /usr/local/etc/apache2/conf.d/warewulf-httpd.conf:
>> >
>> > Alias /WW/static /usr/local/share/warewulf/www
>> > Alias /WW/vnfs_cache /var/tmp/warewulf_cache
>> >
>> > ...those directories don't even exist????
>> >
>> > I created www and didn't have any luck. How does apache know to us this
>> >
>> file?
>> >
>> > On 9/25/16, Jeff Davis <jeffr...@gmail.com <javascript:>> wrote:
>> >> I'll try this later when I get home... Thanks!
>> >>
>> >> On Sep 25, 2016 3:19 PM, "Jason Stover" <jason....@gmail.com
>> >>> >> <jason....@gmail.com <javascript:>>
>> >>> >> wrote:
>> >>> >>> Okay... Some debugging then. Whoo!
>> >>> >>>
>> >>> >>> 1) Are you seeing an HTTP request come in?
>> >>> >>> 2) Can you access the URL locally from the cluster address
>> >>> >>> (http://192.168.56.103/WW/nodeconfig?hwaddr=08:00:27:50:08:19)?
>> If
>> >>> >>> no,
>> >>> >>> what about loopback?
>> >>> >>> 3) Is there anything showing up in syslog?
>> >>> >>>
>> >>> >>> And you had mentioned not having anything in the error_log
>> correct?
>> >>> >>>
>> >>> >>> -J
>> >>> >>>
>> >>> >>>
>> >>> >>> On Sun, Sep 25, 2016 at 12:12 PM, Barry Moore <moor...@gmail.com
>> <javascript:>>
>> >>> >> email to warewulf+u...@lbl.gov <javascript:>.
>> >>> >> To post to this group, send email to ware...@lbl.gov <javascript:>.
>> >>> >>
>>
>> >>> >> To view this discussion on the web visit
>> >>> >> https://groups.google.com/a/lbl.gov/d/msgid/warewulf/
>> >>> CAGfAqt9ZR481ZtisFohpkTkCqsuY2c5q6PtH%3DOSt4aLM5rv%3DxQ%
>> 40mail.gmail.com.
>> >>> >> For more options, visit
>> https://groups.google.com/a/lbl.gov/d/optout.
>> >>> >>
>> >>> >
>> >>> > --
>> >>> > You received this message because you are subscribed to the Google
>> >>> Groups "Warewulf" group.
>> >>> > To unsubscribe from this group and stop receiving emails from it,
>> send
>> >>> an email to warewulf+u...@lbl.gov <javascript:>.
>> >>> > To post to this group, send email to ware...@lbl.gov <javascript:>.
>> >>> >
>> >>> > To view this discussion on the web visit
>> https://groups.google.com/a/
>> >>>
>> lbl.gov/d/msgid/warewulf/CADKtzDHKYOBTNEs3-6ATcjKyEU6DcEgE0fLESvXtH5rNBLp
>>
>> >>> W0A%40mail.gmail.com.
>> >>> > For more options, visit
>> >>> > https://groups.google.com/a/lbl.gov/d/optout.
>>
>> >>>
>> >>> --
>> >>> You received this message because you are subscribed to the Google
>> Groups
>> >>> "Warewulf" group.
>> >>> To unsubscribe from this group and stop receiving emails from it, send
>> >>>
>> an
>> >>> email to warewulf+u...@lbl.gov <javascript:>.
>> >>> To post to this group, send email to ware...@lbl.gov <javascript:>.
>> >>> To view this discussion on the web visit https://groups.google.com/a/
>> >>>
>> >>> lbl.gov/d/msgid/warewulf/CAGfAqt-SbBkLD9G3Rh6sFVP289YhRA7LwN_
>> >>> DH%2BUiG8_VAgShvg%40mail.gmail.com.
>> >>> For more options, visit https://groups.google.com/a/lbl.gov/d/optout.
>> >>>
>> >>>
>> >>
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> Groups "Warewulf" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> an email to warewulf+u...@lbl.gov <javascript:>.
>> > To post to this group, send email to ware...@lbl.gov <javascript:>.
> --
> You received this message because you are subscribed to the Google Groups
> "Warewulf" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to warewulf+u...@lbl.gov.
> To post to this group, send email to ware...@lbl.gov.
> To view this discussion on the web visit
> https://groups.google.com/a/lbl.gov/d/msgid/warewulf/145f9e2f-2198-4cc3-b0d9-877d305c74be%40lbl.gov.

Jeff Davis

unread,
Sep 25, 2016, 9:14:52 PM9/25/16
to Warewulf
I take that back.... I think that worked. Damn.

This was much easier on RedHat.

Off the subject but do you know anything about Percius? I am new to
these tools, but after jumping through all the hoops to get WW
approval at work, I see that Perceus is the successor, so I'm
wondering if I should have evaluted/chose that instead.

Jeff Davis

unread,
Sep 25, 2016, 9:35:27 PM9/25/16
to Warewulf
...and now I'm stuck here:

192.168.1.222 - - [25/Sep/2016:21:31:22 -0400] "GET
/WW/nodeconfig?hwaddr=00:13:d3:2e:bf:7a HTTP/1.1" 200 704 "-" "Wget"
192.168.1.222 - - [25/Sep/2016:21:31:23 -0400] "GET
/WW/script?hwaddr=00:13:d3:2e:bf:7a&type=pre HTTP/1.1" 200 171 "-"
"Wget"
192.168.1.222 - - [25/Sep/2016:21:31:23 -0400] "GET
/WW/vnfs?hwaddr=00:13:d3:2e:bf:7a HTTP/1.1" 302 573 "-" "Wget"
192.168.1.111 - - [25/Sep/2016:21:26:24 -0400] "GET
/WW/vnfs_cache/debian1/image.74bfaeae325f40365c04c0ec58130f91
HTTP/1.1" 200 41522848 "-" "Wget"
192.168.1.222 - - [25/Sep/2016:21:31:24 -0400] "GET
/WW/vnfs_cache/debian1/image.56031ef4a18b1565950d0a7d9789a2b8
HTTP/1.1" 200 74252399 "-" "Wget"
192.168.1.222 - - [25/Sep/2016:21:32:05 -0400] "GET
/WW/vnfs?hwaddr=00:13:d3:2e:bf:7a HTTP/1.1" 302 573 "-" "Wget"
192.168.1.222 - - [25/Sep/2016:21:32:05 -0400] "GET
/WW/vnfs_cache/debian1/image.56031ef4a18b1565950d0a7d9789a2b8
HTTP/1.1" 200 74252397 "-" "Wget"
192.168.1.222 - - [25/Sep/2016:21:32:42 -0400] "GET
/WW/vnfs?hwaddr=00:13:d3:2e:bf:7a HTTP/1.1" 302 573 "-" "Wget"
192.168.1.222 - - [25/Sep/2016:21:32:42 -0400] "GET
/WW/vnfs_cache/debian1/image.56031ef4a18b1565950d0a7d9789a2b8
HTTP/1.1" 200 74252397 "-" "Wget"
192.168.1.222 - - [25/Sep/2016:21:33:26 -0400] "GET
/WW/vnfs?hwaddr=00:13:d3:2e:bf:7a HTTP/1.1" 302 573 "-" "Wget"
192.168.1.222 - - [25/Sep/2016:21:33:26 -0400] "GET
/WW/vnfs_cache/debian1/image.56031ef4a18b1565950d0a7d9789a2b8
HTTP/1.1" 200 74252397 "-" "Wget"
192.168.1.222 - - [25/Sep/2016:21:34:22 -0400] "GET
/WW/vnfs?hwaddr=00:13:d3:2e:bf:7a HTTP/1.1" 302 573 "-" "Wget"

Jeff Davis

unread,
Sep 25, 2016, 10:17:37 PM9/25/16
to Warewulf
So....  it looks like it downloads just fine (100%) but it appears to be in an infinite loop...  Ugh.

Barry Moore

unread,
Sep 25, 2016, 10:18:14 PM9/25/16
to Warewulf
Jason,

Quick update, putting files in:

/usr/local/share/warewulf/www

works, but any of the other directories it doesn't. I think I am going to have to carefully check permissions.

Thanks,

Barry

Jeff Davis

unread,
Sep 26, 2016, 6:28:20 AM9/26/16
to Warewulf

Barry,  sorry I hijacked your thread...  Anyway I'm on to the next thing... Looks like a bad bootstrap /vnfs...  I changed the vnfs and got it to load with failures everywhere.


Barry Moore

unread,
Sep 26, 2016, 12:13:22 PM9/26/16
to Warewulf
Jeff and Jason,

No worries on hijacking the thread. Sound like we are working through similar problems.

As it turns out, navigating to the URL on my VM host machine shows the error in error_log. I didn't have perl-CGI installed and I am feeling pretty stupid about it. Additionally, for CentOS and RHEL 7 variants it looks like the warewulf-httpd.conf should be in /etc/httpd/conf.d. Hoping to get everything working this afternoon. Would it be helpful to turn this experience into a blog post for people?

Thanks for your help guys!

Barry

Barry Moore

unread,
Sep 27, 2016, 1:06:29 PM9/27/16
to Warewulf
Jeff,

Wanted to add that the rest of my issues were solved with: 

chgrp apache /usr/local/etc/warewulf/database*

Hope it helps!

Barry
>>&

Jason Stover

unread,
Sep 27, 2016, 1:14:02 PM9/27/16
to ware...@lbl.gov
*bangs head*

Ugh... I forgot that the RPM spec file sets up the 'warewulf' group
that those are supposed to fall under.

database-root.conf _should_ be:

chown root:root database-root.conf
chmod 600 database-root.conf

That way the web server is only ever connecting as the warewulf user
defined in database.conf and not as the root mysql user.

-J
> --
> You received this message because you are subscribed to the Google Groups
> "Warewulf" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to warewulf+u...@lbl.gov.
> To post to this group, send email to ware...@lbl.gov.
> To view this discussion on the web visit
> https://groups.google.com/a/lbl.gov/d/msgid/warewulf/7fa17626-ac1e-4892-80f6-534b6535c568%40lbl.gov.

Barry Moore

unread,
Sep 27, 2016, 2:56:27 PM9/27/16
to Warewulf
Jason,

Very good point! fixed.

Thanks,

Barry

Barry Moore

unread,
Sep 27, 2016, 3:03:23 PM9/27/16
to Warewulf
Jason,

On my system a 'warewulf' user wasn't created. For best practices, I should set up a warewulf user and grant them full access to the warewulf database (correct?).

- Barry

Chu Ruilin

unread,
Oct 6, 2016, 8:14:31 PM10/6/16
to ware...@lbl.gov
I have done this befere, if you have multiple NIC on your WW master nodes, set the first one as NAT, the second one as internal network, the slave nodes have only one NIC named eth1, not eth0

Reply all
Reply to author
Forward
0 new messages