8

Run OpenStudio in a Linux virtual machine through Virtual Box

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?

yiyuan-jia's avatar
218
yiyuan-jia
asked 2015-07-02 14:14:51 -0500
__AmirRoth__'s avatar
4.4k
__AmirRoth__
updated 2015-11-08 11:12:31 -0500
edit flag offensive 0 remove flag 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 -0500) edit
add a comment see more comments

2 Answers

14

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.

macumber's avatar
12k
macumber
answered 2015-07-02 14:47:00 -0500, updated 2015-07-02 20:52:52 -0500
edit flag offensive 0 remove flag delete 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 (2015-07-06 13:39:13 -0500) 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 -0500) edit
add a comment see more comments
6

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.

ljbrackney's avatar
3.8k
ljbrackney
answered 2015-07-03 08:29:16 -0500
edit flag offensive 0 remove flag delete 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 (2015-07-06 09:44:50 -0500) edit
add a comment see more comments