Skip to content

Instantly share code, notes, and snippets.

@seandenigris
Last active February 11, 2024 01:31
Show Gist options
  • Select an option

  • Save seandenigris/5039427 to your computer and use it in GitHub Desktop.

Select an option

Save seandenigris/5039427 to your computer and use it in GitHub Desktop.

Revisions

  1. Sean DeNigris revised this gist Feb 26, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install_debian.sh
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@
    # Reference: http://stdioe.blogspot.com/2012/01/creating-virtual-machine-with.html

    VM_NAME="Debian Squeeze 2"
    DEBIAN_CD_IMAGE="/Users/sean/Documents/Reference/Programming2/Linux CD Images/Debian/debian-6.0.7-amd64-netinst.iso"
    DEBIAN_CD_IMAGE="debian-6.0.7-amd64-netinst.iso"

    # Create VM
    VBoxManage createvm --name "$VM_NAME" --ostype Debian_64 --register
  2. Sean DeNigris revised this gist Feb 26, 2013. 1 changed file with 10 additions and 8 deletions.
    18 changes: 10 additions & 8 deletions install_debian.sh
    Original file line number Diff line number Diff line change
    @@ -1,19 +1,21 @@
    #!/usr/bin/bash
    #!/bin/bash
    # Reference: http://stdioe.blogspot.com/2012/01/creating-virtual-machine-with.html

    VM_NAME="Debian Squeeze 2"
    DEBIAN_CD_IMAGE="debian-6.0.3-amd64-i386-netinst.iso"
    DEBIAN_CD_IMAGE="/Users/sean/Documents/Reference/Programming2/Linux CD Images/Debian/debian-6.0.7-amd64-netinst.iso"

    # Create VM
    VBoxManage createvm --name "$VM_NAME" --ostype Debian --register
    VBoxManage createvm --name "$VM_NAME" --ostype Debian_64 --register

    # RAM
    VBoxManage modifyvm "$VM_NAME" --memory 384
    # VM Settings
    # ioapic should be enabled for all 64-bit Oses (per manual)
    # rtcuseutc - clock in UTC time (enabled by default for VB GUI)
    VBoxManage modifyvm "$VM_NAME" --memory 384 --acpi on --ioapic on --rtcuseutc on --boot1 dvd --boot2 disk --boot3 floppy --mouse usbtablet --vram 12 --audio coreaudio --audiocontroller ac97

    # Hard Disk
    VBoxManage createhd --filename "$VM_NAME.vdi" --size 10000 --format
    VBoxManage storagectl "$VM_NAME" --name "SATA Controller" --add sata --controller IntelAhci
    VBoxManage createhd --filename "$VM_NAME.vdi" --size 10000
    VBoxManage storagectl "$VM_NAME" --name "SATA Controller" --add sata --controller IntelAhci --sataportcount 1
    VBoxManage storageattach "$VM_NAME" --storagectl "SATA Controller" --port 0 --device 0 --type hdd --medium "$VM_NAME.vdi"

    VBoxManage storagectl "$VM_NAME" --name "IDE Controller" --add ide --controller PIIX4
    VBoxManage storageattach "$VM_NAME" --storagectl "IDE Controller" --port 1 --device 0 --type dvddrive --medium "$DEBIAN_CD_IMAGE"
    VBoxManage storageattach "$VM_NAME" --storagectl "IDE Controller" --port 0 --device 0 --type dvddrive --medium "$DEBIAN_CD_IMAGE"
  3. Sean DeNigris renamed this gist Feb 26, 2013. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  4. Sean DeNigris renamed this gist Feb 26, 2013. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  5. Sean DeNigris created this gist Feb 26, 2013.
    19 changes: 19 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    #!/usr/bin/bash
    # Reference: http://stdioe.blogspot.com/2012/01/creating-virtual-machine-with.html

    VM_NAME="Debian Squeeze 2"
    DEBIAN_CD_IMAGE="debian-6.0.3-amd64-i386-netinst.iso"

    # Create VM
    VBoxManage createvm --name "$VM_NAME" --ostype Debian --register

    # RAM
    VBoxManage modifyvm "$VM_NAME" --memory 384

    # Hard Disk
    VBoxManage createhd --filename "$VM_NAME.vdi" --size 10000 --format
    VBoxManage storagectl "$VM_NAME" --name "SATA Controller" --add sata --controller IntelAhci
    VBoxManage storageattach "$VM_NAME" --storagectl "SATA Controller" --port 0 --device 0 --type hdd --medium "$VM_NAME.vdi"

    VBoxManage storagectl "$VM_NAME" --name "IDE Controller" --add ide --controller PIIX4
    VBoxManage storageattach "$VM_NAME" --storagectl "IDE Controller" --port 1 --device 0 --type dvddrive --medium "$DEBIAN_CD_IMAGE"