Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/usr-OVF.sh
diff options
context:
space:
mode:
authorDavid Farning <dfarning@launchpad.sugarlabs.org>2010-01-30 11:24:33 (GMT)
committer David Farning <dfarning@launchpad.sugarlabs.org>2010-01-30 11:24:33 (GMT)
commit0808698ce1d7776d61071a7bf5c8ae8e6e73e06d (patch)
tree9db4786f03222d441b4f5ca735c77d517e52eadb /usr-OVF.sh
parent9739af2600e8cd0cce16efa5bf1734fb25f47ac7 (diff)
inital push of Virtualbox build script
Diffstat (limited to 'usr-OVF.sh')
-rwxr-xr-xusr-OVF.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/usr-OVF.sh b/usr-OVF.sh
new file mode 100755
index 0000000..1a05046
--- /dev/null
+++ b/usr-OVF.sh
@@ -0,0 +1,23 @@
+#!/bin/sh
+##
+
+#Detach virtual harddisk
+VBoxManage modifyvm "usr-daily" --hda none
+
+#Delete old VM
+VBoxManage unregistervm "usr-daily" --delete
+
+
+#Create a VirtualBox VM
+VBoxManage createvm --name "usr-daily" --register
+
+#Create virtual hard disk
+VBoxManage createhd --filename "usr-daily.vdi" --size 5000 --remember
+
+#Configure VM
+VBoxManage modifyvm "usr-daily" --memory "512MB" --hda "usr-daily.vdi" --dvd lucid-desktop-amd64.iso --boot1 dvd --nic1 nat --acpi on
+
+#Start VM
+VBoxManage startvm "usr-daily"
+
+#VBoxManage export "usr-daily" --output ~/usr-daily.ovf