Archive for the ‘unix’ Category

Virtualization Updates
March 23, 2008

The host is Ubuntu 8.04 Hardy Heron, still in bleeding edge alpha (and hundreds of megabytes of updates).

  • OSX86 on kvm or qemu – no go immediately on boot.
  • OSX86 on VMware – stuck on boot.
  • OpenSolaris Indiana Preview 2 – Runs in kvm, but Cirrus Logic emulated VGA is not supported. Forcing VESA mode just blanks out the screen. Tried using VMware to install, success. Tried to boot the VMware disk image using kvm, reboots immediately after choosing the kernel. Tried forcing 32-bit kernel, no go. Will try Solaris Express Developer Edition instead.
  • FreeBSD 7.0 64-bit – flawless. Of course there’s no X configuration (by default), and I don’t think I need it. I have no idea what I will use FreeBSD for.
Advertisements

Linux setup status
March 11, 2008

Linux setup pending problems:

  1. No CPU/system temperature from ACPI. (Ironically, hard drive temp is available but not in Windows.)
  2. Ubuntu 7.10 installer is not compatible with KVM (Kernel Virtualization). It segfaults due to the fancy splash screen. Intel VT does not support x86 real mode instructions, but AMD virtualization does.
  3. KVM in QEMU emulator mode crashes halfway in installing Ubuntu 7.10. And, it’s super slow and eats up 100% of one core.

Trying the following:

  1. Tried OpenSolaris Indiana preview – also crashes and needs QEMU. X does not start.
  2. Copying a preinstalled Ubuntu vmdk.
  3. Downloading Ubuntu Hardy Heron 8.04, which is said to have a workaround for the splash problem.

SugarCRM on Solaris/Apache/MySQL
November 15, 2006

SugarCRM 4.5.0f on Solaris 10 update2, x86 + MySQL. It should not change much for SPARC.

  1. Follow the BigAdmin SAMP Feature Article. I added cURL support, “–with-curl=/opt/csw” on the configure command line. This needs the curl Blastwave package. I had to edit interface.c, replace the removed CURLOPT_FTPASCII with CURLOPT_TRANSFERTEXT, and remove the CURLOPT_PASSWDFUNCTION which I don’t think will be used in PHP. I did some¬† searches and read that these functions have long been deprecated.
  2. Note that the httpd.conf configuration of “Group #-1” does not work with Solaris. httpd will crash right away. I changed this to “Group nobody” – shouldn’t this be the default?
  3. Set the session save path. I created a hierarchy /var/apache2/tmp/php-session for this. If not set, SugarCRM will complain about it later.
  4. Install the JSON extension,version 1.1.1 which will optimize SugarCRM. I manually downloaded and ran phpize, configure and make install. pecl wants to install the current 1.2.1 and refuses a version override, “pecl install json-1.1.1”.
  5. Run the web-based installer. According to the SugarCRM Supported platforms, PHP 5.1.4 is supported but the installer code is not updated and claims it’s unsupported.

Azureus on Ubuntu 6.10 Crashes
November 14, 2006

I’m downloading a >3GB file on Azureus 2.5.0 that ships with Ubuntu 6.10 Edgy Eft. It was working with Sun Java 1.5.0-08. But it crashed. I sent the crash logs to Sun.

Before starting the download with the Sun JDK, I tried gcj. But it jsut threw exceptions and the download didn’t start.

I tried the latest Azureus jar from CVS.¬† Seems to be working. I guess it’s a known issue?

I started downloading jdk6 RC in case that would solve the problem.

My OpenSolaris, not off to a good start
November 14, 2006

The Sun announcement about open source Java really got me excited about running a full Sun-developed open source stack.

I got Solaris Express Community Edition “nevada” b52. I tried it in the office VMware. Hangs at 100% of “the system is being initialized, please wait…”. Tried it at home, in VMWare under Ubuntu. Same thing. VMWare uses around 20% CPU on my Celeron D 320 (2.4 Ghz/256 KB L2/533 Mhz FSB). The VMWare logs have no indication of problems.

I then tried a custom kickstart at the first choice. This time, it hung even before starting the installation! It must be something peculiar about VMware. I could try it under my native hardware, but I won’t be able to hack with it much that way.
Maybe I should stick to my “SAMP” work under Solaris. My first SAMP stack project is SugarCRM. I might try it with Oracle to learn PHP support for that enterprise database. For that shiny new software feeling, instead of going for Sol Express, I’ll wait a little bit for Solaris 10 Update 3 (11/06).

Solaris Happenings
November 13, 2006

I just wanted to write what I’m doing with Solaris. Nothing really new, and nothing worth writing a full article about yet.

  • Developing training material, especially for those sysadmins coming from a Linux background.
  • Trying out OpenSolaris and related tools. I find user-generated documentation, separate from the Sun manuals, are coming more and more from the OpenSolaris community. I downloaded the Solaris Express zips – but found out later that I got the SPARC versions, and the non-Community edition. I started downloading again. Sun should have torrents.
  • Trying out the “SAMP” stack – Solaris/Apache/MySQL/Perl – with applications. This is a bit hard because the pieces aren’t well integrated together in precompiled packages. There’s the Sun CoolStack distribution, but the x86 version is 64-bit. I can’t run Solaris 64-bit because I don’t have a VT-capable processor which is necessary for 64-bit guests under VMWare. The Blastwave distribution doesn’t integrate PHP with Apache (as far as I can see). For now I need to follow those instructions that compile from source.

Home Solaris now Networked
November 7, 2006

Thanks to the Free NIC drivers for Solaris page, I got the vfe driver working for the VIA Rhine III onboard Ethernet. I followed the instructions, and tried loading the precompiled drivers first. No go. I recompiled them and it worked.

I found out that Solaris 10 now ships with gcc and gmake, as well as other Sun Freeware, in /usr/sfw.

I enabled DNS by replacing /etc/nsswitch.conf with /etc/nsswitch.dns. I selected “no naming system” on installation.

I was able to register the system using my Sun login. It’s now downloading the free security updates.

Ubuntu and Solaris Setup, part 3
November 6, 2006

According to the webpage about setting up drivers for the VIA Rhine III Ethernet driver for Solaris 10 x86, I need to compile the driver source code. I figured that this would be easier to do under a VMWare Setup in Ubuntu, since at least there I have the emulated pcn0 (AMD PCnet) adapter for downloading. Once the header is compiled, I could copy it to my FAT32 partition, which could be mounted by my physical Solaris installation.
So I fixed my Ubuntu setup. For some reason, X just wanted to use 1024×768. This looks fuzzy on my LCD which is 1280×1024 native. I installed the NVidia binary driver, which needed the libc headers to compile. Since I downloaded a DVD, I used apt-cdrom to setup apt to read from the DVD. After this, the resolution was still bad so I used dpkg-reconfigure xserver-xorg to setup xorg.conf for 1280×1024.

Then I installed VMWare. I installed mounted the “CD-ROM” as the physical DVD drive. I thought that this would be faster than reading from a file and installing into the same physical hard drive. It looks like it’s the same speed or slower – perhaps due to drive emulation? I’m out of time for now, so I’ll suspend VMWare. I hope it restores the installation procedure properly.

Repartitioning for Ubuntu and Solaris, Take 2
November 5, 2006

The problem booting the hard drive-installed Solaris from DVD, in my previous post, was just a typo (boot_archive, not boot-archive)

I decided to repartition the extended partition and get rid of the extra 2 GB. I created a FAT32 partition at the normal maximum, 32 GB, for file storage. I reinstalled Ubuntu, giving it 20 GB. Then, I used the Solaris DVD to boot into the hard drive image, edited the menu.lst, and used installgrub to update.

Next project: enable the via-rhine chipset Ethernet, onboard the VT8237 Southbridge on this P4VMA-M chipset motherboard.

Reference: BigAdmin Feature Article: GRUB and the Solaris 10 1/06 OS: The New Bootloader for x86 Platforms

Repartitioning for Ubuntu and Solaris, Take 1
November 4, 2006

I started the Solaris 10 installation. The installer partitioning system doesn’t seem very smart. It did point out that I had over 20 GB free on my 120 GB hard drive. This, while I was starved for space all along. I forgot all about a few cylinders.

I decided to fix up my hard drive. I had a FAT32 partition with miscellaneous stuff in it, which I backed up to DVD. I deleted that, the FC6 partition which had nothing to backup, and the Ubuntu 6.06 partition which didn’t have much. (I haven’t been working on projects there – I use it mainly as an Internet desktop)

Ubuntu DVD download through BitTorrent took quite a while. Not that many torrent participants.
I kept the 20 GB NTFS partition for Windows XP, and deleted the rest. I installed Ubuntu and created the rest of the partitions using gparted: 20 GB for Solaris, 2 GB for swap, and the rest an extended partition. 20 GB for Ubuntu, for now. Extended is fine since GRUB is capable of opening logical partitions inside extended partitions, but not the LVM logical volumes used by Red Hat-based Linuxen. (confusing terminology!)
Solaris installation is very slow compared to Linux. Is it because they expect you to do it just a few times? When I started it, I realized that the 2 GB swap partition is a waste. Solaris will use a slice inside the single Solaris partition, anyway. The Solaris partitioner doesn’t allow you to keep a partition. Instead, if you leave it “unused”, it will delete it.

I installed Ubuntu first because I thought I needed a Unix I could work with to fix the partition table and GRUB, before installing Solaris. Only later did I realize that the Ubuntu installer/LiveCD would do the trick.

After installing Solaris, I realized that I could not boot Ubuntu. Of course, the Solaris installer made no provision for booting other Unixen. It added Windows. There was a warning that Linux partitions on the same hard drive were not supported. Now I know why.

I wrote down the Solaris grub commands on paper. I booted the Ubuntu LiveCD to mount the hard drive, added the Solaris commands to menu.lst, then ran update-grub and grub-install. I rebooted. No go. Ubuntu’s grub could not open the Solaris UFS slice, (hd0,1,a).

I tried to boot Solaris using the GRUB on the installation CD, but I got strange errors.

I’m out of time for now. Next thing to try: boot into the recovery shell on the DVD, then fix GRUB from there to boot Ubuntu. I’ll need to learn the Solaris GRUB management tools.

If this doesn’t work out, then I’ll fall back to running Solaris under VMWare. I’m already doing this at the office in our server. The minus side is I won’t learn how Solaris interacts with the raw hardware and booting system. The plus side might be that I’ll be more encouraged to run Solaris as a VM since it’s hosted under a “nice and friendly” Ubuntu.

I’m also obsessive-compulsive about the extra partition created. Not about the 2 GB – that’s only 1/60th of the hard drive – but that it’s one of four partitions you can create, the legacy of the old DOS days.