Category Archives: Техническа

Time not to update the licenses

С изтичането на лицензите умира още един хобистки проект, най-вече поради липса на ресурса време. Някой ден пак.

Username: SYSTEM
Password:
 Welcome to OpenVMS (TM) VAX Operating System, Version V7.3
    Last interactive login on Monday, 15-APR-2013 05:33

$ show license

Active licenses on node GETRY:

------- Product ID --------    ---- Rating ----- -- Version --
Product            Producer    Units Avail Activ Version Release    Termination
ACMS               DEC             0  0     100    0.0  (none)      11-MAY-2013
ACMS-REM           DEC             0  0     100    0.0  (none)      11-MAY-2013
ACMS-RT            DEC             0  0     100    0.0  (none)      11-MAY-2013
ACMSXP-DEV         DEC             0  0     100    0.0  (none)      11-MAY-2013
ACMSXP-RT          DEC             0  0     100    0.0  (none)      11-MAY-2013
ADA                DEC             0  0     100    0.0  (none)      11-MAY-2013
ADA-PDO            DEC             0  0     100    0.0  (none)      11-MAY-2013
ADAO-PDO           DEC             0  0     100    0.0  (none)      11-MAY-2013
ALLIN1-MAIL-DW-CLI DEC             0  0     100    0.0  (none)      11-MAY-2013
ALLIN1-MAIL-SERVER DEC             0  0     100    0.0  (none)      11-MAY-2013
ALLIN1-MAIL-SERVER DEC             0  0     100    0.0  (none)      11-MAY-2013
ALLIN1-MAIL-VT-CLI DEC             0  0     100    0.0  (none)      11-MAY-2013
ALLIN1-MAIL-VT-USE DEC             0  0     100    0.0  (none)      11-MAY-2013
ALLIN1-MAIL-WAN-SE DEC             0  0     100    0.0  (none)      11-MAY-2013
AUDIOKIT-USER      DEC             0  0     100    0.0  (none)      11-MAY-2013
AVAIL-MAN          DEC             0  0     100    0.0  (none)      11-MAY-2013
BASIC              DEC             0  0     100    0.0  (none)      11-MAY-2013
C                  DEC             0  0     100    0.0  (none)      11-MAY-2013
CMS                DEC             0  0     100    0.0  (none)      11-MAY-2013
COBOL              DEC             0  0     100    0.0  (none)      11-MAY-2013
CXX-V              DEC             0  0     100    0.0  (none)      11-MAY-2013
DCE-APP-DEV        DEC             0  0     100    0.0  (none)      11-MAY-2013
DCE-CDS            DEC             0  0     100    0.0  (none)      11-MAY-2013
DCE-SECURITY       DEC             0  0     100    0.0  (none)      11-MAY-2013
DCPS-OPEN          DEC             0  0     100    0.0  (none)      11-MAY-2013
DCPS-PLUS          DEC             0  0     100    0.0  (none)      11-MAY-2013
DECDCS-SRV-VA      DEC             0  0     100    0.0  (none)      11-MAY-2013
DECMIGRATE         DEC             0  0     100    0.0  (none)      11-MAY-2013
DECRAM             DEC             0  0     100    0.0  (none)      11-MAY-2013
DECWRITE           DEC             0  0     100    0.0  (none)      11-MAY-2013
DECWRITE-USER      DEC             0  0     100    0.0  (none)      11-MAY-2013
DESKTOP-ACMS       DEC             0  0     100    0.0  (none)      11-MAY-2013
DFG                DEC             0  0     100    0.0  (none)      11-MAY-2013
DFS                DEC             0  0     100    0.0  (none)      11-MAY-2013
DQS                DEC             0  0     100    0.0  (none)      11-MAY-2013
DTM                DEC             0  0     100    0.0  (none)      11-MAY-2013
DTR                DEC             0  0     100    0.0  (none)      11-MAY-2013
DTR-UI-JAPANESE    DEC             0  0     100    0.0  (none)      11-MAY-2013
DVNETEND           DEC             0  0     100    0.0  (none)      11-MAY-2013
DVNETEXT           DEC             0  0     100    0.0  (none)      11-MAY-2013
DVNETRTG           DEC             0  0     100    0.0  (none)      11-MAY-2013
DW-MOTIF           DEC             0  0     100    0.0  (none)      11-MAY-2013
DW-MOTIF-UI-CESKY  DEC             0  0     100    0.0  (none)      11-MAY-2013
DW-MOTIF-UI-DEUTSC DEC             0  0     100    0.0  (none)      11-MAY-2013
DW-MOTIF-UI-ESPANO DEC             0  0     100    0.0  (none)      11-MAY-2013
DW-MOTIF-UI-FRANCA DEC             0  0     100    0.0  (none)      11-MAY-2013
DW-MOTIF-UI-HANGUL DEC             0  0     100    0.0  (none)      11-MAY-2013
DW-MOTIF-UI-HANYU  DEC             0  0     100    0.0  (none)      11-MAY-2013
DW-MOTIF-UI-HANZI  DEC             0  0     100    0.0  (none)      11-MAY-2013
DW-MOTIF-UI-HEBREW DEC             0  0     100    0.0  (none)      11-MAY-2013
DW-MOTIF-UI-ITALIA DEC             0  0     100    0.0  (none)      11-MAY-2013
DW-MOTIF-UI-JAPANE DEC             0  0     100    0.0  (none)      11-MAY-2013
DW-MOTIF-UI-MAGYAR DEC             0  0     100    0.0  (none)      11-MAY-2013
DW-MOTIF-UI-POLSKI DEC             0  0     100    0.0  (none)      11-MAY-2013
DW-MOTIF-UI-RUSSKI DEC             0  0     100    0.0  (none)      11-MAY-2013
DW-MOTIF-UI-SLOVEN DEC             0  0     100    0.0  (none)      11-MAY-2013
DW-MOTIF-UI-SVENSK DEC             0  0     100    0.0  (none)      11-MAY-2013
DW-SNA-3270-TE-VMS DEC             0  0     100    0.0  (none)      11-MAY-2013
EXT-MATH-LIB       DEC             0  0     100    0.0  (none)      11-MAY-2013
EXT-MATH-LIB-RT    DEC             0  0     100    0.0  (none)      11-MAY-2013
FMS                DEC             0  0     100    0.0  (none)      11-MAY-2013
FMS-RT-UI-JAPANESE DEC             0  0     100    0.0  (none)      11-MAY-2013
FMS-UI-HANGUL      DEC             0  0     100    0.0  (none)      11-MAY-2013
FMS-UI-JAPANESE    DEC             0  0     100    0.0  (none)      11-MAY-2013
FORMS              DEC             0  0     100    0.0  (none)      11-MAY-2013
FORMS-RT           DEC             0  0     100    0.0  (none)      11-MAY-2013
FORMS-RT-UI-HANGUL DEC             0  0     100    0.0  (none)      11-MAY-2013
FORMS-RT-UI-HANYU  DEC             0  0     100    0.0  (none)      11-MAY-2013
FORTRAN            DEC             0  0     100    0.0  (none)      11-MAY-2013
GKS                DEC             0  0     100    0.0  (none)      11-MAY-2013
GKS-RT             DEC             0  0     100    0.0  (none)      11-MAY-2013
GKS-RT-UI-JAPANESE DEC             0  0     100    0.0  (none)      11-MAY-2013
GKS-UI-JAPANESE    DEC             0  0     100    0.0  (none)      11-MAY-2013
GKS3D              DEC             0  0     100    0.0  (none)      11-MAY-2013
GKS3D-RT           DEC             0  0     100    0.0  (none)      11-MAY-2013
LSE                DEC             0  0     100    0.0  (none)      11-MAY-2013
MACRO64            DEC             0  0     100    0.0  (none)      11-MAY-2013
MAILBUS-400-API    DEC             0  0     100    0.0  (none)      11-MAY-2013
MAILBUS-400-MTA    DEC             0  0     100    0.0  (none)      11-MAY-2013
MMOV-DV            DEC             0  0     100    0.0  (none)      11-MAY-2013
MMOV-RT            DEC             0  0     100    0.0  (none)      11-MAY-2013
MMS                DEC             0  0     100    0.0  (none)      11-MAY-2013
NOTES              DEC             0  0     100    0.0  (none)      11-MAY-2013
OPENVMS-ALPHA      DEC             0  0     100    0.0  (none)      11-MAY-2013
OPENVMS-ALPHA-USER DEC             0  0     100    0.0  (none)      11-MAY-2013
OPENVMS-HOBBYIST   DEC             0  0     100    0.0  (none)      11-MAY-2013
OPS5               DEC             0  0     100    0.0  (none)      11-MAY-2013
PASCAL             DEC             0  0     100    0.0  (none)      11-MAY-2013
PCA                DEC             0  0     100    0.0  (none)      11-MAY-2013
PHIGS              DEC             0  0     100    0.0  (none)      11-MAY-2013
PHIGS-RUNTIME      DEC             0  0     100    0.0  (none)      11-MAY-2013
PHIGS-RUNTIME-UI-J DEC             0  0     100    0.0  (none)      11-MAY-2013
PHIGS-UI-JAPANESE  DEC             0  0     100    0.0  (none)      11-MAY-2013
RMSJNL             DEC             0  0     100    0.0  (none)      11-MAY-2013
RTR-CL             DEC             0  0     100    0.0  (none)      11-MAY-2013
RTR-SVR            DEC             0  0     100    0.0  (none)      11-MAY-2013
SQL-DEV            DEC             0  0     100    0.0  (none)      11-MAY-2013
SSU                DEC             0  0     100    0.0  (none)      11-MAY-2013
UCX                DEC             0  0     100    0.0  (none)      11-MAY-2013
UCX-IP-CLIENT      DEC             0  0     100    0.0  (none)      11-MAY-2013
UCX-IP-NFS         DEC             0  0     100    0.0  (none)      11-MAY-2013
UCX-IP-RT          DEC             0  0     100    0.0  (none)      11-MAY-2013
VAX-VMS            DEC             0  0     100    0.0  (none)      11-MAY-2013
VAXCLUSTER         DEC             0  0     100    0.0  (none)      11-MAY-2013
VAXSET             DEC             0  0     100    0.0  (none)      11-MAY-2013
VMS-UI-JAPANESE    DEC             0  0     100    0.0  (none)      11-MAY-2013
VMSCLUSTER         DEC             0  0     100    0.0  (none)      11-MAY-2013
VOLSHAD            DEC             0  0     100    0.0  (none)      11-MAY-2013
X25                DEC             0  0     100    0.0  (none)      11-MAY-2013
X25-CLIENT         DEC             0  0     100    0.0  (none)      11-MAY-2013
X500-ADMIN-FACILIT DEC             0  0     100    0.0  (none)      11-MAY-2013
X500-DIRECTORY-SER DEC             0  0     100    0.0  (none)      11-MAY-2013
$

[1] http://en.wikipedia.org/wiki/OpenVMS
[2] http://www.openvms.org/
[3] http://simh.trailing-edge.com/
[4] http://deadsystems.com/
[5] http://www.openvmshobbyist.com/news.php
[6] http://labs.hoffmanlabs.com/
[7] http://h71000.www7.hp.com/

Debian domU on NetBSD/xen dom0

It’s all about virtualization these days. XEN is one of them – virtual machine monitors or hypervisors, responsible for creating, running and manipulating virtual machines. And so much more. XEN runs directly on hardware (bare-metal hypervisor) and needs a host OS, respectively a XEN-enabled host OS kernel for creating the first virtual machine upon boot called control domain, dom0 /domain zero/ or privileged domain. Xen is useless without its dom0, used for the entire virtualization environment. Currently NetBSD and Linux (Xen support was kicked out from Solaris 11) have dom0 support.

Preparations

Fine tune for your needs and compile a netbsd/xen dom0 kernel:

% cd /usr/src/sys/arch/$(uname -m)/conf
% config XEN3_DOM0
Build directory is ../compile/XEN3_DOM0
Don't forget to run "make depend"
% cd ../compile/XEN3_DOM0
% make depend && make
rm -f amd64
ln -s ../../../../arch/amd64/include amd64
rm -f x86
ln -s ../../../../arch/x86/include x86
rm -f xen
ln -s ../../../../arch/xen/include xen
.
.
.
#      link  XEN3_DOM0/netbsd
ld -Map netbsd.map --cref -T ../../../../arch/amd64/conf/kern.ldscript.Xen -Ttext 0xffffffff80100000
-e start -X -o netbsd ${SYSTEM_OBJ} ${EXTRA_OBJ} vers.o
NetBSD 6.1_RC3 (XEN3_DOM0) #0: Thu Apr 11 15:27:29 EEST 2013
   text    data     bss     dec     hex filename
9886163  628840 1799616 12314619         bbe7fb netbsd

% cp netbsd /netbsd.xen

Build and install xen kernel (xen.gz) from pkgsrc/sysutils/xenkernel41:

% cd /usr/pkgsrc/sysutils/xenkernel41
% make install clean
 => Bootstrap dependency digest>=20010302: found digest-20121220
 => Checksum SHA1 OK for xen-4.1.4.tar.gz
 => Checksum RMD160 OK for xen-4.1.4.tar.gz
 ===> Installing dependencies for xenkernel41-4.1.4
 .
 .
 .
 ===> Installing for xenkernel41-4.1.4
 => Creating installation directories
/usr/bin/install -c -o root -g wheel -m 644 /usr/pkgsrc/sysutils/xenkernel41/work/xen.gz
/usr/pkgsrc/sysutils/xenkernel41/work/.destdir/usr/pkg/xen41-kernel/xen.gz
/usr/bin/install -c -o root -g wheel -m 644 /usr/pkgsrc/sysutils/xenkernel41/work/xen-debug.gz
/usr/pkgsrc/sysutils/xenkernel41/work/.destdir/usr/pkg/xen41-kernel/xen-debug.gz
 => Automatic manual page handling
 ===> Building binary package for xenkernel41-4.1.4
 => Creating binary package /usr/pkgsrc/packages/All/xenkernel41-4.1.4.tgz
 ===> Install binary package of xenkernel41-4.1.4
 ===========================================================================
 $NetBSD$
The Xen hypervisor is installed under the following locations:
 /usr/pkg/xen41-kernel/xen.gz (standard hypervisor)
 /usr/pkg/xen41-kernel/xen-debug.gz (debug hypervisor)
 ===========================================================================
 ===> Cleaning for xenkernel41-4.1.4
% cp /usr/pkg/xen41-kernel/xen.gz /xen.gz

With copied netbsd dom0 kernel and xen hypervisor to /, you’re almost ready. Now add a boot menu line to /boot.cfg for booting XEN (touch params to fit your needs):

menu=Boot Xen with 1024MB for dom0:load /netbsd.xen console=pc;multiboot /xen.gz dom0_mem=1024M

Build and install xen userland tools. Copy rc.d scripts to /etc/rc.d, then add few lines to /etc/rc.conf to start the userland tools on boot (for more options in rc.conf, look the docs). You’ll also need xen devices populated in /dev:

% cd /usr/pkgsrc/sysutils/xentools41
% make install clean
.
.
.
% cp /usr/pkg/share/examples/rc.d/xen* /etc/rc.d/
% echo xend=YES >> /etc/rc.conf; echo xenbackendd=YES >> /etc/rc.conf
% cd /dev; ./MAKEDEV xen

Create network bridge so your debian VM can access the host network adapter and use internet:

% cat << EOF > /etc/ifconfig.bridge0
> create
> !brconfig $int add IF_NAME up
> EOF
%

Reboot. If everything is OK, your system now have NetBSD/xen dom0 and userland tools up and running. You’re ready to create domU machines.

Create Debian domU

Unless you’ve got a dedicated partition for your guest OS, you can create an image file for putting the new debian system into: dd if=/dev/zero of=debian.img bs=1m count=2048.

Download a debian xen kernel, ramdisk and config from <mirror>/debian/dists/wheezy/main/installer-amd64/current/images/netboot/xen/. Touch name, memory, kernel, ramdisk, disk and vif params in your debian.cfg:

kernel="vmlinuz"
ramdisk="initrd.gz"
memory = 256
name = "debian"
vif = ['bridge=bridge0']
disk = ['file:debian.img,xvda,w']

Install debian as domU:

% xm create -c debian.cfg install=true

P.S.
After installing, remove the first two lines from debian.cfg, they’re no longer needed. That’s in brief. There’re many other options to play with, beyond the scope of this document.

[1] http://www.netbsd.org/ports/xen/howto.html
[2] http://wiki.centos.org/HowTos/Xen/InstallingCentOSDomU
[3] http://wiki.xen.org/wiki/Main_Page
[4] http://netbsd0.blogspot.com/2012/05/centos-under-netbsdxen-in-15-minutes.html

NetBSD Marvell Yukon 88e8057 support

Мрежовият контролер Marvell Yukon 88e8057 (Marvell Yukon 88E8057 PCI-E Gigabit Ethernet Controller; Yukon Ultra 2 chipset)1 все още не се поддържа от NetBSD (март 2013), за разлика от FreeBSD/OpenBSD, Linux и Solaris. Драйверът работи с този чип2, просто не го разпознава, нужни са някои дребни добавки: да се опише моделът в src/sys/dev/pci/pcidevs, да се добави в if_msk.c, да се регистрира в if_skreg.h и т.н.
Вече е докладвано за проблема, дано го оправят в близката година.

  1. Юкон е серия мрежови компоненти на Марвел, базирани на добре познатите чипове на SysKonnect (които Marvell придобиха преди десетина години). В *BSD поддръжката на тези мрежови карти (вградени или самостоятелни) е реализирана чрез sk и msk драйверите, написани първо за FreeBSD (sk) и OpenBSD (msk).
    NetBSD поддържа доста мрежови чипове на SysKonnect още от версия 2.0, а чипове на Marvell от версия 4.0, чрез портнатите драйвери от FreeBSD/OpenBSD.
    Marvell Yukon II са модерни гигабитови мрежови контролери, които имат добра поддръжка във FreeBSD и OpenBSD чрез msk драйвера. В NetBSD обаче липсва поддръжка на някои карти от серията Yukon II, като например 88Е8057, което се дължи на нови product ID, непознати на драйвера. []
  2. http://www.pcidatabase.com/search.php?device_search_str=Marvell+Yukon+88E8057&device_search=Search []