Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2021 vagrant box #39

Closed
kasperk81 opened this issue Jul 20, 2021 · 7 comments
Closed

2021 vagrant box #39

kasperk81 opened this issue Jul 20, 2021 · 7 comments

Comments

@kasperk81
Copy link

@sax, could you please publish an update with SmartOS 2021? Thanks!

@sax
Copy link
Contributor

sax commented Jul 20, 2021

I will not have much time to look at this in the near future. That said, I would be happy to test/merge a pull request, if you have the time to make one. Otherwise, if you have any pointers, stack traces or other artifacts demonstrating what is not working, that would be really helpful when I can carve out time.

@kasperk81
Copy link
Author

Actually my request was about pushing an update to the existing box: https://app.vagrantup.com/livinginthepast/boxes/smartos-base64 with 2021 image.

Something like vagrant cloud box update with latest 2021 base image from https://wiki.smartos.org/download-smartos/. Does it happen through the CI or could you manually update one?

Thanks!

@sax
Copy link
Contributor

sax commented Jul 21, 2021

Ah, ok. I have another repo where I built that, but I haven't touched it in... ooof... 7 years. I'll take a look when I get some time.

@kasperk81
Copy link
Author

Cool. if it is all scripted, maybe a GitHub Actions script can run once a month and check if there is a newer image available upstream then trigger the other action which published to vagrant cloud without manual intervention.

@kasperk81
Copy link
Author

Closing it in favor of vagrant-smartos/vagrant-smartos-packager#7. If CI cron-job sound interesting, I can prepare a PR (it will just require encrypted token of vagrant account).

@sax
Copy link
Contributor

sax commented Jul 21, 2021

If you have time to look at vagrant-smartos-packager in the next few days to see if there are required changes based on SmartOS development within the last 7 years, that would be more directly helpful that setting up github actions. CI is much simpler for me to drop in, if the scripts themselves work.

@kasperk81
Copy link
Author

I had to apply:

diff --git a/bin/mksmartvm b/bin/mksmartvm
index 8b80da8..cfb8cb9 100755
--- a/bin/mksmartvm
+++ b/bin/mksmartvm
@@ -17,8 +17,8 @@ usage() {
   echo "  -p --sshport    SSH port to forward (default 2222)"
 }
 
-DISKSIZE="32"
-MEMSIZE="1024"
+DISKSIZE="100"
+MEMSIZE="2048"
 SSHPORT="2222"
 
 while getopts ":d:m:p:" arg; do
@@ -39,4 +39,4 @@ echo
 echo "Starting Virtual Machine"
 echo "  Hint: use defaults"
 echo "  Hint: set root password to 'vagrant'"
-VirtualBox --startvm "${vmname}" &
+VirtualBoxVM --startvm "${vmname}" &

as startvm flag only works with vboxmanagevm since v6. It has created the latest virtual machine on latest MBP BigSur (and latest VirtualBox), and entered the SmartOS setup. After that i followed the rest of the instructions from readme and boxified succeeded without any further modifications. So it's ready. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants