Ticket #11330 (needs_info enhancement)
Automatically build VirtualBox image
| Reported by: | vbraun | Owned by: | GeorgSWeber |
|---|---|---|---|
| Priority: | major | Milestone: | sage-5.10 |
| Component: | build | Keywords: | |
| Cc: | Work issues: | ||
| Report Upstream: | N/A | Reviewers: | |
| Authors: | Volker Braun | Merged in: | |
| Dependencies: | Stopgaps: |
Description (last modified by ltw) (diff)
We should automatically build a VirtualBox/VMware image for each Sage release. This requires some script support to create a image and perform an unattended sage install.
Attachments
Change History
comment:2 Changed 2 years ago by vbraun
I'm working on an Fedora kickstart unattended install in an automatically generated VM. Its basically working, just needs some bugs ironed out. You can swap out the embedded Linux distribution with any install DVD as long as
- It installs without any user interaction
- It powers off the VM when it is done installing.
- It automatically installs Sage
The script that creates the VM then boots of the DVD medium and waits until the VM powers itself off...
comment:3 follow-up: ↓ 4 Changed 2 years ago by vbraun
- Status changed from new to needs_info
- Description modified (diff)
- Authors set to Volker Braun
Here is an example of the built virtual machine that is built by the attached scripts without user intervention:
http://www.stp.dias.ie/~vbraun/Sage/Sage-4.7.rc2.ova
The virtual machine starts up in text mode and automatically runs the Sage notebook server. At first startup you are prompted to enter a password, as usual. Once you set up your admin password you have to use your host OS web browser to open http://localhost:8000.
At this point it would be nice if somebody could try it out on a windows machine (or any other machine).
Changed 2 years ago by vbraun
-
attachment
build-sage-virtualbox.tar.bz2
added
scripts to auto-build virtual machine
comment:4 in reply to: ↑ 3 Changed 2 years ago by ltw
Replying to vbraun:
Here is an example of the built virtual machine that is built by the attached scripts without user intervention:
I get a "403 Forbidden" error for that file. Interestingly, I can access all of your other files in that same directory.
comment:6 follow-up: ↓ 8 Changed 2 years ago by dimpase
I'll try this on a Windows 7 box, as soon as I figure out what is needed.
I got the latest VirtualBox? (4.0.6) with no guest OS installed. Do I need anything else, apart from the .ova - file, to have it running?
comment:8 in reply to: ↑ 6 Changed 2 years ago by dimpase
Replying to dimpase:
I'll try this on a Windows 7 box, as soon as I figure out what is needed.
I got the latest VirtualBox? (4.0.6) with no guest OS installed. Do I need anything else, apart from the .ova - file, to have it running?
for the record, it does not work, perhaps because this Windows 7 installation is itself a VMWare virtual host.

Maybe the script can use debootstrap to create a base system, chroot into it to install whatever necessary tools (e.g. graphical environment, kernel, package manager, web browser), exit the chroot, build Sage (or copy a pre-built linux binary), wrap it up in a VirtualBox/VMware disk image, and finally configure the VM.