VirtualBox

source: vbox/trunk/doc/manual/en_US/dita/topics/headless-vm-steps.dita@ 98549

最後變更 在這個檔案從98549是 98549,由 vboxsync 提交於 2 年 前

Docs: bugref:10302. Uploading .dita user manual files we received from the doc team on 25th Jan.

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 5.2 KB
 
1<?xml version='1.0' encoding='UTF-8'?>
2<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
3<topic xml:lang="en-us" id="headless-vm-steps">
4 <title>Step by Step: Creating a Virtual Machine on a Headless Server</title>
5
6 <body>
7 <p>
8 The following instructions describe how to create a virtual
9 machine on a headless server over a network connection. This
10 example creates a virtual machine, establishes an RDP connection
11 and installs a guest operating system. All of these tasks are
12 done without having to touch the headless server. You need the
13 following prerequisites:
14 </p>
15 <ul>
16 <li>
17 <p>
18 Oracle VM VirtualBox on a server machine with a supported host
19 operating system. The Oracle VM VirtualBox Extension Pack for the
20 VRDP server must be installed, see <xref href="vrde.dita#vrde"/>.
21 The procedures assume a Linux server is used.
22 </p>
23 </li>
24 <li>
25 <p>
26 An ISO file accessible from the server, containing the
27 installation data for the guest operating system to install.
28 Windows XP is used in the example.
29 </p>
30 </li>
31 <li>
32 <p>
33 A terminal connection to that host through which you can
34 access a command line, such as <userinput>ssh</userinput>.
35 </p>
36 </li>
37 <li>
38 <p>
39 An RDP viewer on the remote client. See
40 <xref href="rdp-viewers.dita#rdp-viewers"/> for examples.
41 </p>
42 </li>
43 </ul>
44 <p>
45 Note that on the server machine, since we will only use the
46 headless server, Qt and the X Window system are not required.
47 </p>
48 <ol>
49 <li>
50 <p>
51 On the headless server, create a new virtual machine. For
52 example:
53 </p>
54 <pre xml:space="preserve">VBoxManage createvm --name "Windows XP" --ostype WindowsXP --register</pre>
55 <p>
56 If you do not specify <codeph>--register</codeph>, you will
57 have to manually use the <userinput>registervm</userinput>
58 command later.
59 </p>
60 <p>
61 You do not need to specify <codeph>--ostype</codeph>, but
62 doing so selects some sensible default values for certain VM
63 parameters. For example, the RAM size and the type of the
64 virtual network device. To get a complete list of supported
65 operating systems you can use the following command:
66 </p>
67 <pre xml:space="preserve">VBoxManage list ostypes</pre>
68 </li>
69 <li>
70 <p>
71 Make sure the settings for the VM are appropriate for the
72 guest operating system that we will install. For example:
73 </p>
74 <pre xml:space="preserve">VBoxManage modifyvm "Windows XP" --memory 256 --acpi on --boot1 dvd --nic1 nat</pre>
75 </li>
76 <li>
77 <p>
78 Create a virtual hard disk for the VM. For example, to
79 create a 10 GB virtual hard disk:
80 </p>
81 <pre xml:space="preserve">VBoxManage createhd --filename "WinXP.vdi" --size 10000</pre>
82 </li>
83 <li>
84 <p>
85 Add an IDE Controller to the new VM. For example:
86 </p>
87 <pre xml:space="preserve">VBoxManage storagectl "Windows XP" --name "IDE Controller"
88 --add ide --controller PIIX4</pre>
89 </li>
90 <li>
91 <p>
92 Set the VDI file you created as the first virtual hard disk
93 of the new VM. For example:
94 </p>
95 <pre xml:space="preserve">VBoxManage storageattach "Windows XP" --storagectl "IDE Controller"
96 --port 0 --device 0 --type hdd --medium "WinXP.vdi"</pre>
97 </li>
98 <li>
99 <p>
100 Attach the ISO file that contains the operating system
101 installation that you want to install later to the virtual
102 machine. This is done so that the VM can boot from it.
103 </p>
104 <pre xml:space="preserve">VBoxManage storageattach "Windows XP" --storagectl "IDE Controller"
105 --port 0 --device 1 --type dvddrive --medium /full/path/to/iso.iso</pre>
106 </li>
107 <li>
108 <p>
109 Enable the VirtualBox Remote Desktop Extension, the VRDP
110 server, as follows:
111 </p>
112 <pre xml:space="preserve">VBoxManage modifyvm "Windows XP" --vrde on</pre>
113 </li>
114 <li>
115 <p>
116 Start the virtual machine using the
117 <userinput>VBoxHeadless</userinput> command:
118 </p>
119 <pre xml:space="preserve">VBoxHeadless --startvm "Windows XP"</pre>
120 <p>
121 If the configuration steps worked, you should see a
122 copyright notice. If you are returned to the command line,
123 then something did not work correctly.
124 </p>
125 </li>
126 <li>
127 <p>
128 On the client machine, start the RDP viewer and connect to
129 the server. See <xref href="rdp-viewers.dita#rdp-viewers"/> for details
130 of how to use various common RDP viewers.
131 </p>
132 <p>
133 The installation routine of your guest operating system
134 should be displayed in the RDP viewer.
135 </p>
136 </li>
137 </ol>
138 </body>
139
140</topic>
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette