StoreVirtual Storage
cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to run CMC in linux via ssh X forwarding?

aseques
Occasional Contributor

Is it possible to run CMC in linux via ssh X forwarding?

At our company we have deployed VSA using an isolated network (via vlan), I would like to minimize the attack surface so I am trying to use a linux server as the only link between the two servers (appart of a machine with CMC that I can use via vmware console)

So far I haven't been able to launch the program but I'll tell what I did in case someone has an idea.

The linux install I'm using is ubuntu 16.04 64bit

I need some i386 dependencies because the software from hpe is only 32bit

apt-get install libc6-i386 lib32z1 lib32stdc++6 libxtst6:i386 libxrender1:i386 libxi6:i386 libfreetype6:i386 libjpeg62:i386

Installing it with sudo

sudo ./HPE_StoreVirtual_Centralized_Management_Console_for_Linux_BM480-10604.bin 

I need to use ssh with x forwarding enabled

ssh -X username@linuxserver

Finally, booting the CMC with the bundled java

cd /opt/HPE/StoreVirtual/UI/
./jre/bin/java -jar UI.jar

So far this is the part that's working, unfortunately when I run the last command I get the folliwing:

$ ./jre/bin/java -jar UI.jar
debug1: client_input_channel_open: ctype x11 rchan 3 win 65536 max 16384
debug1: client_request_x11: request from ::1 43766
debug1: channel 1: new [x11]
debug1: confirm x11
java.lang.NullPointerException
at sun.awt.X11FontManager.getDefaultPlatformFont(X11FontManager.java:779)
at sun.font.SunFontManager$2.run(SunFontManager.java:428)
at java.security.AccessController.doPrivileged(Native Method)
at sun.font.SunFontManager.<init>(SunFontManager.java:371)
at sun.awt.X11FontManager.<init>(X11FontManager.java:32)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at java.lang.Class.newInstance0(Class.java:372)
at java.lang.Class.newInstance(Class.java:325)
at sun.font.FontManagerFactory$1.run(FontManagerFactory.java:80)
at java.security.AccessController.doPrivileged(Native Method)
at sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:71)
at java.awt.Font.getFont2D(Font.java:489)
at java.awt.Font.access$000(Font.java:223)
at java.awt.Font$FontAccessImpl.getFont2D(Font.java:227)
at sun.font.FontUtilities.getFont2D(FontUtilities.java:176)
at sun.font.StandardGlyphVector.initFontData(StandardGlyphVector.java:1126)
at sun.font.StandardGlyphVector.init(StandardGlyphVector.java:1115)
at sun.font.StandardGlyphVector.<init>(StandardGlyphVector.java:163)
at java.awt.Font.createGlyphVector(Font.java:2492)
at com.kitfox.svg.Text.buildSysFont(Text.java:362)
at com.kitfox.svg.Text.buildFont(Text.java:242)
at com.kitfox.svg.Text.build(Text.java:207)
at com.kitfox.svg.SVGElement.loaderEndElement(SVGElement.java:393)
at com.kitfox.svg.SVGLoader.endElement(SVGLoader.java:228)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:606)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1741)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2898)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:607)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:116)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:488)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:835)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1210)
at com.kitfox.svg.SVGUniverse.loadSVG(SVGUniverse.java:573)
at com.kitfox.svg.SVGUniverse.loadSVG(SVGUniverse.java:437)
at com.kitfox.svg.SVGUniverse.getDiagram(SVGUniverse.java:375)
at com.kitfox.svg.SVGUniverse.getDiagram(SVGUniverse.java:345)
at com.kitfox.svg.app.beans.SVGIcon.setSvgURI(SVGIcon.java:226)
at com.lefthandnetworks.scc.nsmConfigGUI.IconNames.getSvgByFileName(Unknown Source)
at com.lefthandnetworks.scc.nsmConfigGUI.IconNames.getImageByFileName(Unknown Source)
at com.lefthandnetworks.scc.nsmConfigGUI.IconNames.<init>(Unknown Source)
at com.lefthandnetworks.scc.nsmConfigGUI.IconNames.getIconNames(Unknown Source)
at com.lefthandnetworks.scc.nsmConfigGUI.SCC$3.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:705)
at java.awt.EventQueue.access$000(EventQueue.java:101)
at java.awt.EventQueue$3.run(EventQueue.java:666)
at java.awt.EventQueue$3.run(EventQueue.java:664)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:675)
at com.lefthandnetworks.Hardware_API_GUI.MyEventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
org.xml.sax.SAXException
java.lang.NullPointerException
at com.kitfox.svg.SVGLoader.endElement(SVGLoader.java:241)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:606)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1741)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2898)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:607)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:116)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:488)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:835)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1210)
at com.kitfox.svg.SVGUniverse.loadSVG(SVGUniverse.java:573)
at com.kitfox.svg.SVGUniverse.loadSVG(SVGUniverse.java:437)
at com.kitfox.svg.SVGUniverse.getDiagram(SVGUniverse.java:375)
at com.kitfox.svg.SVGUniverse.getDiagram(SVGUniverse.java:345)
at com.kitfox.svg.app.beans.SVGIcon.setSvgURI(SVGIcon.java:226)
at com.lefthandnetworks.scc.nsmConfigGUI.IconNames.getSvgByFileName(Unknown Source)
at com.lefthandnetworks.scc.nsmConfigGUI.IconNames.getImageByFileName(Unknown Source)
at com.lefthandnetworks.scc.nsmConfigGUI.IconNames.<init>(Unknown Source)
at com.lefthandnetworks.scc.nsmConfigGUI.IconNames.getIconNames(Unknown Source)
at com.lefthandnetworks.scc.nsmConfigGUI.SCC$3.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:705)
at java.awt.EventQueue.access$000(EventQueue.java:101)
at java.awt.EventQueue$3.run(EventQueue.java:666)
at java.awt.EventQueue$3.run(EventQueue.java:664)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:675)
at com.lefthandnetworks.Hardware_API_GUI.MyEventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Caused by: java.lang.NullPointerException
at sun.awt.X11FontManager.getDefaultPlatformFont(X11FontManager.java:779)
at sun.font.SunFontManager$2.run(SunFontManager.java:428)
at java.security.AccessController.doPrivileged(Native Method)
at sun.font.SunFontManager.<init>(SunFontManager.java:371)
at sun.awt.X11FontManager.<init>(X11FontManager.java:32)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at java.lang.Class.newInstance0(Class.java:372)
at java.lang.Class.newInstance(Class.java:325)
at sun.font.FontManagerFactory$1.run(FontManagerFactory.java:80)
at java.security.AccessController.doPrivileged(Native Method)
at sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:71)
at java.awt.Font.getFont2D(Font.java:489)
at java.awt.Font.access$000(Font.java:223)
at java.awt.Font$FontAccessImpl.getFont2D(Font.java:227)
at sun.font.FontUtilities.getFont2D(FontUtilities.java:176)
at sun.font.StandardGlyphVector.initFontData(StandardGlyphVector.java:1126)
at sun.font.StandardGlyphVector.init(StandardGlyphVector.java:1115)
at sun.font.StandardGlyphVector.<init>(StandardGlyphVector.java:163)
at java.awt.Font.createGlyphVector(Font.java:2492)
at com.kitfox.svg.Text.buildSysFont(Text.java:362)
at com.kitfox.svg.Text.buildFont(Text.java:242)
at com.kitfox.svg.Text.build(Text.java:207)
at com.kitfox.svg.SVGElement.loaderEndElement(SVGElement.java:393)
at com.kitfox.svg.SVGLoader.endElement(SVGLoader.java:228)
... 35 more

1 REPLY
aseques
Occasional Contributor

Re: Is it possible to run CMC in linux via ssh X forwarding?

Just fixed it myself, it was yet another dependency that was missing, just do

apt-get install libfontconfig1:i386

And everthing should be fine