Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/usr-OVF.sh
diff options
context:
space:
mode:
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