Monday, December 31, 2007

out-of-box opensolaris on IBM X60

Tested b77.

The good things,
1. overall it works fine.
2. centrino duo detected as 2 cpu instances (prtconf)
3. hvm shows up (xm info | grep caps, after I update BIOS and enabled VT in it)
4. battery status is there, just need to add applet to panel.
5. ethernet card works, e1000g0
6. wireless works, wpi0 (ifconfig wpi0 dhcp, from console, Administration/Network if from GNOME).

Needs improve,
1. xVM conflict with intel driver, have to change to "vesa" in order to work with xVM
2. sound card is not working.
3. power management, although powerd is running, keyboard is quite hot. Haven't found way to make it slow down.
4. it will be good if there's updates for some common applications (firefox, thunderbird ...) on the net.

xVM crashes on IBM X60

After a few round of reinstalling of opensolaris b77, I realized that the problem is not due to my installation. The only partially failed package was SUNWfilebench, the rest all looks in /var/sadm/install_data/install_log.

When I choose SXCE, everything runs fine. But when I choose xVM, everything also ok provided I don't login to GUI (GNOME/CDE). Every attempt will cause the whole system crash.

Since I am not trained on crash dump analysis, google may provide me some hints. After some tries of different keywords combination, "xen intel graphic cards" lead me to a bug (177465) on bugzilla.novell.com .

So it's the graphic driver not working properly with XEN. Before the next build of OpenSolaris, my workaround is to use "vesa" instead of "intel" driver.

Just go to command line login with root, run "/usr/X11R6/bin/xorgcfg", save the /etc/X11/xorg.conf
then change "intel" to "vesa" in the "Device" section.

Friday, December 28, 2007

mysql easy security.

Set password for root,
mysqladmin password
Put in /etc/my.cnf (chmod 600), so it's convenient for admin, it's not a good practice, though.
[client]
user=root
password=newpasswd
For individual database, grant rights to its owner,
grant all on database1.* to 'user1'@'%' identified by 'password';
flush privileges;
If you did not record down password for root and forgot it, start mysqld with --skip-grant-tables

run "mysql mysql" with following statement,
UPDATE user SET Password=PASSWORD('YOUR_PASSWORD')
WHERE Host='localhost' AND User='root';
exit
The restart mysqld normally.





Monday, December 24, 2007

qcow - grow as you use.

http://www.gnome.org/~markmc/qcow-image-format.html
QCOW is a great and open source way to store disk image file.

Glad to know Xen also supports qcow-create'd file.

I will test to create D:\ for my Win XP on OpenSolaris xVM.

Stay tuned.

Labels:


Monday, December 17, 2007

opensolaris xvm install windows XP

virt-install

get xp.iso ready, and answer a few questions.
# su
(do not use "su -", or you have to settle DISPLAY)

vncpasswd
# svccfg -s xvm/xend setprop config/vncpasswd="qwe123"
# svcadm refresh xvm/xend
# svcadm restart xvm/xend

cdrom lost after reboot,

# xm block-attach winxp file:/myxp.iso hdc:cdrom r
# xm reboot winxp
# vncviewer :0

Option 2,
xm create

with config like,

import os, re
arch = os.uname()[4]
if re.search('64', arch):
arch_libdir = 'lib64'
else:
arch_libdir = 'lib'
kernel = "/usr/lib/xen/boot/hvmloader"
builder='hvm'
memory = 512
shadow_memory = 8
name = "winxp"
vcpus=1
disk = [ 'file:/export/home/XP/winxp.img,hda,w', 'file:/WinXPp2.iso,hdc:cdrom,r' ]
vif = [ 'type=ioemu' ]

on_poweroff = 'destroy'
on_reboot = 'restart'
on_crash = 'preserve'

device_model = '/usr/' + arch_libdir + '/xen/bin/qemu-dm'
boot='d'
vnc=1
vncpasswd='qwe123'
serial='null'
usb=1
usbdevice='tablet'
last 2 lines make the mouse in vnc works better!

get rdesktop from blastwave, and a heavy load of other free software.
http://www.blastwave.org/howto.html

Labels:


Sunday, December 09, 2007

remove cups from linux server

Since it's not used for printing.

redhat-lsb needs to be removed also, it's a package to ensure printing compatibility.

This page is powered by Blogger. Isn't yours?