X

An Oracle blog about The Oracle OpenGrok

Recent Posts

OpenGrok

{OpenGrok 0.12

We're proud to announce that OpenGrok 0.12 has just been released. It was a bumpy ride and had to say goodbye to opensolaris.org, but github and java.net kindly helped out. See the release notes below for details on how to get it and what's new in this release.OPENGROK 0.12 RELEASE NOTESOpenGrok is a fast and usable source code search and cross reference engine. It helps you search, cross-reference and navigate your source tree. It can understand various program file formats (C, C++, C#, Java, sh, Perl, Python, ...) and version control histories like (Mercurial, Git, SCCS, RCS, CVS, Subversion, Teamware, ClearCase, Perforce, Monotone and Bazaar). In other words it lets you grok (profoundly understand) the open source, hence the name OpenGrok. It is written in Java.For more details go to http://opengrok.github.io/OpenGrok/To download binaries, please go to:https://github.com/OpenGrok/OpenGrok/releases/tag/0.12 or to http://java.net/projects/opengrok/downloads and look for 0.12 binary, source or a package file.This is a major update. It is advised that you cleanup your old DATA_ROOT (ideally remove it, or move it aside) and run indexing from fresh. Also the web application should be replaced, since the new indexes are not compatible with the old web application. Note that this doesn't apply to upgrades from the LATEST 0.12 release candidate, since the format of the xrefs didn't change between the release candidate and the release. Though all other 0.12 release candidates have old index and you need to update, clean index and start from scratch.For install help refer to theinstall wiki page.The discussionspage lists forums and mailing lists where you can ask for help ordiscuss bugs or new features.Bugs should be logged in Issues.New featuresJDK7 + tomcat7 tested, JDK6 unsupported!lucene 4.7.1 -> A LOT faster engine, no spellindex needed, regexp search supported (see help)pl/sql, scala, uuencode languages/analyzers supportphp analyzers improvedmonotone, mercurial SCM support improvedAccuRev SCM added to supported SCMsSurround SCM added to supported SCMsnew config options in OpenGrok scriptnew search by analyzer/languagefull history tracking for files renamed in Mercurial repository (disabled by default)small UI enhancementsa lot of history cache fixes and tunablesclearHistory history cleanup commandbetter developer support, added automated travis builds for pull request + sonarBug fixesPlease see below link to issues or https://github.com/OpenGrok/OpenGrok/blob/master/CHANGES.txt for a quick list.For bug details refer toIssues closed for 0.12.This link doesn't include bugs from old Bugzilla, however list above has the number so you can easily look the issue up using this old number, since all bugzilla bugs were moved to issues.The road aheadPlease open feature requests!ContributorsWe'd like to thank all the people who report bugs, send us ideas for improvements or contribute code. We appreciate any help with the project. Reports and feedback from the users of OpenGrok is essential to make the developers able to continue improving the product. Inspect the history log with git log -v to get all details.We love your patches and your feedback folks(you know who you are!) and let's keep it up. We(you) listen!

We're proud to announce that OpenGrok 0.12 has just been released. It was a bumpy ride and had to say goodbye to opensolaris.org, but github and java.net kindly helped out. See the release notes below...

OpenGrok

OpenGrok 0.11

We're proud to announce that OpenGrok 0.11 has just been released. See the release notes below for details on how to get it and what's new in this release.OPENGROK 0.11 RELEASE NOTESOpenGrok is a fast and usable source code search and cross reference engine. It helps you search, cross-reference and navigate your source tree. It can understand various program file formats (C, C++, C#, Java, sh, Perl, Python, ...) and version control histories like (Mercurial, Git, SCCS, RCS, CVS, Subversion, Teamware, ClearCase, Perforce, Monotone and Bazaar). In other words it lets you grok (profoundly understand) the open source, hence the name OpenGrok. It is written in Java.For more details go to http://www.opensolaris.org/os/project/opengrok/ http://opengrok.github.io/OpenGrok/To download binaries, please go to:http://hub.opensolaris.org/bin/view/Project+opengrok/files#HBinarysourcereleases http://java.net/projects/opengrok/downloads and look for 0.11 binary, source or a package file.This is a major update. It is advised that you cleanup your old DATA_ROOT (ideally remove it, or move it aside) and run indexing from fresh. Also the web application should be replaced, since the new indexes are not compatible with the old web application. Note that this doesn't apply to upgrades from the 0.11 release candidate, since the format of the xrefs didn't change between the release candidate and the release.For install help refer to theinstall wiki page.The discussionspage lists forums and mailing lists where you can ask for help ordiscuss bugs or new features. Bugs should be loggedin Bugzilla in theDevelopment/OpenGrok category.New featuresPHP analyzerVisual Basic analyzerJavascript analyzerC# analyzercompletely refactored UI, upgraded jquery to 1.4.4SSL, SSO and mod_proxy compatibleBug fixesBug #17612: Simple PHP AnalyzerBug #17507: indexer hangs when svn requests certificate confirmationBug #17609: path assumptions & binary names used by installer script need modifications.Bug #17688: File handles leaked in JSPsBug #13677: xref cache is not updated if code changes in SRC_ROOTBug #17731: Character encoding improper in AnnotationBug #17817: xref treats include statements with angle brackets and quote marks differently when they contain path partBug #17816: Link to include file without file extension performs definition searchBug #17936: ArrayIndexOutOfBoundsException when using n=50 as URL query parameterBug #18163: C++ keywords is not recognized in xref outputBug #18198: ShXref gets confused by here-documentsBug #17885: /**/ comments broke java xrefBug #17584: Beginning of highlighted change in code is not started from absolute zero position in the rowBug #18103: RFE: repository CLI cmds - better error reportingBug #16895: Maven build doesn't update manifestBug #18144: indexer will enter infinite cycle if it encounters symlink to dot , Add an "all" target to compile everything and run test cases, pmd, findbugs etcBug #16894: Maven build lacks info.propertiesBug #18585: Exceptions are not logged if severity is higher than CONFIGBug #18586: ArrayIndexOutOfBoundsException when indexing SQL fileBug #18606: URL suffix for user information not included in history viewBug #18602: JarAnalyzer can run out of memoryBug #18641: Cannot access history for directoriesBug #18932: non escaped backslash in output javascript causes issues* Implement the verbatim string support for C# (Bug 18655) to suffixes in the xml analyzer class. (Bug 18687).Bug #18754: opensearch does not work with HTTPS fixing as per Jens ElknerBug #19116: SQLIntegrityConstraintViolationException when indexing Bazaar historyBug #1720: Add service outage banner at top of webapp pagesBug #19105: convert the link to parent directory to .. and move it to the file listingBug #19105: use the browser's default fontsupdate the DirectoryListing test after fix for Bug 19105 and use getParentFile() for better portabilityBug #19105: reuse the SimpleDateFormat instanceBug #19145: annotate view for Mercurial displays only first name of the author in some casesBug #19141: opensearch based searches are broken in mod_proxy environmentBug #19161: Solaris package should not deliver source.war to /var/tomcat6 in any formBug #19110: Tab expansion problems in 0.11-rctemp - disable of default tabs to mitigateFor bug details refer toBugzilla.The road aheadA tentative roadmap for OpenGrok can be found here:http://www.opensolaris.org/os/project/opengrok/Roadmap/ContributorsWe'd like to thank all the people who report bugs, send us ideas for improvements or contribute code. Below are just the people who sent patches or pushed code, but that doesn't mean that we don't appreciate your work. Reports and feedback from the users of OpenGrok is essential to make the developers able to continue improving the product. Note that this is just a summary of how many changes each person made, which doesn't necessarily reflect how significant each change was. Inspect the history log with hg log -v -r 0.10:0.11 to get all details.56 Knut Anders Hatlen <knut.hatlen@oracle.com>56 Trond Norbye <trond.norbye@gmail.com>24 Vladimir Kotal <Vladimir.Kotal@oracle.com>15 Jens Elkner <jel+opengrok@cs.uni-magdeburg.de>12 Lubos Kosco <Lubos.Kosco@Oracle.COM>1 Chris Eldredge <chris.eldredge@gmail.com>1 Felix Annan <felannan@yahoo.com>1 Haufe-Lexware - Christoph Hofmann <Christoph.Hofmann@haufe-lexware.com>1 Karthik Rajagopalan <Karthik.Rajagopalan@schrodinger.com>1 Miroslav Osladil <mira@osladil.cz>

We're proud to announce that OpenGrok 0.11 has just been released. See the release notes below for details on how to get it and what's new in this release. OPENGROK 0.11 RELEASE NOTES OpenGrok is a fast...

OpenGrok

Release candidate for {OpenGrok 0.10

OPENGROK 0.10 RC(release candidate) RELEASE NOTESOpenGrok is a fast and usable source code search and cross referenceengine. It helps you search, cross-reference and navigate your sourcetree. It can understand various program file formats (c, c++, c#, java, sh, pl, py ...) and version control histories like (Mercurial, Git, SCCS, RCS,CVS, Subversion, Teamware, ClearCase, Perforce, Monotone and Bazaar.)In other words it lets you grok (profoundly understand) the open source,hence the name OpenGrok. It is written in Java.For more details go to http://www.opensolaris.org/os/project/opengrok/To download RC binaries, please go to:http://hub.opensolaris.org/bin/view/Project+opengrok/files#HBinarysourcereleasesand look for 0.10-rc binary, source or a package file.This is a major update. It's advised you cleanup your old DATA_ROOT(ideally remove it, or move it aside) and runindexing from fresh. Also the web application should be replaced, since newindexes are not compatible with old application.This is also a general rule for most of opengrok updates. We don't reallysupport backwards compatibility, unless it would be a really minor update.For install help refer to install wiki page.Since this is a release candidate and not the final release(yet), please refer to issues page on where to file bugs and discussions page on where to report a problem or get help.Also note, that we try to preserve compatibility between RC and final release, so no reindex will be needed then. The plan is to have a final release within a month.New Featurespython analyzer, perl analyzerlisting of variables/methods(quick navigate)sh analyzer xrefs improvedsql analyzer sql 2008 compliantsmall UI usability improvementsupdated lucene to 3.0.2introduced maven as alternative build system to antBug FixesBug #11264: Add a python specific language analyzer.Bug #13184: provide quick links to annotate,history and download from search results viewBug #13184: provide quick links to annotate,history and download from search results view: diff link for history searchBug #13777: Indexer should print "Adding: ..." before it adds a fileBug #14545: clicking on annotate doesn't preserve line numberBug #14663: broken syntax highlight in ksh script when ` is used (and when " is escaped)Bug #15468: Log useful info from indexer regardless of -vBug #15661: OpenGrok should support new ksh command substitution x=${ cmd ; }Bug #15890: Missing anchor in xrefBug #15938: (partial) Analyzers should only use JFlex's public APIBug #15947: Detect GNU CSSC in addition to SCCSBug #15948: Fail if svnadmin is missing: tests depend on itBug #15954: teamware repository not detected anymoreBug #15956: indexer fails on indexingBug #15961: Allow certain symlinks to be followed to help with using clearcase dynamic viewsbug #15961: and to files in other directories in the same project.Bug #16006: Indexer's -P option removes customization of existing projectsBug #16070: our ctags parser fails to parse a c signatureBug #16076: problem of ELFAnalyzer in opengrok 0.9Bug #16334: Indexer hangs when files contain 0x1A charactersBug #16370: build.xml: Check for JFlex.jar and taskdef for jflex-task use different classpathBug #16451: Tray app doesn't work with other protocols than jmxmpBug #16454: Trayapp shuts down when a window is closedBug #16465: SVN history of filenames containing @ cannot be retrievedBug #16481: NumberFormatException when opening Connection Settings the second timeBug #16611: svn repository with svn:// protocol as urn results in NPE when reading historyBug #16660: Perforce repositories return months 1-12, not 0-11Bug #16677: revamp option -vBug #16692: Index files left open after multiple project searchBug #16760: Generating incorrect links for C/C++ "#include" statements if extension of a header file is not on the lexer's listBug #16761: Perforce history reader would not use per-project clients (defined by P4CONFIG files)Bug #16764: Perforce source annotation: the date is one month ahead, time information is not availableBug #16772: status.jsp should be less chatty in production environmentsBug #16783: more.jsp garbles matches on lines crossing internal JFlex buffer boundaryBug #16786: Control for User Information Provider URL (userPage)Bug #16833: Subversion repositories disabled by defaultBug #16848: Search context is displayed in lower caseBug #16883: ShXref should reset stack on reuseBug #16891: Unneeded files included in opengrok.jarBug #16892: Maven build includes management client source in jarBug #16893: Maven build includes SQLXref.lexBug #16909: Move JFlex generated sources to default location (Maven)Bug #16913: OpenGrok fails to use JDBC cache if -R option is specifiedBug #16961: Definitions should have serialVersionUIDBug #16986: Relative path for data root and source root has stopped workingBug #17074: Home link no longer worksBug #17127: OpenGrok leaving too many open filesBug #17128: add more syntax highlighting styles and list all definitions/functionsBug #17169: enable wildcard prefix search in OpenGrok script by defaultBug #17294: show progress on demandBug #17349: path needs to be percent encodedBug #17373: breadcrumb path needs to be URI encodedBug #17374: history links need percent encodingBug #17375: annotate link needs percent encodingBug #17376: download link needs percent encodingBug #17378: Please remove email obfuscationBug #5590: Unhighlighted difference in compare listfor bug details refer to bugzillaThe road aheadA tentative roadmap for OpenGrok can be found here:http://www.opensolaris.org/os/project/opengrok/Roadmap/ContributorsWe'd like to thank all the people that report bugs, send us ideas andimprovements. Below are just people that sent patches or pushed code, thatdoesn't mean that we don't appreciate your work. On the contrary, you arethe people showing other people(who have the time to write code) what wouldbe good to fix when you use this software and file bugs against it!Note that this is just a summary of how many changes each person made whichdoesn't necessarily reflect how significant each change was. (inspect thehistory log with "hg log -v -r 0.9:tip" to get all details) 58 Knut Anders Hatlen <knut.hatlen@oracle.com>, <Knut.Hatlen@Sun.COM>35 Lubos Kosco <Lubos.Kosco@Sun.COM>, <Lubos.Kosco@Oracle.COM>10 Jorgen Austvik <jaustvik@acm.org>7 Trond Norbye <trond.norbye@gmail.com>5 Patrick Higgins <patrick.allen.higgins@gmail.com>3 Yuriy Vasylchenko <yuriy.av@gmail.com>2 Leo Davis <ldavis@fonix.com>1 cicicici <cicicici@gmail.com>1 Martin Walsh <martin.walsh@oracle.com>1 seadog <seadog1234567890@gmail.com>

OPENGROK 0.10 RC(release candidate) RELEASE NOTES OpenGrok is a fast and usable source code search and cross reference engine. It helps you search, cross-reference and navigate your sourcetree. It can...

OpenGrok

Want to understand source code? {OpenGrok 0.9 RC1 out now !

OPENGROK 0.9 RC1(release candidate 1) RELEASE NOTESOpenGrok is a fast and usable source code search and cross referenceengine. It helps you search, cross-reference and navigate your sourcetree. It can understand various program file formats (c, c++, c#, java, sh, ...) and version control histories like (Mercurial, Git, SCCS, RCS,CVS, Subversion, Teamware, ClearCase, Perforce, Monotone and Bazaar.)In other words it lets you grok (profoundly understand) the open source,hence the name OpenGrok. It is written in Java.For more details go to http://www.opensolaris.org/os/project/opengrok/To download RC1 binaries, please go to:http://hub.opensolaris.org/bin/view/Project+opengrok/files#HBinarysourcereleasesand look for 0.9-rc1 binary, source or a package file.This is a major update. It's advised you cleanup your old DATA_ROOT(ideally remove it, or move it aside) and runindexing from fresh. Also the web application should be replaced, since newindexes are not compatible with old application.This is also a general rule for most of opengrok updates. We don't reallysupport backwards compatibility, unless it would be a really minor update.For install help refer to install wiki page.Since this is a release candidate and not the final release(yet), please refer to issues page on where to file bugs and discussions page on where to report a problem or get help.New Featuresfaster lucene engine(3.0.1) underneath - faster analyzersnew jquery(1.4.2) underneath - UI improvementssupport for xrefs with Unicode characters(not indexed yet, but finally viewable!)new smf service and packaging - just pass the source root, the rest is taken care by the service(Solaris)Bug FixesBug #13280: RFE: Configurable tab size for xrefBug #13362: plainanalyzer xref writer can never end for a file with long linesBug #13529: listing of a file (in xref) might take a LONG timeBug #13330: Wrong URL when search for camel-case identifier has only one matchBug #13364: regression : Jar analyzer doesn't analyze the jars it used to for 0.7Bug #13884: IndexOutOfBoundsException in List2TokenStream.next()Bug #13952: size output not correctBug #13951: Wrong revision in info.properties when not building from head of trunkBug #13949: Missing line numbers in xref for XML fileBug #13961: no quick search box shown on windows (path separator problem in project names/IDs)Bug #14030: Many lines with same line number (regression)Bug #5848: trimmed diff link results in NULL pointer dereferenceBug #3900: Unexpected result when clicking a symbol definitionBug #3435: C functions are not considered as functionsBug #14978: upgrade lucene to 3.0.1Bug #13185: broken focusBug #14757: pressing Enter on project select list box takes you to xref instead of submit of the search formBug #15004: Improved handling of UTF Byte Order MarksBug #15097: make the search bar in listing stay on top of the pageBug #13997: main logo should take you HOME ;)Bug #15114: AnalyzerGuru:stripBOM should not use String to avoid encoding issuesBug #14953: history index for CVS repos should only include default branch if CVS/Tag is setBug #15240: radio buttons in history could behave like e.g. on wikipediaBug #437: OpenGrok should support source files with multibyte charactersBug #15394: improve IPS package and SMF for OpenSolarisBug #15391: Executor should log the commands executedBug #14724: Incremental update of Bazaar history broken by instability in revision numbersBug #13524: Color coding in diffs is confusing for bug details refer to bugzillaThe road aheadA tentative roadmap for OpenGrok can be found here:http://www.opensolaris.org/os/project/opengrok/Roadmap/ContributorsWe'd like to thank all the people that report bugs, send us ideas andimprovements. Below are just people that sent patches or pushed code, thatdoesn't mean that we don't appreciate your work. On the contrary, you arethe people showing other people(who have the time to write code) what wouldbe good to fix when you use this software and file bugs against it!Note that this is just a summary of how many changes each person made whichdoesn't necessarily reflect how significant each change was. (inspect thehistory log with "hg log -v -r 0.8.1:tip" to get all details) 33 Knut Anders Hatlen <Knut.Hatlen@sun.com> 22 Lubos Kosco <Lubos.Kosco@sun.com> 1 Chris Eldredge <chris.eldredge@gmail.com> 1 Vitezslav Batrla <Vitezslav.Batrla@Sun.COM>

OPENGROK 0.9 RC1(release candidate 1) RELEASE NOTES OpenGrok is a fast and usable source code search and cross reference engine. It helps you search, cross-reference and navigate your sourcetree. It...

OpenGrok

Announcing OpenGrok 0.8 RC1 !

Hello allwe're proudly announcing the release candidate 1 for opengrok 0.8, get it here:http://hub.opensolaris.org/bin/download/Project+opengrok/files/opengrok%2D0.8%2Drc1.tar.gzor in SVR4 formhttp://hub.opensolaris.org/bin/download/Project+opengrok/files/OSOLopengrok%2D0.8%2Drc1.pkgRough draft of new features:- javadb history cache (gives dir history, file listing per changesets, etc.)- multiple project search- upgraded lucene to 2.4.1- improved OpenGrok script (2 commands should be enough to get your sources indexed and running in tomcat/glassfish : ./OpenGrok deploy ; ./OpenGrok index )- auto generated opensearch (after a search you get a generated header with appropriate projects selected, so you can easily add it to your search providers)- several UI improvements (line # toggle, line # is a link now, hover over revision in annotate shows message, show/hide files touched by changeset, doubleclicking/Enter on project takes you to its xref)...Note , that you SHOULD reindex from scratch, for javadb historycache setup read http://src.opensolaris.org/source/xref/opengrok/trunk/README.txt#129More bugs fixed here(just the ones tagged with closed in 0.8, there were definitely more):http://defect.opensolaris.org/bz/buglist.cgi?query_format=advanced&bug_status=RESOLVED&bug_status=VERIFIED&bug_status=CLOSED&product=opengrok&target_milestone=0.8Please report your bugs to opengrok-discuss@opensolaris.org, or preferably using http://defect.opensolaris.orgThanks in advance for your help / patches / feedbackTrond, Knuth, Lubos, Jorgen, Jan, ... ( https://www.ohloh.net/p/opengrok/contributors )P.S. more info about commits and some statistics data about project: https://www.ohloh.net/p/opengrok/commits

Hello all we're proudly announcing the release candidate 1 for opengrok 0.8, get it here: http://hub.opensolaris.org/bin/download/Project+opengrok/files/opengrok%2D0.8%2Drc1.tar.gz or in SVR4 formhttp...

General

1. OpenSolaris presentation at Technical University of Kosice

Couple of weeks ago we (CZOSUG) were invited to do a presentation of OpenSolaris at Technical University in Kosice, Slovakia(tiny, but beautiful country in the heart of Europe) by a local university computer network laboratory.singing fountain before the theatre in KošiceI traveled there with my colleague Vita and we presented OpenSolaris, Virtualbox, showcasing some Solaris technologies and deep diving into ZFS, Zones and Dtrace.I have a picture from the event, so see for yourself :me showing the intro to OpenSolarisDuring the presentation I promised to answer questions, which I took offline, on my blog, so here you go guys (ENG is in round brackets) :Q: Funguje "copy & paste" medzi virtuálnymi strojmi(VM) vo VirtualBoxe? (Does copy & paste work between two virtual machines(VM) in VirtualBox?)A: áno, proste funguje, AK su správne nainštalované a funkčné "Hosťovské doplnky", je nutné podotknúť, že pre väčšinu systémov copy and paste medzi VM a hostiteľom funguje len v grafickom rozhrani (X, alebo Windows) (Yes, it just works, IF the "Guest Additions" are correctly installed and working, we have to mention, that for majority of OSes copy and paste between VMs and host works only in graphics (X, or Windows).)Q: Dá sa pripojiť virtuálny disk .vdi k systému na čítanie aj bez naštartovania vo VirtualBoxe? (Can one mount a virtual disk .vdi to a system for reading without having it shared in running VirtualBox?)A: áno, no nie je to triviálne a zatiaľ oficiálne podporované, odporúčam blog kolegu Renauda a určite si pozrite forum virtualboxu pre pripájanie vdi obrazov (myslím si, že táto aplikácia bude adoptovaná virtualboxom, prípadne väčšinou distribúcii a umožní transparentné pripájanie obrazov diskov vo formáte .vdi) (Yes, but it is not trivial and not officially supported, I recommend a blog from colleague Renaud and be sure to check virtualbox forum project for mounting vdi images (I think that this application will be adopted by VirtualBox and maybe by majority of distributions and will allow transparent mounting of disk images in .vdi format))Q: Ak odinštalujem balíček v IPS pomocou pkg, budu odinštalované aj závislosti, ktoré si balíček doinštaloval a už nie sú viac potrebné? (If you uninstall a package using IPS pkg command, will also its dependencies, that it installed, be uninstalled , when they are no longer used by any other packages?)A: zatiaľ nie. Pokiaľ viem, je to funkcionalita, ktorú má v dnešnej dobe iba Debian a jeho deriváty v podobe deborphan, ktorý bol prednedávnom pripojený do apt (obdoba pkg, no pre správu .deb balíčkov). Začal som ale mailové vlákno na danú tému, tak uvidíme aká bude odozva vývojárov IPS (skontrolujte dané mailové vlákno pre viac informácii). (Not yet. As far as I know, it's functionality, which is today only Debian and its derivatives in the form deborphan, which was recently annexed into apt (it's something like the pkg, but for managing .deb packages). I started a mail thread on the subject, so we'll see what will be the response of IPS developers (please check the mail thread for more info).)Q: Dajú sa do virtuálneho stroja vkladať lokálne disky? (Can you use local hard drive in virtualbox?)A: nie priamo virtualboxom, no jedna z možností čo tento problém rieši nepriamo je iSCSI - viac v príkaze VBoxManage, príp. návod z blogov Sun-u(hostiteľ je Solaris a jeho iscsi server) alebo v príručke virtualboxu (Not directly by VirtualBox, but one of the options that addresses this issue indirectly is iSCSI - more in help of VBoxManage command, eventually check instructions from sun blog(host is Solaris and its iscsi server) or in the manual of virtualboxQ: Ako je to správou veľkého počtu virtuálnych strojov vo Virtualboxe? (How to manage a large number of virtual machines in VirtualBox?)A: momentálne si človek musi vyrobiť vlastné riešenie, založené buď na príkazovej riadke (pomocou VBoxManage v pdf príručke, sekcia VBoxManage reference) alebo na web services - vboxwebsrv (viac vo VirtualBox SDK). Je istý predpoklad, že Sun doplní podporu pre virtualbox aj do xVM Ops Center-a, čo je hlavný nástroj na správu serverov momentálne vyvíjaný v Sune. (Currently, one must create his own solution, based either on the command line (using VBoxManage pdf manual section VBoxManage reference) or on web services - vboxwebsrv (more in the VirtualBox SDK). It could be that Sun will add support for VirtualBox in the xVM Ops Center, which is the main management tool for servers currently being developed by Sun.)I left the tricky question till the end:Q: Aká je výkonová strata virtualizácie pri porovnaní Xen-u a Virtualbox-u? (What is the virtualization performance loss when comparing Xen and VirtualBox?)A: táto otázka je strašne zaujímavá, no bola vzťahovaná na porovnanie VirtualBox-u a Xen-u. A to je sčasti ako porovnávať hrušky a jablká. VirtualBox plne emuluje virtuálny počítač, no Xen musí mať príslušné jadro OS "portované na platformu" Xen(i86pv). Takáto paravirtualizácia v Xen-e je blízka výkonu jadra priamo na HW (uvádza sa, že záťaž spôsobená virtualizáciou je menej ako 10%), no cena je práve uvedená modifikácia OS. Sun xVM Server založený na technológii Xen(od v.3.0 vyššie) ponúka ešte možnosť tkzv. HVM módu - čiže plnej virtualizácie a tá by sa už možno dala porovnávať s virtualboxom. Tu sa ale dostávame k ďalšiemu problému a tým je testovacie kritérium. Potom na konci vysvitne, že pri istých podmienkach je vhodnejší VirtualBox a pri iných zase Xen, zaujímavý článok ohľadne tohto som našiel na fedoraproject.org - je to ale iba porovnanie na Linuxe, takže zase nie stopercentne objektívny článok a v podstate aj dosť starý. Ďalšia debata by mohla nasledovať, ak by sme porovnávali virtuálne stroje bez a s hosťovskými doplnkami. Takže z mojej strany by som asi navrhol, nech si každý skúsi a rozhodne sám. Objektívnu odpoveď si netrúfam vysloviť. (This question is very interesting, it was asked regarding VirtualBox and Xen. This is unfortunately the same as comparing apples and pears. VirtualBox fully emulates a virtual computer, but Xen must have the OS kernel "ported into the platform" Xen (i86pv). Such paravirtualization in Xen is close to running on bare metal hardware (it says that the overhead caused by virtualization is less than 10%), but the price for it is the porting effort. Sun xVM Server based on the Xen technology (v.3.0 from above) has a so called HVM mode - full virtualization, and could be compared with VirtualBox. Here, however, get to the next problem and this is benchmarking. Then in the end one figures out, that in certain situations VirtualBox is better and in other Xen, an interesting article on this is on fedoraproject.org - it's but only a comparison on Linux, so it's not that objective and in fact, quite old. Further discussion could follow, if we compare the virtual and host machines without guest additions. So from my side, I would suggest you go & try each and decide for yourself. I don't dare to answer this objectively.)So I'd like to thank YOU for reading this blog and guys in Slovakia for coming to our presentation. Two days ago I found out that students from that university started Slovak OpenSolaris User Group - SKOSUG after our presentation, so I'd really like the outcome of the whole trip and who knows, maybe I get a chance to come back and present more ;)Oh ... and find the slides on the CZOSUG archive site and I hope the video will be uploaded to the videoserver of the university lab soon.

Couple of weeks ago we (CZOSUG) were invited to do a presentation of OpenSolaris at Technical University in Kosice, Slovakia(tiny, but beautiful country in the heart of Europe) by a local university co...

General

How to install OpenSolaris on crappy USB disk, or joy of open source hacking ;)

So after some time passed since my tests of OpenSolaris on USB key/disk install I decided to try again.This time however I only had a crappy Akasa Integral USB enclosure with some old 40GB disk (this device popped up as "Initio MK8025GAS USB Device" ) to be used as installation target.You might ask why I call it crappy ... simply ... if you plug this disk into systems that don't care that much about standards it will work. However in Solaris it wasn't detected by rmformat, just dmesg confirmed its presence, but that was it.With Milos Muziks help and Chris Gerhards neat scsi.d we figured out that the problematic one is not the usb driver(note that builds before 103 were unusable with it :( ), but scsa2usb driver which one might know as mass storage driver (or: SCSI to USB bridge driver , if I refer to man scsa2usb) which was showing that the device doesn't respond correctly.With above troubleshooting done it was fairly easy to nudge Solaris to talk to such disk, just add this line at the end of/kernel/drv/scsa2usb.conf :attribute-override-list = "vid=0x13fd pid=0x550 rev=0x312 reduced-cmd-support=true";which will basically enable restricted SCSI commands for the device and then the usb disk will pop up in rmformat, or in format -eNote that I got the vid, pid and rev from appropriate section of prtconf -Vp output.Now the question was, how to get this "workaround" into some installer and install OpenSolaris on such disk.First thing was to get a medium, that can be somehow modified, e.g. an USB installation image such as the one from genunix.org. Then I used an usb install stick creator from Hiroshi Chonan to get a bootable stick done ... but wait ... the stick didn't see my "crappy" usb disk!Sooo ... I started my virtualbox instance of OpenSolaris, I plugged in the USB, told virtualbox to mount it to the virtual machine.Once I mounted the USB disk, I found and backed up boot/amd64/x86.microroot from the media. Then I needed to edit the scsa2usb.conf inside this microroot.First rename to .gz , then to gunzip , then lofiadm -a of the unzipped file, then a mount , then edit the file, add the proper line, then umount, then lofiadm -d , then gzip it and then move it back to USB flash as boot/amd64/x86.microroot. Then unmount the usb and you're ready to boot on "real iron". Note that I edited amd64 bit one, since amd64 bit kernel started for my installation (I am on Intel 64bit , but not Itanium), one would need to edit the boot/x86.microroot for 32 bit.After this change on USB installer (see, if I was using CD installer this step would be a bit more harder ;) ), you can easily install from USB key onto the crappy USB disk, which is now magically available and installer does it job (hooraayyy!).After installation is done, you just reboot and enjoy - but keep the disk in the same USB port (otherwise you'll hit the bug with zfs boot and physical path which I think in current state just panics the kernel :( )!

So after some time passed since my tests of OpenSolaris on USB key/disk install I decided to try again.This time however I only had a crappy Akasa Integral USB enclosure with some old 40GB disk (this...

General

ssh login lag with VMs in VMware Server 2 (DNS problem?)

I usually run my lab and dev OpenSolaris, Solaris, Debian, RHEL ... machines inside vmware(a server solution, mainly because I run it on my work server on stable debian for production reasons). For a long time I was a happy user of VMware Server 1.x , then I decided to move to version 2.0Guess what ... every change brings consequences ...After migration of VMs, upgrading to latest VM HW version I booted my debian and opensolaris dev boxes & wanted to login.All my machines networking is setup by NAT & DHCP from VMware.Hmm ... at that time I felt victim of very interesting problem. The login took ages (cca 5mins in comparison to 2s in previous version).SSH does a reverse resolving of hostname when you try to connect to the target & this did a call to naming services.This took so long I even got a fatal error complaining about ssh monitor not responding in OpenSolaris.The same behaviour happened in Debian, so this pointed out a problem with VMware.After doing some "snoop" and "truss -Df sshd -ddd -p 222" I figured out that the DNS packets are taking a long time and all those packets ask for a "localdomain" host.localdomain ? WTF ?Then the root causing and fixing was rather fast & the solution was in the file /etc/vmware/vmnet8/dhcpd/dhcpd.conf .This file provided two options regarding naming: option domain-name-servers 192.168.1.2; option domain-name "localdomain";Simply commenting out second option (so option domain-name) got me rid of the ridiculous resolving problem.Funny thing is that I always thought "localdomain" is ignored by dns client, but as usual assumptions are evil ;)I don't think something like that would happened to me if I used virtualbox, but who knows, thanks god we have snoop and truss :-D

I usually run my lab and dev OpenSolaris, Solaris, Debian, RHEL ... machines inside vmware(a server solution, mainly because I run it on my work server on stable debian for production reasons). For...

General

Logwatch service for tomcat traffic logs in 15 minutes

For those of you, who don't know logwatch, it's a perl script, which prepares log reports from your system and sends them to you.On Linux (read: Debian ;) ) systems this small tool is enabled by default & I enjoy it, because it can help monitor your machines and give you an overview what's going on there.Sooo the other day I was thinking about putting up logwatch for tomcat on one of our Sparc boxes with Solaris 9 (yeah, I know, S10 rulez, but we need S9 for legacy stuff).But since I am not only a man of thinking, I went & downloaded logwatch source, put it on my box, installed and was wondering if logwatch supports tomcat out of box ... bummer! It's not!Hmm ... now I was thinking ... tomcat logs which I wanted to be analyzed are not the usual catalina.out, but I turned on access logging, which formats out strings very similar to apache(http).So why not go & use logwatchs "http" service ???YEAH, small change to <logwatch_basedir>/default.conf/logfiles/http.conf to add:LogFile = localhost_access_log\*LogFile = logs/localhost_access_log\* and it all worked like charm ;)But since I needed one more feature - counting of unique IPs which accessed my server, I had to develop it and that's how MY tomcat service saw the light of world ... it supports apache log files as well, so to avoid double reports when installing this service, use service="-http" .Now I am a happy user of weekly report from my tomcat logwatch service (download in Resources section, NO Support) ;)Remeber:logwatch --help is your friend--logdir is a good parameter as well :)Resources(download):tomcat_logwatch.tgz(you will probably need to unpack it to /usr/share/logwatch/ )

For those of you, who don't know logwatch, it's a perl script, which prepares log reports from your system and sends them to you.On Linux (read: Debian ;) ) systems this small tool is enabled...

General

N1 - System Management going open ... the saga continues :]

Phew ... my second blog in one day :)Well ... finally some info and news about N1, which after some struggles and internal reorgs comes out with a new general name - System Management software (not official yet, no hate/black mails pls ;) ).Albeit it's not opendatacenter.org you can still get some info and publish/submit your knowledge, tips and tricks on BigAdmin Information hub http://www.sun.com/bigadmin/hubs/sysmgmt/That page contains already lots of know-how and plenty of links to discover. So to learn new ways of automating your common administration tasks, spend some time checking those pages out.N1SM can help out with OS install automation, patch distribution, firmware upgrades and monitoring.N1SPS can wrap up your service provisioning processes, giving you easy control on what goes where, how it will be set up and easy manage. I saw actually an implementation of N1SPS for easy to use and manage deployment of web application, which saved that customer lots of troubles and money doing it the old way. Hmm, not mentioning that you can see the whole history of actions in N1SPS, so it's very easy to audit.Slowly but surely projects with code are being unveiled. Let's see if repositories will be filled and people start to submit / check out the code. First swallows(as planned) are SPS plugins on http://n1-sps-plugins.sunsource.net/ . What might follow is the core of N1SPS and then maybe N1SM and SunMC.Well, can't wait to see people hacking plugins into SPS :-D .

Phew ... my second blog in one day :) Well ... finally some info and news about N1, which after some struggles and internal reorgs comes out with a new general name - System Management software (not...

General

CEC 2006 (postmortem debug analysis :) )

Soo in the first week of October I had the honor to attend CEC 2006 conference as one of the GENO (Global Engineering Organization) guys. Hmm, Dan Berg has mentioned GENO in his blog as well, and he has there a "backdoor" picture with me & ferrari laptop on my lap sitting just in front of big Greg P :) .Anyways, there have been a lot of musings and news about CEC, especially from our hosts Jim Baty, Hal Stern and Dan Berg, so I am not going to duplicate them.Overall one could have seen a lot of great technology and innovation we are making here at Sun, but since I am a N1(Systems management) guy, I've mostly had a look on those pressos & demos. However I really enjoyed one session - Bryan Cantrills presso on new network provider in dtrace, be sure to check it out here.All in all San Francisco was very nice & it was my first time to Pacific coast so I had those "big eyes". Driving around the coast and through SF was a nice experience as well, hehe, I got pretty addicted to "cruise mode" in those US cars ... wondering if I will remember how to drive with manual transmision :) . During the weekend I drove with my coleague Milos to Santa Cruz, Monterey, saw San Francisco Red Bull fly day and visited Muir Woods.And yes, I had no flowers in my hair (next time, I'll wear them ;) ) ...

Soo in the first week of October I had the honor to attend CEC 2006 conference as one of the GENO (Global Engineering Organization) guys. Hmm, Dan Berg has mentionedGENO in his blog as well, and he...

General

Plugins(modules)? H8 them or luv them?

Some thoughts and unanswered questions about pluggable(modular) architecture of todays software.Ah, nice to be blogging again :]Today however, I got a complain reason ... plugins or modules (how do U like to call 'em?) ... Been updating Firefox lately and naturally to get it to the Opera like level I had to update dozen of plugins. One of them broke my browser in that kinda way, that the session manager plugin works odd now and I keep getting a stupid preferences alert window whenever I open a new firefox window (not tab).Yeah, I am an engineer, so I am going to find what the prob is and fix it, but it's just a waste of my(our) time caused by lack of testing before release.Why do I even care to write about it? Because living on the edge just brings such stuff, but still I think, most of the probs could be omited.A similar thing happened to me with our Netbeans, when I installed a bunch of plugins(modules) and one of them broke my Tools/Options dialogue (it crashed down).I mean, it's really nice to be able to put your own functionality to the product, but couldn't be the integration improved a little bit?If I should compare Opera against Firefox or JBuilder against Netbeans(Eclipse) I'd say, that thing is the only difference(functionality is almost the same, user experience lacks the integration feeling). One can say it's the same reg. Windows and Solaris (Linux). Hmm, maybe the "distros" idea isn't that bad. I really like NB5.5 enterprise preview or other our product built upon Netbeans. But than again it's a problem with confusion - all the names for the same thing ... hmm, guess that's the tax for high expectations from things (yeah, converging to a very political topic).Wondering what can be done. Better testing before including to a public download/update site? Hire some integration and testing teams? Or just leave it on people - enthusiasts who create their own "distros" (leave the community to solve it)?I'll definitely update this article after the talk with Roumen on this reg. to Netbeans ;)Till then just have a good one ...Update:Well, living on the edge ... test by yourself, or just wait and get a stable software ... sigh Btw. I had to reinstall Firefox and redownload all modules, before that I cleared all registers and leftovers. Sometimes to start over from scratch just clears the way for better things ;)

Some thoughts and unanswered questions about pluggable(modular) architecture of todays software. Ah, nice to be blogging again :] Today however, I got a complain reason ... plugins or modules (how do U...

Music

Music that keeps me going

Some people drink, the other take drugs, some just do sports, then there are people who pray or worship (whatever they care about) ... everyone just does something that helps him to relax (yes, whatever you call it ;) )My stuff is definitely music.Not that I like only one kind of music ... I can listen almost to everything.But some genres just make me feel good.I have a very fine collection of classical music. The most inspiring is Beethoven, there's no dispute about it ;)I could name a few others that I like, e.g. Debussy and his Claire de lune, Gorecki and wonderful Symphony No 3, Saite Gymnopedie, Massenet Meditation, and you probably know Offenbach and his Barcarolle (at least from this: http://www.imdb.com/title/tt0118799/).The funny thing is, that I like to play it too, but not often I have so much time to learn the whole piece, so you might see me play at least part of the score (if it wasn't replaced in the mean time by some bug fixing ideas) :)Another stuff is good chillout. If you want make a good gift, give me chillout (music) :-DMy favourite ones are from CDM (www.cafedelmarmusic.com , gosh they rebuilt the site, those backgrounds are awesome!) and I will visit Ibiza and this club for sure (visit CDM, see the sunset and then I can die :) ),but lately I started to enjoy somehow asian influenced Budha Bar.Ha ... I also have an album, which is very unknown to me(but is a pleasure to hear). It was a gift from my sis, unfortunately only in form of digital music without any info :( So ... if anyone knows something about "chill out - schhh" album, let me know!And naturally combination of those two is an overkill ;) So maybe next I'll write something about my chillout classic albums collection :-D

Some people drink, the other take drugs, some just do sports, then there are people who pray or worship (whatever they care about) ... everyone just does something that helps him to relax (yes,...