瀏覽代碼

Preliminaries done

Patrick Jaeger 8 年之前
父節點
當前提交
a2f93494ed
共有 1 個文件被更改,包括 48 次插入0 次删除
  1. 48 0
      README.md

+ 48 - 0
README.md

@@ -5,3 +5,51 @@ A short description and all necessary scripts to deploy VMs on a headless Virtua
5 5
 ## Introduction
6 6
 
7 7
 This is a collection of all commands necessary to create a virtual machine on a headless VirtualBox
8
+
9
+
10
+The following steps will be performed:
11
+
12
+1. Create and register the necessary frame
13
+1. Attach hardware
14
+   1. Attach network device
15
+   1. Attach storage controller
16
+1. Set properties 
17
+   1. RAM and number of CPUs
18
+   1. Enable ACPI
19
+   1. Enable IOAPIC
20
+   1. Set boot sequence
21
+   1. Configure network
22
+1. Create harddisk image file
23
+1. Attach harddisk 
24
+1. Attach installer dvd-image
25
+1. Enable VRDE
26
+1. Set VRDE password
27
+
28
+
29
+
30
+# Create and register frame with virtualbox
31
+
32
+Since virtualbox manages virtual machines on a per user basis, all commands will be executed using the system user, who will be using the virtual machine later.
33
+The machine will be called *MyMachine* (but hold before you execute the following command):
34
+
35
+	VBoxManage --createvm MyMachine
36
+
37
+This will create the base for all later actions.
38
+But since VirtualBox needs to know about the machine, we should register it with VirtualBox (again: hold the presses):
39
+	
40
+	VBoxManage --createvm MyMachine --register
41
+	
42
+If you want to store all of your virtual machine stuff some place else than ``~/VirtualBox VMs``, you should tell VirtualBox also about your desired location, e.g. ``/srv/vms`` (while still holding back on pressing ``Return``):
43
+	
44
+	VBoxManage --createvm MyMachine --register --basefolder /srv/vms
45
+	
46
+Be patient, we are almost there, but why not telling VirtualBox at the same time about the intenden operating system (``Debian 64bit``):
47
+
48
+	VBoxManage --createvm MyMachine --register --basefolder /srv/vms --ostype Debian_64
49
+
50
+
51
+And last but not least, if you intend to run more than one virtual machine with virtual box and machines are intended for different purposes, you could even group your machines. In my case I decided to go with a grouping logic that consists of **stage** (e.g. development, testing, production), **purpose** (i.e. office, services, network) and **type** (i.e. server, workstation), which led me to a nested grouping:
52
+
53
+	VBoxManage --createvm MyMachine --register --basefolder /srv/vms --ostype Debian_64 --groups "/Production/Office/Server"
54
+	
55
+This will create a frame for your virtual machine in ``/srv/vms/Production/Office/Server``.