VirtualBox

source: vbox/trunk/doc/manual/en_US/dita/topics/unattended-guest-install-example.dita@ 105176

最後變更 在這個檔案從105176是 105134,由 vboxsync 提交於 9 月 前

Docs: bugref:10705. This is a merge commit to introduce doc team's changes in the user manual dita files. The following files
are excluded from this process:

  • Files whose names satrt with "viso", "vboxmanage", "man_", "vboximg", "vboxheadless", or "user_isomakercmd-man".

And general notes about this merge are as follows:

  • For now I leave glossentry-*dita file as they are since we use different enclosing dita elements
  • in hdimagewrites.dita we have <note type="attention"> while doc team's copy has <note type="caution">. Not sure if this is significant.

For now I copy doc team's version over.

  • I have not modified our UserManual.ditamap file. This will be done in a follow up commit.

The list of commits we have merged are as follows:

r3392: 7.1 new features; add comments to some DITA topics
r3730: VBP-283: Update supported platforms; 7.0 and 7.1
r3980: 7.1: reset menu option; add note
r3992: ARM hosts; add draft topic on limitations; add container topic for ARM-based subtopics
r3993: ARM create new VM wizard: add some dummy topics
r4014: ER 34784410 DOCUMENT THE VIRTUAL MACHINE TASKBAR ICONS: port topic and icon graphics from 7.0 tree
r4026: VBP-378: status bar icons; remove any mention of task bar; ported from 7.0
r4034: Cloning a cloud VM; add draft topic
r4035: Cloning a cloud VM;typo
r4036: Cloning a cloud VM;add xref from intro topic
r4050: Reset operation; add instructions
r4051: Amend comment
r4052: Ditaval markup for images
r4056: Add ditaval markup for images
r4057: Add ditaval markup for images
r4058: Add ditaval markup for images
r4073: UI experience level: add dummy topic
r4075: Subtype: option for VM settings General tab and Create VM wizard
r4094: Cloud VM reset; add to relnotes
r4095: Reset VM; use main Machine menu, rather than right-click menu
r4099: ARM hosts; draft revisions to cover different wizard screens
r4134: Cloud VMs: file manager menu option; add comment
r4214: Settings page, Motherboard tab: Chipset option for Arm VMs; add note
r4306: Terminology checker: clear up Errors; Installation chapter
r4307: Terminology checker: clear up Errors; Config settings/GA chapters
r4308: Terminology checker: clear up Errors; Storage, networking, remote VM chapters
r4311: Terminology checker: clear up Errors: various
r4324: Prefences and settings; potential areas for change in 7.1
r4356: r160214: Monitoring cloud VM performance; add new topic
r4358: r160214: Monitoring cloud VM performance; add new topic
r4364: r160214: Monitoring cloud VM performance; redraft topic
r4374: Experience levels; update user manual topic
r4377: Experience levels; Preferences window: add note re. availability of all possible settings
r4378: Experience levels; Preferences window: add note re. availability of all possible settingsLp
r4379: Typos and add remark re. Global menu changes
r4387: Preferences, Display: some settings introduced post-7.0: font scaling and extended features
r4388: Performance monitoring: add cloud VM instances to intro para
r4389: Experience levels: selecting a level, add graphic of icon
r4391: Resource monitoring; add CLI example to show CPU usage for a cloud instance
r4395: Experience levels; apply to menu items only
r4398: Experience levels; add notes
r4401: Experience levels; remove pics of global tools menu/machine tools menu; number of menu items can vary
r4402: Experience levels; remove image files for global tools menu/machine tools menu
r4525: Experience levels: minor redraft
r4528: Typo
r4538: Experience levels: selected level applies throughout VirtualBox Manager GUI
r4543: GUI topics; add notes for required changes
r4544: VISO Creator changes
r4563: r160714: unattended guest install example; now has user-password option
r4569: Terminology: front end, not front-end
r4570: Arm wizard screens; remove, as Create VM Wizard will be very similar regardless of architecture
r4571: Arm wizard screens; remove, as Create VM Wizard will be very similar regardless of architecture
r4623: Cloud VM monitoring: Compute Instance Monitoring plugin must be enabled; add note
r4625: CPU activity icon; update, now has solid bar
r4626: GUI changes; various, from Serkan; includes new pic for soft keyboard
r4629: separate mode: add some draft topics, will need to get technical review at a later stage
r4634: GUI; various notes and updates
r4655: Typo
r4703: Arm host platform limitations; redraft and add topic to host OS section
r4724: VISO creator; add notes re. ISO import
r4725: Separate mode: edits
r4863: r161176; Python 2.x no longer supported for API
r4899: Arm host support: limitations
r4910: Create VM wizard: settings may vary x86 vs. Arm hosts
r4911: Guest OS support; add note re. supported aarch64 OSes
r4973: r161445: Remove mention of parallel port support
r5004: Cloud VM monitoring: detailed data graphs and Activity Overview
r5038: Cloud VM monitoring: export to file
r5214: r161947: Solaris non-Global zone configuration
r5215: r161947: Solaris non-Global zone configuration; typo
r5230: Glossary: fix title for I/O APIC topic
r5341: Experience levels; can be selected from welcome screen in VirtualBox Manager; need replacement pic
r5345: Experience levels; add note on Welcome screen option
r5346: Arm host limitations; unavailable System settings
r5434: r162377: shared folders; symlinks behaviour
r5565: Cloud VM list in VirtualBox Manager; show mixed VM types; screenshot from Klaus
r5627: Obfuscate UUID data in screen shot
r5628: Delete legacy cloudvm pic; use mixed VMs example
r5654: Clean up comments in source files; redraft VM activity section
r5672: 7.1 changes; add comments
r5683: 7.1 changes; add comments for Arm topics
r5687: 7.1 changes; GUI; add comments
r5703: Oracle notices; include up to date versions in preface-* topics for User Guide
r5707: r162904: Windows install directory requirements; redraft
r5781: updated GNU version from 2 to 3 as per r163272
r5812: started removal of screenshots and updating tasks VBP-807
r5818: Further updates to creating a VM VBP-807
r5822: Restructured topics and made task based VBP-807
r5824: Removed files during restructure VBP-807
r5834: Fixed formatting of note and caution VBP-807
r5836: Updated supported host OS list VBP-825
r5837: updated USB topics for VBP-823
r5842: changes as per legal request re supported guests VBP-843
r5853: Updated versions following review. VBP-825


  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Id Revision
檔案大小: 7.3 KB
 
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE topic
3 PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
4<topic xml:lang="en-us" id="unattended-guest-install-example">
5 <title>Using VBoxManage Commands for Unattended Guest Installation</title>
6 <body>
7 <p>
8 The following example shows how to perform an unattended guest
9 installation for an Oracle Linux VM. The example uses various
10 <userinput>VBoxManage</userinput> commands to prepare the guest VM.
11 The <userinput>VBoxManage unattended install</userinput> command is
12 then used to install and configure the guest OS.
13 </p>
14 <ol>
15 <li>
16 <p>
17 Create the virtual machine.
18 </p>
19 <pre xml:space="preserve"># VM="ol7-autoinstall"
20# VBoxManage list ostypes
21# VBoxManage createvm --name $VM --ostype "Oracle_64" --register</pre>
22 <p>
23 Note the following:
24 </p>
25 <ul>
26 <li>
27 <p>
28 The $VM variable represents the name of the VM.
29 </p>
30 </li>
31 <li>
32 <p>
33 The <userinput>VBoxManage list ostypes</userinput> command
34 lists the guest OSes supported by <ph conkeyref="vbox-conkeyref-phrases/product-name"/>,
35 including the name used for each OS in the
36 <userinput>VBoxManage</userinput> commands.
37 </p>
38 </li>
39 <li>
40 <p>
41 A 64-bit Oracle Linux 7 VM is created and registered
42 with <ph conkeyref="vbox-conkeyref-phrases/product-name"/>.
43 </p>
44 </li>
45 <li>
46 <p>
47 The VM has a unique UUID.
48 </p>
49 </li>
50 <li>
51 <p>
52 An XML settings file is generated.
53 </p>
54 </li>
55 </ul>
56 </li>
57 <li>
58 <p>
59 Create a virtual hard disk and storage devices for the VM.
60 </p>
61 <pre xml:space="preserve"># VBoxManage createhd --filename /VirtualBox/$VM/$VM.vdi --size 32768
62# VBoxManage storagectl $VM --name "SATA Controller" --add sata --controller IntelAHCI
63# VBoxManage storageattach $VM --storagectl "SATA Controller" --port 0 --device 0 \
64--type hdd --medium /VirtualBox/$VM/$VM.vdi
65# VBoxManage storagectl $VM --name "IDE Controller" --add ide
66# VBoxManage storageattach $VM --storagectl "IDE Controller" --port 0 --device 0 \
67--type dvddrive --medium /u01/Software/OL/OracleLinux-R7-U6-Server-x86_64-dvd.iso</pre>
68 <p>
69 The previous commands do the following:
70 </p>
71 <ul>
72 <li>
73 <p>
74 Create a 32768 MB virtual hard disk.
75 </p>
76 </li>
77 <li>
78 <p>
79 Create a SATA storage controller and attach the virtual
80 hard disk.
81 </p>
82 </li>
83 <li>
84 <p>
85 Create an IDE storage controller for a virtual DVD drive
86 and attach an Oracle Linux installation ISO.
87 </p>
88 </li>
89 </ul>
90 </li>
91 <li>
92 <p>
93 (Optional) Configure some settings for the VM.
94 </p>
95 <pre xml:space="preserve"># VBoxManage modifyvm $VM --ioapic on
96# VBoxManage modifyvm $VM --boot1 dvd --boot2 disk --boot3 none --boot4 none
97# VBoxManage modifyvm $VM --memory 8192 --vram 128</pre>
98 <p>
99 The previous commands do the following:
100 </p>
101 <ul>
102 <li>
103 <p>
104 Enable I/O APIC for the motherboard of the VM.
105 </p>
106 </li>
107 <li>
108 <p>
109 Configure the boot device order for the VM.
110 </p>
111 </li>
112 <li>
113 <p>
114 Allocate 8192 MB of RAM and 128 MB of video RAM to the
115 VM.
116 </p>
117 </li>
118 </ul>
119 </li>
120 <li>
121 <p>
122 Perform an unattended install of the OS.
123 </p>
124 <pre xml:space="preserve"># VBoxManage unattended install $VM \
125--iso=/u01/Software/OL/OracleLinux-R7-U6-Server-x86_64-dvd.iso \
126--user=<varname>login</varname> --full-user-name=<varname>name</varname> --user-password <varname>password</varname> \
127--install-additions --time-zone=CET</pre>
128 <p>
129 The previous command does the following:
130 </p>
131 <ul>
132 <li>
133 <p>
134 Specifies an Oracle Linux ISO as the installation ISO.
135 </p>
136 </li>
137 <li>
138 <p>
139 Specifies a login name, full name, and login password
140 for a default user on the guest OS.
141 </p>
142 <p>
143 Note that the specified password is also used for the
144 root user account on the guest.
145 </p>
146 </li>
147 <li>
148 <p>
149 Installs the Guest Additions on the VM.
150 </p>
151 </li>
152 <li>
153 <p>
154 Sets the time zone for the guest OS to Central European
155 Time (CET).
156 </p>
157 </li>
158 </ul>
159 </li>
160 <li>
161 <p>
162 Start the virtual machine.
163 </p>
164 <p>
165 This step completes the unattended installation process.
166 </p>
167 <pre xml:space="preserve"># VBoxManage startvm $VM --type headless</pre>
168 <p>
169 The VM starts in headless mode, which means that the
170 <ph conkeyref="vbox-conkeyref-phrases/vbox-mgr"/> window does not open.
171 </p>
172 </li>
173 <li>
174 <p>
175 (Optional) Update the guest OS to use the latest Oracle
176 Linux packages.
177 </p>
178 <p>
179 On the guest VM, run the following command:
180 </p>
181 <pre xml:space="preserve"># yum update</pre>
182 </li>
183 </ol>
184 </body>
185 </topic>
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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