First time here? Check out the Help page!

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 9 years ago

updated 9 years ago

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?

Preview: (hide)

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  ( 9 years ago )

2 Answers

Sort by » oldest newest most voted
14

answered 9 years ago

updated 9 years ago

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.

Preview: (hide)
link

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  ( 9 years ago )

@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  ( 9 years ago )
6

answered 9 years ago

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.

Preview: (hide)
link

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  ( 9 years ago )

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: 9 years ago

Seen: 520 times

Last updated: Jul 09 '15