Showing posts with label openindiana. Show all posts
Showing posts with label openindiana. Show all posts

Saturday, January 8, 2022

Hacky tip for Illumos

 This seems to be the weekend to do all the virtualizers -so I've installed OpenIndiana (Hipster 2021-10) which can use UEFI boot now.

I made my hard disk too small so I created another one and then realized that I have no idea how to find out what the name for the disk is. 

Then I remembered -format lists the drives it can see. So:

root@openindiana:~# format -e
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c5t0d0 <VBOX-HARDDISK-1.0-36.00GB>
          /pci@0,0/pci8086,2829@d/disk@0,0
       1. c5t2d0 <VBOX-HARDDISK-1.0-32.00GB>
          /pci@0,0/pci8086,2829@d/disk@2,0
Specify disk (enter its number): ^C
root@openindiana:~#

So now I know I can add c5t2d0 to the end of a zpool create incantation.

As I say; hacky, but it works...


Tuesday, January 12, 2021

OI on VB; quick note-to-self

 To get proper graphics, the following need to be done: 

C:\Program Files\Oracle\VirtualBox>VBoxManage.exe setextradata OI-2021 CustomVideoMode1 1920x1080x16


C:\Program Files\Oracle\VirtualBox>VBoxManage modifyvm OI-2021 --graphicscontroller vboxvga

The resolution may/may not need to be adjusted in MATE (preferences -> system -> displays).

The text installer (an option from the mate boot disk) allows you to specify an IP and default router, instead of having it handled by Network Manager. 

Saturday, March 28, 2020

Openindiana Static IP

Thanks to a post on the OI mailing list, I finally figured out how to set a static IP.

Actually, setting the static IP hasn't been the problem; that's easy enough to do using network manager. The tricky part has been dns.

The mailing list referred to this guide on the openindiana website. Using those instructions -modified for virtualbox (substituting bge0 with e1000g0), I was able to set my IP to 192.168.1.15 and my router to 192.168.1.1

ifconfig showed the correct information, and my route seemed to be set; but I couldn't ping anything.

I went back to re-read and found this gem:

IF you cannot ping an external IP (e.g. google.com) run this command and try again.
# cp /etc/nsswitch.dns /etc/nsswitch.conf

After that, the net worked just like it was supposed to. In fact, I half suspect I could have skipped all the dinking around and simply set /etc/resolv.conf and nsswitch.conf. I'll have to try that another day!

Other, unrelated notes:
I tried setting up sunstudio 12.3, but it didn't like my installed java version; so it won't run.

I temporarily borked my mate by adding the following to .profile:
$PATH:/opt/solarisstudio12.3/bin
which should have been:
export PATH=$PATH:/opt/solarisstudio12.3/bin

The result being that lightdm would get confused and send me back to the login prompt after successfully logging in.

automating zfs mounts -a quick and very dirty script

 #!/bin/sh for x in obj xsrc src pkgsrc pkgsrc/distfiles pkgsrc/packages pkg         do zfs create ext/$x zfs set mountpoint=/usr/$x ext/$x ...