1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"[
|
---|
4 | <!ENTITY % all.entities SYSTEM "all-entities.ent">
|
---|
5 | %all.entities;
|
---|
6 | ]>
|
---|
7 | <chapter id="Introduction">
|
---|
8 |
|
---|
9 | <title>First Steps</title>
|
---|
10 |
|
---|
11 | <para>
|
---|
12 | Welcome to &product-name;.
|
---|
13 | </para>
|
---|
14 |
|
---|
15 | <para>
|
---|
16 | &product-name; is a cross-platform virtualization application. What
|
---|
17 | does that mean? For one thing, it installs on your existing Intel or
|
---|
18 | AMD-based computers, whether they are running Windows, Mac OS X,
|
---|
19 | Linux, or Oracle Solaris operating systems (OSes). Secondly, it
|
---|
20 | extends the capabilities of your existing computer so that it can
|
---|
21 | run multiple OSes, inside multiple virtual machines, at the same
|
---|
22 | time. As an example, you can run Windows and Linux on your Mac, run
|
---|
23 | Windows Server 2016 on your Linux server, run Linux on your Windows
|
---|
24 | PC, and so on, all alongside your existing applications. You can
|
---|
25 | install and run as many virtual machines as you like. The only
|
---|
26 | practical limits are disk space and memory.
|
---|
27 | </para>
|
---|
28 |
|
---|
29 | <para>
|
---|
30 | &product-name; is deceptively simple yet also very powerful. It can
|
---|
31 | run everywhere from small embedded systems or desktop class machines
|
---|
32 | all the way up to datacenter deployments and even Cloud
|
---|
33 | environments.
|
---|
34 | </para>
|
---|
35 |
|
---|
36 | <para>
|
---|
37 | The following screenshot shows how &product-name;, installed on an
|
---|
38 | Apple Mac OS X computer, is running Windows Server 2016 in a virtual
|
---|
39 | machine window.
|
---|
40 | </para>
|
---|
41 |
|
---|
42 | <figure id="fig-win2016-intro">
|
---|
43 | <title>Windows Server 2016 Virtual Machine, Displayed on a Mac OS X Host</title>
|
---|
44 | <mediaobject>
|
---|
45 | <imageobject>
|
---|
46 | <imagedata align="center" fileref="images/vm-vista-running.png"
|
---|
47 | width="14cm" />
|
---|
48 | </imageobject>
|
---|
49 | </mediaobject>
|
---|
50 | </figure>
|
---|
51 |
|
---|
52 | <para>
|
---|
53 | In this User Manual, we will begin simply with a quick introduction
|
---|
54 | to virtualization and how to get your first virtual machine running
|
---|
55 | with the easy-to-use &product-name; graphical user interface.
|
---|
56 | Subsequent chapters will go into much more detail covering more
|
---|
57 | powerful tools and features, but fortunately, it is not necessary to
|
---|
58 | read the entire User Manual before you can use &product-name;.
|
---|
59 | </para>
|
---|
60 |
|
---|
61 | <para>
|
---|
62 | You can find a summary of &product-name;'s capabilities in
|
---|
63 | <xref linkend="features-overview" />. For existing &product-name;
|
---|
64 | users who just want to find out what is new in this release, see the
|
---|
65 | <xref linkend="ChangeLog"/>.
|
---|
66 | </para>
|
---|
67 |
|
---|
68 | <sect1 id="virt-why-useful">
|
---|
69 |
|
---|
70 | <title>Why is Virtualization Useful?</title>
|
---|
71 |
|
---|
72 | <para>
|
---|
73 | The techniques and features that &product-name; provides are
|
---|
74 | useful in the following scenarios:
|
---|
75 | </para>
|
---|
76 |
|
---|
77 | <itemizedlist>
|
---|
78 |
|
---|
79 | <listitem>
|
---|
80 | <para>
|
---|
81 | <emphasis role="bold">Running multiple operating systems
|
---|
82 | simultaneously.</emphasis> &product-name; enables you to run
|
---|
83 | more than one OS at a time. This way, you can run software
|
---|
84 | written for one OS on another, such as Windows software on
|
---|
85 | Linux or a Mac, without having to reboot to use it. Since you
|
---|
86 | can configure what kinds of <emphasis>virtual</emphasis>
|
---|
87 | hardware should be presented to each such OS, you can install
|
---|
88 | an old OS such as DOS or OS/2 even if your real computer's
|
---|
89 | hardware is no longer supported by that OS.
|
---|
90 | </para>
|
---|
91 | </listitem>
|
---|
92 |
|
---|
93 | <listitem>
|
---|
94 | <para>
|
---|
95 | <emphasis role="bold">Easier software
|
---|
96 | installations.</emphasis> Software vendors can use virtual
|
---|
97 | machines to ship entire software configurations. For example,
|
---|
98 | installing a complete mail server solution on a real machine
|
---|
99 | can be a tedious task. With &product-name;, such a complex
|
---|
100 | setup, often called an <emphasis>appliance</emphasis>, can be
|
---|
101 | packed into a virtual machine. Installing and running a mail
|
---|
102 | server becomes as easy as importing such an appliance into
|
---|
103 | &product-name;.
|
---|
104 | </para>
|
---|
105 | </listitem>
|
---|
106 |
|
---|
107 | <listitem>
|
---|
108 | <para>
|
---|
109 | <emphasis role="bold">Testing and disaster
|
---|
110 | recovery.</emphasis> Once installed, a virtual machine and its
|
---|
111 | virtual hard disks can be considered a
|
---|
112 | <emphasis>container</emphasis> that can be arbitrarily frozen,
|
---|
113 | woken up, copied, backed up, and transported between hosts.
|
---|
114 | </para>
|
---|
115 |
|
---|
116 | <para>
|
---|
117 | On top of that, with the use of another &product-name; feature
|
---|
118 | called <emphasis>snapshots</emphasis>, one can save a
|
---|
119 | particular state of a virtual machine and revert back to that
|
---|
120 | state, if necessary. This way, one can freely experiment with
|
---|
121 | a computing environment. If something goes wrong, such as
|
---|
122 | problems after installing software or infecting the guest with
|
---|
123 | a virus, you can easily switch back to a previous snapshot and
|
---|
124 | avoid the need of frequent backups and restores.
|
---|
125 | </para>
|
---|
126 |
|
---|
127 | <para>
|
---|
128 | Any number of snapshots can be created, allowing you to travel
|
---|
129 | back and forward in virtual machine time. You can delete
|
---|
130 | snapshots while a VM is running to reclaim disk space.
|
---|
131 | </para>
|
---|
132 | </listitem>
|
---|
133 |
|
---|
134 | <listitem>
|
---|
135 | <para>
|
---|
136 | <emphasis role="bold">Infrastructure consolidation.</emphasis>
|
---|
137 | Virtualization can significantly reduce hardware and
|
---|
138 | electricity costs. Most of the time, computers today only use
|
---|
139 | a fraction of their potential power and run with low average
|
---|
140 | system loads. A lot of hardware resources as well as
|
---|
141 | electricity is thereby wasted. So, instead of running many
|
---|
142 | such physical computers that are only partially used, one can
|
---|
143 | pack many virtual machines onto a few powerful hosts and
|
---|
144 | balance the loads between them.
|
---|
145 | </para>
|
---|
146 | </listitem>
|
---|
147 |
|
---|
148 | </itemizedlist>
|
---|
149 |
|
---|
150 | </sect1>
|
---|
151 |
|
---|
152 | <sect1 id="virtintro">
|
---|
153 |
|
---|
154 | <title>Some Terminology</title>
|
---|
155 |
|
---|
156 | <para>
|
---|
157 | When dealing with virtualization, and also for understanding the
|
---|
158 | following chapters of this documentation, it helps to acquaint
|
---|
159 | oneself with a bit of crucial terminology, especially the
|
---|
160 | following terms:
|
---|
161 | </para>
|
---|
162 |
|
---|
163 | <itemizedlist>
|
---|
164 |
|
---|
165 | <listitem>
|
---|
166 | <para>
|
---|
167 | <emphasis role="bold">Host operating system (host
|
---|
168 | OS).</emphasis> This is the OS of the physical computer on
|
---|
169 | which &product-name; was installed. There are versions of
|
---|
170 | &product-name; for Windows, Mac OS X, Linux, and Oracle
|
---|
171 | Solaris hosts. See <xref linkend="hostossupport" />.
|
---|
172 | </para>
|
---|
173 |
|
---|
174 | <para>
|
---|
175 | Most of the time, this manual discusses all &product-name;
|
---|
176 | versions together. There may be platform-specific differences
|
---|
177 | which we will point out where appropriate.
|
---|
178 | </para>
|
---|
179 | </listitem>
|
---|
180 |
|
---|
181 | <listitem>
|
---|
182 | <para>
|
---|
183 | <emphasis role="bold">Guest operating system (guest
|
---|
184 | OS).</emphasis> This is the OS that is running inside the
|
---|
185 | virtual machine. Theoretically, &product-name; can run any x86
|
---|
186 | OS such as DOS, Windows, OS/2, FreeBSD, and OpenBSD. But to
|
---|
187 | achieve near-native performance of the guest code on your
|
---|
188 | machine, we had to go through a lot of optimizations that are
|
---|
189 | specific to certain OSes. So while your favorite OS
|
---|
190 | <emphasis>may</emphasis> run as a guest, we officially support
|
---|
191 | and optimize for a select few, which include the most common
|
---|
192 | OSes.
|
---|
193 | </para>
|
---|
194 |
|
---|
195 | <para>
|
---|
196 | See <xref linkend="guestossupport" />.
|
---|
197 | </para>
|
---|
198 | </listitem>
|
---|
199 |
|
---|
200 | <listitem>
|
---|
201 | <para>
|
---|
202 | <emphasis role="bold">Virtual machine (VM).</emphasis> This is
|
---|
203 | the special environment that &product-name; creates for your
|
---|
204 | guest OS while it is running. In other words, you run your
|
---|
205 | guest OS <emphasis>in</emphasis> a VM. Normally, a VM is shown
|
---|
206 | as a window on your computer's desktop. Depending on which of
|
---|
207 | the various frontends of &product-name; you use, the VM might
|
---|
208 | be shown in full screen mode or remotely on another computer.
|
---|
209 | </para>
|
---|
210 |
|
---|
211 | <para>
|
---|
212 | Internally, &product-name; treats a VM as a set of parameters
|
---|
213 | that specify its behavior. Some parameters describe hardware
|
---|
214 | settings, such as the amount of memory and number of CPUs
|
---|
215 | assigned. Other parameters describe the state information,
|
---|
216 | such as whether the VM is running or saved.
|
---|
217 | </para>
|
---|
218 |
|
---|
219 | <para>
|
---|
220 | You can view these VM settings in the VirtualBox Manager
|
---|
221 | window, the <emphasis role="bold">Settings</emphasis> dialog,
|
---|
222 | and by running the <command>VBoxManage</command> command. See
|
---|
223 | <xref linkend="vboxmanage" />.
|
---|
224 | </para>
|
---|
225 | </listitem>
|
---|
226 |
|
---|
227 | <listitem>
|
---|
228 | <para>
|
---|
229 | <emphasis role="bold">Guest Additions.</emphasis> This refers
|
---|
230 | to special software packages which are shipped with
|
---|
231 | &product-name; but designed to be installed
|
---|
232 | <emphasis>inside</emphasis> a VM to improve performance of the
|
---|
233 | guest OS and to add extra features. See
|
---|
234 | <xref linkend="guestadditions" />.
|
---|
235 | </para>
|
---|
236 | </listitem>
|
---|
237 |
|
---|
238 | </itemizedlist>
|
---|
239 |
|
---|
240 | </sect1>
|
---|
241 |
|
---|
242 | <sect1 id="features-overview">
|
---|
243 |
|
---|
244 | <title>Features Overview</title>
|
---|
245 |
|
---|
246 | <para>
|
---|
247 | The following is a brief outline of &product-name;'s main
|
---|
248 | features:
|
---|
249 | </para>
|
---|
250 |
|
---|
251 | <itemizedlist>
|
---|
252 |
|
---|
253 | <listitem>
|
---|
254 | <para>
|
---|
255 | <emphasis role="bold">Portability.</emphasis> &product-name;
|
---|
256 | runs on a large number of 64-bit host operating systems. See
|
---|
257 | <xref linkend="hostossupport" />.
|
---|
258 | </para>
|
---|
259 |
|
---|
260 | <para>
|
---|
261 | &product-name; is a so-called <emphasis>hosted</emphasis>
|
---|
262 | hypervisor, sometimes referred to as a <emphasis>type
|
---|
263 | 2</emphasis> hypervisor. Whereas a
|
---|
264 | <emphasis>bare-metal</emphasis> or <emphasis>type 1</emphasis>
|
---|
265 | hypervisor would run directly on the hardware, &product-name;
|
---|
266 | requires an existing OS to be installed. It can thus run
|
---|
267 | alongside existing applications on that host.
|
---|
268 | </para>
|
---|
269 |
|
---|
270 | <para>
|
---|
271 | To a very large degree, &product-name; is functionally
|
---|
272 | identical on all of the host platforms, and the same file and
|
---|
273 | image formats are used. This enables you to run virtual
|
---|
274 | machines created on one host on another host with a different
|
---|
275 | host OS. For example, you can create a virtual machine on
|
---|
276 | Windows and then run it under Linux.
|
---|
277 | </para>
|
---|
278 |
|
---|
279 | <para>
|
---|
280 | In addition, virtual machines can easily be imported and
|
---|
281 | exported using the Open Virtualization Format (OVF), an
|
---|
282 | industry standard created for this purpose. You can even
|
---|
283 | import OVFs that were created with a different virtualization
|
---|
284 | software. See <xref linkend="ovf" />.
|
---|
285 | </para>
|
---|
286 |
|
---|
287 | <para>
|
---|
288 | For users of &oci; the functionality extends to exporting and
|
---|
289 | importing virtual machines to and from the cloud. This
|
---|
290 | simplifies development of applications and deployment to the
|
---|
291 | production environment. See
|
---|
292 | <xref linkend="cloud-export-oci"/>.
|
---|
293 | </para>
|
---|
294 | </listitem>
|
---|
295 |
|
---|
296 | <listitem>
|
---|
297 | <para>
|
---|
298 | <emphasis role="bold">Guest Additions: shared folders,
|
---|
299 | seamless windows, 3D virtualization.</emphasis> The
|
---|
300 | &product-name; Guest Additions are software packages which can
|
---|
301 | be installed <emphasis>inside</emphasis> of supported guest
|
---|
302 | systems to improve their performance and to provide additional
|
---|
303 | integration and communication with the host system. After
|
---|
304 | installing the Guest Additions, a virtual machine will support
|
---|
305 | automatic adjustment of video resolutions, seamless windows,
|
---|
306 | accelerated 3D graphics and more. See
|
---|
307 | <xref linkend="guestadditions" />.
|
---|
308 | </para>
|
---|
309 |
|
---|
310 | <para>
|
---|
311 | In particular, Guest Additions provide for <emphasis>shared
|
---|
312 | folders</emphasis>, which let you access files on the host
|
---|
313 | system from within a guest machine. See
|
---|
314 | <xref linkend="sharedfolders" />.
|
---|
315 | </para>
|
---|
316 | </listitem>
|
---|
317 |
|
---|
318 | <listitem>
|
---|
319 | <para>
|
---|
320 | <emphasis role="bold">Great hardware support.</emphasis> Among
|
---|
321 | other features, &product-name; supports the following:
|
---|
322 | </para>
|
---|
323 |
|
---|
324 | <itemizedlist>
|
---|
325 |
|
---|
326 | <listitem>
|
---|
327 | <para>
|
---|
328 | <emphasis role="bold">Guest multiprocessing
|
---|
329 | (SMP).</emphasis> &product-name; can present up to 32
|
---|
330 | virtual CPUs to each virtual machine, irrespective of how
|
---|
331 | many CPU cores are physically present on your host.
|
---|
332 | </para>
|
---|
333 | </listitem>
|
---|
334 |
|
---|
335 | <listitem>
|
---|
336 | <para>
|
---|
337 | <emphasis role="bold">USB device support.</emphasis>
|
---|
338 | &product-name; implements a virtual USB controller and
|
---|
339 | enables you to connect arbitrary USB devices to your
|
---|
340 | virtual machines without having to install device-specific
|
---|
341 | drivers on the host. USB support is not limited to certain
|
---|
342 | device categories. See <xref linkend="settings-usb" />.
|
---|
343 | </para>
|
---|
344 | </listitem>
|
---|
345 |
|
---|
346 | <listitem>
|
---|
347 | <para>
|
---|
348 | <emphasis role="bold">Hardware compatibility.</emphasis>
|
---|
349 | &product-name; virtualizes a vast array of virtual
|
---|
350 | devices, among them many devices that are typically
|
---|
351 | provided by other virtualization platforms. That includes
|
---|
352 | IDE, SCSI, and SATA hard disk controllers, several virtual
|
---|
353 | network cards and sound cards, virtual serial and parallel
|
---|
354 | ports and an Input/Output Advanced Programmable Interrupt
|
---|
355 | Controller (I/O APIC), which is found in many computer
|
---|
356 | systems. This enables easy cloning of disk images from
|
---|
357 | real machines and importing of third-party virtual
|
---|
358 | machines into &product-name;.
|
---|
359 | </para>
|
---|
360 | </listitem>
|
---|
361 |
|
---|
362 | <listitem>
|
---|
363 | <para>
|
---|
364 | <emphasis role="bold">Full ACPI support.</emphasis> The
|
---|
365 | Advanced Configuration and Power Interface (ACPI) is fully
|
---|
366 | supported by &product-name;. This enables easy cloning of
|
---|
367 | disk images from real machines or third-party virtual
|
---|
368 | machines into &product-name;. With its unique
|
---|
369 | <emphasis>ACPI power status support</emphasis>,
|
---|
370 | &product-name; can even report to ACPI-aware guest OSes
|
---|
371 | the power status of the host. For mobile systems running
|
---|
372 | on battery, the guest can thus enable energy saving and
|
---|
373 | notify the user of the remaining power, for example in
|
---|
374 | full screen modes.
|
---|
375 | </para>
|
---|
376 | </listitem>
|
---|
377 |
|
---|
378 | <listitem>
|
---|
379 | <para>
|
---|
380 | <emphasis role="bold">Multiscreen resolutions.</emphasis>
|
---|
381 | &product-name; virtual machines support screen resolutions
|
---|
382 | many times that of a physical screen, allowing them to be
|
---|
383 | spread over a large number of screens attached to the host
|
---|
384 | system.
|
---|
385 | </para>
|
---|
386 | </listitem>
|
---|
387 |
|
---|
388 | <listitem>
|
---|
389 | <para>
|
---|
390 | <emphasis role="bold">Built-in iSCSI support.</emphasis>
|
---|
391 | This unique feature enables you to connect a virtual
|
---|
392 | machine directly to an iSCSI storage server without going
|
---|
393 | through the host system. The VM accesses the iSCSI target
|
---|
394 | directly without the extra overhead that is required for
|
---|
395 | virtualizing hard disks in container files. See
|
---|
396 | <xref linkend="storage-iscsi" />.
|
---|
397 | </para>
|
---|
398 | </listitem>
|
---|
399 |
|
---|
400 | <listitem>
|
---|
401 | <para>
|
---|
402 | <emphasis role="bold">PXE Network boot.</emphasis> The
|
---|
403 | integrated virtual network cards of &product-name; fully
|
---|
404 | support remote booting using the Preboot Execution
|
---|
405 | Environment (PXE).
|
---|
406 | </para>
|
---|
407 | </listitem>
|
---|
408 |
|
---|
409 | </itemizedlist>
|
---|
410 | </listitem>
|
---|
411 |
|
---|
412 | <listitem>
|
---|
413 | <para>
|
---|
414 | <emphasis role="bold">Multigeneration branched
|
---|
415 | snapshots.</emphasis> &product-name; can save arbitrary
|
---|
416 | snapshots of the state of the virtual machine. You can go back
|
---|
417 | in time and revert the virtual machine to any such snapshot
|
---|
418 | and start an alternative VM configuration from there,
|
---|
419 | effectively creating a whole snapshot tree. See
|
---|
420 | <xref linkend="snapshots" />. You can create and delete
|
---|
421 | snapshots while the virtual machine is running.
|
---|
422 | </para>
|
---|
423 | </listitem>
|
---|
424 |
|
---|
425 | <listitem>
|
---|
426 | <para>
|
---|
427 | <emphasis role="bold">VM groups.</emphasis> &product-name;
|
---|
428 | provides a groups feature that enables the user to organize
|
---|
429 | and control virtual machines collectively, as well as
|
---|
430 | individually. In addition to basic groups, it is also possible
|
---|
431 | for any VM to be in more than one group, and for groups to be
|
---|
432 | nested in a hierarchy. This means you can have groups of
|
---|
433 | groups. In general, the operations that can be performed on
|
---|
434 | groups are the same as those that can be applied to individual
|
---|
435 | VMs: Start, Pause, Reset, Close (Save state, Send Shutdown,
|
---|
436 | Poweroff), Discard Saved State, Show in File System, Sort.
|
---|
437 | </para>
|
---|
438 | </listitem>
|
---|
439 |
|
---|
440 | <listitem>
|
---|
441 | <para>
|
---|
442 | <emphasis role="bold">Clean architecture and unprecedented
|
---|
443 | modularity.</emphasis> &product-name; has an extremely modular
|
---|
444 | design with well-defined internal programming interfaces and a
|
---|
445 | clean separation of client and server code. This makes it easy
|
---|
446 | to control it from several interfaces at once. For example,
|
---|
447 | you can start a VM simply by clicking on a button in the
|
---|
448 | &product-name; graphical user interface and then control that
|
---|
449 | machine from the command line, or even remotely. See
|
---|
450 | <xref linkend="frontends" />.
|
---|
451 | </para>
|
---|
452 |
|
---|
453 | <para>
|
---|
454 | Due to its modular architecture, &product-name; can also
|
---|
455 | expose its full functionality and configurability through a
|
---|
456 | comprehensive <emphasis role="bold">software development kit
|
---|
457 | (SDK),</emphasis> which enables integration of &product-name;
|
---|
458 | with other software systems. See
|
---|
459 | <xref linkend="VirtualBoxAPI" />.
|
---|
460 | </para>
|
---|
461 | </listitem>
|
---|
462 |
|
---|
463 | <listitem>
|
---|
464 | <para>
|
---|
465 | <emphasis role="bold">Remote machine display.</emphasis> The
|
---|
466 | VirtualBox Remote Desktop Extension (VRDE) enables
|
---|
467 | high-performance remote access to any running virtual machine.
|
---|
468 | This extension supports the Remote Desktop Protocol (RDP)
|
---|
469 | originally built into Microsoft Windows, with special
|
---|
470 | additions for full client USB support.
|
---|
471 | </para>
|
---|
472 |
|
---|
473 | <para>
|
---|
474 | The VRDE does not rely on the RDP server that is built into
|
---|
475 | Microsoft Windows. Instead, the VRDE is plugged directly into
|
---|
476 | the virtualization layer. As a result, it works with guest
|
---|
477 | OSes other than Windows, even in text mode, and does not
|
---|
478 | require application support in the virtual machine either. The
|
---|
479 | VRDE is described in detail in <xref linkend="vrde" />.
|
---|
480 | </para>
|
---|
481 |
|
---|
482 | <para>
|
---|
483 | On top of this special capacity, &product-name; offers you
|
---|
484 | more unique features:
|
---|
485 | </para>
|
---|
486 |
|
---|
487 | <itemizedlist>
|
---|
488 |
|
---|
489 | <listitem>
|
---|
490 | <para>
|
---|
491 | <emphasis role="bold">Extensible RDP
|
---|
492 | authentication.</emphasis> &product-name; already supports
|
---|
493 | Winlogon on Windows and PAM on Linux for RDP
|
---|
494 | authentication. In addition, it includes an easy-to-use
|
---|
495 | SDK which enables you to create arbitrary interfaces for
|
---|
496 | other methods of authentication. See
|
---|
497 | <xref linkend="vbox-auth" />.
|
---|
498 | </para>
|
---|
499 | </listitem>
|
---|
500 |
|
---|
501 | <listitem>
|
---|
502 | <para>
|
---|
503 | <emphasis role="bold">USB over RDP.</emphasis> Using RDP
|
---|
504 | virtual channel support, &product-name; also enables you
|
---|
505 | to connect arbitrary USB devices locally to a virtual
|
---|
506 | machine which is running remotely on an &product-name; RDP
|
---|
507 | server. See <xref linkend="usb-over-rdp" />.
|
---|
508 | </para>
|
---|
509 | </listitem>
|
---|
510 |
|
---|
511 | </itemizedlist>
|
---|
512 | </listitem>
|
---|
513 |
|
---|
514 | </itemizedlist>
|
---|
515 |
|
---|
516 | </sect1>
|
---|
517 |
|
---|
518 | <sect1 id="hostossupport">
|
---|
519 |
|
---|
520 | <title>Supported Host Operating Systems</title>
|
---|
521 |
|
---|
522 | <para>
|
---|
523 | Currently, &product-name; runs on the following host OSes:
|
---|
524 | </para>
|
---|
525 |
|
---|
526 | <itemizedlist>
|
---|
527 |
|
---|
528 | <listitem>
|
---|
529 | <para>
|
---|
530 | <emphasis role="bold">Windows hosts (64-bit):</emphasis>
|
---|
531 | </para>
|
---|
532 |
|
---|
533 | <itemizedlist>
|
---|
534 |
|
---|
535 | <listitem>
|
---|
536 | <para>
|
---|
537 | Windows 8.1
|
---|
538 | </para>
|
---|
539 | </listitem>
|
---|
540 |
|
---|
541 | <listitem>
|
---|
542 | <para>
|
---|
543 | Windows 10 RTM (1507 / 2015 LTSB) build 10240
|
---|
544 | </para>
|
---|
545 | </listitem>
|
---|
546 |
|
---|
547 | <listitem>
|
---|
548 | <para>
|
---|
549 | Windows 10 Anniversary Update (1607 / 2016 LTSB) build
|
---|
550 | 14393
|
---|
551 | </para>
|
---|
552 | </listitem>
|
---|
553 |
|
---|
554 | <listitem>
|
---|
555 | <para>
|
---|
556 | Windows 10 Fall Creators Update (1709) build 16299
|
---|
557 | </para>
|
---|
558 | </listitem>
|
---|
559 |
|
---|
560 | <listitem>
|
---|
561 | <para>
|
---|
562 | Windows 10 April 2018 Update (1803) build 17134
|
---|
563 | </para>
|
---|
564 | </listitem>
|
---|
565 |
|
---|
566 | <listitem>
|
---|
567 | <para>
|
---|
568 | Windows 10 October 2018 Update (1809 / 2019 LTSC) build
|
---|
569 | 17763
|
---|
570 | </para>
|
---|
571 | </listitem>
|
---|
572 |
|
---|
573 | <listitem>
|
---|
574 | <para>
|
---|
575 | Windows 10 May 2019 Update (19H1 / 1903) build 18362
|
---|
576 | </para>
|
---|
577 | </listitem>
|
---|
578 |
|
---|
579 | <listitem>
|
---|
580 | <para>
|
---|
581 | Windows 10 November 2019 Update (19H2 / 1909) build 18363
|
---|
582 | </para>
|
---|
583 | </listitem>
|
---|
584 |
|
---|
585 | <listitem>
|
---|
586 | <para>
|
---|
587 | Windows Server 2012
|
---|
588 | </para>
|
---|
589 | </listitem>
|
---|
590 |
|
---|
591 | <listitem>
|
---|
592 | <para>
|
---|
593 | Windows Server 2012 R2
|
---|
594 | </para>
|
---|
595 | </listitem>
|
---|
596 |
|
---|
597 | <listitem>
|
---|
598 | <para>
|
---|
599 | Windows Server 2016
|
---|
600 | </para>
|
---|
601 | </listitem>
|
---|
602 |
|
---|
603 | <listitem>
|
---|
604 | <para>
|
---|
605 | Windows Server 2019
|
---|
606 | </para>
|
---|
607 | </listitem>
|
---|
608 |
|
---|
609 | </itemizedlist>
|
---|
610 | </listitem>
|
---|
611 |
|
---|
612 | <listitem>
|
---|
613 | <para>
|
---|
614 | <emphasis role="bold">Mac OS X hosts (64-bit):</emphasis>
|
---|
615 | </para>
|
---|
616 |
|
---|
617 | <itemizedlist>
|
---|
618 |
|
---|
619 | <listitem>
|
---|
620 | <para>
|
---|
621 | 10.13 (High Sierra)
|
---|
622 | </para>
|
---|
623 | </listitem>
|
---|
624 |
|
---|
625 | <listitem>
|
---|
626 | <para>
|
---|
627 | 10.14 (Mojave)
|
---|
628 | </para>
|
---|
629 | </listitem>
|
---|
630 |
|
---|
631 | <listitem>
|
---|
632 | <para>
|
---|
633 | 10.15 (Catalina)
|
---|
634 | </para>
|
---|
635 | </listitem>
|
---|
636 |
|
---|
637 | </itemizedlist>
|
---|
638 |
|
---|
639 | <para>
|
---|
640 | Intel hardware is required. See also
|
---|
641 | <xref linkend="KnownIssues" />.
|
---|
642 | </para>
|
---|
643 | </listitem>
|
---|
644 |
|
---|
645 | <listitem>
|
---|
646 | <para>
|
---|
647 | <emphasis role="bold">Linux hosts (64-bit).</emphasis>
|
---|
648 | Includes the following:
|
---|
649 | </para>
|
---|
650 |
|
---|
651 | <itemizedlist>
|
---|
652 |
|
---|
653 | <listitem>
|
---|
654 | <para>
|
---|
655 | Ubuntu 18.04 LTS, 19.03 and 19.10
|
---|
656 | </para>
|
---|
657 | </listitem>
|
---|
658 |
|
---|
659 | <listitem>
|
---|
660 | <para>
|
---|
661 | Debian GNU/Linux 9 ("Stretch") and 10 ("Buster")
|
---|
662 | </para>
|
---|
663 | </listitem>
|
---|
664 |
|
---|
665 | <listitem>
|
---|
666 | <para>
|
---|
667 | Oracle Linux 6, 7 and 8
|
---|
668 | </para>
|
---|
669 | </listitem>
|
---|
670 |
|
---|
671 | <listitem>
|
---|
672 | <para>
|
---|
673 | CentOS/Red Hat Enterprise Linux 6, 7 and 8
|
---|
674 | </para>
|
---|
675 | </listitem>
|
---|
676 |
|
---|
677 | <listitem>
|
---|
678 | <para>
|
---|
679 | Fedora 30 and 31
|
---|
680 | </para>
|
---|
681 | </listitem>
|
---|
682 |
|
---|
683 | <listitem>
|
---|
684 | <para>
|
---|
685 | Gentoo Linux
|
---|
686 | </para>
|
---|
687 | </listitem>
|
---|
688 |
|
---|
689 | <listitem>
|
---|
690 | <para>
|
---|
691 | SUSE Linux Enterprise server 12 and 15
|
---|
692 | </para>
|
---|
693 | </listitem>
|
---|
694 |
|
---|
695 | <listitem>
|
---|
696 | <para>
|
---|
697 | openSUSE Leap 15.1
|
---|
698 | </para>
|
---|
699 | </listitem>
|
---|
700 |
|
---|
701 | </itemizedlist>
|
---|
702 |
|
---|
703 | <para>
|
---|
704 | It should be possible to use &product-name; on most systems
|
---|
705 | based on Linux kernel 2.6, 3.x, 4.x or 5.x using either the
|
---|
706 | &product-name; installer or by doing a manual installation.
|
---|
707 | See <xref linkend="install-linux-host" />. However, the
|
---|
708 | formally tested and supported Linux distributions are those
|
---|
709 | for which we offer a dedicated package.
|
---|
710 | </para>
|
---|
711 |
|
---|
712 | <para>
|
---|
713 | Note that Linux 2.4-based host OSes are no longer supported.
|
---|
714 | </para>
|
---|
715 | </listitem>
|
---|
716 |
|
---|
717 | <listitem>
|
---|
718 | <para>
|
---|
719 | <emphasis role="bold">Oracle Solaris hosts (64-bit
|
---|
720 | only).</emphasis> The following versions are supported with
|
---|
721 | the restrictions listed in <xref linkend="KnownIssues" />:
|
---|
722 | </para>
|
---|
723 |
|
---|
724 | <itemizedlist>
|
---|
725 |
|
---|
726 | <listitem>
|
---|
727 | <para>
|
---|
728 | Oracle Solaris 11
|
---|
729 | </para>
|
---|
730 | </listitem>
|
---|
731 |
|
---|
732 | </itemizedlist>
|
---|
733 | </listitem>
|
---|
734 |
|
---|
735 | </itemizedlist>
|
---|
736 |
|
---|
737 | <para>
|
---|
738 | Note that any feature which is marked as
|
---|
739 | <emphasis>experimental</emphasis> is not supported. Feedback and
|
---|
740 | suggestions about such features are welcome.
|
---|
741 | </para>
|
---|
742 |
|
---|
743 | <sect2 id="hostcpurequirements">
|
---|
744 |
|
---|
745 | <title>Host CPU Requirements</title>
|
---|
746 |
|
---|
747 | <para>
|
---|
748 | SSE2 (Streaming SIMD Extensions 2) support is required for host
|
---|
749 | CPUs.
|
---|
750 | </para>
|
---|
751 |
|
---|
752 | </sect2>
|
---|
753 |
|
---|
754 | </sect1>
|
---|
755 |
|
---|
756 | <sect1 id="intro-installing">
|
---|
757 |
|
---|
758 | <title>Installing &product-name; and Extension Packs</title>
|
---|
759 |
|
---|
760 | <para>
|
---|
761 | &product-name; comes in many different packages, and installation
|
---|
762 | depends on your host OS. If you have installed software before,
|
---|
763 | installation should be straightforward. On each host platform,
|
---|
764 | &product-name; uses the installation method that is most common
|
---|
765 | and easy to use. If you run into trouble or have special
|
---|
766 | requirements, see <xref linkend="installation" /> for details
|
---|
767 | about the various installation methods.
|
---|
768 | </para>
|
---|
769 |
|
---|
770 | <para>
|
---|
771 | &product-name; is split into the following components:
|
---|
772 | </para>
|
---|
773 |
|
---|
774 | <itemizedlist>
|
---|
775 |
|
---|
776 | <listitem>
|
---|
777 | <para>
|
---|
778 | <emphasis role="bold">Base package.</emphasis> The base
|
---|
779 | package consists of all open source components and is licensed
|
---|
780 | under the GNU General Public License V2.
|
---|
781 | </para>
|
---|
782 | </listitem>
|
---|
783 |
|
---|
784 | <listitem>
|
---|
785 | <para>
|
---|
786 | <emphasis role="bold">Extension packs.</emphasis> Additional
|
---|
787 | extension packs can be downloaded which extend the
|
---|
788 | functionality of the &product-name; base package. Currently,
|
---|
789 | Oracle provides a single extension pack, available from:
|
---|
790 | <ulink url="http://www.virtualbox.org" />. The extension pack
|
---|
791 | provides the following added functionality:
|
---|
792 | </para>
|
---|
793 |
|
---|
794 | <itemizedlist>
|
---|
795 |
|
---|
796 | <listitem>
|
---|
797 | <para>
|
---|
798 | The virtual USB 2.0 (EHCI) device. See
|
---|
799 | <xref linkend="settings-usb" />.
|
---|
800 | </para>
|
---|
801 | </listitem>
|
---|
802 |
|
---|
803 | <listitem>
|
---|
804 | <para>
|
---|
805 | The virtual USB 3.0 (xHCI) device. See
|
---|
806 | <xref linkend="settings-usb" />.
|
---|
807 | </para>
|
---|
808 | </listitem>
|
---|
809 |
|
---|
810 | <listitem>
|
---|
811 | <para>
|
---|
812 | VirtualBox Remote Desktop Protocol (VRDP) support. See
|
---|
813 | <xref linkend="vrde" />.
|
---|
814 | </para>
|
---|
815 | </listitem>
|
---|
816 |
|
---|
817 | <listitem>
|
---|
818 | <para>
|
---|
819 | Host webcam passthrough. See
|
---|
820 | <xref linkend="webcam-passthrough" />.
|
---|
821 | </para>
|
---|
822 | </listitem>
|
---|
823 |
|
---|
824 | <listitem>
|
---|
825 | <para>
|
---|
826 | Intel PXE boot ROM.
|
---|
827 | </para>
|
---|
828 | </listitem>
|
---|
829 |
|
---|
830 | <!-- <listitem>
|
---|
831 | <para>
|
---|
832 | Experimental support for PCI passthrough on Linux hosts.
|
---|
833 | See <xref linkend="pcipassthrough" />.
|
---|
834 | </para>
|
---|
835 | </listitem>-->
|
---|
836 |
|
---|
837 | <listitem>
|
---|
838 | <para>
|
---|
839 | Disk image encryption with AES algorithm. See
|
---|
840 | <xref linkend="diskencryption" />.
|
---|
841 | </para>
|
---|
842 | </listitem>
|
---|
843 |
|
---|
844 | <listitem>
|
---|
845 | <para>
|
---|
846 | Cloud integration features. See <xref linkend="ovf"/>.
|
---|
847 | </para>
|
---|
848 | </listitem>
|
---|
849 |
|
---|
850 | </itemizedlist>
|
---|
851 |
|
---|
852 | <para>
|
---|
853 | &product-name; extension packages have a
|
---|
854 | <filename>.vbox-extpack</filename> file name extension. To
|
---|
855 | install an extension, simply double-click on the package file
|
---|
856 | and a <emphasis role="bold">Network Operations
|
---|
857 | Manager</emphasis> window is shown to guide you through the
|
---|
858 | required steps.
|
---|
859 | </para>
|
---|
860 |
|
---|
861 | <para>
|
---|
862 | To view the extension packs that are currently installed,
|
---|
863 | start the VirtualBox Manager, as shown in
|
---|
864 | <xref linkend="intro-starting"/>. From the
|
---|
865 | <emphasis role="bold">File</emphasis> menu, select
|
---|
866 | <emphasis role="bold">Preferences</emphasis>. In the window
|
---|
867 | that displays, go to the
|
---|
868 | <emphasis role="bold">Extensions</emphasis> category. This
|
---|
869 | shows you the extensions which are currently installed, and
|
---|
870 | enables you to remove a package or add a new package.
|
---|
871 | </para>
|
---|
872 |
|
---|
873 | <para>
|
---|
874 | Alternatively, you can use the <command>VBoxManage</command>
|
---|
875 | command line. See <xref linkend="vboxmanage-extpack" />.
|
---|
876 | </para>
|
---|
877 | </listitem>
|
---|
878 |
|
---|
879 | </itemizedlist>
|
---|
880 |
|
---|
881 | </sect1>
|
---|
882 |
|
---|
883 | <sect1 id="intro-starting">
|
---|
884 |
|
---|
885 | <title>Starting &product-name;</title>
|
---|
886 |
|
---|
887 | <para>
|
---|
888 | After installation, you can start &product-name; as follows:
|
---|
889 | </para>
|
---|
890 |
|
---|
891 | <itemizedlist>
|
---|
892 |
|
---|
893 | <listitem>
|
---|
894 | <para>
|
---|
895 | On a Windows host, in the
|
---|
896 | <emphasis role="bold">Programs</emphasis> menu, click on the
|
---|
897 | item in the <emphasis role="bold">VirtualBox</emphasis> group.
|
---|
898 | On some Windows platforms, you can also enter
|
---|
899 | <command>VirtualBox</command> in the search box of the
|
---|
900 | <emphasis role="bold">Start</emphasis> menu.
|
---|
901 | </para>
|
---|
902 | </listitem>
|
---|
903 |
|
---|
904 | <listitem>
|
---|
905 | <para>
|
---|
906 | On a Mac OS X host, in the Finder, double-click on the
|
---|
907 | <emphasis role="bold">VirtualBox</emphasis> item in the
|
---|
908 | Applications folder. You may want to drag this item onto your
|
---|
909 | Dock.
|
---|
910 | </para>
|
---|
911 | </listitem>
|
---|
912 |
|
---|
913 | <listitem>
|
---|
914 | <para>
|
---|
915 | On a Linux or Oracle Solaris host, depending on your desktop
|
---|
916 | environment, an &product-name; item may have been placed in
|
---|
917 | either the System or System Tools group of your
|
---|
918 | <emphasis role="bold">Applications</emphasis> menu.
|
---|
919 | Alternatively, you can enter <command>VirtualBox</command> in
|
---|
920 | a terminal window.
|
---|
921 | </para>
|
---|
922 | </listitem>
|
---|
923 |
|
---|
924 | </itemizedlist>
|
---|
925 |
|
---|
926 | <para>
|
---|
927 | When you start &product-name; for the first time, a window like
|
---|
928 | the following is displayed:
|
---|
929 | </para>
|
---|
930 |
|
---|
931 | <figure id="fig-vbox-manager-initial">
|
---|
932 | <title>VirtualBox Manager Window, After Initial Startup</title>
|
---|
933 | <mediaobject>
|
---|
934 | <imageobject>
|
---|
935 | <imagedata align="center" fileref="images/virtualbox-main-empty.png"
|
---|
936 | width="10cm" />
|
---|
937 | </imageobject>
|
---|
938 | </mediaobject>
|
---|
939 | </figure>
|
---|
940 |
|
---|
941 | <para>
|
---|
942 | This window is called the <emphasis role="bold">VirtualBox
|
---|
943 | Manager</emphasis>. The left pane will later list all your virtual
|
---|
944 | machines. Since you have not yet created any virtual machines,
|
---|
945 | this list is empty. The <emphasis role="bold">Tools</emphasis>
|
---|
946 | button provides access to user tools, such as the Virtual Media
|
---|
947 | Manager.
|
---|
948 | </para>
|
---|
949 |
|
---|
950 | <para>
|
---|
951 | The pane on the right displays the properties of the currently
|
---|
952 | selected virtual machine. Since you do not have any machines yet,
|
---|
953 | the pane displays a welcome message.
|
---|
954 | </para>
|
---|
955 |
|
---|
956 | <para>
|
---|
957 | The buttons on the right pane are used to create and work with
|
---|
958 | VMs.
|
---|
959 | </para>
|
---|
960 |
|
---|
961 | <para>
|
---|
962 | The following figure gives an idea of what &product-name; might
|
---|
963 | look like after you have created some VMs.
|
---|
964 | </para>
|
---|
965 |
|
---|
966 | <figure id="fig-vbox-manager-populated">
|
---|
967 | <title>VirtualBox Manager Window, After Creating Virtual Machines</title>
|
---|
968 | <mediaobject>
|
---|
969 | <imageobject>
|
---|
970 | <imagedata align="center" fileref="images/virtualbox-main.png"
|
---|
971 | width="12cm" />
|
---|
972 | </imageobject>
|
---|
973 | </mediaobject>
|
---|
974 | </figure>
|
---|
975 |
|
---|
976 | </sect1>
|
---|
977 |
|
---|
978 | <sect1 id="gui-createvm">
|
---|
979 |
|
---|
980 | <title>Creating Your First Virtual Machine</title>
|
---|
981 |
|
---|
982 | <para>
|
---|
983 | Click <emphasis role="bold">New</emphasis> in the VirtualBox
|
---|
984 | Manager window. A wizard is shown, to guide you through setting up
|
---|
985 | a new virtual machine (VM).
|
---|
986 | </para>
|
---|
987 |
|
---|
988 | <figure id="fig-new-vm-name">
|
---|
989 | <title>Creating a New Virtual Machine: Name and Operating System</title>
|
---|
990 | <mediaobject>
|
---|
991 | <imageobject>
|
---|
992 | <imagedata align="center" fileref="images/create-vm-1.png"
|
---|
993 | width="10cm" />
|
---|
994 | </imageobject>
|
---|
995 | </mediaobject>
|
---|
996 | </figure>
|
---|
997 |
|
---|
998 | <para>
|
---|
999 | On the following pages, the wizard will ask you for the bare
|
---|
1000 | minimum of information that is needed to create a VM, in
|
---|
1001 | particular:
|
---|
1002 | </para>
|
---|
1003 |
|
---|
1004 | <orderedlist>
|
---|
1005 |
|
---|
1006 | <listitem>
|
---|
1007 | <para>
|
---|
1008 | The <emphasis role="bold">Name</emphasis> of the VM you choose
|
---|
1009 | is shown in the machine list of the VirtualBox Manager window
|
---|
1010 | and is also used for the VM's files on disk.
|
---|
1011 | </para>
|
---|
1012 |
|
---|
1013 | <para>
|
---|
1014 | Be sure to assign each VM an informative name that describes
|
---|
1015 | the OS and software running on the VM. For example,
|
---|
1016 | <literal>Windows 10 with Visio</literal>.
|
---|
1017 | </para>
|
---|
1018 | </listitem>
|
---|
1019 |
|
---|
1020 | <listitem>
|
---|
1021 | <para>
|
---|
1022 | The <emphasis role="bold">Machine Folder</emphasis> is the
|
---|
1023 | location where VMs are stored on your computer. The default
|
---|
1024 | folder location is shown.
|
---|
1025 | </para>
|
---|
1026 | </listitem>
|
---|
1027 |
|
---|
1028 | <listitem>
|
---|
1029 | <para>
|
---|
1030 | For <emphasis role="bold">Operating System Type</emphasis>,
|
---|
1031 | select the OS that you want to install. The supported OSes are
|
---|
1032 | grouped. If you want to install something very unusual that is
|
---|
1033 | not listed, select <emphasis role="bold">Other</emphasis>.
|
---|
1034 | Depending on your selection, &product-name; will enable or
|
---|
1035 | disable certain VM settings that your guest OS may require.
|
---|
1036 | This is particularly important for 64-bit guests. See
|
---|
1037 | <xref linkend="intro-64bitguests" />. It is therefore
|
---|
1038 | recommended to always set it to the correct value.
|
---|
1039 | </para>
|
---|
1040 | </listitem>
|
---|
1041 |
|
---|
1042 | <listitem>
|
---|
1043 | <para>
|
---|
1044 | On the next page, select the <emphasis role="bold">Memory
|
---|
1045 | (RAM)</emphasis> that &product-name; should allocate every
|
---|
1046 | time the virtual machine is started. The amount of memory
|
---|
1047 | given here will be taken away from your host machine and
|
---|
1048 | presented to the guest OS, which will report this size as the
|
---|
1049 | virtual computer's installed RAM.
|
---|
1050 | </para>
|
---|
1051 |
|
---|
1052 | <caution>
|
---|
1053 | <para>
|
---|
1054 | Choose this setting carefully. The memory you give to the VM
|
---|
1055 | will not be available to your host OS while the VM is
|
---|
1056 | running, so do not specify more than you can spare.
|
---|
1057 | </para>
|
---|
1058 |
|
---|
1059 | <para>
|
---|
1060 | For example, if your host machine has 4 GB of RAM and you
|
---|
1061 | enter 2048 MB as the amount of RAM for a particular virtual
|
---|
1062 | machine, you will only have 2 GB left for all the other
|
---|
1063 | software on your host while the VM is running. If you run
|
---|
1064 | two VMs at the same time, even more memory will be allocated
|
---|
1065 | for the second VM, which may not even be able to start if
|
---|
1066 | that memory is not available.
|
---|
1067 | </para>
|
---|
1068 |
|
---|
1069 | <para>
|
---|
1070 | On the other hand, you should specify as much as your guest
|
---|
1071 | OS and your applications will require to run properly. A
|
---|
1072 | guest OS may require at least 1 or 2 GB of memory to install
|
---|
1073 | and boot up. For best performance, more memory than that may
|
---|
1074 | be required.
|
---|
1075 | </para>
|
---|
1076 | </caution>
|
---|
1077 |
|
---|
1078 | <para>
|
---|
1079 | Always ensure that the host OS has enough RAM remaining. If
|
---|
1080 | insufficient RAM remains, the system might excessively swap
|
---|
1081 | memory to the hard disk, which effectively brings the host
|
---|
1082 | system to a standstill.
|
---|
1083 | </para>
|
---|
1084 |
|
---|
1085 | <para>
|
---|
1086 | As with the other settings, you can change this setting later,
|
---|
1087 | after you have created the VM.
|
---|
1088 | </para>
|
---|
1089 | </listitem>
|
---|
1090 |
|
---|
1091 | <listitem>
|
---|
1092 | <para>
|
---|
1093 | Next, you must specify a <emphasis role="bold">Virtual Hard
|
---|
1094 | Disk</emphasis> for your VM.
|
---|
1095 | </para>
|
---|
1096 |
|
---|
1097 | <para>
|
---|
1098 | There are many and potentially complicated ways in which
|
---|
1099 | &product-name; can provide hard disk space to a VM, see
|
---|
1100 | <xref linkend="storage" />, but the most common way is to use
|
---|
1101 | a large image file on your physical hard disk, whose contents
|
---|
1102 | &product-name; presents to your VM as if it were a complete
|
---|
1103 | hard disk. This file then represents an entire hard disk, so
|
---|
1104 | you can even copy it to another host and use it with another
|
---|
1105 | &product-name; installation.
|
---|
1106 | </para>
|
---|
1107 |
|
---|
1108 | <para>
|
---|
1109 | The wizard displays the following window:
|
---|
1110 | </para>
|
---|
1111 |
|
---|
1112 | <figure id="fig-new-vm-hard-disk">
|
---|
1113 | <title>Creating a New Virtual Machine: Hard Disk</title>
|
---|
1114 | <mediaobject>
|
---|
1115 | <imageobject>
|
---|
1116 | <imagedata align="center" fileref="images/create-vm-2.png"
|
---|
1117 | width="10cm" />
|
---|
1118 | </imageobject>
|
---|
1119 | </mediaobject>
|
---|
1120 | </figure>
|
---|
1121 |
|
---|
1122 | <para>
|
---|
1123 | At this screen, you have the following options:
|
---|
1124 | </para>
|
---|
1125 |
|
---|
1126 | <itemizedlist>
|
---|
1127 |
|
---|
1128 | <listitem>
|
---|
1129 | <para>
|
---|
1130 | To create a new, empty virtual hard disk, click the
|
---|
1131 | <emphasis role="bold">Create</emphasis> button.
|
---|
1132 | </para>
|
---|
1133 | </listitem>
|
---|
1134 |
|
---|
1135 | <listitem>
|
---|
1136 | <para>
|
---|
1137 | You can pick an <emphasis>existing</emphasis> disk image
|
---|
1138 | file.
|
---|
1139 | </para>
|
---|
1140 |
|
---|
1141 | <para>
|
---|
1142 | The drop-down list presented in the window lists all disk
|
---|
1143 | images which are currently remembered by &product-name;.
|
---|
1144 | These disk images are currently attached to a virtual
|
---|
1145 | machine, or have been attached to a virtual machine.
|
---|
1146 | </para>
|
---|
1147 |
|
---|
1148 | <para>
|
---|
1149 | Alternatively, click on the small
|
---|
1150 | <emphasis role="bold">folder icon</emphasis> next to the
|
---|
1151 | drop-down list. In the displayed file dialog, you can
|
---|
1152 | click <emphasis role="bold">Add</emphasis> to select any
|
---|
1153 | disk image file on your host disk.
|
---|
1154 | </para>
|
---|
1155 | </listitem>
|
---|
1156 |
|
---|
1157 | </itemizedlist>
|
---|
1158 |
|
---|
1159 | <para>
|
---|
1160 | If you are using &product-name; for the first time, you will
|
---|
1161 | want to create a new disk image. Click the
|
---|
1162 | <emphasis role="bold">Create</emphasis> button.
|
---|
1163 | </para>
|
---|
1164 |
|
---|
1165 | <para>
|
---|
1166 | This displays another window, the <emphasis role="bold">Create
|
---|
1167 | Virtual Hard Disk Wizard</emphasis> wizard. This wizard helps
|
---|
1168 | you to create a new disk image file in the new virtual
|
---|
1169 | machine's folder.
|
---|
1170 | </para>
|
---|
1171 |
|
---|
1172 | <para>
|
---|
1173 | &product-name; supports the following types of image files:
|
---|
1174 | </para>
|
---|
1175 |
|
---|
1176 | <itemizedlist>
|
---|
1177 |
|
---|
1178 | <listitem>
|
---|
1179 | <para>
|
---|
1180 | A <emphasis role="bold">dynamically allocated
|
---|
1181 | file</emphasis> only grows in size when the guest actually
|
---|
1182 | stores data on its virtual hard disk. Therefore, this file
|
---|
1183 | is small initially. As the drive is filled with data, the
|
---|
1184 | file grows to the specified size.
|
---|
1185 | </para>
|
---|
1186 | </listitem>
|
---|
1187 |
|
---|
1188 | <listitem>
|
---|
1189 | <para>
|
---|
1190 | A <emphasis role="bold">fixed-size file</emphasis>
|
---|
1191 | immediately occupies the file specified, even if only a
|
---|
1192 | fraction of that virtual hard disk space is actually in
|
---|
1193 | use. While occupying much more space, a fixed-size file
|
---|
1194 | incurs less overhead and is therefore slightly faster than
|
---|
1195 | a dynamically allocated file.
|
---|
1196 | </para>
|
---|
1197 | </listitem>
|
---|
1198 |
|
---|
1199 | </itemizedlist>
|
---|
1200 |
|
---|
1201 | <para>
|
---|
1202 | For details about the differences, see
|
---|
1203 | <xref linkend="vdidetails" />.
|
---|
1204 | </para>
|
---|
1205 |
|
---|
1206 | <para>
|
---|
1207 | To prevent your physical hard disk (host OS) from filling up,
|
---|
1208 | &product-name; limits the size of the image file. But the
|
---|
1209 | image file must be large enough to hold the contents of the
|
---|
1210 | guest OS and the applications you want to install. For a
|
---|
1211 | Windows or Linux guest, you will probably need several
|
---|
1212 | gigabytes for any serious use. The limit of the image file
|
---|
1213 | size can be changed later, see
|
---|
1214 | <xref linkend="vboxmanage-modifymedium"/>.
|
---|
1215 | </para>
|
---|
1216 |
|
---|
1217 | <figure id="fig-new-vm-vdi">
|
---|
1218 | <title>Creating a New Virtual Machine: File Location and Size</title>
|
---|
1219 | <mediaobject>
|
---|
1220 | <imageobject>
|
---|
1221 | <imagedata align="center" fileref="images/create-vdi-1.png"
|
---|
1222 | width="10cm" />
|
---|
1223 | </imageobject>
|
---|
1224 | </mediaobject>
|
---|
1225 | </figure>
|
---|
1226 |
|
---|
1227 | <para>
|
---|
1228 | After having selected or created your image file, click
|
---|
1229 | <emphasis role="bold">Next</emphasis> to go to the next page.
|
---|
1230 | </para>
|
---|
1231 | </listitem>
|
---|
1232 |
|
---|
1233 | <listitem>
|
---|
1234 | <para>
|
---|
1235 | Click <emphasis role="bold">Create</emphasis>, to create your
|
---|
1236 | new virtual machine. The virtual machine is displayed in the
|
---|
1237 | list on the left side of the VirtualBox Manager window, with
|
---|
1238 | the name that you entered initially.
|
---|
1239 | </para>
|
---|
1240 | </listitem>
|
---|
1241 |
|
---|
1242 | </orderedlist>
|
---|
1243 |
|
---|
1244 | <note>
|
---|
1245 | <para>
|
---|
1246 | After becoming familiar with the use of wizards, consider using
|
---|
1247 | the Expert Mode available in some wizards. Where available, this
|
---|
1248 | is selectable using a button, and speeds up the process of using
|
---|
1249 | wizards.
|
---|
1250 | </para>
|
---|
1251 | </note>
|
---|
1252 |
|
---|
1253 | </sect1>
|
---|
1254 |
|
---|
1255 | <sect1 id="intro-running">
|
---|
1256 |
|
---|
1257 | <title>Running Your Virtual Machine</title>
|
---|
1258 |
|
---|
1259 | <para>
|
---|
1260 | To start a virtual machine, you have several options:
|
---|
1261 | </para>
|
---|
1262 |
|
---|
1263 | <itemizedlist>
|
---|
1264 |
|
---|
1265 | <listitem>
|
---|
1266 | <para>
|
---|
1267 | Double-click on the VM's entry in the list in the VirtualBox
|
---|
1268 | Manager window.
|
---|
1269 | </para>
|
---|
1270 | </listitem>
|
---|
1271 |
|
---|
1272 | <listitem>
|
---|
1273 | <para>
|
---|
1274 | Select the VM's entry in the list in the VirtualBox Manager
|
---|
1275 | window, and click <emphasis role="bold">Start</emphasis> at
|
---|
1276 | the top of the window.
|
---|
1277 | </para>
|
---|
1278 | </listitem>
|
---|
1279 |
|
---|
1280 | <listitem>
|
---|
1281 | <para>
|
---|
1282 | Go to the <filename>VirtualBox VMs</filename> folder in your
|
---|
1283 | system user's home directory. Find the subdirectory of the
|
---|
1284 | machine you want to start and double-click on the machine
|
---|
1285 | settings file. This file has a <filename>.vbox</filename> file
|
---|
1286 | extension.
|
---|
1287 | </para>
|
---|
1288 | </listitem>
|
---|
1289 |
|
---|
1290 | </itemizedlist>
|
---|
1291 |
|
---|
1292 | <para>
|
---|
1293 | Starting a virtual machine displays a new window, and the virtual
|
---|
1294 | machine which you selected will boot up. Everything which would
|
---|
1295 | normally be seen on the virtual system's monitor is shown in the
|
---|
1296 | window. See the screenshot image in
|
---|
1297 | <xref linkend="Introduction"/>.
|
---|
1298 | </para>
|
---|
1299 |
|
---|
1300 | <para>
|
---|
1301 | In general, you can use the virtual machine as you would use a
|
---|
1302 | real computer. There are couple of points worth mentioning
|
---|
1303 | however.
|
---|
1304 | </para>
|
---|
1305 |
|
---|
1306 | <sect2 id="intro-starting-vm-first-time">
|
---|
1307 |
|
---|
1308 | <title>Starting a New VM for the First Time</title>
|
---|
1309 |
|
---|
1310 | <para>
|
---|
1311 | When a VM is started for the first time, the
|
---|
1312 | <emphasis role="bold">First Start Wizard</emphasis>, is
|
---|
1313 | displayed. This wizard helps you to select an installation
|
---|
1314 | medium. Since the VM is created empty, it would otherwise behave
|
---|
1315 | just like a real computer with no OS installed. It will do
|
---|
1316 | nothing and display an error message that no bootable OS was
|
---|
1317 | found.
|
---|
1318 | </para>
|
---|
1319 |
|
---|
1320 | <para>
|
---|
1321 | For this reason, the wizard helps you to select a medium to
|
---|
1322 | install an OS from.
|
---|
1323 | </para>
|
---|
1324 |
|
---|
1325 | <itemizedlist>
|
---|
1326 |
|
---|
1327 | <listitem>
|
---|
1328 | <para>
|
---|
1329 | If you have physical CD or DVD media from which you want to
|
---|
1330 | install your guest OS, such as a Windows installation CD or
|
---|
1331 | DVD, put the media into your host's CD or DVD drive.
|
---|
1332 | </para>
|
---|
1333 |
|
---|
1334 | <para>
|
---|
1335 | In the wizard's drop-down list of installation media, select
|
---|
1336 | <emphasis role="bold">Host Drive</emphasis> with the correct
|
---|
1337 | drive letter. In the case of a Linux host, choose a device
|
---|
1338 | file. This will allow your VM to access the media in your
|
---|
1339 | host drive, and you can proceed to install from there.
|
---|
1340 | </para>
|
---|
1341 | </listitem>
|
---|
1342 |
|
---|
1343 | <listitem>
|
---|
1344 | <para>
|
---|
1345 | If you have downloaded installation media from the Internet
|
---|
1346 | in the form of an ISO image file such as with a Linux
|
---|
1347 | distribution, you would normally burn this file to an empty
|
---|
1348 | CD or DVD and proceed as described above. With
|
---|
1349 | &product-name; however, you can skip this step and mount the
|
---|
1350 | ISO file directly. &product-name; will then present this
|
---|
1351 | file as a CD or DVD-ROM drive to the virtual machine, much
|
---|
1352 | like it does with virtual hard disk images.
|
---|
1353 | </para>
|
---|
1354 |
|
---|
1355 | <para>
|
---|
1356 | In this case, the wizard's drop-down list contains a list of
|
---|
1357 | installation media that were previously used with
|
---|
1358 | &product-name;.
|
---|
1359 | </para>
|
---|
1360 |
|
---|
1361 | <para>
|
---|
1362 | If your medium is not in the list, especially if you are
|
---|
1363 | using &product-name; for the first time, click the small
|
---|
1364 | folder icon next to the drop-down list to display a standard
|
---|
1365 | file dialog. Here you can pick an image file on your host
|
---|
1366 | disks.
|
---|
1367 | </para>
|
---|
1368 | </listitem>
|
---|
1369 |
|
---|
1370 | </itemizedlist>
|
---|
1371 |
|
---|
1372 | <para>
|
---|
1373 | After completing the choices in the wizard, you will be able to
|
---|
1374 | install your OS.
|
---|
1375 | </para>
|
---|
1376 |
|
---|
1377 | </sect2>
|
---|
1378 |
|
---|
1379 | <sect2 id="keyb_mouse_normal">
|
---|
1380 |
|
---|
1381 | <title>Capturing and Releasing Keyboard and Mouse</title>
|
---|
1382 |
|
---|
1383 | <para>
|
---|
1384 | &product-name; provides a virtual USB tablet device to new
|
---|
1385 | virtual machines through which mouse events are communicated to
|
---|
1386 | the guest OS. If you are running a modern guest OS that can
|
---|
1387 | handle such devices, mouse support may work out of the box
|
---|
1388 | without the mouse being <emphasis>captured</emphasis> as
|
---|
1389 | described below. See <xref linkend="settings-motherboard" />.
|
---|
1390 | </para>
|
---|
1391 |
|
---|
1392 | <para>
|
---|
1393 | Otherwise, if the virtual machine detects only standard PS/2
|
---|
1394 | mouse and keyboard devices, since the OS in the virtual machine
|
---|
1395 | does not know that it is not running on a real computer, it
|
---|
1396 | expects to have exclusive control over your keyboard and mouse.
|
---|
1397 | But unless you are running the VM in full screen mode, your VM
|
---|
1398 | needs to share keyboard and mouse with other applications and
|
---|
1399 | possibly other VMs on your host.
|
---|
1400 | </para>
|
---|
1401 |
|
---|
1402 | <para>
|
---|
1403 | After installing a guest OS and before you install the Guest
|
---|
1404 | Additions, described later, either your VM or the rest of your
|
---|
1405 | computer can "own" the keyboard and the mouse. Both cannot own
|
---|
1406 | the keyboard and mouse at the same time. You will see a
|
---|
1407 | <emphasis>second</emphasis> mouse pointer which is always
|
---|
1408 | confined to the limits of the VM window. You activate the VM by
|
---|
1409 | clicking inside it.
|
---|
1410 | </para>
|
---|
1411 |
|
---|
1412 | <para>
|
---|
1413 | To return ownership of keyboard and mouse to your host OS,
|
---|
1414 | &product-name; reserves a special key on your keyboard: the
|
---|
1415 | <emphasis>Host key</emphasis>. By default, this is the
|
---|
1416 | <emphasis>right Ctrl key</emphasis> on your keyboard. On a Mac
|
---|
1417 | host, the default Host key is the left Command key. You can
|
---|
1418 | change this default in the &product-name; Global Settings. See
|
---|
1419 | <xref linkend="globalsettings" />. The current setting for the
|
---|
1420 | Host key is always displayed at the bottom right of your VM
|
---|
1421 | window.
|
---|
1422 | </para>
|
---|
1423 |
|
---|
1424 | <figure id="fig-host-key">
|
---|
1425 | <title>Host Key Setting on the Virtual Machine Task Bar</title>
|
---|
1426 | <mediaobject>
|
---|
1427 | <imageobject>
|
---|
1428 | <imagedata align="center" fileref="images/vm-hostkey.png"
|
---|
1429 | width="7cm" />
|
---|
1430 | </imageobject>
|
---|
1431 | </mediaobject>
|
---|
1432 |
|
---|
1433 | </figure>
|
---|
1434 |
|
---|
1435 | <para>
|
---|
1436 | This means the following:
|
---|
1437 | </para>
|
---|
1438 |
|
---|
1439 | <itemizedlist>
|
---|
1440 |
|
---|
1441 | <listitem>
|
---|
1442 | <para>
|
---|
1443 | Your <emphasis role="bold">keyboard</emphasis> is owned by
|
---|
1444 | the VM if the VM window on your host desktop has the
|
---|
1445 | keyboard focus. If you have many windows open in your guest
|
---|
1446 | OS, the window that has the focus in your VM is used. This
|
---|
1447 | means that if you want to enter text within your VM, click
|
---|
1448 | on the title bar of your VM window first.
|
---|
1449 | </para>
|
---|
1450 |
|
---|
1451 | <para>
|
---|
1452 | To release keyboard ownership, press the Host key. As
|
---|
1453 | explained above, this is typically the right Ctrl key.
|
---|
1454 | </para>
|
---|
1455 |
|
---|
1456 | <para>
|
---|
1457 | Note that while the VM owns the keyboard, some key
|
---|
1458 | sequences, such as Alt+Tab, will no longer be seen by the
|
---|
1459 | host, but will go to the guest instead. After you press the
|
---|
1460 | Host key to reenable the host keyboard, all key presses will
|
---|
1461 | go through the host again, so that sequences such as Alt+Tab
|
---|
1462 | will no longer reach the guest. For technical reasons it may
|
---|
1463 | not be possible for the VM to get all keyboard input even
|
---|
1464 | when it does own the keyboard. Examples of this are the
|
---|
1465 | Ctrl+Alt+Del sequence on Windows hosts or single keys
|
---|
1466 | grabbed by other applications on X11 hosts such as the GNOME
|
---|
1467 | desktop Locate Pointer feature.
|
---|
1468 | </para>
|
---|
1469 | </listitem>
|
---|
1470 |
|
---|
1471 | <listitem>
|
---|
1472 | <para>
|
---|
1473 | Your <emphasis role="bold">mouse</emphasis> is owned by the
|
---|
1474 | VM only after you have clicked in the VM window. The host
|
---|
1475 | mouse pointer will disappear, and your mouse will drive the
|
---|
1476 | guest's pointer instead of your normal mouse pointer.
|
---|
1477 | </para>
|
---|
1478 |
|
---|
1479 | <para>
|
---|
1480 | Note that mouse ownership is independent of that of the
|
---|
1481 | keyboard. Even after you have clicked on a titlebar to be
|
---|
1482 | able to enter text into the VM window, your mouse is not
|
---|
1483 | necessarily owned by the VM yet.
|
---|
1484 | </para>
|
---|
1485 |
|
---|
1486 | <para>
|
---|
1487 | To release ownership of your mouse by the VM, press the Host
|
---|
1488 | key.
|
---|
1489 | </para>
|
---|
1490 | </listitem>
|
---|
1491 |
|
---|
1492 | </itemizedlist>
|
---|
1493 |
|
---|
1494 | <para>
|
---|
1495 | As this behavior is inconvenient, &product-name; provides a set
|
---|
1496 | of tools and device drivers for guest systems called the
|
---|
1497 | &product-name; Guest Additions. These tools make VM keyboard and
|
---|
1498 | mouse operations much more seamless. Most importantly, the Guest
|
---|
1499 | Additions suppress the second "guest" mouse pointer and make
|
---|
1500 | your host mouse pointer work directly in the guest. See
|
---|
1501 | <xref linkend="guestadditions" />.
|
---|
1502 | </para>
|
---|
1503 |
|
---|
1504 | </sect2>
|
---|
1505 |
|
---|
1506 | <sect2 id="specialcharacters">
|
---|
1507 |
|
---|
1508 | <title>Typing Special Characters</title>
|
---|
1509 |
|
---|
1510 | <para>
|
---|
1511 | Some OSes expect certain key combinations to initiate certain
|
---|
1512 | procedures. The key combinations that you type into a VM might
|
---|
1513 | target the host OS, the &product-name; software, or the guest
|
---|
1514 | OS. The recipient of these keypresses depends on a number of
|
---|
1515 | factors, including the key combination itself.
|
---|
1516 | </para>
|
---|
1517 |
|
---|
1518 | <itemizedlist>
|
---|
1519 |
|
---|
1520 | <listitem>
|
---|
1521 | <para>
|
---|
1522 | Host OSes reserve certain key combinations for themselves.
|
---|
1523 | For example, you cannot use the
|
---|
1524 | <emphasis role="bold">Ctrl+Alt+Delete</emphasis> combination
|
---|
1525 | to reboot the guest OS in your VM because this key
|
---|
1526 | combination is usually hard-wired into the host OS. So, even
|
---|
1527 | though both the Windows and Linux OSes intercept this key
|
---|
1528 | combination, only the host OS would be rebooted.
|
---|
1529 | </para>
|
---|
1530 |
|
---|
1531 | <para>
|
---|
1532 | On Linux and Oracle Solaris hosts, which use the X Window
|
---|
1533 | System, the key combination
|
---|
1534 | <emphasis role="bold">Ctrl+Alt+Backspace</emphasis> normally
|
---|
1535 | resets the X server and restarts the entire graphical user
|
---|
1536 | interface. As the X server intercepts this combination,
|
---|
1537 | pressing it will usually restart your
|
---|
1538 | <emphasis>host</emphasis> graphical user interface and kill
|
---|
1539 | all running programs, including &product-name;, in the
|
---|
1540 | process.
|
---|
1541 | </para>
|
---|
1542 |
|
---|
1543 | <para>
|
---|
1544 | On Linux hosts supporting virtual terminals, the key
|
---|
1545 | combination <emphasis role="bold">Ctrl+Alt+Fx</emphasis>,
|
---|
1546 | where Fx is one of the function keys from F1 to F12,
|
---|
1547 | normally enables you to switch between virtual terminals. As
|
---|
1548 | with <emphasis role="bold">Ctrl+Alt+Delete</emphasis>, these
|
---|
1549 | combinations are intercepted by the host OS and therefore
|
---|
1550 | always switch terminals on the <emphasis>host</emphasis>.
|
---|
1551 | </para>
|
---|
1552 |
|
---|
1553 | <para>
|
---|
1554 | If, instead, you want to send these key combinations to the
|
---|
1555 | <emphasis>guest</emphasis> OS in the virtual machine, you
|
---|
1556 | will need to use one of the following methods:
|
---|
1557 | </para>
|
---|
1558 |
|
---|
1559 | <itemizedlist>
|
---|
1560 |
|
---|
1561 | <listitem>
|
---|
1562 | <para>
|
---|
1563 | Use the items in the
|
---|
1564 | <emphasis role="bold">Input</emphasis>,
|
---|
1565 | <emphasis role="bold">Keyboard</emphasis> menu of the
|
---|
1566 | virtual machine window. This menu includes the settings
|
---|
1567 | <emphasis role="bold">Insert Ctrl+Alt+Delete</emphasis>
|
---|
1568 | and <emphasis role="bold">Insert
|
---|
1569 | Ctrl+Alt+Backspace</emphasis>. However, the latter
|
---|
1570 | setting affects only Linux guests or Oracle Solaris
|
---|
1571 | guests.
|
---|
1572 | </para>
|
---|
1573 |
|
---|
1574 | <para>
|
---|
1575 | This menu also includes an option for inserting the Host
|
---|
1576 | key combination.
|
---|
1577 | </para>
|
---|
1578 | </listitem>
|
---|
1579 |
|
---|
1580 | <listitem>
|
---|
1581 | <para>
|
---|
1582 | Use special key combinations with the Host key, which is
|
---|
1583 | normally the right Control key. &product-name; then
|
---|
1584 | translates the following key combinations for the VM:
|
---|
1585 | </para>
|
---|
1586 |
|
---|
1587 | <itemizedlist>
|
---|
1588 |
|
---|
1589 | <listitem>
|
---|
1590 | <para>
|
---|
1591 | <emphasis role="bold">Host key + Del</emphasis>
|
---|
1592 | sends <emphasis role="bold">Ctrl+Alt+Del</emphasis>
|
---|
1593 | to reboot the guest OS.
|
---|
1594 | </para>
|
---|
1595 | </listitem>
|
---|
1596 |
|
---|
1597 | <listitem>
|
---|
1598 | <para>
|
---|
1599 | <emphasis role="bold">Host key +
|
---|
1600 | Backspace</emphasis> sends
|
---|
1601 | <emphasis role="bold">Ctrl+Alt+Backspace</emphasis>
|
---|
1602 | to restart the graphical user interface of a Linux
|
---|
1603 | or Oracle Solaris guest.
|
---|
1604 | </para>
|
---|
1605 | </listitem>
|
---|
1606 |
|
---|
1607 | <listitem>
|
---|
1608 | <para>
|
---|
1609 | <emphasis role="bold">Host key + Function
|
---|
1610 | key</emphasis>. For example, use this key
|
---|
1611 | combination to simulate
|
---|
1612 | <emphasis role="bold">Ctrl+Alt+Fx</emphasis> to
|
---|
1613 | switch between virtual terminals in a Linux guest.
|
---|
1614 | </para>
|
---|
1615 | </listitem>
|
---|
1616 |
|
---|
1617 | </itemizedlist>
|
---|
1618 | </listitem>
|
---|
1619 |
|
---|
1620 | </itemizedlist>
|
---|
1621 | </listitem>
|
---|
1622 |
|
---|
1623 | <listitem>
|
---|
1624 | <para>
|
---|
1625 | For some other keyboard combinations such as
|
---|
1626 | <emphasis role="bold">Alt+Tab</emphasis> to switch between
|
---|
1627 | open windows, &product-name; enables you to configure
|
---|
1628 | whether these combinations will affect the host or the
|
---|
1629 | guest, if a virtual machine currently has the focus. This is
|
---|
1630 | a global setting for all virtual machines and can be found
|
---|
1631 | under <emphasis role="bold">File</emphasis>,
|
---|
1632 | <emphasis role="bold">Preferences</emphasis>,
|
---|
1633 | <emphasis role="bold">Input</emphasis>.
|
---|
1634 | </para>
|
---|
1635 | </listitem>
|
---|
1636 |
|
---|
1637 | <listitem>
|
---|
1638 | <para>
|
---|
1639 | A soft keyboard can be used to input key combinations in the
|
---|
1640 | guest. See <xref linkend="soft-keyb"/>.
|
---|
1641 | </para>
|
---|
1642 | </listitem>
|
---|
1643 |
|
---|
1644 | </itemizedlist>
|
---|
1645 |
|
---|
1646 | </sect2>
|
---|
1647 |
|
---|
1648 | <sect2 id="intro-removable-media-changing">
|
---|
1649 |
|
---|
1650 | <title>Changing Removable Media</title>
|
---|
1651 |
|
---|
1652 | <para>
|
---|
1653 | While a virtual machine is running, you can change removable
|
---|
1654 | media in the <emphasis role="bold">Devices</emphasis> menu of
|
---|
1655 | the VM's window. Here you can select in detail what
|
---|
1656 | &product-name; presents to your VM as a CD, DVD, or floppy
|
---|
1657 | drive.
|
---|
1658 | </para>
|
---|
1659 |
|
---|
1660 | <para>
|
---|
1661 | The settings are the same as those available for the VM in the
|
---|
1662 | <emphasis role="bold">Settings</emphasis> dialog of the
|
---|
1663 | &product-name; main window. But as the
|
---|
1664 | <emphasis role="bold">Settings</emphasis> dialog is disabled
|
---|
1665 | while the VM is in the Running or Saved state, the
|
---|
1666 | <emphasis role="bold">Devices</emphasis> menu saves you from
|
---|
1667 | having to shut down and restart the VM every time you want to
|
---|
1668 | change media.
|
---|
1669 | </para>
|
---|
1670 |
|
---|
1671 | <para>
|
---|
1672 | Using the <emphasis role="bold">Devices</emphasis> menu, you can
|
---|
1673 | attach the host drive to the guest or select a floppy or DVD
|
---|
1674 | image, as described in <xref linkend="settings-storage" />.
|
---|
1675 | </para>
|
---|
1676 |
|
---|
1677 | <para>
|
---|
1678 | The <emphasis role="bold">Devices</emphasis> menu also includes
|
---|
1679 | an option for creating a virtual ISO (VISO) from selected files
|
---|
1680 | on the host.
|
---|
1681 | </para>
|
---|
1682 |
|
---|
1683 | </sect2>
|
---|
1684 |
|
---|
1685 | <sect2 id="intro-resize-window">
|
---|
1686 |
|
---|
1687 | <title>Resizing the Machine's Window</title>
|
---|
1688 |
|
---|
1689 | <para>
|
---|
1690 | You can resize the VM's window while that VM is running. When
|
---|
1691 | you do, the window is scaled as follows:
|
---|
1692 | </para>
|
---|
1693 |
|
---|
1694 | <orderedlist>
|
---|
1695 |
|
---|
1696 | <listitem>
|
---|
1697 | <para>
|
---|
1698 | If you have <emphasis role="bold">scaled mode</emphasis>
|
---|
1699 | enabled, then the virtual machine's screen will be scaled to
|
---|
1700 | the size of the window. This can be useful if you have many
|
---|
1701 | machines running and want to have a look at one of them
|
---|
1702 | while it is running in the background. Alternatively, it
|
---|
1703 | might be useful to enlarge a window if the VM's output
|
---|
1704 | screen is very small, for example because you are running an
|
---|
1705 | old OS in it.
|
---|
1706 | </para>
|
---|
1707 |
|
---|
1708 | <para>
|
---|
1709 | To enable scaled mode, press <emphasis role="bold">Host key
|
---|
1710 | + C</emphasis>, or select <emphasis role="bold">Scaled
|
---|
1711 | Mode</emphasis> from the
|
---|
1712 | <emphasis role="bold">View</emphasis> menu in the VM window.
|
---|
1713 | To leave scaled mode, press <emphasis role="bold">Host key +
|
---|
1714 | C </emphasis>again.
|
---|
1715 | </para>
|
---|
1716 |
|
---|
1717 | <para>
|
---|
1718 | The aspect ratio of the guest screen is preserved when
|
---|
1719 | resizing the window. To ignore the aspect ratio, press
|
---|
1720 | <emphasis role="bold">Shift</emphasis> during the resize
|
---|
1721 | operation.
|
---|
1722 | </para>
|
---|
1723 |
|
---|
1724 | <para>
|
---|
1725 | See <xref linkend="KnownIssues" /> for additional remarks.
|
---|
1726 | </para>
|
---|
1727 | </listitem>
|
---|
1728 |
|
---|
1729 | <listitem>
|
---|
1730 | <para>
|
---|
1731 | If you have the Guest Additions installed and they support
|
---|
1732 | automatic <emphasis role="bold">resizing</emphasis>, the
|
---|
1733 | Guest Additions will automatically adjust the screen
|
---|
1734 | resolution of the guest OS. For example, if you are running
|
---|
1735 | a Windows guest with a resolution of 1024x768 pixels and you
|
---|
1736 | then resize the VM window to make it 100 pixels wider, the
|
---|
1737 | Guest Additions will change the Windows display resolution
|
---|
1738 | to 1124x768.
|
---|
1739 | </para>
|
---|
1740 |
|
---|
1741 | <para>
|
---|
1742 | See <xref linkend="guestadditions" />.
|
---|
1743 | </para>
|
---|
1744 | </listitem>
|
---|
1745 |
|
---|
1746 | <listitem>
|
---|
1747 | <para>
|
---|
1748 | Otherwise, if the window is bigger than the VM's screen, the
|
---|
1749 | screen will be centered. If it is smaller, then scroll bars
|
---|
1750 | will be added to the machine window.
|
---|
1751 | </para>
|
---|
1752 | </listitem>
|
---|
1753 |
|
---|
1754 | </orderedlist>
|
---|
1755 |
|
---|
1756 | </sect2>
|
---|
1757 |
|
---|
1758 | <sect2 id="intro-save-machine-state">
|
---|
1759 |
|
---|
1760 | <title>Saving the State of the Machine</title>
|
---|
1761 |
|
---|
1762 | <para>
|
---|
1763 | When you click on the <emphasis role="bold">Close</emphasis>
|
---|
1764 | button of your virtual machine window, at the top right of the
|
---|
1765 | window, just like you would close any other window on your
|
---|
1766 | system, &product-name; asks you whether you want to save or
|
---|
1767 | power off the VM. As a shortcut, you can also press
|
---|
1768 | <emphasis role="bold">Host key + Q</emphasis>.
|
---|
1769 | </para>
|
---|
1770 |
|
---|
1771 | <figure id="fig-vm-close">
|
---|
1772 | <title>Closing Down a Virtual Machine</title>
|
---|
1773 | <mediaobject>
|
---|
1774 | <imageobject>
|
---|
1775 | <imagedata align="center" fileref="images/vm-close.png"
|
---|
1776 | width="10cm" />
|
---|
1777 | </imageobject>
|
---|
1778 | </mediaobject>
|
---|
1779 | </figure>
|
---|
1780 |
|
---|
1781 | <para>
|
---|
1782 | The difference between the three options is crucial. They mean
|
---|
1783 | the following:
|
---|
1784 | </para>
|
---|
1785 |
|
---|
1786 | <itemizedlist>
|
---|
1787 |
|
---|
1788 | <listitem>
|
---|
1789 | <para>
|
---|
1790 | <emphasis role="bold">Save the machine state:</emphasis>
|
---|
1791 | With this option, &product-name;
|
---|
1792 | <emphasis>freezes</emphasis> the virtual machine by
|
---|
1793 | completely saving its state to your local disk.
|
---|
1794 | </para>
|
---|
1795 |
|
---|
1796 | <para>
|
---|
1797 | When you start the VM again later, you will find that the VM
|
---|
1798 | continues exactly where it was left off. All your programs
|
---|
1799 | will still be open, and your computer resumes operation.
|
---|
1800 | Saving the state of a virtual machine is thus in some ways
|
---|
1801 | similar to suspending a laptop computer by closing its lid.
|
---|
1802 | </para>
|
---|
1803 | </listitem>
|
---|
1804 |
|
---|
1805 | <listitem>
|
---|
1806 | <para>
|
---|
1807 | <emphasis role="bold">Send the shutdown signal.</emphasis>
|
---|
1808 | This will send an ACPI shutdown signal to the virtual
|
---|
1809 | machine, which has the same effect as if you had pressed the
|
---|
1810 | power button on a real computer. This should trigger a
|
---|
1811 | proper shutdown mechanism from within the VM.
|
---|
1812 | </para>
|
---|
1813 | </listitem>
|
---|
1814 |
|
---|
1815 | <listitem>
|
---|
1816 | <para>
|
---|
1817 | <emphasis role="bold">Power off the machine:</emphasis> With
|
---|
1818 | this option, &product-name; also stops running the virtual
|
---|
1819 | machine, but <emphasis>without</emphasis> saving its state.
|
---|
1820 | </para>
|
---|
1821 |
|
---|
1822 | <warning>
|
---|
1823 | <para>
|
---|
1824 | This is equivalent to pulling the power plug on a real
|
---|
1825 | computer without shutting it down properly. If you start
|
---|
1826 | the machine again after powering it off, your OS will have
|
---|
1827 | to reboot completely and may begin a lengthy check of its
|
---|
1828 | virtual system disks. As a result, this should not
|
---|
1829 | normally be done, since it can potentially cause data loss
|
---|
1830 | or an inconsistent state of the guest system on disk.
|
---|
1831 | </para>
|
---|
1832 | </warning>
|
---|
1833 |
|
---|
1834 | <para>
|
---|
1835 | As an exception, if your virtual machine has any snapshots,
|
---|
1836 | see <xref linkend="snapshots"/>, you can use this option to
|
---|
1837 | quickly <emphasis
|
---|
1838 | role="bold">restore the current
|
---|
1839 | snapshot</emphasis> of the virtual machine. In that case,
|
---|
1840 | powering off the machine will not disrupt its state, but any
|
---|
1841 | changes made since that snapshot was taken will be lost.
|
---|
1842 | </para>
|
---|
1843 | </listitem>
|
---|
1844 |
|
---|
1845 | </itemizedlist>
|
---|
1846 |
|
---|
1847 | <para>
|
---|
1848 | The <emphasis role="bold">Discard</emphasis> button in the
|
---|
1849 | VirtualBox Manager window discards a virtual machine's saved
|
---|
1850 | state. This has the same effect as powering it off, and the same
|
---|
1851 | warnings apply.
|
---|
1852 | </para>
|
---|
1853 |
|
---|
1854 | </sect2>
|
---|
1855 |
|
---|
1856 | </sect1>
|
---|
1857 |
|
---|
1858 | <sect1 id="gui-vmgroups">
|
---|
1859 |
|
---|
1860 | <title>Using VM Groups</title>
|
---|
1861 |
|
---|
1862 | <para>
|
---|
1863 | VM groups enable the user to create ad hoc groups of VMs, and to
|
---|
1864 | manage and perform functions on them collectively, as well as
|
---|
1865 | individually.
|
---|
1866 | </para>
|
---|
1867 |
|
---|
1868 | <para>
|
---|
1869 | The following figure shows VM groups displayed in VirtualBox
|
---|
1870 | Manager.
|
---|
1871 | </para>
|
---|
1872 |
|
---|
1873 | <figure id="fig-vm-groups">
|
---|
1874 | <title>Groups of Virtual Machines</title>
|
---|
1875 | <mediaobject>
|
---|
1876 | <imageobject>
|
---|
1877 | <imagedata align="center" fileref="images/vm-groups.png"
|
---|
1878 | width="10cm" />
|
---|
1879 | </imageobject>
|
---|
1880 | </mediaobject>
|
---|
1881 |
|
---|
1882 | </figure>
|
---|
1883 |
|
---|
1884 | <para>
|
---|
1885 | The following features are available for groups:
|
---|
1886 | </para>
|
---|
1887 |
|
---|
1888 | <itemizedlist>
|
---|
1889 |
|
---|
1890 | <listitem>
|
---|
1891 | <para>
|
---|
1892 | Create a group using the VirtualBox Manager. Do one of the
|
---|
1893 | following:
|
---|
1894 | </para>
|
---|
1895 |
|
---|
1896 | <itemizedlist>
|
---|
1897 |
|
---|
1898 | <listitem>
|
---|
1899 | <para>
|
---|
1900 | Drag one VM on top of another VM.
|
---|
1901 | </para>
|
---|
1902 | </listitem>
|
---|
1903 |
|
---|
1904 | <listitem>
|
---|
1905 | <para>
|
---|
1906 | Select multiple VMs and select
|
---|
1907 | <emphasis role="bold">Group</emphasis> from the
|
---|
1908 | right-click menu.
|
---|
1909 | </para>
|
---|
1910 | </listitem>
|
---|
1911 |
|
---|
1912 | </itemizedlist>
|
---|
1913 | </listitem>
|
---|
1914 |
|
---|
1915 | <listitem>
|
---|
1916 | <para>
|
---|
1917 | Create and manage a group using the command line. Do one of
|
---|
1918 | the following:
|
---|
1919 | </para>
|
---|
1920 |
|
---|
1921 | <itemizedlist>
|
---|
1922 |
|
---|
1923 | <listitem>
|
---|
1924 | <para>
|
---|
1925 | Create a group and assign a VM. For example:
|
---|
1926 | </para>
|
---|
1927 |
|
---|
1928 | <screen>VBoxManage modifyvm "vm01" --groups "/TestGroup"</screen>
|
---|
1929 |
|
---|
1930 | <para>
|
---|
1931 | This command creates a group "TestGroup" and attaches the
|
---|
1932 | VM "vm01" to that group.
|
---|
1933 | </para>
|
---|
1934 | </listitem>
|
---|
1935 |
|
---|
1936 | <listitem>
|
---|
1937 | <para>
|
---|
1938 | Detach a VM from the group, and delete the group if empty.
|
---|
1939 | For example:
|
---|
1940 | </para>
|
---|
1941 |
|
---|
1942 | <screen>VBoxManage modifyvm "vm01" --groups ""</screen>
|
---|
1943 |
|
---|
1944 | <para>
|
---|
1945 | This command detaches all groups from the VM "vm01" and
|
---|
1946 | deletes the empty group.
|
---|
1947 | </para>
|
---|
1948 | </listitem>
|
---|
1949 |
|
---|
1950 | </itemizedlist>
|
---|
1951 | </listitem>
|
---|
1952 |
|
---|
1953 | <listitem>
|
---|
1954 | <para>
|
---|
1955 | Create multiple groups. For example:
|
---|
1956 | </para>
|
---|
1957 |
|
---|
1958 | <screen>VBoxManage modifyvm "vm01" --groups "/TestGroup,/TestGroup2"</screen>
|
---|
1959 |
|
---|
1960 | <para>
|
---|
1961 | This command creates the groups "TestGroup" and "TestGroup2",
|
---|
1962 | if they do not exist, and attaches the VM "vm01" to both of
|
---|
1963 | them.
|
---|
1964 | </para>
|
---|
1965 | </listitem>
|
---|
1966 |
|
---|
1967 | <listitem>
|
---|
1968 | <para>
|
---|
1969 | Create nested groups, having a group hierarchy. For example:
|
---|
1970 | </para>
|
---|
1971 |
|
---|
1972 | <screen>VBoxManage modifyvm "vm01" --groups "/TestGroup/TestGroup2"</screen>
|
---|
1973 |
|
---|
1974 | <para>
|
---|
1975 | This command attaches the VM "vm01" to the subgroup
|
---|
1976 | "TestGroup2" of the "TestGroup" group.
|
---|
1977 | </para>
|
---|
1978 | </listitem>
|
---|
1979 |
|
---|
1980 | <listitem>
|
---|
1981 | <para>
|
---|
1982 | The following is a summary of group commands: Start, Pause,
|
---|
1983 | Reset, Close (save state, send shutdown signal, poweroff),
|
---|
1984 | Discard Saved State, Show in File System, Sort.
|
---|
1985 | </para>
|
---|
1986 | </listitem>
|
---|
1987 |
|
---|
1988 | </itemizedlist>
|
---|
1989 |
|
---|
1990 | </sect1>
|
---|
1991 |
|
---|
1992 | <sect1 id="snapshots">
|
---|
1993 |
|
---|
1994 | <title>Snapshots</title>
|
---|
1995 |
|
---|
1996 | <para>
|
---|
1997 | With snapshots, you can save a particular state of a virtual
|
---|
1998 | machine for later use. At any later time, you can revert to that
|
---|
1999 | state, even though you may have changed the VM considerably since
|
---|
2000 | then. A snapshot of a virtual machine is thus similar to a machine
|
---|
2001 | in Saved state, but there can be many of them, and these saved
|
---|
2002 | states are preserved.
|
---|
2003 | </para>
|
---|
2004 |
|
---|
2005 | <para>
|
---|
2006 | To see the snapshots of a virtual machine, click on the machine
|
---|
2007 | name in VirtualBox Manager. Then click the
|
---|
2008 | <emphasis role="bold">List</emphasis> icon next to the machine
|
---|
2009 | name, and select <emphasis role="bold">Snapshots</emphasis>. Until
|
---|
2010 | you take a snapshot of the machine, the list of snapshots will be
|
---|
2011 | empty except for the <emphasis role="bold">Current
|
---|
2012 | State</emphasis> item, which represents the "now" point in the
|
---|
2013 | lifetime of the virtual machine.
|
---|
2014 | </para>
|
---|
2015 |
|
---|
2016 | <sect2 id="snapshots-take-restore-delete">
|
---|
2017 |
|
---|
2018 | <title>Taking, Restoring, and Deleting Snapshots</title>
|
---|
2019 |
|
---|
2020 | <para>
|
---|
2021 | There are three operations related to snapshots, as follows:
|
---|
2022 | </para>
|
---|
2023 |
|
---|
2024 | <orderedlist>
|
---|
2025 |
|
---|
2026 | <listitem>
|
---|
2027 | <para>
|
---|
2028 | <emphasis role="bold">Take a snapshot</emphasis>. This makes
|
---|
2029 | a copy of the machine's current state, to which you can go
|
---|
2030 | back at any given time later.
|
---|
2031 | </para>
|
---|
2032 |
|
---|
2033 | <itemizedlist>
|
---|
2034 |
|
---|
2035 | <listitem>
|
---|
2036 | <para>
|
---|
2037 | If your VM is running, select <emphasis role="bold">Take
|
---|
2038 | Snapshot</emphasis> from the
|
---|
2039 | <emphasis role="bold">Machine</emphasis> pull-down menu
|
---|
2040 | of the VM window.
|
---|
2041 | </para>
|
---|
2042 | </listitem>
|
---|
2043 |
|
---|
2044 | <listitem>
|
---|
2045 | <para>
|
---|
2046 | If your VM is in either the Saved or the Powered Off
|
---|
2047 | state, as displayed next to the VM name in the
|
---|
2048 | &product-name; main window, click the
|
---|
2049 | <emphasis role="bold">List</emphasis> icon next to the
|
---|
2050 | machine name and select
|
---|
2051 | <emphasis role="bold">Snapshots</emphasis>. The
|
---|
2052 | snapshots window is shown. Do one of the following:
|
---|
2053 | </para>
|
---|
2054 |
|
---|
2055 | <itemizedlist>
|
---|
2056 |
|
---|
2057 | <listitem>
|
---|
2058 | <para>
|
---|
2059 | Click the <emphasis role="bold">Take</emphasis>
|
---|
2060 | icon.
|
---|
2061 | </para>
|
---|
2062 | </listitem>
|
---|
2063 |
|
---|
2064 | <listitem>
|
---|
2065 | <para>
|
---|
2066 | Right-click on the <emphasis role="bold">Current
|
---|
2067 | State </emphasis>item in the list and select
|
---|
2068 | <emphasis role="bold">Take</emphasis>.
|
---|
2069 | </para>
|
---|
2070 | </listitem>
|
---|
2071 |
|
---|
2072 | </itemizedlist>
|
---|
2073 | </listitem>
|
---|
2074 |
|
---|
2075 | </itemizedlist>
|
---|
2076 |
|
---|
2077 | <para>
|
---|
2078 | In either case, a window is displayed prompting you for a
|
---|
2079 | snapshot name. This name is purely for reference purposes to
|
---|
2080 | help you remember the state of the snapshot. For example, a
|
---|
2081 | useful name would be "Fresh installation from scratch, no
|
---|
2082 | Guest Additions", or "Service Pack 3 just installed". You
|
---|
2083 | can also add a longer text in the
|
---|
2084 | <emphasis role="bold">Description</emphasis> field.
|
---|
2085 | </para>
|
---|
2086 |
|
---|
2087 | <para>
|
---|
2088 | Your new snapshot will then appear in the snapshots list.
|
---|
2089 | Underneath your new snapshot, you will see an item called
|
---|
2090 | <emphasis role="bold">Current State</emphasis>, signifying
|
---|
2091 | that the current state of your VM is a variation based on
|
---|
2092 | the snapshot you took earlier. If you later take another
|
---|
2093 | snapshot, you will see that they are displayed in sequence,
|
---|
2094 | and that each subsequent snapshot is derived from an earlier
|
---|
2095 | one.
|
---|
2096 | </para>
|
---|
2097 |
|
---|
2098 | <figure id="fig-snapshots-list">
|
---|
2099 | <title>Snapshots List For a Virtual Machine</title>
|
---|
2100 | <mediaobject>
|
---|
2101 | <imageobject>
|
---|
2102 | <imagedata align="center" fileref="images/snapshots-1.png"
|
---|
2103 | width="10cm" />
|
---|
2104 | </imageobject>
|
---|
2105 | </mediaobject>
|
---|
2106 | </figure>
|
---|
2107 |
|
---|
2108 | <para>
|
---|
2109 | &product-name; imposes no limits on the number of snapshots
|
---|
2110 | you can take. The only practical limitation is disk space on
|
---|
2111 | your host. Each snapshot stores the state of the virtual
|
---|
2112 | machine and thus occupies some disk space. See
|
---|
2113 | <xref linkend="snapshots-contents"/> for details on what is
|
---|
2114 | stored in a snapshot.
|
---|
2115 | </para>
|
---|
2116 | </listitem>
|
---|
2117 |
|
---|
2118 | <listitem>
|
---|
2119 | <para>
|
---|
2120 | <emphasis role="bold">Restore a snapshot</emphasis>. In the
|
---|
2121 | list of snapshots, right-click on any snapshot you have
|
---|
2122 | taken and select <emphasis role="bold">Restore</emphasis>.
|
---|
2123 | By restoring a snapshot, you go back or forward in time. The
|
---|
2124 | current state of the machine is lost, and the machine is
|
---|
2125 | restored to the exact state it was in when the snapshot was
|
---|
2126 | taken.
|
---|
2127 | </para>
|
---|
2128 |
|
---|
2129 | <note>
|
---|
2130 | <para>
|
---|
2131 | Restoring a snapshot will affect the virtual hard drives
|
---|
2132 | that are connected to your VM, as the entire state of the
|
---|
2133 | virtual hard drive will be reverted as well. This means
|
---|
2134 | also that all files that have been created since the
|
---|
2135 | snapshot and all other file changes <emphasis>will be
|
---|
2136 | lost. </emphasis>In order to prevent such data loss while
|
---|
2137 | still making use of the snapshot feature, it is possible
|
---|
2138 | to add a second hard drive in
|
---|
2139 | <emphasis>write-through</emphasis> mode using the
|
---|
2140 | <command>VBoxManage</command> interface and use it to
|
---|
2141 | store your data. As write-through hard drives are
|
---|
2142 | <emphasis>not</emphasis> included in snapshots, they
|
---|
2143 | remain unaltered when a machine is reverted. See
|
---|
2144 | <xref linkend="hdimagewrites" />.
|
---|
2145 | </para>
|
---|
2146 | </note>
|
---|
2147 |
|
---|
2148 | <para>
|
---|
2149 | To avoid losing the current state when restoring a snapshot,
|
---|
2150 | you can create a new snapshot before the restore operation.
|
---|
2151 | </para>
|
---|
2152 |
|
---|
2153 | <para>
|
---|
2154 | By restoring an earlier snapshot and taking more snapshots
|
---|
2155 | from there, it is even possible to create a kind of
|
---|
2156 | alternate reality and to switch between these different
|
---|
2157 | histories of the virtual machine. This can result in a whole
|
---|
2158 | tree of virtual machine snapshots, as shown in the
|
---|
2159 | screenshot above.
|
---|
2160 | </para>
|
---|
2161 | </listitem>
|
---|
2162 |
|
---|
2163 | <listitem>
|
---|
2164 | <para>
|
---|
2165 | <emphasis role="bold">Delete a snapshot</emphasis>. This
|
---|
2166 | does not affect the state of the virtual machine, but only
|
---|
2167 | releases the files on disk that &product-name; used to store
|
---|
2168 | the snapshot data, thus freeing disk space. To delete a
|
---|
2169 | snapshot, right-click on the snapshot name in the snapshots
|
---|
2170 | tree and select <emphasis role="bold">Delete</emphasis>.
|
---|
2171 | Snapshots can be deleted even while a machine is running.
|
---|
2172 | </para>
|
---|
2173 |
|
---|
2174 | <note>
|
---|
2175 | <para>
|
---|
2176 | Whereas taking and restoring snapshots are fairly quick
|
---|
2177 | operations, deleting a snapshot can take a considerable
|
---|
2178 | amount of time since large amounts of data may need to be
|
---|
2179 | copied between several disk image files. Temporary disk
|
---|
2180 | files may also need large amounts of disk space while the
|
---|
2181 | operation is in progress.
|
---|
2182 | </para>
|
---|
2183 | </note>
|
---|
2184 |
|
---|
2185 | <para>
|
---|
2186 | There are some situations which cannot be handled while a VM
|
---|
2187 | is running, and you will get an appropriate message that you
|
---|
2188 | need to perform this snapshot deletion when the VM is shut
|
---|
2189 | down.
|
---|
2190 | </para>
|
---|
2191 | </listitem>
|
---|
2192 |
|
---|
2193 | </orderedlist>
|
---|
2194 |
|
---|
2195 | </sect2>
|
---|
2196 |
|
---|
2197 | <sect2 id="snapshots-contents">
|
---|
2198 |
|
---|
2199 | <title>Snapshot Contents</title>
|
---|
2200 |
|
---|
2201 | <para>
|
---|
2202 | Think of a snapshot as a point in time that you have preserved.
|
---|
2203 | More formally, a snapshot consists of the following:
|
---|
2204 | </para>
|
---|
2205 |
|
---|
2206 | <itemizedlist>
|
---|
2207 |
|
---|
2208 | <listitem>
|
---|
2209 | <para>
|
---|
2210 | The snapshot contains a complete copy of the VM settings,
|
---|
2211 | including the hardware configuration, so that when you
|
---|
2212 | restore a snapshot, the VM settings are restored as well.
|
---|
2213 | For example, if you changed the hard disk configuration or
|
---|
2214 | the VM's system settings, that change is undone when you
|
---|
2215 | restore the snapshot.
|
---|
2216 | </para>
|
---|
2217 |
|
---|
2218 | <para>
|
---|
2219 | The copy of the settings is stored in the machine
|
---|
2220 | configuration, an XML text file, and thus occupies very
|
---|
2221 | little space.
|
---|
2222 | </para>
|
---|
2223 | </listitem>
|
---|
2224 |
|
---|
2225 | <listitem>
|
---|
2226 | <para>
|
---|
2227 | The complete state of all the virtual disks attached to the
|
---|
2228 | machine is preserved. Going back to a snapshot means that
|
---|
2229 | all changes that had been made to the machine's disks, file
|
---|
2230 | by file and bit by bit, will be undone as well. Files that
|
---|
2231 | were since created will disappear, files that were deleted
|
---|
2232 | will be restored, changes to files will be reverted.
|
---|
2233 | </para>
|
---|
2234 |
|
---|
2235 | <para>
|
---|
2236 | Strictly speaking, this is only true for virtual hard disks
|
---|
2237 | in "normal" mode. You can configure disks to behave
|
---|
2238 | differently with snapshots, see
|
---|
2239 | <xref linkend="hdimagewrites" />. In technical terms, it is
|
---|
2240 | not the virtual disk itself that is restored when a snapshot
|
---|
2241 | is restored. Instead, when a snapshot is taken,
|
---|
2242 | &product-name; creates differencing images which contain
|
---|
2243 | only the changes since the snapshot were taken. When the
|
---|
2244 | snapshot is restored, &product-name; throws away that
|
---|
2245 | differencing image, thus going back to the previous state.
|
---|
2246 | This is both faster and uses less disk space. For the
|
---|
2247 | details, which can be complex, see
|
---|
2248 | <xref linkend="diffimages" />.
|
---|
2249 | </para>
|
---|
2250 |
|
---|
2251 | <para>
|
---|
2252 | Creating the differencing image as such does not occupy much
|
---|
2253 | space on the host disk initially, since the differencing
|
---|
2254 | image will initially be empty and grow dynamically later
|
---|
2255 | with each write operation to the disk. The longer you use
|
---|
2256 | the machine after having created the snapshot, however, the
|
---|
2257 | more the differencing image will grow in size.
|
---|
2258 | </para>
|
---|
2259 | </listitem>
|
---|
2260 |
|
---|
2261 | <listitem>
|
---|
2262 | <para>
|
---|
2263 | If you took a snapshot while the machine was running, the
|
---|
2264 | memory state of the machine is also saved in the snapshot.
|
---|
2265 | This is in the same way that memory can be saved when you
|
---|
2266 | close a VM window. When you restore such a snapshot,
|
---|
2267 | execution resumes at exactly the point when the snapshot was
|
---|
2268 | taken.
|
---|
2269 | </para>
|
---|
2270 |
|
---|
2271 | <para>
|
---|
2272 | The memory state file can be as large as the memory size of
|
---|
2273 | the VM and will therefore occupy considerable disk space.
|
---|
2274 | </para>
|
---|
2275 | </listitem>
|
---|
2276 |
|
---|
2277 | </itemizedlist>
|
---|
2278 |
|
---|
2279 | </sect2>
|
---|
2280 |
|
---|
2281 | </sect1>
|
---|
2282 |
|
---|
2283 | <sect1 id="configbasics">
|
---|
2284 |
|
---|
2285 | <title>Virtual Machine Configuration</title>
|
---|
2286 |
|
---|
2287 | <para>
|
---|
2288 | When you select a virtual machine from the list in the VirtualBox
|
---|
2289 | Manager window, you will see a summary of that machine's settings
|
---|
2290 | on the right.
|
---|
2291 | </para>
|
---|
2292 |
|
---|
2293 | <para>
|
---|
2294 | Clicking on <emphasis role="bold">Settings</emphasis> displays a
|
---|
2295 | window, where you can configure many of the properties of the
|
---|
2296 | selected VM. But be careful when changing VM settings. It is
|
---|
2297 | possible to change all VM settings after installing a guest OS,
|
---|
2298 | but certain changes might prevent a guest OS from functioning
|
---|
2299 | correctly if done after installation.
|
---|
2300 | </para>
|
---|
2301 |
|
---|
2302 | <note>
|
---|
2303 | <para>
|
---|
2304 | The <emphasis role="bold">Settings</emphasis> button is disabled
|
---|
2305 | while a VM is either in the Running or Saved state. This is
|
---|
2306 | because the <emphasis role="bold">Settings</emphasis> dialog
|
---|
2307 | enables you to change fundamental characteristics of the virtual
|
---|
2308 | machine that is created for your guest OS. For example, the
|
---|
2309 | guest OS may not perform well if half of its memory is taken
|
---|
2310 | away. As a result, if the
|
---|
2311 | <emphasis role="bold">Settings</emphasis> button is disabled,
|
---|
2312 | shut down the current VM first.
|
---|
2313 | </para>
|
---|
2314 | </note>
|
---|
2315 |
|
---|
2316 | <para>
|
---|
2317 | &product-name; provides a wide range of parameters that can be
|
---|
2318 | changed for a virtual machine. The various settings that can be
|
---|
2319 | changed in the <emphasis role="bold">Settings</emphasis> window
|
---|
2320 | are described in detail in <xref linkend="BasicConcepts" />. Even
|
---|
2321 | more parameters are available when using the
|
---|
2322 | <command>VBoxManage</command> command line interface. See
|
---|
2323 | <xref linkend="vboxmanage" />.
|
---|
2324 | </para>
|
---|
2325 |
|
---|
2326 | </sect1>
|
---|
2327 |
|
---|
2328 | <sect1 id="intro-removing">
|
---|
2329 |
|
---|
2330 | <title>Removing and Moving Virtual Machines</title>
|
---|
2331 |
|
---|
2332 | <para>
|
---|
2333 | You can remove a VM from &product-name; or move the VM and its
|
---|
2334 | associated files, such as disk images, to another location on the
|
---|
2335 | host.
|
---|
2336 | </para>
|
---|
2337 |
|
---|
2338 | <itemizedlist>
|
---|
2339 |
|
---|
2340 | <listitem>
|
---|
2341 | <para>
|
---|
2342 | <emphasis role="bold">Removing a VM.</emphasis> To remove a
|
---|
2343 | VM, right-click on the VM in the VirtualBox Manager's machine
|
---|
2344 | list and select <emphasis role="bold">Remove</emphasis>.
|
---|
2345 | </para>
|
---|
2346 |
|
---|
2347 | <para>
|
---|
2348 | The confirmation dialog enables you to specify whether to only
|
---|
2349 | remove the VM from the list of machines or to remove the files
|
---|
2350 | associated with the VM.
|
---|
2351 | </para>
|
---|
2352 |
|
---|
2353 | <para>
|
---|
2354 | Note that the <emphasis role="bold">Remove</emphasis> menu
|
---|
2355 | item is disabled while a VM is running.
|
---|
2356 | </para>
|
---|
2357 | </listitem>
|
---|
2358 |
|
---|
2359 | <listitem>
|
---|
2360 | <para>
|
---|
2361 | <emphasis role="bold">Moving a VM.</emphasis> To move a VM to
|
---|
2362 | a new location on the host, right-click on the VM in the
|
---|
2363 | VirtualBox Manager's machine list and select
|
---|
2364 | <emphasis
|
---|
2365 | role="bold">Move</emphasis>.
|
---|
2366 | </para>
|
---|
2367 |
|
---|
2368 | <para>
|
---|
2369 | The file dialog prompts you to specify a new location for the
|
---|
2370 | VM.
|
---|
2371 | </para>
|
---|
2372 |
|
---|
2373 | <para>
|
---|
2374 | When you move a VM, &product-name; configuration files are
|
---|
2375 | updated automatically to use the new location on the host.
|
---|
2376 | </para>
|
---|
2377 |
|
---|
2378 | <para>
|
---|
2379 | Note that the <emphasis role="bold">Move</emphasis> menu item
|
---|
2380 | is disabled while a VM is running.
|
---|
2381 | </para>
|
---|
2382 |
|
---|
2383 | <para>
|
---|
2384 | You can also use the <command>VBoxManage movevm</command>
|
---|
2385 | command to move a VM. See <xref linkend="vboxmanage-movevm"/>.
|
---|
2386 | </para>
|
---|
2387 | </listitem>
|
---|
2388 |
|
---|
2389 | </itemizedlist>
|
---|
2390 |
|
---|
2391 | <para>
|
---|
2392 | For information about removing or moving a disk image file from
|
---|
2393 | &product-name;, see <xref linkend="vdis"/>.
|
---|
2394 | </para>
|
---|
2395 |
|
---|
2396 | </sect1>
|
---|
2397 |
|
---|
2398 | <sect1 id="clone">
|
---|
2399 |
|
---|
2400 | <title>Cloning Virtual Machines</title>
|
---|
2401 |
|
---|
2402 | <para>
|
---|
2403 | You can create a full copy or a linked copy of an existing VM.
|
---|
2404 | This copy is called a <emphasis>clone</emphasis>. You might use a
|
---|
2405 | cloned VM to experiment with a VM configuration, to test different
|
---|
2406 | guest OS levels, or to back up a VM.
|
---|
2407 | </para>
|
---|
2408 |
|
---|
2409 | <para>
|
---|
2410 | The <emphasis role="bold">Clone Virtual Machine</emphasis> wizard
|
---|
2411 | guides you through the cloning process.
|
---|
2412 | </para>
|
---|
2413 |
|
---|
2414 | <figure id="fig-clone-wizard">
|
---|
2415 | <title>The Clone Virtual Machine Wizard</title>
|
---|
2416 | <mediaobject>
|
---|
2417 | <imageobject>
|
---|
2418 | <imagedata align="center" fileref="images/clone-vm.png"
|
---|
2419 | width="10cm" />
|
---|
2420 | </imageobject>
|
---|
2421 | </mediaobject>
|
---|
2422 | </figure>
|
---|
2423 |
|
---|
2424 | <para>
|
---|
2425 | Start the wizard by clicking
|
---|
2426 | <emphasis role="bold">Clone</emphasis> in the right-click menu of
|
---|
2427 | the VirtualBox Manager's machine list or in the
|
---|
2428 | <emphasis role="bold">Snapshots</emphasis> view of the selected
|
---|
2429 | VM.
|
---|
2430 | </para>
|
---|
2431 |
|
---|
2432 | <para>
|
---|
2433 | Specify a new <emphasis role="bold">Name</emphasis> for the clone.
|
---|
2434 | You can choose a <emphasis role="bold">Path</emphasis> for the
|
---|
2435 | cloned virtual machine, otherwise &product-name; uses the default
|
---|
2436 | machines folder.
|
---|
2437 | </para>
|
---|
2438 |
|
---|
2439 | <para>
|
---|
2440 | The <emphasis role="bold">Clone Type</emphasis> option specifies
|
---|
2441 | whether to create a clone linked to the source VM or to create a
|
---|
2442 | fully independent clone:
|
---|
2443 | </para>
|
---|
2444 |
|
---|
2445 | <itemizedlist>
|
---|
2446 |
|
---|
2447 | <listitem>
|
---|
2448 | <para>
|
---|
2449 | <emphasis role="bold">Full Clone:</emphasis> Copies all
|
---|
2450 | dependent disk images to the new VM folder. A full clone can
|
---|
2451 | operate fully without the source VM.
|
---|
2452 | </para>
|
---|
2453 | </listitem>
|
---|
2454 |
|
---|
2455 | <listitem>
|
---|
2456 | <para>
|
---|
2457 | <emphasis role="bold">Linked Clone:</emphasis> Creates new
|
---|
2458 | differencing disk images based on the source VM disk images.
|
---|
2459 | If you select the current state of the source VM as the clone
|
---|
2460 | point, &product-name; creates a new snapshot.
|
---|
2461 | </para>
|
---|
2462 | </listitem>
|
---|
2463 |
|
---|
2464 | </itemizedlist>
|
---|
2465 |
|
---|
2466 | <para>
|
---|
2467 | The <emphasis role="bold">Snapshots</emphasis> option specifies
|
---|
2468 | whether to create a clone of the current machine state only or of
|
---|
2469 | everything.
|
---|
2470 | </para>
|
---|
2471 |
|
---|
2472 | <itemizedlist>
|
---|
2473 |
|
---|
2474 | <listitem>
|
---|
2475 | <para>
|
---|
2476 | <emphasis role="bold">Everything:</emphasis> Clones the
|
---|
2477 | current machine state and all its snapshots.
|
---|
2478 | </para>
|
---|
2479 | </listitem>
|
---|
2480 |
|
---|
2481 | <listitem>
|
---|
2482 | <para>
|
---|
2483 | <emphasis role="bold">Current Machine State and All
|
---|
2484 | Children:</emphasis>. Clones a VM snapshot and all its child
|
---|
2485 | snapshots.
|
---|
2486 | </para>
|
---|
2487 | </listitem>
|
---|
2488 |
|
---|
2489 | </itemizedlist>
|
---|
2490 |
|
---|
2491 | <para>
|
---|
2492 | The following clone options are available:
|
---|
2493 | </para>
|
---|
2494 |
|
---|
2495 | <itemizedlist>
|
---|
2496 |
|
---|
2497 | <listitem>
|
---|
2498 | <para>
|
---|
2499 | <emphasis role="bold">MAC Address Policy:</emphasis> Specifies
|
---|
2500 | how to retain network card MAC addresses when cloning the VM.
|
---|
2501 | </para>
|
---|
2502 |
|
---|
2503 | <para>
|
---|
2504 | For example, the <emphasis role="bold">Generate New MAC
|
---|
2505 | Addresses For All Network Adapters</emphasis> value assigns a
|
---|
2506 | new MAC address to each network card during cloning. This is
|
---|
2507 | the default setting. This is the best option when both the
|
---|
2508 | source VM and the cloned VM must operate on the same network.
|
---|
2509 | Other values enable you to retain the existing MAC addresses
|
---|
2510 | in the cloned VM.
|
---|
2511 | </para>
|
---|
2512 | </listitem>
|
---|
2513 |
|
---|
2514 | <listitem>
|
---|
2515 | <para>
|
---|
2516 | <emphasis role="bold">Keep Disk Names:</emphasis> Retains the
|
---|
2517 | disk image names when cloning the VM.
|
---|
2518 | </para>
|
---|
2519 | </listitem>
|
---|
2520 |
|
---|
2521 | <listitem>
|
---|
2522 | <para>
|
---|
2523 | <emphasis role="bold">Keep Hardware UUIDs:</emphasis> Retains
|
---|
2524 | the hardware universally unique identifiers (UUIDs) when
|
---|
2525 | cloning the VM.
|
---|
2526 | </para>
|
---|
2527 | </listitem>
|
---|
2528 |
|
---|
2529 | </itemizedlist>
|
---|
2530 |
|
---|
2531 | <para>
|
---|
2532 | The duration of the clone operation depends on the size and number
|
---|
2533 | of attached disk images. In addition, the clone operation saves
|
---|
2534 | all the differencing disk images of a snapshot.
|
---|
2535 | </para>
|
---|
2536 |
|
---|
2537 | <para>
|
---|
2538 | Note that the <emphasis role="bold">Clone</emphasis> menu item is
|
---|
2539 | disabled while a machine is running.
|
---|
2540 | </para>
|
---|
2541 |
|
---|
2542 | <para>
|
---|
2543 | You can also use the <command>VBoxManage clonevm</command> command
|
---|
2544 | to clone a VM. See <xref linkend="vboxmanage-clonevm" />.
|
---|
2545 | </para>
|
---|
2546 |
|
---|
2547 | </sect1>
|
---|
2548 |
|
---|
2549 | <sect1 id="ovf">
|
---|
2550 |
|
---|
2551 | <title>Importing and Exporting Virtual Machines</title>
|
---|
2552 |
|
---|
2553 | <para>
|
---|
2554 | &product-name; can import and export virtual machines in the
|
---|
2555 | following formats:
|
---|
2556 | </para>
|
---|
2557 |
|
---|
2558 | <itemizedlist>
|
---|
2559 |
|
---|
2560 | <listitem>
|
---|
2561 | <para>
|
---|
2562 | <emphasis role="bold">Open Virtualization Format
|
---|
2563 | (OVF).</emphasis> This is the industry-standard format. See
|
---|
2564 | <xref linkend="ovf-about"/>.
|
---|
2565 | </para>
|
---|
2566 | </listitem>
|
---|
2567 |
|
---|
2568 | <listitem>
|
---|
2569 | <para>
|
---|
2570 | <emphasis role="bold">Cloud service formats.</emphasis> Export
|
---|
2571 | to and import from cloud services such as &oci; is supported.
|
---|
2572 | See <xref linkend="cloud-integration"/>.
|
---|
2573 | </para>
|
---|
2574 | </listitem>
|
---|
2575 |
|
---|
2576 | </itemizedlist>
|
---|
2577 |
|
---|
2578 | <sect2 id="ovf-about">
|
---|
2579 |
|
---|
2580 | <title>About the OVF Format</title>
|
---|
2581 |
|
---|
2582 | <para>
|
---|
2583 | OVF is a cross-platform standard supported by many
|
---|
2584 | virtualization products which enables the creation of ready-made
|
---|
2585 | virtual machines that can then be imported into a hypervisor
|
---|
2586 | such as &product-name;. &product-name; makes OVF import and
|
---|
2587 | export easy to do, using the VirtualBox Manager window or the
|
---|
2588 | command-line interface.
|
---|
2589 | </para>
|
---|
2590 |
|
---|
2591 | <para>
|
---|
2592 | Using OVF enables packaging of <emphasis>virtual
|
---|
2593 | appliances</emphasis>. These are disk images, together with
|
---|
2594 | configuration settings that can be distributed easily. This way
|
---|
2595 | one can offer complete ready-to-use software packages, including
|
---|
2596 | OSes with applications, that need no configuration or
|
---|
2597 | installation except for importing into &product-name;.
|
---|
2598 | </para>
|
---|
2599 |
|
---|
2600 | <note>
|
---|
2601 | <para>
|
---|
2602 | The OVF standard is complex, and support in &product-name; is
|
---|
2603 | an ongoing process. In particular, no guarantee is made that
|
---|
2604 | &product-name; supports all appliances created by other
|
---|
2605 | virtualization software. For a list of known limitations, see
|
---|
2606 | <xref linkend="KnownIssues" />.
|
---|
2607 | </para>
|
---|
2608 | </note>
|
---|
2609 |
|
---|
2610 | <para>
|
---|
2611 | Appliances in OVF format can appear in the following variants:
|
---|
2612 | </para>
|
---|
2613 |
|
---|
2614 | <itemizedlist>
|
---|
2615 |
|
---|
2616 | <listitem>
|
---|
2617 | <para>
|
---|
2618 | They can come in several files, as one or several disk
|
---|
2619 | images, typically in the widely-used VMDK format. See
|
---|
2620 | <xref linkend="vdidetails" />. They also include a textual
|
---|
2621 | description file in an XML dialect with an
|
---|
2622 | <filename>.ovf</filename> extension. These files must then
|
---|
2623 | reside in the same directory for &product-name; to be able
|
---|
2624 | to import them.
|
---|
2625 | </para>
|
---|
2626 | </listitem>
|
---|
2627 |
|
---|
2628 | <listitem>
|
---|
2629 | <para>
|
---|
2630 | Alternatively, the above files can be packed together into a
|
---|
2631 | single archive file, typically with an
|
---|
2632 | <filename>.ova</filename> extension. Such archive files use
|
---|
2633 | a variant of the TAR archive format and can therefore be
|
---|
2634 | unpacked outside of &product-name; with any utility that can
|
---|
2635 | unpack standard TAR files.
|
---|
2636 | </para>
|
---|
2637 | </listitem>
|
---|
2638 |
|
---|
2639 | </itemizedlist>
|
---|
2640 |
|
---|
2641 | <note>
|
---|
2642 | <para>
|
---|
2643 | OVF cannot describe snapshots that were taken for a virtual
|
---|
2644 | machine. As a result, when you export a virtual machine that
|
---|
2645 | has snapshots, only the current state of the machine will be
|
---|
2646 | exported. The disk images in the export will have a
|
---|
2647 | <emphasis>flattened</emphasis> state identical to the current
|
---|
2648 | state of the virtual machine.
|
---|
2649 | </para>
|
---|
2650 | </note>
|
---|
2651 |
|
---|
2652 | </sect2>
|
---|
2653 |
|
---|
2654 | <sect2 id="ovf-import-appliance">
|
---|
2655 |
|
---|
2656 | <title>Importing an Appliance in OVF Format</title>
|
---|
2657 |
|
---|
2658 | <para>
|
---|
2659 | The following steps show how to import an appliance in OVF
|
---|
2660 | format.
|
---|
2661 | </para>
|
---|
2662 |
|
---|
2663 | <orderedlist>
|
---|
2664 |
|
---|
2665 | <listitem>
|
---|
2666 | <para>
|
---|
2667 | Double-click on the OVF or OVA file.
|
---|
2668 | </para>
|
---|
2669 |
|
---|
2670 | <para>
|
---|
2671 | &product-name; creates file type associations automatically
|
---|
2672 | for any OVF and OVA files on your host OS.
|
---|
2673 | </para>
|
---|
2674 | </listitem>
|
---|
2675 |
|
---|
2676 | <listitem>
|
---|
2677 | <para>
|
---|
2678 | Select <emphasis role="bold">File</emphasis>,
|
---|
2679 | <emphasis role="bold">Import Appliance</emphasis> from the
|
---|
2680 | VirtualBox Manager window.
|
---|
2681 | </para>
|
---|
2682 |
|
---|
2683 | <para>
|
---|
2684 | From the file dialog, go to the file with either the
|
---|
2685 | <filename>.ovf</filename> or the <filename>.ova</filename>
|
---|
2686 | file extension.
|
---|
2687 | </para>
|
---|
2688 |
|
---|
2689 | <para>
|
---|
2690 | Click <emphasis role="bold">Import</emphasis> to open the
|
---|
2691 | <emphasis role="bold">Appliance Settings</emphasis> screen.
|
---|
2692 | </para>
|
---|
2693 |
|
---|
2694 | <figure id="fig-import-appliance">
|
---|
2695 | <title>Appliance Settings Screen for Import Appliance</title>
|
---|
2696 | <mediaobject>
|
---|
2697 | <imageobject>
|
---|
2698 | <imagedata align="center" fileref="images/ovf-import.png"
|
---|
2699 | width="12cm" />
|
---|
2700 | </imageobject>
|
---|
2701 | </mediaobject>
|
---|
2702 |
|
---|
2703 | </figure>
|
---|
2704 |
|
---|
2705 | <para>
|
---|
2706 | This screen shows the VMs described in the OVF or OVA file
|
---|
2707 | and enables you to change the VM settings.
|
---|
2708 | </para>
|
---|
2709 |
|
---|
2710 | <para>
|
---|
2711 | By default, membership of VM groups is preserved on import
|
---|
2712 | for VMs that were initially exported from &product-name;.
|
---|
2713 | You can change this behavior by using the
|
---|
2714 | <emphasis
|
---|
2715 | role="bold">Primary Group</emphasis>
|
---|
2716 | setting for the VM.
|
---|
2717 | </para>
|
---|
2718 |
|
---|
2719 | <para>
|
---|
2720 | The following global settings apply to all of the VMs that
|
---|
2721 | you import:
|
---|
2722 | </para>
|
---|
2723 |
|
---|
2724 | <itemizedlist>
|
---|
2725 |
|
---|
2726 | <listitem>
|
---|
2727 | <para>
|
---|
2728 | <emphasis role="bold">Base Folder:</emphasis> Specifies
|
---|
2729 | the directory on the host in which to store the imported
|
---|
2730 | VMs.
|
---|
2731 | </para>
|
---|
2732 |
|
---|
2733 | <para>
|
---|
2734 | If an appliance has multiple VMs, you can specify a
|
---|
2735 | different directory for each VM by editing the
|
---|
2736 | <emphasis role="bold">Base Folder</emphasis> setting for
|
---|
2737 | the VM.
|
---|
2738 | </para>
|
---|
2739 | </listitem>
|
---|
2740 |
|
---|
2741 | <listitem>
|
---|
2742 | <para>
|
---|
2743 | <emphasis role="bold">MAC Address Policy:</emphasis>
|
---|
2744 | Reinitializes the MAC addresses of network cards in your
|
---|
2745 | VMs prior to import, by default. You can override the
|
---|
2746 | default behavior and preserve the MAC addresses on
|
---|
2747 | import.
|
---|
2748 | </para>
|
---|
2749 | </listitem>
|
---|
2750 |
|
---|
2751 | <listitem>
|
---|
2752 | <para>
|
---|
2753 | <emphasis role="bold">Import Hard Drives as
|
---|
2754 | VDI:</emphasis> Imports hard drives in the VDI format
|
---|
2755 | rather than in the default VMDK format.
|
---|
2756 | </para>
|
---|
2757 | </listitem>
|
---|
2758 |
|
---|
2759 | </itemizedlist>
|
---|
2760 | </listitem>
|
---|
2761 |
|
---|
2762 | <listitem>
|
---|
2763 | <para>
|
---|
2764 | Click <emphasis role="bold">Import</emphasis> to import the
|
---|
2765 | appliance.
|
---|
2766 | </para>
|
---|
2767 |
|
---|
2768 | <para>
|
---|
2769 | &product-name; copies the disk images and creates local VMs
|
---|
2770 | with the settings described on the
|
---|
2771 | <emphasis role="bold">Appliance Settings</emphasis> screen.
|
---|
2772 | The imported VMs are shown in the list of VMs in VirtualBox
|
---|
2773 | Manager.
|
---|
2774 | </para>
|
---|
2775 |
|
---|
2776 | <para>
|
---|
2777 | Because disk images are large, the VMDK images that are
|
---|
2778 | included with virtual appliances are shipped in a compressed
|
---|
2779 | format that cannot be used directly by VMs. So, the images
|
---|
2780 | are first unpacked and copied, which might take several
|
---|
2781 | minutes.
|
---|
2782 | </para>
|
---|
2783 | </listitem>
|
---|
2784 |
|
---|
2785 | </orderedlist>
|
---|
2786 |
|
---|
2787 | <para>
|
---|
2788 | You can use the <command>VBoxManage import</command> command to
|
---|
2789 | import an appliance. See <xref linkend="vboxmanage-import" />.
|
---|
2790 | </para>
|
---|
2791 |
|
---|
2792 | </sect2>
|
---|
2793 |
|
---|
2794 | <sect2 id="ovf-export-appliance">
|
---|
2795 |
|
---|
2796 | <title>Exporting an Appliance in OVF Format</title>
|
---|
2797 |
|
---|
2798 | <para>
|
---|
2799 | The following steps show how to export an appliance in OVF
|
---|
2800 | format.
|
---|
2801 | </para>
|
---|
2802 |
|
---|
2803 | <orderedlist>
|
---|
2804 |
|
---|
2805 | <listitem>
|
---|
2806 | <para>
|
---|
2807 | Select <emphasis role="bold">File</emphasis>,
|
---|
2808 | <emphasis role="bold"> Export Appliance</emphasis> to open
|
---|
2809 | the <emphasis role="bold">Export Virtual
|
---|
2810 | Appliance</emphasis> wizard.
|
---|
2811 | </para>
|
---|
2812 |
|
---|
2813 | <para>
|
---|
2814 | From the initial window, you can combine several VMs into an
|
---|
2815 | OVF appliance.
|
---|
2816 | </para>
|
---|
2817 |
|
---|
2818 | <para>
|
---|
2819 | Select one or more VMs to export, and click
|
---|
2820 | <emphasis role="bold">Next</emphasis>.
|
---|
2821 | </para>
|
---|
2822 | </listitem>
|
---|
2823 |
|
---|
2824 | <listitem>
|
---|
2825 | <para>
|
---|
2826 | The <emphasis role="bold">Appliance Settings</emphasis>
|
---|
2827 | screen enables you to select the following settings:
|
---|
2828 | </para>
|
---|
2829 |
|
---|
2830 | <itemizedlist>
|
---|
2831 |
|
---|
2832 | <listitem>
|
---|
2833 | <para>
|
---|
2834 | <emphasis role="bold">Format:</emphasis> Selects the
|
---|
2835 | <emphasis role="bold">Open Virtualization
|
---|
2836 | Format</emphasis> value for the output files.
|
---|
2837 | </para>
|
---|
2838 |
|
---|
2839 | <para>
|
---|
2840 | The <emphasis role="bold">&oci;</emphasis> value exports
|
---|
2841 | the appliance to &oci;. See
|
---|
2842 | <xref linkend="cloud-export-oci"/>.
|
---|
2843 | </para>
|
---|
2844 | </listitem>
|
---|
2845 |
|
---|
2846 | <listitem>
|
---|
2847 | <para>
|
---|
2848 | <emphasis role="bold">File:</emphasis> Selects the
|
---|
2849 | location in which to store the exported files.
|
---|
2850 | </para>
|
---|
2851 | </listitem>
|
---|
2852 |
|
---|
2853 | <listitem>
|
---|
2854 | <para>
|
---|
2855 | <emphasis role="bold">MAC Address Policy:</emphasis>
|
---|
2856 | Specifies whether to retain or reassign network card MAC
|
---|
2857 | addresses on export.
|
---|
2858 | </para>
|
---|
2859 | </listitem>
|
---|
2860 |
|
---|
2861 | <listitem>
|
---|
2862 | <para>
|
---|
2863 | <emphasis role="bold">Write Manifest File:</emphasis>
|
---|
2864 | Enables you to include a manifest file in the exported
|
---|
2865 | archive file.
|
---|
2866 | </para>
|
---|
2867 | </listitem>
|
---|
2868 |
|
---|
2869 | <listitem>
|
---|
2870 | <para>
|
---|
2871 | <emphasis role="bold">Include ISO Image
|
---|
2872 | Files:</emphasis> Enables you to include ISO image files
|
---|
2873 | in the exported archive file.
|
---|
2874 | </para>
|
---|
2875 | </listitem>
|
---|
2876 |
|
---|
2877 | </itemizedlist>
|
---|
2878 | </listitem>
|
---|
2879 |
|
---|
2880 | <listitem>
|
---|
2881 | <para>
|
---|
2882 | Click <emphasis role="bold">Next</emphasis> to show the
|
---|
2883 | <emphasis role="bold">Virtual System Settings</emphasis>
|
---|
2884 | screen.
|
---|
2885 | </para>
|
---|
2886 |
|
---|
2887 | <para>
|
---|
2888 | You can edit settings for the virtual appliance. For
|
---|
2889 | example, you can change the name of the virtual appliance or
|
---|
2890 | add product information, such as vendor details or license
|
---|
2891 | text.
|
---|
2892 | </para>
|
---|
2893 |
|
---|
2894 | <para>
|
---|
2895 | Double-click the appropriate field to change its value.
|
---|
2896 | </para>
|
---|
2897 | </listitem>
|
---|
2898 |
|
---|
2899 | <listitem>
|
---|
2900 | <para>
|
---|
2901 | Click <emphasis role="bold">Export</emphasis> to begin the
|
---|
2902 | export process. Note that this operation might take several
|
---|
2903 | minutes.
|
---|
2904 | </para>
|
---|
2905 | </listitem>
|
---|
2906 |
|
---|
2907 | </orderedlist>
|
---|
2908 |
|
---|
2909 | <para>
|
---|
2910 | You can use the <command>VBoxManage export</command> command to
|
---|
2911 | export an appliance. See <xref linkend="vboxmanage-export" />.
|
---|
2912 | </para>
|
---|
2913 |
|
---|
2914 | </sect2>
|
---|
2915 |
|
---|
2916 | </sect1>
|
---|
2917 |
|
---|
2918 | <sect1 id="cloud-integration">
|
---|
2919 |
|
---|
2920 | <title>Integrating with &oci;</title>
|
---|
2921 |
|
---|
2922 | <para>
|
---|
2923 | This section describes how to use the features of &product-name;
|
---|
2924 | to integrate with &oci;.
|
---|
2925 | </para>
|
---|
2926 |
|
---|
2927 | <para>
|
---|
2928 | Integrating with &oci; involves the following steps:
|
---|
2929 | </para>
|
---|
2930 |
|
---|
2931 | <itemizedlist>
|
---|
2932 |
|
---|
2933 | <listitem>
|
---|
2934 | <para>
|
---|
2935 | <emphasis role="bold">Prepare for &oci;
|
---|
2936 | Integration.</emphasis> Before using &product-name; with &oci;
|
---|
2937 | there are some initial configuration steps you may need to do.
|
---|
2938 | See <xref linkend="cloud-integration-steps"/>.
|
---|
2939 | </para>
|
---|
2940 | </listitem>
|
---|
2941 |
|
---|
2942 | <listitem>
|
---|
2943 | <para>
|
---|
2944 | <emphasis role="bold">Use &product-name; with
|
---|
2945 | &oci;.</emphasis> <xref linkend="cloud-vbox-oci-tasks"/>
|
---|
2946 | describes how you can use &product-name; with &oci;.
|
---|
2947 | </para>
|
---|
2948 | </listitem>
|
---|
2949 |
|
---|
2950 | </itemizedlist>
|
---|
2951 |
|
---|
2952 | <sect2 id="cloud-integration-steps">
|
---|
2953 |
|
---|
2954 | <title>Preparing for &oci; Integration</title>
|
---|
2955 |
|
---|
2956 | <para>
|
---|
2957 | Perform the following configuration steps before using
|
---|
2958 | &product-name; to integrate with your &oci; account.
|
---|
2959 | </para>
|
---|
2960 |
|
---|
2961 | <orderedlist>
|
---|
2962 |
|
---|
2963 | <listitem>
|
---|
2964 | <para>
|
---|
2965 | <emphasis role="bold">Install the Extension Pack.</emphasis>
|
---|
2966 | Cloud integration features are only available when you
|
---|
2967 | install the &product-name; Extension Pack. See
|
---|
2968 | <xref linkend="intro-installing"/>.
|
---|
2969 | </para>
|
---|
2970 | </listitem>
|
---|
2971 |
|
---|
2972 | <listitem>
|
---|
2973 | <para>
|
---|
2974 | <emphasis role="bold">Create a key pair.</emphasis> Generate
|
---|
2975 | an API signing key pair that is used for API requests to
|
---|
2976 | &oci;. See <xref linkend="cloud-create-api-keypair"/>.
|
---|
2977 | </para>
|
---|
2978 |
|
---|
2979 | <para>
|
---|
2980 | Upload the public key of the key pair from your client
|
---|
2981 | device to the cloud service. See
|
---|
2982 | <xref linkend="cloud-upload-public-key"/>.
|
---|
2983 | </para>
|
---|
2984 | </listitem>
|
---|
2985 |
|
---|
2986 | <listitem>
|
---|
2987 | <para>
|
---|
2988 | <emphasis role="bold">Create a cloud profile.</emphasis> The
|
---|
2989 | cloud profile contains resource identifiers for your cloud
|
---|
2990 | account, such as your user OCID, and details of your key
|
---|
2991 | pair. See <xref linkend="cloud-create-cloud-profile"/>.
|
---|
2992 | </para>
|
---|
2993 | </listitem>
|
---|
2994 |
|
---|
2995 | </orderedlist>
|
---|
2996 |
|
---|
2997 | </sect2>
|
---|
2998 |
|
---|
2999 | <sect2 id="cloud-create-api-keypair">
|
---|
3000 |
|
---|
3001 | <title>Creating an API Signing Key Pair</title>
|
---|
3002 |
|
---|
3003 | <para></para>
|
---|
3004 |
|
---|
3005 | <para>
|
---|
3006 | To use the cloud integration features of &product-name;, you
|
---|
3007 | must generate an API signing key pair that is used for API
|
---|
3008 | requests to &oci;.
|
---|
3009 | </para>
|
---|
3010 |
|
---|
3011 | <para>
|
---|
3012 | Your API requests are signed with your private key, and &oci;
|
---|
3013 | uses the public key to verify the authenticity of the request.
|
---|
3014 | You must upload the public key to the &oci; Console.
|
---|
3015 | </para>
|
---|
3016 |
|
---|
3017 | <note>
|
---|
3018 | <para>
|
---|
3019 | This key pair is not the same SSH key that you use to access
|
---|
3020 | compute instances on &oci;.
|
---|
3021 | </para>
|
---|
3022 | </note>
|
---|
3023 |
|
---|
3024 | <orderedlist>
|
---|
3025 |
|
---|
3026 | <listitem>
|
---|
3027 | <para>
|
---|
3028 | (Optional) Create a <filename>.oci</filename> directory to
|
---|
3029 | store the key pair.
|
---|
3030 | </para>
|
---|
3031 |
|
---|
3032 | <screen>$ mkdir ~/.oci</screen>
|
---|
3033 |
|
---|
3034 | <para>
|
---|
3035 | The key pair is usually installed in the
|
---|
3036 | <filename>.oci</filename> folder in your home directory. For
|
---|
3037 | example, <filename>~/.oci</filename> on a Linux system.
|
---|
3038 | </para>
|
---|
3039 | </listitem>
|
---|
3040 |
|
---|
3041 | <listitem>
|
---|
3042 | <para>
|
---|
3043 | Generate the private key.
|
---|
3044 | </para>
|
---|
3045 |
|
---|
3046 | <para>
|
---|
3047 | Use the <command>openssl</command> command.
|
---|
3048 | </para>
|
---|
3049 |
|
---|
3050 | <itemizedlist>
|
---|
3051 |
|
---|
3052 | <listitem>
|
---|
3053 | <para>
|
---|
3054 | To generate a private key with a passphrase:
|
---|
3055 | </para>
|
---|
3056 |
|
---|
3057 | <screen>$ openssl genrsa -out ~/.oci/oci_api_key.pem -aes128 2048 </screen>
|
---|
3058 | </listitem>
|
---|
3059 |
|
---|
3060 | <listitem>
|
---|
3061 | <para>
|
---|
3062 | To generate a private key without a passphrase:
|
---|
3063 | </para>
|
---|
3064 |
|
---|
3065 | <screen>$ openssl genrsa -out ~/.oci/oci_api_key.pem 2048</screen>
|
---|
3066 | </listitem>
|
---|
3067 |
|
---|
3068 | </itemizedlist>
|
---|
3069 | </listitem>
|
---|
3070 |
|
---|
3071 | <listitem>
|
---|
3072 | <para>
|
---|
3073 | Change permissions for the private key.
|
---|
3074 | </para>
|
---|
3075 |
|
---|
3076 | <screen>$ chmod 600 ~/.oci/oci_api_key.pem</screen>
|
---|
3077 |
|
---|
3078 | <para>
|
---|
3079 | Generate the public key.
|
---|
3080 | </para>
|
---|
3081 |
|
---|
3082 | <screen>$ openssl rsa -pubout -in ~/.oci/oci_api_key.pem -out ~/.oci/oci_api_key_public.pem</screen>
|
---|
3083 | </listitem>
|
---|
3084 |
|
---|
3085 | </orderedlist>
|
---|
3086 |
|
---|
3087 | </sect2>
|
---|
3088 |
|
---|
3089 | <sect2 id="cloud-upload-public-key">
|
---|
3090 |
|
---|
3091 | <title>Uploading the Public Key to &oci;</title>
|
---|
3092 |
|
---|
3093 | <para>
|
---|
3094 | Use the following steps to upload your public key to &oci;.
|
---|
3095 | </para>
|
---|
3096 |
|
---|
3097 | <orderedlist>
|
---|
3098 |
|
---|
3099 | <listitem>
|
---|
3100 | <para>
|
---|
3101 | Log in to the &oci; Console.
|
---|
3102 | </para>
|
---|
3103 | </listitem>
|
---|
3104 |
|
---|
3105 | <listitem>
|
---|
3106 | <para>
|
---|
3107 | Display the <emphasis role="bold">User Settings</emphasis>
|
---|
3108 | page.
|
---|
3109 | </para>
|
---|
3110 |
|
---|
3111 | <para>
|
---|
3112 | Click <emphasis role="bold">Profile</emphasis>,
|
---|
3113 | <emphasis role="bold">User Settings</emphasis>.
|
---|
3114 | </para>
|
---|
3115 | </listitem>
|
---|
3116 |
|
---|
3117 | <listitem>
|
---|
3118 | <para>
|
---|
3119 | Display your current API signing keys.
|
---|
3120 | </para>
|
---|
3121 |
|
---|
3122 | <para>
|
---|
3123 | Click <emphasis role="bold">Resources</emphasis>,
|
---|
3124 | <emphasis role="bold">API Keys</emphasis>.
|
---|
3125 | </para>
|
---|
3126 | </listitem>
|
---|
3127 |
|
---|
3128 | <listitem>
|
---|
3129 | <para>
|
---|
3130 | Upload the public key.
|
---|
3131 | </para>
|
---|
3132 |
|
---|
3133 | <para>
|
---|
3134 | Click <emphasis role="bold">Add Public Key</emphasis>.
|
---|
3135 | </para>
|
---|
3136 |
|
---|
3137 | <para>
|
---|
3138 | The <emphasis role="bold">Add Public Key</emphasis> dialog
|
---|
3139 | is displayed.
|
---|
3140 | </para>
|
---|
3141 |
|
---|
3142 | <figure id="fig-upload-key-oci">
|
---|
3143 | <title>Upload Public Key Dialog in &oci; Console</title>
|
---|
3144 | <mediaobject>
|
---|
3145 | <imageobject>
|
---|
3146 | <imagedata align="center" fileref="images/upload-key.png"
|
---|
3147 | width="12cm" />
|
---|
3148 | </imageobject>
|
---|
3149 | </mediaobject>
|
---|
3150 |
|
---|
3151 | </figure>
|
---|
3152 |
|
---|
3153 | <para>
|
---|
3154 | Select one of the following options:
|
---|
3155 | </para>
|
---|
3156 |
|
---|
3157 | <itemizedlist>
|
---|
3158 |
|
---|
3159 | <listitem>
|
---|
3160 | <para>
|
---|
3161 | <emphasis role="bold">Choose Public Key File.</emphasis>
|
---|
3162 | This option enables you to browse to the public key file
|
---|
3163 | on your local hard disk.
|
---|
3164 | </para>
|
---|
3165 | </listitem>
|
---|
3166 |
|
---|
3167 | <listitem>
|
---|
3168 | <para>
|
---|
3169 | <emphasis role="bold">Paste Public Keys.</emphasis> This
|
---|
3170 | option enables you to paste the contents of the public
|
---|
3171 | key file into the window in the dialog box.
|
---|
3172 | </para>
|
---|
3173 | </listitem>
|
---|
3174 |
|
---|
3175 | </itemizedlist>
|
---|
3176 |
|
---|
3177 | <para>
|
---|
3178 | Click <emphasis role="bold">Add</emphasis> to upload the
|
---|
3179 | public key.
|
---|
3180 | </para>
|
---|
3181 | </listitem>
|
---|
3182 |
|
---|
3183 | </orderedlist>
|
---|
3184 |
|
---|
3185 | </sect2>
|
---|
3186 |
|
---|
3187 | <sect2 id="cloud-create-cloud-profile">
|
---|
3188 |
|
---|
3189 | <title>Creating a Cloud Profile</title>
|
---|
3190 |
|
---|
3191 | <para>
|
---|
3192 | &product-name; uses a <emphasis>cloud profile</emphasis> to
|
---|
3193 | connect to &oci;. A cloud profile is a text file that contains
|
---|
3194 | details of your key files and Oracle Cloud Identifier (OCID)
|
---|
3195 | resource identifiers for your cloud account, such as the
|
---|
3196 | following:
|
---|
3197 | </para>
|
---|
3198 |
|
---|
3199 | <itemizedlist>
|
---|
3200 |
|
---|
3201 | <listitem>
|
---|
3202 | <para>
|
---|
3203 | <emphasis role="bold">Fingerprint of the public
|
---|
3204 | key.</emphasis> To obtain the fingerprint, you can use the
|
---|
3205 | <command>openssl</command> command:
|
---|
3206 | </para>
|
---|
3207 |
|
---|
3208 | <screen>$ openssl rsa -pubout -outform DER -in ~/.oci/oci_api_key.pem | openssl md5 -c</screen>
|
---|
3209 | </listitem>
|
---|
3210 |
|
---|
3211 | <listitem>
|
---|
3212 | <para>
|
---|
3213 | <emphasis role="bold">Location of the private key on the
|
---|
3214 | client device.</emphasis> Specify the full path to the
|
---|
3215 | private key.
|
---|
3216 | </para>
|
---|
3217 | </listitem>
|
---|
3218 |
|
---|
3219 | <listitem>
|
---|
3220 | <para>
|
---|
3221 | <emphasis role="bold">(Optional) Passphrase for the private
|
---|
3222 | key.</emphasis>. This is only required if the key is
|
---|
3223 | encrypted.
|
---|
3224 | </para>
|
---|
3225 | </listitem>
|
---|
3226 |
|
---|
3227 | <listitem>
|
---|
3228 | <para>
|
---|
3229 | <emphasis role="bold">Region</emphasis>. Shown on the &oci;
|
---|
3230 | Console. Click
|
---|
3231 | <emphasis role="bold">Administration</emphasis>,
|
---|
3232 | <emphasis role="bold">Tenancy Details</emphasis>.
|
---|
3233 | </para>
|
---|
3234 | </listitem>
|
---|
3235 |
|
---|
3236 | <listitem>
|
---|
3237 | <para>
|
---|
3238 | <emphasis role="bold">Tenancy OCID.</emphasis> Shown on the
|
---|
3239 | &oci; Console. Click
|
---|
3240 | <emphasis role="bold">Administration</emphasis>,
|
---|
3241 | <emphasis role="bold">Tenancy Details</emphasis>.
|
---|
3242 | </para>
|
---|
3243 |
|
---|
3244 | <para>
|
---|
3245 | A link enables you to copy the Tenancy OCID.
|
---|
3246 | </para>
|
---|
3247 | </listitem>
|
---|
3248 |
|
---|
3249 | <listitem>
|
---|
3250 | <para>
|
---|
3251 | <emphasis role="bold">Compartment OCID.</emphasis> Shown on
|
---|
3252 | the &oci; Console. Click
|
---|
3253 | <emphasis role="bold">Identity</emphasis>,
|
---|
3254 | <emphasis role="bold">Compartments</emphasis>.
|
---|
3255 | </para>
|
---|
3256 |
|
---|
3257 | <para>
|
---|
3258 | A link enables you to copy the Compartment OCID.
|
---|
3259 | </para>
|
---|
3260 | </listitem>
|
---|
3261 |
|
---|
3262 | <listitem>
|
---|
3263 | <para>
|
---|
3264 | <emphasis role="bold">User OCID.</emphasis> Shown on the
|
---|
3265 | &oci; Console. Click
|
---|
3266 | <emphasis role="bold">Profile</emphasis>,
|
---|
3267 | <emphasis role="bold">User Settings</emphasis>.
|
---|
3268 | </para>
|
---|
3269 |
|
---|
3270 | <para>
|
---|
3271 | A link enables you to copy the User OCID.
|
---|
3272 | </para>
|
---|
3273 | </listitem>
|
---|
3274 |
|
---|
3275 | </itemizedlist>
|
---|
3276 |
|
---|
3277 | <para>
|
---|
3278 | You can create a cloud profile in the following ways:
|
---|
3279 | </para>
|
---|
3280 |
|
---|
3281 | <itemizedlist>
|
---|
3282 |
|
---|
3283 | <listitem>
|
---|
3284 | <para>
|
---|
3285 | Automatically, by using the <emphasis role="bold">Cloud
|
---|
3286 | Profile Manager</emphasis>. See
|
---|
3287 | <xref linkend="cloud-using-cloud-profile-manager"/>.
|
---|
3288 | </para>
|
---|
3289 |
|
---|
3290 | <para>
|
---|
3291 | The Cloud Profile Manager is a component of &product-name;
|
---|
3292 | that enables you to create, edit, and manage cloud profiles
|
---|
3293 | for your cloud service accounts.
|
---|
3294 | </para>
|
---|
3295 | </listitem>
|
---|
3296 |
|
---|
3297 | <listitem>
|
---|
3298 | <para>
|
---|
3299 | Automatically, by using the <command>VBoxManage
|
---|
3300 | cloudprofile</command> command. See
|
---|
3301 | <xref linkend="vboxmanage-cloudprofile"/>.
|
---|
3302 | </para>
|
---|
3303 | </listitem>
|
---|
3304 |
|
---|
3305 | <listitem>
|
---|
3306 | <para>
|
---|
3307 | Manually, by creating an <filename>oci_config</filename>
|
---|
3308 | file in your &product-name; global configuration directory.
|
---|
3309 | For example, this is
|
---|
3310 | <filename>$HOME/.config/VirtualBox/oci_config</filename> on
|
---|
3311 | a Linux host.
|
---|
3312 | </para>
|
---|
3313 | </listitem>
|
---|
3314 |
|
---|
3315 | <listitem>
|
---|
3316 | <para>
|
---|
3317 | Manually, by creating a <filename>config</filename> file in
|
---|
3318 | your &oci; configuration directory. For example, this is
|
---|
3319 | <filename>$HOME/.oci/config</filename> on a Linux host.
|
---|
3320 | </para>
|
---|
3321 |
|
---|
3322 | <para>
|
---|
3323 | This is the same file that is used by the &oci; command line
|
---|
3324 | interface.
|
---|
3325 | </para>
|
---|
3326 |
|
---|
3327 | <para>
|
---|
3328 | &product-name; automatically uses the
|
---|
3329 | <filename>config</filename> file if no cloud profile file is
|
---|
3330 | present in your global configuration directory.
|
---|
3331 | Alternatively, you can import this file manually into the
|
---|
3332 | Cloud Profile Manager.
|
---|
3333 | </para>
|
---|
3334 | </listitem>
|
---|
3335 |
|
---|
3336 | </itemizedlist>
|
---|
3337 |
|
---|
3338 | </sect2>
|
---|
3339 |
|
---|
3340 | <sect2 id="cloud-using-cloud-profile-manager">
|
---|
3341 |
|
---|
3342 | <title>Using the Cloud Profile Manager</title>
|
---|
3343 |
|
---|
3344 | <para>
|
---|
3345 | This section describes how to use the Cloud Profile Manager to
|
---|
3346 | create a cloud profile.
|
---|
3347 | </para>
|
---|
3348 |
|
---|
3349 | <para>
|
---|
3350 | To open the Cloud Profile Manager click
|
---|
3351 | <emphasis role="bold">File</emphasis>,
|
---|
3352 | <emphasis role="bold">Cloud Profile Manager</emphasis> in the
|
---|
3353 | VirtualBox Manager window.
|
---|
3354 | </para>
|
---|
3355 |
|
---|
3356 | <figure id="fig-cloud-profile-manager">
|
---|
3357 | <title>The Cloud Profile Manager</title>
|
---|
3358 | <mediaobject>
|
---|
3359 | <imageobject>
|
---|
3360 | <imagedata align="center" fileref="images/cloud-profile-manager.png"
|
---|
3361 | width="12cm" />
|
---|
3362 | </imageobject>
|
---|
3363 | </mediaobject>
|
---|
3364 | </figure>
|
---|
3365 |
|
---|
3366 | <para>
|
---|
3367 | You can use the Cloud Profile Manager in the following ways:
|
---|
3368 | </para>
|
---|
3369 |
|
---|
3370 | <itemizedlist>
|
---|
3371 |
|
---|
3372 | <listitem>
|
---|
3373 | <para>
|
---|
3374 | To create a new cloud profile automatically
|
---|
3375 | </para>
|
---|
3376 | </listitem>
|
---|
3377 |
|
---|
3378 | <listitem>
|
---|
3379 | <para>
|
---|
3380 | To create a cloud profile by importing settings from your
|
---|
3381 | &oci; configuration file.
|
---|
3382 | </para>
|
---|
3383 | </listitem>
|
---|
3384 |
|
---|
3385 | </itemizedlist>
|
---|
3386 |
|
---|
3387 | <para>
|
---|
3388 | Perform the following steps to create a new cloud profile
|
---|
3389 | automatically, using the Cloud Profile Manager:
|
---|
3390 | </para>
|
---|
3391 |
|
---|
3392 | <orderedlist>
|
---|
3393 |
|
---|
3394 | <listitem>
|
---|
3395 | <para>
|
---|
3396 | Click the <emphasis role="bold">Add</emphasis> icon and
|
---|
3397 | specify a <emphasis role="bold">Name</emphasis> for the
|
---|
3398 | profile.
|
---|
3399 | </para>
|
---|
3400 | </listitem>
|
---|
3401 |
|
---|
3402 | <listitem>
|
---|
3403 | <para>
|
---|
3404 | Click <emphasis role="bold">Properties</emphasis> and
|
---|
3405 | specify the following property values for the profile:
|
---|
3406 | </para>
|
---|
3407 |
|
---|
3408 | <itemizedlist>
|
---|
3409 |
|
---|
3410 | <listitem>
|
---|
3411 | <para>
|
---|
3412 | Compartment OCID
|
---|
3413 | </para>
|
---|
3414 | </listitem>
|
---|
3415 |
|
---|
3416 | <listitem>
|
---|
3417 | <para>
|
---|
3418 | Fingerprint of the public key
|
---|
3419 | </para>
|
---|
3420 | </listitem>
|
---|
3421 |
|
---|
3422 | <listitem>
|
---|
3423 | <para>
|
---|
3424 | Location of the private key on the client device
|
---|
3425 | </para>
|
---|
3426 | </listitem>
|
---|
3427 |
|
---|
3428 | <!-- <listitem>
|
---|
3429 | <para>
|
---|
3430 | (Optional) Passphrase for the private key, if the key is
|
---|
3431 | encrypted
|
---|
3432 | </para>
|
---|
3433 | </listitem>-->
|
---|
3434 |
|
---|
3435 | <listitem>
|
---|
3436 | <para>
|
---|
3437 | Region OCID
|
---|
3438 | </para>
|
---|
3439 | </listitem>
|
---|
3440 |
|
---|
3441 | <listitem>
|
---|
3442 | <para>
|
---|
3443 | Tenancy OCID
|
---|
3444 | </para>
|
---|
3445 | </listitem>
|
---|
3446 |
|
---|
3447 | <listitem>
|
---|
3448 | <para>
|
---|
3449 | User OCID
|
---|
3450 | </para>
|
---|
3451 | </listitem>
|
---|
3452 |
|
---|
3453 | </itemizedlist>
|
---|
3454 |
|
---|
3455 | <para>
|
---|
3456 | Some of these are settings for your &oci; account, which you
|
---|
3457 | can view from the &oci; Console.
|
---|
3458 | </para>
|
---|
3459 | </listitem>
|
---|
3460 |
|
---|
3461 | <listitem>
|
---|
3462 | <para>
|
---|
3463 | Click <emphasis role="bold">Apply</emphasis> to save your
|
---|
3464 | changes.
|
---|
3465 | </para>
|
---|
3466 |
|
---|
3467 | <para>
|
---|
3468 | The cloud profile settings are saved in the
|
---|
3469 | <filename>oci_config</filename> file in your &product-name;
|
---|
3470 | global settings directory.
|
---|
3471 | </para>
|
---|
3472 | </listitem>
|
---|
3473 |
|
---|
3474 | </orderedlist>
|
---|
3475 |
|
---|
3476 | <para>
|
---|
3477 | Perform the following steps to import an existing &oci;
|
---|
3478 | configuration file into the Cloud Profile Manager:
|
---|
3479 | </para>
|
---|
3480 |
|
---|
3481 | <orderedlist>
|
---|
3482 |
|
---|
3483 | <listitem>
|
---|
3484 | <para>
|
---|
3485 | Ensure that a <filename>config</filename> file is present in
|
---|
3486 | your &oci; configuration directory. For example, this is
|
---|
3487 | <filename>$HOME/.oci/config</filename> on a Linux host.
|
---|
3488 | </para>
|
---|
3489 | </listitem>
|
---|
3490 |
|
---|
3491 | <listitem>
|
---|
3492 | <para>
|
---|
3493 | Click the <emphasis role="bold">Import</emphasis> icon to
|
---|
3494 | open a dialog that prompts you to import cloud profiles from
|
---|
3495 | external files.
|
---|
3496 | </para>
|
---|
3497 |
|
---|
3498 | <warning>
|
---|
3499 | <para>
|
---|
3500 | This action overwrites any cloud profiles that are in your
|
---|
3501 | &product-name; global settings directory.
|
---|
3502 | </para>
|
---|
3503 | </warning>
|
---|
3504 | </listitem>
|
---|
3505 |
|
---|
3506 | <listitem>
|
---|
3507 | <para>
|
---|
3508 | Click <emphasis role="bold">Import</emphasis>.
|
---|
3509 | </para>
|
---|
3510 |
|
---|
3511 | <para>
|
---|
3512 | Your cloud profile settings are saved to the
|
---|
3513 | <filename>oci_config</filename> file in your &product-name;
|
---|
3514 | global settings directory.
|
---|
3515 | </para>
|
---|
3516 | </listitem>
|
---|
3517 |
|
---|
3518 | <listitem>
|
---|
3519 | <para>
|
---|
3520 | Click <emphasis role="bold">Properties</emphasis> to show
|
---|
3521 | the cloud profile settings.
|
---|
3522 | </para>
|
---|
3523 |
|
---|
3524 | <para>
|
---|
3525 | Double-click on the appropriate field to change the value.
|
---|
3526 | </para>
|
---|
3527 | </listitem>
|
---|
3528 |
|
---|
3529 | <listitem>
|
---|
3530 | <para>
|
---|
3531 | Click <emphasis role="bold">Apply</emphasis> to save your
|
---|
3532 | changes.
|
---|
3533 | </para>
|
---|
3534 | </listitem>
|
---|
3535 |
|
---|
3536 | </orderedlist>
|
---|
3537 |
|
---|
3538 | </sect2>
|
---|
3539 |
|
---|
3540 | <sect2 id="cloud-vbox-oci-tasks">
|
---|
3541 |
|
---|
3542 | <title>Using &product-name; With &oci;</title>
|
---|
3543 |
|
---|
3544 | <para>
|
---|
3545 | This section describes how you can use &product-name; with &oci;
|
---|
3546 | to do the following tasks:
|
---|
3547 | </para>
|
---|
3548 |
|
---|
3549 | <itemizedlist>
|
---|
3550 |
|
---|
3551 | <listitem>
|
---|
3552 | <para>
|
---|
3553 | Export an &product-name; VM to &oci;. See
|
---|
3554 | <xref linkend="cloud-export-oci"/>.
|
---|
3555 | </para>
|
---|
3556 | </listitem>
|
---|
3557 |
|
---|
3558 | <listitem>
|
---|
3559 | <para>
|
---|
3560 | Import a cloud instance into &product-name;. See
|
---|
3561 | <xref linkend="cloud-import-oci"/>.
|
---|
3562 | </para>
|
---|
3563 | </listitem>
|
---|
3564 |
|
---|
3565 | <listitem>
|
---|
3566 | <para>
|
---|
3567 | Create a new cloud instance from a custom image stored on
|
---|
3568 | &oci;. See <xref linkend="cloud-new-vm"/>.
|
---|
3569 | </para>
|
---|
3570 | </listitem>
|
---|
3571 |
|
---|
3572 | <listitem>
|
---|
3573 | <para>
|
---|
3574 | Use the <command>VBoxManage</command> commands to integrate
|
---|
3575 | with &oci; and perform cloud operations. See
|
---|
3576 | <xref linkend="cloud-using-cli"/>.
|
---|
3577 | </para>
|
---|
3578 | </listitem>
|
---|
3579 |
|
---|
3580 | </itemizedlist>
|
---|
3581 |
|
---|
3582 | </sect2>
|
---|
3583 |
|
---|
3584 | <sect2 id="cloud-export-oci">
|
---|
3585 |
|
---|
3586 | <title>Exporting an Appliance to &oci;</title>
|
---|
3587 |
|
---|
3588 | <para>
|
---|
3589 | &product-name; supports the export of VMs to an &oci; service.
|
---|
3590 | The exported VM is stored on &oci; as a custom Linux image. You
|
---|
3591 | can configure whether a cloud instance is created and started
|
---|
3592 | after the export process has completed.
|
---|
3593 | </para>
|
---|
3594 |
|
---|
3595 | <note>
|
---|
3596 | <para>
|
---|
3597 | Before you export a VM to &oci;, you must prepare the VM as
|
---|
3598 | described in <xref linkend="cloud-export-oci-prepare-vm"/>.
|
---|
3599 | </para>
|
---|
3600 | </note>
|
---|
3601 |
|
---|
3602 | <para>
|
---|
3603 | Use the following steps to export a VM to &oci;:
|
---|
3604 | </para>
|
---|
3605 |
|
---|
3606 | <orderedlist>
|
---|
3607 |
|
---|
3608 | <listitem>
|
---|
3609 | <para>
|
---|
3610 | Select <emphasis role="bold">File</emphasis>,
|
---|
3611 | <emphasis role="bold">Export Appliance</emphasis> to open
|
---|
3612 | the <emphasis role="bold">Export Virtual
|
---|
3613 | Appliance</emphasis> wizard.
|
---|
3614 | </para>
|
---|
3615 |
|
---|
3616 | <para>
|
---|
3617 | Select a VM to export and click
|
---|
3618 | <emphasis role="bold">Next</emphasis> to open the
|
---|
3619 | <emphasis role="bold">Appliance Settings</emphasis> screen.
|
---|
3620 | </para>
|
---|
3621 | </listitem>
|
---|
3622 |
|
---|
3623 | <listitem>
|
---|
3624 | <para>
|
---|
3625 | From the <emphasis role="bold">Format</emphasis> drop-down
|
---|
3626 | list, select <emphasis role="bold">&oci;</emphasis>.
|
---|
3627 | </para>
|
---|
3628 |
|
---|
3629 | <para>
|
---|
3630 | In the <emphasis role="bold">Account</emphasis> drop-down
|
---|
3631 | list, select the cloud profile for your &oci; account.
|
---|
3632 | </para>
|
---|
3633 |
|
---|
3634 | <para>
|
---|
3635 | The list after the <emphasis role="bold">Account</emphasis>
|
---|
3636 | field shows the profile settings for your cloud account.
|
---|
3637 | </para>
|
---|
3638 |
|
---|
3639 | <figure id="fig-export-appliance-oci">
|
---|
3640 | <title>Appliance Settings Screen, Showing Cloud Profile and Machine Creation
|
---|
3641 | Settings</title>
|
---|
3642 | <mediaobject>
|
---|
3643 | <imageobject>
|
---|
3644 | <imagedata align="center" fileref="images/export-appliance-oci.png"
|
---|
3645 | width="12cm" />
|
---|
3646 | </imageobject>
|
---|
3647 | </mediaobject>
|
---|
3648 | </figure>
|
---|
3649 |
|
---|
3650 | <para>
|
---|
3651 | In the <emphasis role="bold">Machine Creation</emphasis>
|
---|
3652 | field, select an option to configure settings for a cloud
|
---|
3653 | instance created when you export to &oci;. The options
|
---|
3654 | enable you to do one of the following:
|
---|
3655 | </para>
|
---|
3656 |
|
---|
3657 | <itemizedlist>
|
---|
3658 |
|
---|
3659 | <listitem>
|
---|
3660 | <para>
|
---|
3661 | Configure settings for the cloud instance
|
---|
3662 | <emphasis>after</emphasis> you have finished exporting
|
---|
3663 | the VM.
|
---|
3664 | </para>
|
---|
3665 | </listitem>
|
---|
3666 |
|
---|
3667 | <listitem>
|
---|
3668 | <para>
|
---|
3669 | Configure settings for the cloud instance
|
---|
3670 | <emphasis>before</emphasis> you start to export the VM.
|
---|
3671 | </para>
|
---|
3672 | </listitem>
|
---|
3673 |
|
---|
3674 | <listitem>
|
---|
3675 | <para>
|
---|
3676 | Do not create a cloud instance when you export the VM.
|
---|
3677 | </para>
|
---|
3678 | </listitem>
|
---|
3679 |
|
---|
3680 | </itemizedlist>
|
---|
3681 |
|
---|
3682 | <para>
|
---|
3683 | Click <emphasis role="bold">Next</emphasis> to make an API
|
---|
3684 | request to the &oci; service and open the
|
---|
3685 | <emphasis role="bold">Virtual System Settings</emphasis>
|
---|
3686 | screen.
|
---|
3687 | </para>
|
---|
3688 | </listitem>
|
---|
3689 |
|
---|
3690 | <listitem>
|
---|
3691 | <para>
|
---|
3692 | (Optional) Edit storage settings used for the exported
|
---|
3693 | virtual machine in &oci;. You can change the following
|
---|
3694 | settings:
|
---|
3695 | </para>
|
---|
3696 |
|
---|
3697 | <itemizedlist>
|
---|
3698 |
|
---|
3699 | <listitem>
|
---|
3700 | <para>
|
---|
3701 | The name of the bucket used to store the exported files.
|
---|
3702 | </para>
|
---|
3703 | </listitem>
|
---|
3704 |
|
---|
3705 | <listitem>
|
---|
3706 | <para>
|
---|
3707 | Whether to store the custom image in &oci;.
|
---|
3708 | </para>
|
---|
3709 | </listitem>
|
---|
3710 |
|
---|
3711 | <listitem>
|
---|
3712 | <para>
|
---|
3713 | The name for the custom image in &oci;.
|
---|
3714 | </para>
|
---|
3715 | </listitem>
|
---|
3716 |
|
---|
3717 | <listitem>
|
---|
3718 | <para>
|
---|
3719 | The launch mode for the custom image.
|
---|
3720 | </para>
|
---|
3721 |
|
---|
3722 | <para>
|
---|
3723 | <emphasis role="bold">Paravirtualized</emphasis> mode
|
---|
3724 | gives improved performance and should be suitable for
|
---|
3725 | most &product-name; VMs.
|
---|
3726 | </para>
|
---|
3727 |
|
---|
3728 | <para>
|
---|
3729 | <emphasis role="bold">Emulated</emphasis> mode is
|
---|
3730 | suitable for legacy OS images.
|
---|
3731 | </para>
|
---|
3732 | </listitem>
|
---|
3733 |
|
---|
3734 | </itemizedlist>
|
---|
3735 |
|
---|
3736 | <para>
|
---|
3737 | Click <emphasis role="bold">Export</emphasis> to continue.
|
---|
3738 | </para>
|
---|
3739 | </listitem>
|
---|
3740 |
|
---|
3741 | <listitem>
|
---|
3742 | <para>
|
---|
3743 | Depending on the selection in the
|
---|
3744 | <emphasis role="bold">Machine Creation</emphasis> field, the
|
---|
3745 | <emphasis role="bold">Cloud Virtual Machine
|
---|
3746 | Settings</emphasis> screen may be displayed before or after
|
---|
3747 | export. This screen enables you to configure settings for
|
---|
3748 | the cloud instance, such as Shape and Disk Size.
|
---|
3749 | </para>
|
---|
3750 |
|
---|
3751 | <para>
|
---|
3752 | Click <emphasis role="bold">Create</emphasis>. The VM is
|
---|
3753 | exported to &oci;.
|
---|
3754 | </para>
|
---|
3755 |
|
---|
3756 | <para>
|
---|
3757 | Depending on the <emphasis role="bold">Machine
|
---|
3758 | Creation</emphasis> setting, a cloud instance may be started
|
---|
3759 | after upload to &oci; is completed.
|
---|
3760 | </para>
|
---|
3761 | </listitem>
|
---|
3762 |
|
---|
3763 | <listitem>
|
---|
3764 | <para>
|
---|
3765 | Monitor the export process by using the &oci; Console.
|
---|
3766 | </para>
|
---|
3767 | </listitem>
|
---|
3768 |
|
---|
3769 | </orderedlist>
|
---|
3770 |
|
---|
3771 | <para>
|
---|
3772 | You can also use the <command>VBoxManage export</command>
|
---|
3773 | command to export a VM to &oci;. See
|
---|
3774 | <xref linkend="vboxmanage-export-cloud"/>.
|
---|
3775 | </para>
|
---|
3776 |
|
---|
3777 | <sect3 id="cloud-export-oci-prepare-vm">
|
---|
3778 |
|
---|
3779 | <title>Preparing a VM for Export to &oci;</title>
|
---|
3780 |
|
---|
3781 | <para>
|
---|
3782 | &oci; provides the option to import a custom Linux image.
|
---|
3783 | Before an &product-name; image can be exported to &oci;, the
|
---|
3784 | custom image needs to be prepared to ensure that instances
|
---|
3785 | launched from the custom image can boot correctly and that
|
---|
3786 | network connections will work. This section provides advice on
|
---|
3787 | how to prepare a Linux image for export from &product-name;.
|
---|
3788 | </para>
|
---|
3789 |
|
---|
3790 | <para>
|
---|
3791 | The following list shows some tasks to consider when preparing
|
---|
3792 | an Oracle Linux VM for export:
|
---|
3793 | </para>
|
---|
3794 |
|
---|
3795 | <itemizedlist>
|
---|
3796 |
|
---|
3797 | <listitem>
|
---|
3798 | <para>
|
---|
3799 | <emphasis role="bold">Use DHCP for network
|
---|
3800 | addresses.</emphasis> Configure the VM to use a DHCP
|
---|
3801 | server to allocate network addresses, rather than using a
|
---|
3802 | static IP address. The &oci; instance will then be
|
---|
3803 | allocated an IP address automatically.
|
---|
3804 | </para>
|
---|
3805 | </listitem>
|
---|
3806 |
|
---|
3807 | <listitem>
|
---|
3808 | <para>
|
---|
3809 | <emphasis role="bold">Do not specify a MAC
|
---|
3810 | address.</emphasis> The network interface configuration
|
---|
3811 | for the VM must not specify the MAC address.
|
---|
3812 | </para>
|
---|
3813 |
|
---|
3814 | <para>
|
---|
3815 | Remove the HWADDR setting from the
|
---|
3816 | <filename>/etc/sysconfig/ifcfg-<replaceable>devicename</replaceable></filename>
|
---|
3817 | network script.
|
---|
3818 | </para>
|
---|
3819 | </listitem>
|
---|
3820 |
|
---|
3821 | <listitem>
|
---|
3822 | <para>
|
---|
3823 | <emphasis role="bold">Disable persistent network device
|
---|
3824 | naming rules.</emphasis> This means that the &oci;
|
---|
3825 | instance will use the same network device names as the VM.
|
---|
3826 | </para>
|
---|
3827 |
|
---|
3828 | <orderedlist>
|
---|
3829 |
|
---|
3830 | <listitem>
|
---|
3831 | <para>
|
---|
3832 | Change the GRUB kernel parameters.
|
---|
3833 | </para>
|
---|
3834 |
|
---|
3835 | <para>
|
---|
3836 | Add <literal>net.ifnames=0</literal> and
|
---|
3837 | <literal>biosdevname=0</literal> as kernel parameter
|
---|
3838 | values to the <literal>GRUB_CMDLINE_LINUX</literal>
|
---|
3839 | variable.
|
---|
3840 | </para>
|
---|
3841 | </listitem>
|
---|
3842 |
|
---|
3843 | <listitem>
|
---|
3844 | <para>
|
---|
3845 | Update the GRUB configuration.
|
---|
3846 | </para>
|
---|
3847 |
|
---|
3848 | <screen># grub2-mkconfig -o /boot/grub2/grub.cfg</screen>
|
---|
3849 | </listitem>
|
---|
3850 |
|
---|
3851 | <listitem>
|
---|
3852 | <para>
|
---|
3853 | Disable any <literal>udev</literal> rules for network
|
---|
3854 | device naming.
|
---|
3855 | </para>
|
---|
3856 |
|
---|
3857 | <para>
|
---|
3858 | For example, if an automated <literal>udev</literal>
|
---|
3859 | rule exists for <literal>net-persistence</literal>:
|
---|
3860 | </para>
|
---|
3861 |
|
---|
3862 | <screen># cd /etc/udev/rules.d
|
---|
3863 | # rm -f 70-persistent-net.rules
|
---|
3864 | # ln -s /dev/null /etc/udev/rules.d/70-persistent-net.rules</screen>
|
---|
3865 | </listitem>
|
---|
3866 |
|
---|
3867 | </orderedlist>
|
---|
3868 | </listitem>
|
---|
3869 |
|
---|
3870 | <listitem>
|
---|
3871 | <para>
|
---|
3872 | <emphasis role="bold">Enable the serial
|
---|
3873 | console.</emphasis> This enables you to troubleshoot the
|
---|
3874 | instance when it is running on &oci;.
|
---|
3875 | </para>
|
---|
3876 |
|
---|
3877 | <orderedlist>
|
---|
3878 |
|
---|
3879 | <listitem>
|
---|
3880 | <para>
|
---|
3881 | Edit the <filename>/etc/default/grub</filename> file,
|
---|
3882 | as follows:
|
---|
3883 | </para>
|
---|
3884 |
|
---|
3885 | <itemizedlist>
|
---|
3886 |
|
---|
3887 | <listitem>
|
---|
3888 | <para>
|
---|
3889 | Remove the <literal>resume</literal> setting from
|
---|
3890 | the kernel parameters. This setting slows down
|
---|
3891 | boot time significantly.
|
---|
3892 | </para>
|
---|
3893 | </listitem>
|
---|
3894 |
|
---|
3895 | <listitem>
|
---|
3896 | <para>
|
---|
3897 | Replace <literal>GRUB_TERMINAL="gfxterm"</literal>
|
---|
3898 | with <literal>GRUB_TERMINAL="console
|
---|
3899 | serial"</literal>. This configures use of the
|
---|
3900 | serial console instead of a graphical terminal.
|
---|
3901 | </para>
|
---|
3902 | </listitem>
|
---|
3903 |
|
---|
3904 | <listitem>
|
---|
3905 | <para>
|
---|
3906 | Add <literal>GRUB_SERIAL_COMMAND="serial --unit=0
|
---|
3907 | --speed=115200"</literal>. This configures the
|
---|
3908 | serial connection.
|
---|
3909 | </para>
|
---|
3910 | </listitem>
|
---|
3911 |
|
---|
3912 | <listitem>
|
---|
3913 | <para>
|
---|
3914 | Add <literal>console=tty0
|
---|
3915 | console=ttyS0,115200</literal> to the
|
---|
3916 | <literal>GRUB_CMDLINE_LINUX</literal> variable.
|
---|
3917 | This adds the serial console to the Linux kernel
|
---|
3918 | boot parameters.
|
---|
3919 | </para>
|
---|
3920 | </listitem>
|
---|
3921 |
|
---|
3922 | </itemizedlist>
|
---|
3923 | </listitem>
|
---|
3924 |
|
---|
3925 | <listitem>
|
---|
3926 | <para>
|
---|
3927 | Regenerate the GRUB configuration.
|
---|
3928 | </para>
|
---|
3929 |
|
---|
3930 | <screen># grub2-mkconfig -o /boot/grub2/grub.cfg</screen>
|
---|
3931 | </listitem>
|
---|
3932 |
|
---|
3933 | <listitem>
|
---|
3934 | <para>
|
---|
3935 | To verify the changes, reboot the machine and run the
|
---|
3936 | <command>dmesg</command> command to look for the
|
---|
3937 | updated kernel parameters.
|
---|
3938 | </para>
|
---|
3939 |
|
---|
3940 | <screen># dmesg |grep console=ttyS0</screen>
|
---|
3941 | </listitem>
|
---|
3942 |
|
---|
3943 | </orderedlist>
|
---|
3944 | </listitem>
|
---|
3945 |
|
---|
3946 | <listitem>
|
---|
3947 | <para>
|
---|
3948 | <emphasis role="bold">Enable paravirtualized device
|
---|
3949 | support.</emphasis> You do this by adding the
|
---|
3950 | <literal>virtio</literal> drivers to the
|
---|
3951 | <literal>initrd</literal> for the VM.
|
---|
3952 | </para>
|
---|
3953 |
|
---|
3954 | <orderedlist>
|
---|
3955 |
|
---|
3956 | <listitem>
|
---|
3957 | <para>
|
---|
3958 | This procedure works only on machines with a Linux
|
---|
3959 | kernel of version 3.4 or later. Check that the VM is
|
---|
3960 | running a supported kernel:
|
---|
3961 | </para>
|
---|
3962 |
|
---|
3963 | <screen># uname -a</screen>
|
---|
3964 | </listitem>
|
---|
3965 |
|
---|
3966 | <listitem>
|
---|
3967 | <para>
|
---|
3968 | Use the <literal>dracut</literal> tool to rebuild
|
---|
3969 | <literal>initrd</literal>. Add the
|
---|
3970 | <literal>qemu</literal> module, as follows:
|
---|
3971 | </para>
|
---|
3972 |
|
---|
3973 | <screen># dracut –-logfile /var/log/Dracut.log –-force –-add qemu</screen>
|
---|
3974 | </listitem>
|
---|
3975 |
|
---|
3976 | <listitem>
|
---|
3977 | <para>
|
---|
3978 | Verify that the <literal>virtio</literal> drivers are
|
---|
3979 | now present in <literal>initrd</literal>.
|
---|
3980 | </para>
|
---|
3981 |
|
---|
3982 | <screen> # lsinitrd |grep virtio</screen>
|
---|
3983 | </listitem>
|
---|
3984 |
|
---|
3985 | </orderedlist>
|
---|
3986 | </listitem>
|
---|
3987 |
|
---|
3988 | </itemizedlist>
|
---|
3989 |
|
---|
3990 | <para>
|
---|
3991 | For more information about importing a custom Linux image into
|
---|
3992 | &oci;, see also:
|
---|
3993 | </para>
|
---|
3994 |
|
---|
3995 | <para>
|
---|
3996 | <ulink url="https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/importingcustomimagelinux.htm" />
|
---|
3997 | </para>
|
---|
3998 |
|
---|
3999 | </sect3>
|
---|
4000 |
|
---|
4001 | </sect2>
|
---|
4002 |
|
---|
4003 | <sect2 id="cloud-import-oci">
|
---|
4004 |
|
---|
4005 | <title>Importing an Instance from &oci;</title>
|
---|
4006 |
|
---|
4007 | <para>
|
---|
4008 | Perform the following steps to import a cloud instance from
|
---|
4009 | &oci; into &product-name;:
|
---|
4010 | </para>
|
---|
4011 |
|
---|
4012 | <orderedlist>
|
---|
4013 |
|
---|
4014 | <listitem>
|
---|
4015 | <para>
|
---|
4016 | Select <emphasis role="bold">File</emphasis>,
|
---|
4017 | <emphasis role="bold">Import Appliance</emphasis> to open
|
---|
4018 | the <emphasis role="bold">Import Virtual
|
---|
4019 | Appliance</emphasis> wizard.
|
---|
4020 | </para>
|
---|
4021 |
|
---|
4022 | <para>
|
---|
4023 | In the <emphasis role="bold">Source</emphasis> drop-down
|
---|
4024 | list, select <emphasis role="bold">&oci;</emphasis>.
|
---|
4025 | </para>
|
---|
4026 |
|
---|
4027 | <para>
|
---|
4028 | In the <emphasis role="bold">Account</emphasis> drop-down
|
---|
4029 | list, select the cloud profile for your &oci; account.
|
---|
4030 | </para>
|
---|
4031 |
|
---|
4032 | <para>
|
---|
4033 | The list after the <emphasis role="bold">Account</emphasis>
|
---|
4034 | field shows the profile settings for your cloud account.
|
---|
4035 | </para>
|
---|
4036 |
|
---|
4037 | <para>
|
---|
4038 | Choose the required cloud instance from the list in the
|
---|
4039 | <emphasis role="bold">Machines</emphasis> field.
|
---|
4040 | </para>
|
---|
4041 |
|
---|
4042 | <para>
|
---|
4043 | Click <emphasis role="bold">Next</emphasis> to make an API
|
---|
4044 | request to the &oci; service and display the
|
---|
4045 | <emphasis role="bold">Appliance Settings</emphasis> screen.
|
---|
4046 | </para>
|
---|
4047 | </listitem>
|
---|
4048 |
|
---|
4049 | <listitem>
|
---|
4050 | <para>
|
---|
4051 | (Optional) Edit settings for the new local virtual machine.
|
---|
4052 | </para>
|
---|
4053 |
|
---|
4054 | <para>
|
---|
4055 | For example, you can edit the VM name and description.
|
---|
4056 | </para>
|
---|
4057 |
|
---|
4058 | <figure id="fig-import-instance-oci">
|
---|
4059 | <title>Import Cloud Instance Screen, Showing Profile Settings and VM Settings</title>
|
---|
4060 | <mediaobject>
|
---|
4061 | <imageobject>
|
---|
4062 | <imagedata align="center" fileref="images/import-instance.png"
|
---|
4063 | width="12cm" />
|
---|
4064 | </imageobject>
|
---|
4065 | </mediaobject>
|
---|
4066 | </figure>
|
---|
4067 |
|
---|
4068 | <para>
|
---|
4069 | Click <emphasis role="bold">Import</emphasis> to import the
|
---|
4070 | instance from &oci;.
|
---|
4071 | </para>
|
---|
4072 | </listitem>
|
---|
4073 |
|
---|
4074 | <listitem>
|
---|
4075 | <para>
|
---|
4076 | Monitor the import process by using the &oci; Console.
|
---|
4077 | </para>
|
---|
4078 | </listitem>
|
---|
4079 |
|
---|
4080 | </orderedlist>
|
---|
4081 |
|
---|
4082 | <para>
|
---|
4083 | You can also use the <command>VBoxManage import</command>
|
---|
4084 | command to import an instance from &oci;. See
|
---|
4085 | <xref linkend="vboxmanage-import-cloud"/>.
|
---|
4086 | </para>
|
---|
4087 |
|
---|
4088 | <simplesect id="import-instance-sequence">
|
---|
4089 |
|
---|
4090 | <title>Importing an Instance: Overview of Events</title>
|
---|
4091 |
|
---|
4092 | <para>
|
---|
4093 | The following describes the sequence of events when you import
|
---|
4094 | an instance from &oci;.
|
---|
4095 | </para>
|
---|
4096 |
|
---|
4097 | <itemizedlist>
|
---|
4098 |
|
---|
4099 | <listitem>
|
---|
4100 | <para>
|
---|
4101 | A custom image is created from the boot volume of the
|
---|
4102 | instance.
|
---|
4103 | </para>
|
---|
4104 | </listitem>
|
---|
4105 |
|
---|
4106 | <listitem>
|
---|
4107 | <para>
|
---|
4108 | The custom image is exported to an &oci; object and is
|
---|
4109 | stored using Object Storage in the bucket specified by the
|
---|
4110 | user.
|
---|
4111 | </para>
|
---|
4112 | </listitem>
|
---|
4113 |
|
---|
4114 | <listitem>
|
---|
4115 | <para>
|
---|
4116 | The &oci; object is downloaded to the local host. The
|
---|
4117 | object is a TAR archive which contains a boot volume of
|
---|
4118 | the instance in QCOW2 format and a JSON file containing
|
---|
4119 | metadata related to the instance.
|
---|
4120 | </para>
|
---|
4121 | </listitem>
|
---|
4122 |
|
---|
4123 | <listitem>
|
---|
4124 | <para>
|
---|
4125 | The boot volume of the instance is extracted from the
|
---|
4126 | archive and a new VMDK image is created by converting the
|
---|
4127 | boot volume into the VMDK format. The VMDK image is
|
---|
4128 | registered with &product-name;.
|
---|
4129 | </para>
|
---|
4130 | </listitem>
|
---|
4131 |
|
---|
4132 | <listitem>
|
---|
4133 | <para>
|
---|
4134 | A new VM is created using the VMDK image for the cloud
|
---|
4135 | instance.
|
---|
4136 | </para>
|
---|
4137 |
|
---|
4138 | <para>
|
---|
4139 | By default, the new VM is not started after import from
|
---|
4140 | &oci;.
|
---|
4141 | </para>
|
---|
4142 | </listitem>
|
---|
4143 |
|
---|
4144 | <listitem>
|
---|
4145 | <para>
|
---|
4146 | The downloaded TAR archive is deleted after a successful
|
---|
4147 | import.
|
---|
4148 | </para>
|
---|
4149 | </listitem>
|
---|
4150 |
|
---|
4151 | </itemizedlist>
|
---|
4152 |
|
---|
4153 | </simplesect>
|
---|
4154 |
|
---|
4155 | </sect2>
|
---|
4156 |
|
---|
4157 | <sect2 id="cloud-new-vm">
|
---|
4158 |
|
---|
4159 | <title>Creating New Cloud Instances from a Custom Image</title>
|
---|
4160 |
|
---|
4161 | <para>
|
---|
4162 | You can use &product-name; to create new instances from a custom
|
---|
4163 | image on your cloud service.
|
---|
4164 | </para>
|
---|
4165 |
|
---|
4166 | <para>
|
---|
4167 | <xref linkend="cloud-export-oci"/> describes how to create a
|
---|
4168 | custom image when you are exporting a VM to &oci;. Using a
|
---|
4169 | custom image means that you can quickly create cloud instances
|
---|
4170 | without having to upload your image to the cloud service every
|
---|
4171 | time.
|
---|
4172 | </para>
|
---|
4173 |
|
---|
4174 | <para>
|
---|
4175 | Perform the following steps to create a new cloud instance on
|
---|
4176 | &oci;:
|
---|
4177 | </para>
|
---|
4178 |
|
---|
4179 | <orderedlist>
|
---|
4180 |
|
---|
4181 | <listitem>
|
---|
4182 | <para>
|
---|
4183 | Select <emphasis role="bold">File</emphasis>,
|
---|
4184 | <emphasis role="bold">New Cloud VM</emphasis> to open the
|
---|
4185 | <emphasis role="bold">Create Cloud Virtual
|
---|
4186 | Machine</emphasis> wizard.
|
---|
4187 | </para>
|
---|
4188 | </listitem>
|
---|
4189 |
|
---|
4190 | <listitem>
|
---|
4191 | <para>
|
---|
4192 | From the <emphasis role="bold">Destination</emphasis>
|
---|
4193 | drop-down list, select
|
---|
4194 | <emphasis role="bold">&oci;</emphasis>.
|
---|
4195 | </para>
|
---|
4196 |
|
---|
4197 | <para>
|
---|
4198 | In the <emphasis role="bold">Account</emphasis> drop-down
|
---|
4199 | list, select the cloud profile for your &oci; account.
|
---|
4200 | </para>
|
---|
4201 |
|
---|
4202 | <para>
|
---|
4203 | The list after the <emphasis role="bold">Account</emphasis>
|
---|
4204 | field shows the profile settings for your cloud account.
|
---|
4205 | </para>
|
---|
4206 |
|
---|
4207 | <para>
|
---|
4208 | In the <emphasis role="bold">Images</emphasis> list, select
|
---|
4209 | from the custom images available on &oci;.
|
---|
4210 | </para>
|
---|
4211 |
|
---|
4212 | <figure id="fig-newcloudvm">
|
---|
4213 | <title>New Cloud VM Wizard, Showing List of Custom Images</title>
|
---|
4214 | <mediaobject>
|
---|
4215 | <imageobject>
|
---|
4216 | <imagedata align="center" fileref="images/newcloudvm.png"
|
---|
4217 | width="12cm" />
|
---|
4218 | </imageobject>
|
---|
4219 | </mediaobject>
|
---|
4220 | </figure>
|
---|
4221 |
|
---|
4222 | <para>
|
---|
4223 | Click <emphasis role="bold">Next</emphasis> to make an API
|
---|
4224 | request to the &oci; service and open the
|
---|
4225 | <emphasis role="bold">Cloud Virtual Machine
|
---|
4226 | Settings</emphasis> screen.
|
---|
4227 | </para>
|
---|
4228 | </listitem>
|
---|
4229 |
|
---|
4230 | <listitem>
|
---|
4231 | <para>
|
---|
4232 | (Optional) Edit settings used for the new instance on &oci;.
|
---|
4233 | </para>
|
---|
4234 |
|
---|
4235 | <para>
|
---|
4236 | For example, you can edit the Disk Size and Shape used for
|
---|
4237 | the VM instance and the networking configuration.
|
---|
4238 | </para>
|
---|
4239 |
|
---|
4240 | <para>
|
---|
4241 | Click <emphasis role="bold">Create</emphasis> to create the
|
---|
4242 | new cloud instance.
|
---|
4243 | </para>
|
---|
4244 | </listitem>
|
---|
4245 |
|
---|
4246 | <listitem>
|
---|
4247 | <para>
|
---|
4248 | Monitor the instance creation process by using the &oci;
|
---|
4249 | Console.
|
---|
4250 | </para>
|
---|
4251 | </listitem>
|
---|
4252 |
|
---|
4253 | </orderedlist>
|
---|
4254 |
|
---|
4255 | <para>
|
---|
4256 | You can also use the <command>VBoxManage cloud
|
---|
4257 | instance</command> command to create and manage instances on a
|
---|
4258 | cloud service. See <xref linkend="vboxmanage-cloud"/>.
|
---|
4259 | </para>
|
---|
4260 |
|
---|
4261 | </sect2>
|
---|
4262 |
|
---|
4263 | <sect2 id="cloud-using-cli">
|
---|
4264 |
|
---|
4265 | <title>Using VBoxManage Commands With &oci;</title>
|
---|
4266 |
|
---|
4267 | <para>
|
---|
4268 | This section includes some examples of how
|
---|
4269 | <command>VBoxManage</command> commands can be used to integrate
|
---|
4270 | with &oci; and perform common cloud operations.
|
---|
4271 | </para>
|
---|
4272 |
|
---|
4273 | <para>
|
---|
4274 | <emphasis role="bold">Creating a Cloud Profile</emphasis>
|
---|
4275 | </para>
|
---|
4276 |
|
---|
4277 | <para>
|
---|
4278 | To create a cloud profile called <literal>vbox-oci</literal>:
|
---|
4279 | </para>
|
---|
4280 |
|
---|
4281 | <screen>VBoxManage cloudprofile --provider "OCI" --profile="vbox-oci" add \
|
---|
4282 | --clouduser="ocid1.user.oc1..." --keyfile="/home/username/.oci/oci_api_key.pem" \
|
---|
4283 | --tenancy="ocid1.tenancy.oc1..." --compartment="ocid1.compartment.oc1..." --region="us-ashburn-1"
|
---|
4284 | </screen>
|
---|
4285 |
|
---|
4286 | <para>
|
---|
4287 | The new cloud profile is added to the
|
---|
4288 | <filename>oci_config</filename> file in your &product-name;
|
---|
4289 | global configuration directory. For example, this is
|
---|
4290 | <filename>$HOME/.VirtualBox/oci_config</filename> on a Windows
|
---|
4291 | host.
|
---|
4292 | </para>
|
---|
4293 |
|
---|
4294 | <para>
|
---|
4295 | <emphasis role="bold">Listing Cloud Instances</emphasis>
|
---|
4296 | </para>
|
---|
4297 |
|
---|
4298 | <para>
|
---|
4299 | To list the instances in your &oci; compartment:
|
---|
4300 | </para>
|
---|
4301 |
|
---|
4302 | <screen>VBoxManage cloud --provider="OCI" --profile="vbox-oci" list instances
|
---|
4303 | </screen>
|
---|
4304 |
|
---|
4305 | <para>
|
---|
4306 | <emphasis role="bold">Exporting an &product-name; VM to the
|
---|
4307 | Cloud</emphasis>
|
---|
4308 | </para>
|
---|
4309 |
|
---|
4310 | <para>
|
---|
4311 | To export a VM called <literal>myVM</literal> and create a cloud
|
---|
4312 | instance called <literal>myVM_Cloud</literal>:
|
---|
4313 | </para>
|
---|
4314 |
|
---|
4315 | <screen>VBoxManage export myVM --output OCI:// --cloud 0 --vmname myVM_Cloud \
|
---|
4316 | --cloudprofile "vbox-oci" --cloudbucket myBucket \
|
---|
4317 | --cloudshape VM.Standard2.1 --clouddomain US-ASHBURN-AD-1 --clouddisksize 50 \
|
---|
4318 | --cloudocivcn ocid1.vcn.oc1... --cloudocisubnet ocid1.subnet.oc1... \
|
---|
4319 | --cloudkeepobject true --cloudlaunchinstance true --cloudpublicip true
|
---|
4320 | </screen>
|
---|
4321 |
|
---|
4322 | <para>
|
---|
4323 | <emphasis role="bold">Importing a Cloud Instance Into
|
---|
4324 | &product-name;</emphasis>
|
---|
4325 | </para>
|
---|
4326 |
|
---|
4327 | <para>
|
---|
4328 | To import a cloud instance and create an &product-name; VM
|
---|
4329 | called <literal>oci_Import</literal>:
|
---|
4330 | </para>
|
---|
4331 |
|
---|
4332 | <screen>VBoxManage import OCI:// --cloud --vmname oci_Import --memory 4000
|
---|
4333 | --cpus 3 --ostype FreeBSD_64 --cloudprofile "vbox-oci"
|
---|
4334 | --cloudinstanceid ocid1.instance.oc1... --cloudbucket myBucket
|
---|
4335 | </screen>
|
---|
4336 |
|
---|
4337 | <para>
|
---|
4338 | <emphasis role="bold">Creating a New Cloud Instance From a
|
---|
4339 | Custom Image</emphasis>
|
---|
4340 | </para>
|
---|
4341 |
|
---|
4342 | <para>
|
---|
4343 | To create a new cloud instance from a custom image on &oci;:
|
---|
4344 | </para>
|
---|
4345 |
|
---|
4346 | <screen>VBoxManage cloud --provider="OCI" --profile="vbox-oci" instance create \
|
---|
4347 | --domain-name="oraclecloud.com" --image-id="ocid1.image.oc1..." --display-name="myInstance" \
|
---|
4348 | --shape="VM.Standard2.1" --subnet="ocid1.subnet.oc1..."</screen>
|
---|
4349 |
|
---|
4350 | <para>
|
---|
4351 | <emphasis role="bold">Terminating a Cloud Instance</emphasis>
|
---|
4352 | </para>
|
---|
4353 |
|
---|
4354 | <para>
|
---|
4355 | To terminate an instance in your compartment on &oci;:
|
---|
4356 | </para>
|
---|
4357 |
|
---|
4358 | <screen>VBoxManage cloud --provider="OCI" --profile="vbox-oci" instance terminate \
|
---|
4359 | --id="ocid1.instance.oc1..." </screen>
|
---|
4360 |
|
---|
4361 | <para>
|
---|
4362 | For more details about the available commands for cloud
|
---|
4363 | operations, see <xref linkend="vboxmanage-cloud"/>.
|
---|
4364 | </para>
|
---|
4365 |
|
---|
4366 | </sect2>
|
---|
4367 |
|
---|
4368 | </sect1>
|
---|
4369 |
|
---|
4370 | <sect1 id="globalsettings">
|
---|
4371 |
|
---|
4372 | <title>Global Settings</title>
|
---|
4373 |
|
---|
4374 | <para>
|
---|
4375 | The <emphasis role="bold">Global Settings</emphasis> dialog can be
|
---|
4376 | displayed using the <emphasis role="bold">File</emphasis> menu, by
|
---|
4377 | clicking the <emphasis role="bold">Preferences</emphasis> item.
|
---|
4378 | This dialog offers a selection of settings, most of which apply to
|
---|
4379 | all virtual machines of the current user. The
|
---|
4380 | <emphasis role="bold">Extensions</emphasis> option applies to the
|
---|
4381 | entire system.
|
---|
4382 | </para>
|
---|
4383 |
|
---|
4384 | <para>
|
---|
4385 | The following settings are available:
|
---|
4386 | </para>
|
---|
4387 |
|
---|
4388 | <itemizedlist>
|
---|
4389 |
|
---|
4390 | <listitem>
|
---|
4391 | <para>
|
---|
4392 | <emphasis role="bold">General.</emphasis> Enables the user to
|
---|
4393 | specify the default folder or directory for VM files, and the
|
---|
4394 | VRDP Authentication Library.
|
---|
4395 | </para>
|
---|
4396 | </listitem>
|
---|
4397 |
|
---|
4398 | <listitem>
|
---|
4399 | <para>
|
---|
4400 | <emphasis role="bold">Input.</emphasis> Enables the user to
|
---|
4401 | specify the Host key. This is the key that toggles whether the
|
---|
4402 | cursor is in the focus of the VM or the Host OS windows, see
|
---|
4403 | <xref linkend="keyb_mouse_normal"/>. The Host key is also used
|
---|
4404 | to trigger certain VM actions, see
|
---|
4405 | <xref linkend="specialcharacters"/>.
|
---|
4406 | </para>
|
---|
4407 | </listitem>
|
---|
4408 |
|
---|
4409 | <listitem>
|
---|
4410 | <para>
|
---|
4411 | <emphasis role="bold">Update.</emphasis> Enables the user to
|
---|
4412 | specify various settings for Automatic Updates.
|
---|
4413 | </para>
|
---|
4414 | </listitem>
|
---|
4415 |
|
---|
4416 | <listitem>
|
---|
4417 | <para>
|
---|
4418 | <emphasis role="bold">Language.</emphasis> Enables the user to
|
---|
4419 | specify the GUI language.
|
---|
4420 | </para>
|
---|
4421 | </listitem>
|
---|
4422 |
|
---|
4423 | <listitem>
|
---|
4424 | <para>
|
---|
4425 | <emphasis role="bold">Display.</emphasis> Enables the user to
|
---|
4426 | specify the screen resolution, and its width and height. A
|
---|
4427 | default scale factor can be specified for all guest screens.
|
---|
4428 | </para>
|
---|
4429 | </listitem>
|
---|
4430 |
|
---|
4431 | <listitem>
|
---|
4432 | <para>
|
---|
4433 | <emphasis role="bold">Network.</emphasis> Enables the user to
|
---|
4434 | configure the details of NAT networks. See
|
---|
4435 | <xref linkend="network_nat_service"/>.
|
---|
4436 | </para>
|
---|
4437 | </listitem>
|
---|
4438 |
|
---|
4439 | <listitem>
|
---|
4440 | <para>
|
---|
4441 | <emphasis role="bold">Extensions.</emphasis> Enables the user
|
---|
4442 | to list and manage the installed extension packages.
|
---|
4443 | </para>
|
---|
4444 | </listitem>
|
---|
4445 |
|
---|
4446 | <listitem>
|
---|
4447 | <para>
|
---|
4448 | <emphasis role="bold">Proxy.</emphasis> Enables the user to
|
---|
4449 | configure a HTTP Proxy Server.
|
---|
4450 | </para>
|
---|
4451 | </listitem>
|
---|
4452 |
|
---|
4453 | </itemizedlist>
|
---|
4454 |
|
---|
4455 | </sect1>
|
---|
4456 |
|
---|
4457 | <sect1 id="frontends">
|
---|
4458 |
|
---|
4459 | <title>Alternative Front-Ends</title>
|
---|
4460 |
|
---|
4461 | <para>
|
---|
4462 | As briefly mentioned in <xref linkend="features-overview" />,
|
---|
4463 | &product-name; has a very flexible internal design that enables
|
---|
4464 | you to use multiple interfaces to control the same virtual
|
---|
4465 | machines. For example, you can start a virtual machine with the
|
---|
4466 | VirtualBox Manager window and then stop it from the command line.
|
---|
4467 | With &product-name;'s support for the Remote Desktop Protocol
|
---|
4468 | (RDP), you can even run virtual machines remotely on a headless
|
---|
4469 | server and have all the graphical output redirected over the
|
---|
4470 | network.
|
---|
4471 | </para>
|
---|
4472 |
|
---|
4473 | <para>
|
---|
4474 | The following front-ends are shipped in the standard
|
---|
4475 | &product-name; package:
|
---|
4476 | </para>
|
---|
4477 |
|
---|
4478 | <itemizedlist>
|
---|
4479 |
|
---|
4480 | <listitem>
|
---|
4481 | <para>
|
---|
4482 | <emphasis role="bold">VirtualBox.</emphasis> This is the
|
---|
4483 | VirtualBox Manager, a graphical user interface that uses the
|
---|
4484 | Qt toolkit. This interface is described throughout this
|
---|
4485 | manual. While this is the simplest and easiest front-end to
|
---|
4486 | use, some of the more advanced &product-name; features are not
|
---|
4487 | included.
|
---|
4488 | </para>
|
---|
4489 | </listitem>
|
---|
4490 |
|
---|
4491 | <listitem>
|
---|
4492 | <para>
|
---|
4493 | <emphasis role="bold">VBoxManage.</emphasis> A command-line
|
---|
4494 | interface for automated and detailed control of every aspect
|
---|
4495 | of &product-name;. See
|
---|
4496 | <xref
|
---|
4497 | linkend="vboxmanage" />.
|
---|
4498 | </para>
|
---|
4499 | </listitem>
|
---|
4500 |
|
---|
4501 | <listitem>
|
---|
4502 | <para>
|
---|
4503 | <emphasis role="bold">VBoxHeadless.</emphasis> A front-end
|
---|
4504 | that produces no visible output on the host at all, but can
|
---|
4505 | act as a RDP server if the VirtualBox Remote Desktop Extension
|
---|
4506 | (VRDE) is installed and enabled for the VM. As opposed to the
|
---|
4507 | other graphical interfaces, the headless front-end requires no
|
---|
4508 | graphics support. This is useful, for example, if you want to
|
---|
4509 | host your virtual machines on a headless Linux server that has
|
---|
4510 | no X Window system installed. See
|
---|
4511 | <xref linkend="vboxheadless" />.
|
---|
4512 | </para>
|
---|
4513 | </listitem>
|
---|
4514 |
|
---|
4515 | </itemizedlist>
|
---|
4516 |
|
---|
4517 | <para>
|
---|
4518 | If the above front-ends still do not satisfy your particular
|
---|
4519 | needs, it is possible to create yet another front-end to the
|
---|
4520 | complex virtualization engine that is the core of &product-name;,
|
---|
4521 | as the &product-name; core neatly exposes all of its features in a
|
---|
4522 | clean API. See <xref linkend="VirtualBoxAPI" />.
|
---|
4523 | </para>
|
---|
4524 |
|
---|
4525 | </sect1>
|
---|
4526 |
|
---|
4527 | <sect1 id="soft-keyb">
|
---|
4528 |
|
---|
4529 | <title>Soft Keyboard</title>
|
---|
4530 |
|
---|
4531 | <para>
|
---|
4532 | &product-name; provides a <emphasis>soft keyboard</emphasis> that
|
---|
4533 | enables you to input keyboard characters on the guest. A soft
|
---|
4534 | keyboard is an on-screen keyboard that can be used as an
|
---|
4535 | alternative to a physical keyboard. See
|
---|
4536 | <xref linkend="soft-keyb-using"/> for details of how to use the
|
---|
4537 | soft keyboard.
|
---|
4538 | </para>
|
---|
4539 |
|
---|
4540 | <caution>
|
---|
4541 | <para>
|
---|
4542 | For best results, ensure that the keyboard layout configured on
|
---|
4543 | the guest OS matches the keyboard layout used by the soft
|
---|
4544 | keyboard. &product-name; does not do this automatically.
|
---|
4545 | </para>
|
---|
4546 | </caution>
|
---|
4547 |
|
---|
4548 | <figure id="fig-soft-keyb">
|
---|
4549 | <title>Soft Keyboard in a Guest Virtual Machine</title>
|
---|
4550 | <mediaobject>
|
---|
4551 | <imageobject>
|
---|
4552 | <imagedata align="center" fileref="images/softkeybd.png"
|
---|
4553 | width="14cm" />
|
---|
4554 | </imageobject>
|
---|
4555 | </mediaobject>
|
---|
4556 | </figure>
|
---|
4557 |
|
---|
4558 | <para>
|
---|
4559 | The soft keyboard can be used in the following scenarios:
|
---|
4560 | </para>
|
---|
4561 |
|
---|
4562 | <itemizedlist>
|
---|
4563 |
|
---|
4564 | <listitem>
|
---|
4565 | <para>
|
---|
4566 | When the physical keyboard on the host is not the same as the
|
---|
4567 | keyboard layout configured on the guest. For example, if the
|
---|
4568 | guest is configured to use an international keyboard, but the
|
---|
4569 | host keyboard is US English.
|
---|
4570 | </para>
|
---|
4571 | </listitem>
|
---|
4572 |
|
---|
4573 | <listitem>
|
---|
4574 | <para>
|
---|
4575 | To send special key combinations to the guest. Note that some
|
---|
4576 | common key combinations are also available in the
|
---|
4577 | <emphasis role="bold">Input</emphasis>,
|
---|
4578 | <emphasis role="bold">Keyboard</emphasis> menu of the guest VM
|
---|
4579 | window. See <xref linkend="specialcharacters"/>.
|
---|
4580 | </para>
|
---|
4581 | </listitem>
|
---|
4582 |
|
---|
4583 | <listitem>
|
---|
4584 | <para>
|
---|
4585 | For guests in kiosk mode, where a physical keyboard is not
|
---|
4586 | present.
|
---|
4587 | </para>
|
---|
4588 | </listitem>
|
---|
4589 |
|
---|
4590 | <listitem>
|
---|
4591 | <para>
|
---|
4592 | When using nested virtualization, the soft keyboard provides a
|
---|
4593 | method of sending key presses to a guest.
|
---|
4594 | </para>
|
---|
4595 | </listitem>
|
---|
4596 |
|
---|
4597 | </itemizedlist>
|
---|
4598 |
|
---|
4599 | <para>
|
---|
4600 | By default, the soft keyboard includes some common international
|
---|
4601 | keyboard layouts. You can copy and modify these to meet your own
|
---|
4602 | requirements. See <xref linkend="soft-keyb-custom"/>.
|
---|
4603 | </para>
|
---|
4604 |
|
---|
4605 | <sect2 id="soft-keyb-using">
|
---|
4606 |
|
---|
4607 | <title>Using the Soft Keyboard</title>
|
---|
4608 |
|
---|
4609 | <orderedlist>
|
---|
4610 |
|
---|
4611 | <listitem>
|
---|
4612 | <para>
|
---|
4613 | Display the soft keyboard.
|
---|
4614 | </para>
|
---|
4615 |
|
---|
4616 | <para>
|
---|
4617 | In the guest VM window, select
|
---|
4618 | <emphasis role="bold">Input</emphasis>,
|
---|
4619 | <emphasis role="bold">Keyboard</emphasis>,
|
---|
4620 | <emphasis role="bold">Soft Keyboard</emphasis>.
|
---|
4621 | </para>
|
---|
4622 | </listitem>
|
---|
4623 |
|
---|
4624 | <listitem>
|
---|
4625 | <para>
|
---|
4626 | Select the required keyboard layout.
|
---|
4627 | </para>
|
---|
4628 |
|
---|
4629 | <para>
|
---|
4630 | The name of the current keyboard layout is displayed in the
|
---|
4631 | task bar of the soft keyboard window. This is the previous
|
---|
4632 | keyboard layout that was used.
|
---|
4633 | </para>
|
---|
4634 |
|
---|
4635 | <para>
|
---|
4636 | Click the <emphasis role="bold">Layout List</emphasis> icon
|
---|
4637 | in the task bar of the soft keyboard window. The
|
---|
4638 | <emphasis role="bold">Layout List</emphasis> window is
|
---|
4639 | displayed.
|
---|
4640 | </para>
|
---|
4641 |
|
---|
4642 | <para>
|
---|
4643 | Select the required keyboard layout from the entries in the
|
---|
4644 | <emphasis role="bold">Layout List</emphasis> window.
|
---|
4645 | </para>
|
---|
4646 |
|
---|
4647 | <para>
|
---|
4648 | The keyboard display graphic is updated to show the
|
---|
4649 | available input keys.
|
---|
4650 | </para>
|
---|
4651 | </listitem>
|
---|
4652 |
|
---|
4653 | <listitem>
|
---|
4654 | <para>
|
---|
4655 | Use the soft keyboard to enter keyboard characters on the
|
---|
4656 | guest.
|
---|
4657 | </para>
|
---|
4658 |
|
---|
4659 | <itemizedlist>
|
---|
4660 |
|
---|
4661 | <listitem>
|
---|
4662 | <para>
|
---|
4663 | Modifier keys such as Shift, Ctrl, and Alt are available
|
---|
4664 | on the soft keyboard. Click once to select the modifier
|
---|
4665 | key, click twice to lock the modifier key.
|
---|
4666 | </para>
|
---|
4667 |
|
---|
4668 | <para>
|
---|
4669 | The <emphasis role="bold">Reset the Keyboard and Release
|
---|
4670 | All Keys</emphasis> icon can be used to release all
|
---|
4671 | pressed modifier keys, both on the host and the guest.
|
---|
4672 | </para>
|
---|
4673 | </listitem>
|
---|
4674 |
|
---|
4675 | <listitem>
|
---|
4676 | <para>
|
---|
4677 | To change the look of the soft keyboard, click the
|
---|
4678 | <emphasis role="bold">Settings</emphasis> icon in the
|
---|
4679 | task bar. You can change colors used in the keyboard
|
---|
4680 | graphic, and can hide or show sections of the keyboard,
|
---|
4681 | such as the NumPad or multimedia keys.
|
---|
4682 | </para>
|
---|
4683 | </listitem>
|
---|
4684 |
|
---|
4685 | </itemizedlist>
|
---|
4686 | </listitem>
|
---|
4687 |
|
---|
4688 | </orderedlist>
|
---|
4689 |
|
---|
4690 | </sect2>
|
---|
4691 |
|
---|
4692 | <sect2 id="soft-keyb-custom">
|
---|
4693 |
|
---|
4694 | <title>Creating a Custom Keyboard Layout</title>
|
---|
4695 |
|
---|
4696 | <para>
|
---|
4697 | You can use one of the supplied default keyboard layouts as the
|
---|
4698 | starting point to create a custom keyboard layout.
|
---|
4699 | </para>
|
---|
4700 |
|
---|
4701 | <note>
|
---|
4702 | <para>
|
---|
4703 | To permananently save a custom keyboard layout, you must save
|
---|
4704 | it to file. Otherwise, any changes you make are discarded when
|
---|
4705 | you close down the <emphasis role="bold">Soft
|
---|
4706 | Keyboard</emphasis> window.
|
---|
4707 | </para>
|
---|
4708 |
|
---|
4709 | <para>
|
---|
4710 | Custom keyboard layouts that you save are stored as an XML
|
---|
4711 | file on the host, in the <filename>keyboardLayouts</filename>
|
---|
4712 | folder in the global configuration data directory. For
|
---|
4713 | example, in
|
---|
4714 | <filename>$HOME/.config/VirtualBox/keyboardLayouts</filename>
|
---|
4715 | on a Linux host.
|
---|
4716 | </para>
|
---|
4717 | </note>
|
---|
4718 |
|
---|
4719 | <orderedlist>
|
---|
4720 |
|
---|
4721 | <listitem>
|
---|
4722 | <para>
|
---|
4723 | Display the <emphasis role="bold">Layout List</emphasis>.
|
---|
4724 | </para>
|
---|
4725 |
|
---|
4726 | <para>
|
---|
4727 | Click the <emphasis role="bold">Layout List</emphasis> icon
|
---|
4728 | in the task bar of the soft keyboard window.
|
---|
4729 | </para>
|
---|
4730 | </listitem>
|
---|
4731 |
|
---|
4732 | <listitem>
|
---|
4733 | <para>
|
---|
4734 | Make a copy of an existing keyboard layout.
|
---|
4735 | </para>
|
---|
4736 |
|
---|
4737 | <para>
|
---|
4738 | Highlight the required layout and click the
|
---|
4739 | <emphasis role="bold">Copy the Selected Layout</emphasis>
|
---|
4740 | icon.
|
---|
4741 | </para>
|
---|
4742 |
|
---|
4743 | <para>
|
---|
4744 | A new layout entry with a name suffix of
|
---|
4745 | <literal>-Copy</literal> is created.
|
---|
4746 | </para>
|
---|
4747 | </listitem>
|
---|
4748 |
|
---|
4749 | <listitem>
|
---|
4750 | <para>
|
---|
4751 | Edit the new keyboard layout.
|
---|
4752 | </para>
|
---|
4753 |
|
---|
4754 | <para>
|
---|
4755 | Highlight the new layout in the <emphasis role="bold">Layout
|
---|
4756 | List</emphasis> and click the <emphasis role="bold">Edit the
|
---|
4757 | Selected Layout</emphasis> icon.
|
---|
4758 | </para>
|
---|
4759 |
|
---|
4760 | <para>
|
---|
4761 | Enter a new name for the layout.
|
---|
4762 | </para>
|
---|
4763 |
|
---|
4764 | <para>
|
---|
4765 | Edit keys in the new layout. Click on the key that you want
|
---|
4766 | to edit and enter new key captions in the
|
---|
4767 | <emphasis role="bold">Captions</emphasis> fields.
|
---|
4768 | </para>
|
---|
4769 |
|
---|
4770 | <para>
|
---|
4771 | The keyboard graphic is updated with the new captions.
|
---|
4772 | </para>
|
---|
4773 | </listitem>
|
---|
4774 |
|
---|
4775 | <listitem>
|
---|
4776 | <para>
|
---|
4777 | (Optional) Save the layout to file. This means that your
|
---|
4778 | custom keyboard layout will be available for future use.
|
---|
4779 | </para>
|
---|
4780 |
|
---|
4781 | <para>
|
---|
4782 | Highlight the new layout in the <emphasis role="bold">Layout
|
---|
4783 | List</emphasis> and click the <emphasis role="bold">Save the
|
---|
4784 | Selected Layout into File</emphasis> icon.
|
---|
4785 | </para>
|
---|
4786 |
|
---|
4787 | <para>
|
---|
4788 | Any custom layouts that you create can later be removed from
|
---|
4789 | the Layout List, by highlighting and clicking the
|
---|
4790 | <emphasis role="bold">Delete the Selected Layout</emphasis>
|
---|
4791 | icon.
|
---|
4792 | </para>
|
---|
4793 | </listitem>
|
---|
4794 |
|
---|
4795 | </orderedlist>
|
---|
4796 |
|
---|
4797 | </sect2>
|
---|
4798 |
|
---|
4799 | </sect1>
|
---|
4800 |
|
---|
4801 | <sect1 id="vm-info">
|
---|
4802 |
|
---|
4803 | <title>Configuration Details and Runtime Information of Virtual Machines</title>
|
---|
4804 | <para>
|
---|
4805 | &product-name; GUI offers several possibilities for obtaining
|
---|
4806 | configuration and runtime information of virtual machines.
|
---|
4807 | </para>
|
---|
4808 |
|
---|
4809 | <sect2 id="vm-details-tool">
|
---|
4810 | <title>Virtual Machine Details Widget</title>
|
---|
4811 | <para>
|
---|
4812 | The VM details widget is an interactive tool through which
|
---|
4813 | settings of the guest system can be viewed and modified.
|
---|
4814 | </para>
|
---|
4815 | </sect2>
|
---|
4816 | <sect2 id="vm-activity-overview-widget">
|
---|
4817 |
|
---|
4818 | <title>Resource Monitor</title>
|
---|
4819 |
|
---|
4820 | <para>
|
---|
4821 | The Resource Monitor widget shows several performance metrics
|
---|
4822 | of running virtual machines. This enables users to have a quick
|
---|
4823 | overview of system resources of individual virtual machines and
|
---|
4824 | those of host system. The widget displays several performance
|
---|
4825 | metrics of each running virtual machine. It is possible to
|
---|
4826 | configure the set of metrics to be shown and select a metric
|
---|
4827 | with respect to which the list of virtual machines is sorted.
|
---|
4828 | It is also possible to open the virtual machine's performance
|
---|
4829 | monitor (See <xref linkend="vm-session-information"/>) by activating
|
---|
4830 | To Performance action which is located in the tool bar and
|
---|
4831 | in the context menu.
|
---|
4832 | </para>
|
---|
4833 | <figure id="fig-vm-activity-overview-widget">
|
---|
4834 | <title>Resource Monitor</title>
|
---|
4835 | <mediaobject>
|
---|
4836 | <imageobject>
|
---|
4837 | <imagedata align="center" fileref="images/resourcemonitor.png"
|
---|
4838 | width="14cm" />
|
---|
4839 | </imageobject>
|
---|
4840 | </mediaobject>
|
---|
4841 | </figure>
|
---|
4842 |
|
---|
4843 | </sect2>
|
---|
4844 |
|
---|
4845 | <sect2 id="vm-session-information">
|
---|
4846 | <title>Session Information Dialog</title>
|
---|
4847 | <para>
|
---|
4848 | The guest VM window includes a multi tabbed dialog which conveys
|
---|
4849 | important configuration and runtime information of the guest
|
---|
4850 | system. The tabs of the dialog are:
|
---|
4851 | </para>
|
---|
4852 |
|
---|
4853 | <itemizedlist>
|
---|
4854 | <listitem>
|
---|
4855 | <para>
|
---|
4856 | <emphasis role="bold">Configuration Details</emphasis> tab
|
---|
4857 | displays system configuration of the virtual machine in a
|
---|
4858 | tabular format. The displayed information includes storage
|
---|
4859 | configuration, audio settings, etc.
|
---|
4860 | </para>
|
---|
4861 | </listitem>
|
---|
4862 | <listitem>
|
---|
4863 | <para>
|
---|
4864 | <emphasis role="bold">Runtime Information</emphasis> tab
|
---|
4865 | shows the information that can change between the guest
|
---|
4866 | sessions in tabular format similar to the Configuration
|
---|
4867 | Details tab.
|
---|
4868 | </para>
|
---|
4869 | </listitem>
|
---|
4870 | <listitem>
|
---|
4871 | <para>
|
---|
4872 | <emphasis role="bold">Performance Monitor</emphasis> tab
|
---|
4873 | has several time series charts which monitors guests resource
|
---|
4874 | usage including CPU, RAM, Disk I/O, and Network. Note that
|
---|
4875 | RAM chart requires the guest additions to be running on the guest
|
---|
4876 | system to work. The Performance Monitor is also available from
|
---|
4877 | the machine menu in the manager UI.
|
---|
4878 | </para>
|
---|
4879 | </listitem>
|
---|
4880 | </itemizedlist>
|
---|
4881 | <figure id="fig-vm-performance-monitor">
|
---|
4882 | <title>VM Performance Monitor</title>
|
---|
4883 | <mediaobject>
|
---|
4884 | <imageobject>
|
---|
4885 | <imagedata align="center" fileref="images/vmperformancemonitor.png"
|
---|
4886 | width="14cm" />
|
---|
4887 | </imageobject>
|
---|
4888 | </mediaobject>
|
---|
4889 | </figure>
|
---|
4890 |
|
---|
4891 |
|
---|
4892 | </sect2>
|
---|
4893 |
|
---|
4894 | </sect1>
|
---|
4895 | </chapter>
|
---|