# values set here. However, setting the values still prevents the questions
# from being shown, even if values come from dhcp.
d-i netcfg/get_hostname string neurodebian
+d-i netcfg/invalid_hostname string neurodebian
# d-i netcfg/get_domain string unassigned-domain
# Disable that annoying WEP key dialog.
# d-i netcfg/wireless_wep string
# The wacky dhcp hostname that some ISPs use as a password of sorts.
-#d-i netcfg/dhcp_hostname string radish
+# d-i netcfg/dhcp_hostname string neurodebian
# If non-free firmware is needed for the network or other hardware, you can
# configure the installer to always try to load it, without prompting. Or
# The user account will be added to some standard initial groups. To
# override that, use this.
-d-i passwd/user-default-groups string audio cdrom video plugdev dip sudo
+d-i passwd/user-default-groups string audio cdrom floppy video plugdev dip sudo
### Apt setup
# You can choose to install non-free and contrib software.
# hostname: neurodebian
# domain: ''
+# Needs to be assured since it got reset to debian
+hostname neurodebian
+sed -i -e 's/^127\.0\.1\.1.*/127.0.1.1\tneurodebian/g' /etc/hosts
+
# all file in one partition
# root: not there
-e "s/^deb-src/#deb-src/" /etc/apt/sources.list
etckeeper commit "Initial VM setup done"
+
+# Create a link to automatically mounted Shared folder
+# Created by the Welcome Wizard
+#sudo -u brain ln -s /mnt/host /home/brain/
# TODO: arguments later on to become cmdline args
#iso=debian-squeeze-di-beta1-amd64-businesscard.iso
-iso=debian-testing-i386-businesscard.iso
+iso=debian-testing-${ARCH:=amd64}-businesscard.iso
di_cd=$(readlink -f $PWD/../../../neurodebian-images/$iso)
di_host=hydra # where to look for di preseed
vendor="NeuroDebian"
vm_version="6.0.1"
vm_ostype=Debian
+vendor_url="http://neuro.debian.net"
+product_url="${vendor_url}/vm.html"
# Generic definitions
eula="This virtual appliance contains Free and Open Source Software (FOSS) released under licenses compliant with the Debian Free Software Guidelines (DFSG, see http://www.debian.org/social_contract), such as, GPL, BSD, MIT, etc. Such software is free to be used or customized for any purpose.
vm_arch_name=" (64bit)"
fi
-vm_disk="$build_dir/nd-${vm_version}_${vm_arch}.vdi"
-vm_name="${vendor} VirtualMachine${vm_arch_name}"
-vm_ovf="${dist_dir}/${vendor}_${vm_version}_${vm_arch}.ovf"
+vm_fprefix="${vendor}_${vm_version}_${vm_arch}" # common prefix for files
+#vm_disk="$build_dir/nd-${vm_version}_${vm_arch}.vdi"
+vm_disk="$build_dir/${vm_fprefix}.vdi"
+vm_name="${vendor} ${vm_version} ${vm_arch_name}"
+vm_ovf="${dist_dir}/${vm_fprefix}.ovf"
product_name="${vendor} VirtualMachine (${vm_arch})"
_info() {
clean_buildvm # clean things up
+#exit
# Check that no previous VM was left (can happen if previous failures
# were "valid")
if VBoxManage list vms | grep -q "^\"${vm_name}\".*"; then
_info Create HardDisk for the VM
VBoxManage createhd --filename $vm_disk \
- --size 20000 --format VDI
+ --size 20480 --format VDI
# documented but not implemented:
# --comment "Drive for NeuroDebian VM installer"
VBoxManage export "${vm_name}" -o "$vm_ovf" \
--vsys 0 \
- --product "${vendor} VirtualMachine (${vm_arch})" \
- --producturl "http://neuro.debian.net/vm.html" \
+ --product "${product_name}" \
+ --producturl "${product_url}" \
--vendor "${vendor}" \
--vendorurl "http://neuro.debian.net" \
--version "$vm_version" \