Friday, April 30, 2010
Thursday, April 29, 2010
Wednesday, April 28, 2010
Installing Paravirtual DomU
virt-install --paravirt --name test --ram 2048 --noautoconsole --wait=-1 --os-type=solaris --os-variant=opensolaris --disk path=/var/local/lib/xen/images/test,sparse=true,device=disk,size=12 --location /var/local/iso/textinstall-134-x86.iso --network bridge=stub0
virsh console test (inform the installer the terminal type is xterm)
virsh console test (inform the installer the terminal type is xterm)
Tuesday, April 27, 2010
Setting VNC Server Geometry
inetadm -m svc:/application/x11/xvnc-inetd:default exec="/usr/bin/Xvnc -inetd -query localhost -once securitytypes=none -geometry 1680x1050x24"
Host-only networking
dhcpconfig -D -r SUNWfiles -p /var/local/dhcp -a 192.168.56.1 -d host.lan -h files -l 86400
dhcpconfig -N 192.168.56.0 -m 255.255.255.0 -t 192.168.56.1
dhcpconfig -N 192.168.56.0 -m 255.255.255.0 -t 192.168.56.1
Monday, April 26, 2010
Saturday, April 24, 2010
OpenSolaris Networking nVidia MCP67 Solved
My NIC identifies as an nVidia MCP67. The installer doesn't find a driver for it. The solution seams to be as follows...
After installation, boot to single-user mode. In grub edit:
kernel$ /platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS,console=graphics
change to:
kernel$ /platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS -s
Log in as root and run:
update_drv -a -i "pci10de,54c" nge
ifconfig nge0 plumb
The above gets the driver to load, but it has a strange incompitibility. On my system typing:
ifconfig nge0 ether
returns output including:
ether 11:6f:a0:1b:30:0
which is exactly backwards.
To bring the interface up I need to fix the mac address:
ifconfig nge0 ether 0:30:1b:a0:6f:11
To make this correction persistent put:
ether 0:30:1b:a0:6f:11
in /etc/hostname.nge0
After installation, boot to single-user mode. In grub edit:
kernel$ /platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS,console=graphics
change to:
kernel$ /platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS -s
Log in as root and run:
update_drv -a -i "pci10de,54c" nge
ifconfig nge0 plumb
The above gets the driver to load, but it has a strange incompitibility. On my system typing:
ifconfig nge0 ether
returns output including:
ether 11:6f:a0:1b:30:0
which is exactly backwards.
To bring the interface up I need to fix the mac address:
ifconfig nge0 ether 0:30:1b:a0:6f:11
To make this correction persistent put:
ether 0:30:1b:a0:6f:11
in /etc/hostname.nge0
Using USB to copy between Windows and Solaris, not
While OpenSolaris build 134 will automount a FAT32 usb drive, it can't seem to read it reliably. While trying to get the 'nfo' network driver installed the downloaded file had crc errors by the time I got it to the Solaris machine (which it does not have when downloaded directly on Solaris).
The windows GUI for formatting flash drives makes no reference to UDFS and defaults to Fat32. It turns out, you can format it properly from the command line:
format g: /fs:UDF
So, I expected that to be the answer, but then I couldn't manage to mount it on the Solaris side.
The windows GUI for formatting flash drives makes no reference to UDFS and defaults to Fat32. It turns out, you can format it properly from the command line:
format g: /fs:UDF
So, I expected that to be the answer, but then I couldn't manage to mount it on the Solaris side.
OpenSolaris Installation Bug
I'm leaving this for breadcrumbs... scratch this though. More to follow.
This has frustrated me for hours, largely because I changed all the wrong suspects before finding the real suspect. It was my first installation from USB media, so I thought that might be bad. It was my fist installation to a new SD so that was suspect. My disk controller (driver) was suspect. I have my home server sitting on the kitchen counter to install OpenSolaris. I didn't have a network cable strung to it, that was going in when it returned to its proper home. Installing OpenSolaris without a network attached fails! The symptom is errors trying to sign in after installation:
Could not update ICEauthority file /home/usrname/.ICEauthority
/usr/lib/gconf-sanity-check-2 exited with status 256
Attaching a cable after installation doesn't resolve it, apparently it needs to be networked at installation time (there are other post-installation workarounds):
http://bugs.opensolaris.org/view_bug.do?bug_id=6913780
And all of the above about need a cable attached might be completely bogus too. I'm not going to take still more time right now to find out. It turned out the installation cd also has no driver for my NIC. Here's hoping this one works for the long term:
http://homepage2.nifty.com/mrym3/taiyodo/nfo-2.6.3.tar.gz
This has frustrated me for hours, largely because I changed all the wrong suspects before finding the real suspect. It was my first installation from USB media, so I thought that might be bad. It was my fist installation to a new SD so that was suspect. My disk controller (driver) was suspect. I have my home server sitting on the kitchen counter to install OpenSolaris. I didn't have a network cable strung to it, that was going in when it returned to its proper home. Installing OpenSolaris without a network attached fails! The symptom is errors trying to sign in after installation:
Could not update ICEauthority file /home/usrname/.ICEauthority
/usr/lib/gconf-sanity-check-2 exited with status 256
Attaching a cable after installation doesn't resolve it, apparently it needs to be networked at installation time (there are other post-installation workarounds):
http://bugs.opensolaris.org/view_bug.do?bug_id=6913780
And all of the above about need a cable attached might be completely bogus too. I'm not going to take still more time right now to find out. It turned out the installation cd also has no driver for my NIC. Here's hoping this one works for the long term:
http://homepage2.nifty.com/mrym3/taiyodo/nfo-2.6.3.tar.gz
Tuesday, April 20, 2010
OpenSolaris Notes
Partitioning:
fdisk /dev/rdsk/<diskid>p0 (e.g. fdisk /dev/rdsk/c3t0d0p0)
Enabling Deduplication:
zfs set dedup=on rpool
Prevent swap from completely eating my small root pool:
swap -d /dev/zvol/dsk/rpool/swap
zfs destroy rpool/swap
zfs create -s -b 4K -V 1G rpool/swap
swap -a /dev/zvol/dsk/rpool/swap
Convert text installation to GUI:
beadm create GUI
beadm mount GUI /mnt
pkg -R /mnt install babel_install
pkg -R /mnt uninstall babel_install slim_install
bootadm update-archive -R /mnt
beadm umount GUI
beadm activate GUI
Installing COMSTAR iscsi target:
pkg install storage/stmf
pkg install network/iscsi/target
Enabling xdmcp
Edit /etc/gdm/custom.conf, adding "Enable=true" under [xdmcp] section
svccfg -s svc:/application/x11/x11-server setprop options/tcp_listen=true
svcadm restart gdm
Enabling mega_sas for AOS-SASLP-H8iR:
pkg install driver/storage/mega_sas
rem_drv mega_sas
add_drv -i "pci15d9,c480" mega_sas
fdisk /dev/rdsk/<diskid>p0 (e.g. fdisk /dev/rdsk/c3t0d0p0)
Enabling Deduplication:
zfs set dedup=on rpool
Prevent swap from completely eating my small root pool:
swap -d /dev/zvol/dsk/rpool/swap
zfs destroy rpool/swap
zfs create -s -b 4K -V 1G rpool/swap
swap -a /dev/zvol/dsk/rpool/swap
Convert text installation to GUI:
beadm create GUI
beadm mount GUI /mnt
pkg -R /mnt install babel_install
pkg -R /mnt uninstall babel_install slim_install
bootadm update-archive -R /mnt
beadm umount GUI
beadm activate GUI
Installing COMSTAR iscsi target:
pkg install storage/stmf
pkg install network/iscsi/target
Enabling xdmcp
Edit /etc/gdm/custom.conf, adding "Enable=true" under [xdmcp] section
svccfg -s svc:/application/x11/x11-server setprop options/tcp_listen=true
svcadm restart gdm
Enabling mega_sas for AOS-SASLP-H8iR:
pkg install driver/storage/mega_sas
rem_drv mega_sas
add_drv -i "pci15d9,c480" mega_sas
Subscribe to:
Posts (Atom)