Now that the installation has finished we need to adjust a few settings to make everything work, we'll use the console to do it. Below, ^D means push Ctrl+D.

First we'll set the SCSI flags so it'll boot properly.

# cd /a/etc
# cat >> system
set scsi_options=0x58
^D
#

Next we need some network settings. Let's add a default router, the address that QEMU uses is 10.0.2.2.

# cat > defaultrouter
10.0.2.2
^D
#

Now configure DNS. The nameserver is 10.0.2.3.

By default, Solaris doesn't use a nameserver at all so we need to enable it. The first 3 lines make that change to nsswitch.conf and save it in a new file, replace the old file, then set the right permissions.

Next we tell it what nameserver to use by adding a line to the resolv.conf file.

# sed 's/hosts:.*files/hosts: files dns/g' nsswitch.conf > nsswitch.conf.new
# mv nsswitch.conf nsswitch.conf.old && mv nsswitch.conf.new nsswitch.conf
# chmod 644 nsswitch.conf

# cat > resolv.conf
nameserver 10.0.2.3
^D

All set! Time to reboot, just type reboot and hit enter.

This guide was first published on Apr 26, 2019. It was last updated on Apr 26, 2019.

This page (Install Solaris part 2) was last updated on Apr 10, 2021.

Text editor powered by tinymce.