Need help with setting up MonkeyBox for Cloudstack development
Hello,
I’m trying to setup Cloudstack Management server by building the latest code on my IntelliJ IDE on Mac and am trying to setup a Monkeybox environment on an Ubuntu 22.04 VM. I was able to install Monkeybox but unfortunately when I do ‘mbx list’, its not listing any templates though I could see 'kvm-el7.qcow2’ in the folder '/export/monkeybox/templates/‘. Is there any good reference that I could follow to setup my dev environment and resolve this issue that I’m facing?
Any help would be greatly appreciated.
This requires x86 & KVM/Linux env; @sandeeplocharla is tour Mac env on x86 or arm64/M-series chip? mbx isn't supported to run on Mac OS.
I have installed monkeybox on an Ubuntu 24 machine and it was not a complete installation. It stopped midway as it was trying to fetch some old python packages which seemed to be deprecated, so I had to manually install cloudstack agent. Whilst that difficulty, I've also setup wireguard and was able to reach the mbx vm from my macbook. Later when I try to add zone, it fails at 'Add Host' complaining 'Server resources not found', I could see that around that time of adding host, cloudstack agent keeps restarting. Somehow if I manually add 'host' IP in agent.properties and restart sometimes it goes through and gets stuck after Primary Storage creation and I could see in vmops.log that SSVM couldn't get created.
This is increasingly becoming difficult. Is there any way that I could get know how other developers are working with cloudstack?
@sandeeplocharla why don't you try a complete installation of mbx? Mbx env are stateless, if you've one failed -- try it again and specify an LTS repo in the mbx deploy for example:
mbx deploy your-env-name mbxt-kvm-el8 mbxt-kvm-el8 https://download.cloudstack.org/el/8/4.21
Check if you've the right network setup, before trying to deploy a zone -- your mbx env should be deployed successfully. Please try again and share step by step issues with logs and errors if they're related to mbx; otherwise discuss them on the CloudStack dev ML.
Lastly, this may not be for everyone -- you can also DIY your own dev-test env by doing all in a single VM setup and use your macbook for building/running the management server, or copy the built jars to your all-in-a-box VM.
@sandeeplocharla on second reading did you try this on a VM (as initially you wrote you tried on "an Ubuntu 22.04 VM")? mbx isn't supposed to be in a nested env, it might work but I don't know anyone who've tried that.