diskless client on virtualbox guest

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

diskless client on virtualbox guest

matteo filippetto
Hi all,

i'm trying to make a diskless client following this
https://man.openbsd.org/diskless

(also find this http://kuutorvaja.eenet.ee/wiki/Diskless_OpenBSD and read
the tutorial on Absolute OpenBSD )

Both server and client are virtualbox guest. server is amd64 on 6.1. The
boot process stop here:

(other info here ...)
PXE boot MAC address 0b:00:27:42:7a:f0, interface em0
nfs_boot: using interface em0, with revarp & bootparams
nfs_boot: client_addr=192.168.20.21
nfs_boot: server_addr=192.168.20.1 hostname=thin1
root on 192.168.20.1:/export/diskless/root
swap on 192.168.20.1:/export/diskless/swap
exec /sbin/init: error 8
init: not found
panic: no init
(other info here ...)


As a test, i tried to mount nfs directory from a debian system and it's
working fine.

There are known problems with this procedure or I'm missing something ?

Regards



Here there are the configurations I'm using

# cat /etc/dhcpd.conf

shared-network virtualnet {

subnet 192.168.20.0 netmask 255.255.255.0 {

        range 192.168.20.10 192.168.20.20;
        option routers 192.168.20.1;
        option broadcast-address 192.168.20.255;

}

host thin1 {

        hardware ethernet 08:00:27:42:7A:F0;
        fixed-address 192.168.20.21;
        next-server 192.168.20.1;
        filename "pxeboot";
}

}

# cat /etc/hosts
127.0.0.1       localhost
::1             localhost

192.168.20.1    mtbsd
192.168.20.21   thin1
192.168.20.10   debian1

# cat /etc/ethers
08:00:27:42:7A:F0 thin1

# cat /etc/bootparams
thin1 root=192.168.20.1:/export/diskless/root swap=192.168.20.1:
/export/diskless/swap

# cat /etc/exports
/export/diskless -maproot=root -alldirs thin1
/export/diskless -maproot=root -alldirs debian1
/usr -ro thin1

# ls -all /export/diskless/
total 108
drwxr-xr-x   3 root  wheel        512 Aug 14 17:10 .
drwxr-xr-x   3 root  wheel        512 Aug 14 16:22 ..
drwxr-xr-x  14 root  wheel        512 Aug 14 17:18 root
-rw-r--r--   1 root  wheel  125829120 Aug 14 17:10 swap

# ls -all /export/diskless/root/sbin/init
-r-xr-xr-x  1 root  bin  397704 Apr  2 08:55 /export/diskless/root/sbin/init


--
Matteo Filippetto
Reply | Threaded
Open this post in threaded view
|

Re: diskless client on virtualbox guest

Andreas Kusalananda Kähäri-3
On Mon, Aug 14, 2017 at 06:17:23PM +0200, matteo filippetto wrote:
> Hi all,
[cut]
> PXE boot MAC address 0b:00:27:42:7a:f0, interface em0
[cut]
> # cat /etc/ethers
> 08:00:27:42:7A:F0 thin1

Ethernet address are not matching.


Cheers,

--
Andreas Kusalananda Kähäri,
National Bioinformatics Infrastructure Sweden (NBIS),
Uppsala University, Sweden.

Reply | Threaded
Open this post in threaded view
|

Re: diskless client on virtualbox guest

matteo filippetto
Il 14 Ago 2017 8:12 PM, "Andreas Kusalananda Kähäri" <[hidden email]>
ha scritto:

On Mon, Aug 14, 2017 at 06:17:23PM +0200, matteo filippetto wrote:
> Hi all,
[cut]
> PXE boot MAC address 0b:00:27:42:7a:f0, interface em0
[cut]
> # cat /etc/ethers
> 08:00:27:42:7A:F0 thin1

Ethernet address are not matching.


Sorry, that was a mistake copying the message from guest console....

The right one is 08:00:27:42:7A:F0 and is also the one report on console
while booting

Regards



Cheers,

--
Andreas Kusalananda Kähäri,
National Bioinformatics Infrastructure Sweden (NBIS),
Uppsala University, Sweden.