Skip to content

Instantly share code, notes, and snippets.

@nealian
Created April 19, 2017 23:55
Show Gist options
  • Save nealian/b06b4268e31cbe54c65d5c30a715380a to your computer and use it in GitHub Desktop.
Save nealian/b06b4268e31cbe54c65d5c30a715380a to your computer and use it in GitHub Desktop.
A but.sh template for .vbox files for specific windows guests
<?xml version=\"1.0\"?>
<VirtualBox xmlns=\"http://www.innotek.de/VirtualBox-settings\" version=\"1.14-linux\">
<Machine uuid=\"{${vbox_uuid}}\" name=\"${vbox_name}\" OSType=\"${vbox_OSType}\" snapshotFolder=\"${vbox_snapshotFolder}\">
<Description>${vbox_Description}</Description>
<MediaRegistry>
<HardDisks>
<HardDisk uuid=\"{${vbox_vmdk_uuid}}\" location=\"${vbox_vmdk_location}\" format=\"VMDK\" type=\"Normal\"/>
</HardDisks>
</MediaRegistry>
<ExtraData>
<ExtraDataItem name=\"GUI/MiniToolBarAlignment\" value=\"Top\"/>
<ExtraDataItem name=\"GUI/VirtualScreenToHostScreen0\" value=\"0\"/>
<ExtraDataItem name=\"GUI/VirtualScreenToHostScreen1\" value=\"1\"/>
</ExtraData>
<Hardware version=\"2\">
<CPU count=\"${vbox_CPU_count:-2}\" hotplug=\"false\">
<HardwareVirtEx enabled=\"true\"/>
<HardwareVirtExNestedPaging enabled=\"true\"/>
<HardwareVirtExVPID enabled=\"true\"/>
<HardwareVirtExUX enabled=\"true\"/>
<PAE enabled=\"true\"/>
<LongMode enabled=\"true\"/>
<HardwareVirtExLargePages enabled=\"false\"/>
<HardwareVirtForce enabled=\"false\"/>
</CPU>
<Memory RAMSize=\"${vbox_RAM_size:-4096}\" PageFusion=\"false\"/>
<HID Pointing=\"PS2Mouse\" Keyboard=\"PS2Keyboard\"/>
<HPET enabled=\"false\"/>
<Chipset type=\"PIIX3\"/>
<Boot>
<Order position=\"1\" device=\"DVD\"/>
<Order position=\"2\" device=\"HardDisk\"/>
</Boot>
<Display VRAMSize=\"128\" monitorCount=\"${vbox_monitor_count:-1}\" accelerate3D=\"true\" accelerate2DVideo=\"true\"/>
<VideoCapture enabled=\"false\" screens=\"18446744073709551615\" horzRes=\"1024\" vertRes=\"768\" rate=\"512\" fps=\"25\" maxTime=\"0\" maxSize=\"0\"/>
<RemoteDisplay enabled=\"false\" authType=\"Null\" authTimeout=\"5000\">
<VRDEProperties>
<Property name=\"TCP/Ports\" value=\"3389\"/>
</VRDEProperties>
</RemoteDisplay>
<BIOS>
<ACPI enabled=\"true\"/>
<IOAPIC enabled=\"true\"/>
<Logo fadeIn=\"true\" fadeOut=\"true\" displayTime=\"0\"/>
<BootMenu mode=\"MessageAndMenu\"/>
<TimeOffset value=\"0\"/>
<PXEDebug enabled=\"false\"/>
</BIOS>
<USB>
<Controllers>
<Controller name=\"OHCI\" type=\"OHCI\"/>
<Controller name=\"EHCI\" type=\"EHCI\"/>
</Controllers>
<DeviceFilters/>
</USB>
<Network>
<Adapter slot=\"0\" enabled=\"true\" MACAddress=\"0800272FE2F4\" cable=\"true\" speed=\"0\" type=\"82540EM\">
<NAT>
<DNS pass-domain=\"true\" use-proxy=\"false\" use-host-resolver=\"false\"/>
<Alias logging=\"false\" proxy-only=\"false\" use-same-ports=\"false\"/>
</NAT>
</Adapter>
</Network>
<AudioAdapter controller=\"HDA\" driver=\"Pulse\" enabled=\"true\"/>
<RTC localOrUTC=\"local\"/>
<SharedFolders/>
<Clipboard mode=\"Bidirectional\"/>
<DragAndDrop mode=\"Bidirectional\"/>
<Guest memoryBalloonSize=\"0\"/>
</Hardware>
<StorageControllers>
<StorageController name=\"SATA\" type=\"AHCI\" PortCount=\"2\" useHostIOCache=\"false\" Bootable=\"true\" IDE0MasterEmulationPort=\"0\" IDE0SlaveEmulationPort=\"1\" IDE1MasterEmulationPort=\"2\" IDE1SlaveEmulationPort=\"3\">
<AttachedDevice type=\"HardDisk\" port=\"0\" device=\"0\">
<Image uuid=\"{${vbox_vmdk_uuid}}\"/>
</AttachedDevice>
<AttachedDevice passthrough=\"false\" type=\"DVD\" port=\"1\" device=\"0\" />
</StorageController>
</StorageControllers>
</Machine>
</VirtualBox>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment