Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question
8

Run OpenStudio in a Linux virtual machine through Virtual Box

asked 2015-07-02 14:14:51 -0600

updated 2015-11-08 11:12:31 -0600

Hello OpenStudio Gurus,

We're developing a project in Ruby that calls OpenStudio for simulation. We would need make sure it is executable across different operating systems. We had tested it in PC and Mac and next is Linux. Our plan is to test it in a virtual machine through Virtual Box in Mac.

I'm curious if anyone has tried this before, if so, could you give me some hints on the versions of Linux(supported by Virtual Box) that has been proved to support this task, or are there any tricky procedures need to be carefully attended?

I would appreciate your suggestions!

------------------------------------------------------

I met some problems while testing the ruby script:

  1. EnergyPlus could not installed properly on Ubuntu 14.04: I followed the installation tutorial here and in the output of the installation it reports:

    mv: cannot move ‘/usr/local/EnergyPlus-8-3-0/energyplus.1’ to ‘/usr/local/share/man/man1/’: Not a directory

  2. I guess the first problem lead to the second one: as we need call the find_energyplus in our ruby script, it reports:

    [DEPRECATION] find_energyplus is deprecated. Please use OpenStudio::Runmanager::ConfigOptions instead.

Does anyone met the same problems while install EnergyPlus in Ubuntu 14.04?

edit retag flag offensive close merge delete

Comments

1

You can look at Nick's EnergyPlus install script for his Docker container here: https://registry.hub.docker.com/u/nllong/energyplus/dockerfile/. Looks like your install did not copy the man pages over.

The second message you see is not related to your install. The find_energyplus method is deprecated and OpenStudio::Runmanager::ConfigOptions is the replacement. See here for an example

macumber's avatar macumber  ( 2015-07-08 14:02:44 -0600 )edit

2 Answers

Sort by » oldest newest most voted
14

answered 2015-07-02 14:47:00 -0600

updated 2015-07-02 20:52:52 -0600

I use VirtualBox on a Windows host. I just install Ubuntu 14.04 then build OpenStudio (but you can just install it too). The only tricky thing to me is that when you allocate the size of the disk in the virtual machine you should allocate enough room to last a while, it is difficult to resize the disks in the virtual machine later. The default partition sizes are usually pretty low. Installing Guest Additions in VirtualBox is kind of a hassle but it is worth it.

edit flag offensive delete link more

Comments

I also use Ubuntu 14.04 and 12.10. It is recommended to use Ubuntu 14.04 for the new OpenStudio. We have put together some instructions for the installation of a new Ubuntu virtual machine using VirtualBox on Windows host.

muh182's avatar muh182  ( 2015-07-06 13:39:13 -0600 )edit

@macumber pony up and get a commercial VM. VMWare makes it stupid easy to resize the virtual machine. I do it all the time. 'cause my windows development VM keeps filling up!

Kyle Benne's avatar Kyle Benne  ( 2015-07-08 11:45:30 -0600 )edit
6

answered 2015-07-03 08:29:16 -0600

We use Docker to package and deploy OS in a variety of environments. This thread has a little discussion and a link to Nick's repo.

edit flag offensive delete link more

Comments

2

I've been keeping the openstudio docker images up to date with the OpenStudio releases (https://registry.hub.docker.com/u/nll...)

long's avatar long  ( 2015-07-06 09:44:50 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Careers

Question Tools

1 follower

Stats

Asked: 2015-07-02 14:14:51 -0600

Seen: 509 times

Last updated: Jul 09 '15