1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
<chapter id="vboxmanage">
<title>VBoxManage</title>
<sect1>
<title>Introduction</title>
<para>As briefly mentioned in <xref linkend="frontends" />, VBoxManage is
the command-line interface to VirtualBox. With it, you can completely
control VirtualBox from the command line of your host operating system.
VBoxManage supports all the features that the graphical user interface
gives you access to, but it supports a lot more than that. It exposes
really all the features of the virtualization engine, even those that
cannot (yet) be accessed from the GUI.</para>
<para>You will need to use the command line if you want to</para>
<para><itemizedlist>
<listitem>
<para>use a different user interface than the main GUI (for example,
VBoxSDL or the VBoxHeadless server);</para>
</listitem>
<listitem>
<para>control some of the more advanced and experimental
configuration settings for a VM.</para>
</listitem>
</itemizedlist></para>
<para>There are two main things to keep in mind when using
<computeroutput>VBoxManage</computeroutput>: First,
<computeroutput>VBoxManage</computeroutput> must always be used with a
specific "subcommand", such as "list" or "createvm" or "startvm". All the
subcommands that <computeroutput>VBoxManage</computeroutput> supports are
described in detail in <xref linkend="vboxmanage" />.</para>
<para>Second, most of these subcommands require that you specify a
particular virtual machine after the subcommand. There are two ways you
can do this:</para>
<itemizedlist>
<listitem>
<para>You can specify the VM name, as it is shown in the VirtualBox
GUI. Note that if that name contains spaces, then you must enclose the
entire name in double quotes (as it is always required with command
line arguments that contain spaces).</para>
<para>For example:<screen>VBoxManage startvm "Windows XP"</screen></para>
</listitem>
<listitem>
<para>You can specify the UUID, which is the internal unique
identifier that VirtualBox uses to refer to the virtual machine.
Assuming that the aforementioned VM called "Windows XP" has the UUID
shown below, the following command has the same effect as the
previous:<screen>VBoxManage startvm 670e746d-abea-4ba6-ad02-2a3b043810a5</screen></para>
</listitem>
</itemizedlist>
<para>You can type <computeroutput>VBoxManage list vms</computeroutput> to
have all currently registered VMs listed with all their settings,
including their respective names and UUIDs.</para>
<para>Some typical examples of how to control VirtualBox from the command
line are listed below:</para>
<itemizedlist>
<listitem>
<para>To create a new virtual machine from the command line and
immediately register it with VirtualBox, use
<computeroutput>VBoxManage createvm</computeroutput> with the
<computeroutput>--register</computeroutput> option,<footnote>
<para>For details, see <xref
linkend="vboxmanage-createvm" />.</para>
</footnote> like this:</para>
<screen>$ VBoxManage createvm --name "SUSE 10.2" --register
VirtualBox Command Line Management Interface Version $VBOX_VERSION_MAJOR.$VBOX_VERSION_MINOR.$VBOX_VERSION_BUILD
(C) 2005-$VBOX_C_YEAR $VBOX_VENDOR
All rights reserved.
Virtual machine 'SUSE 10.2' is created.
UUID: c89fc351-8ec6-4f02-a048-57f4d25288e5
Settings file: '/home/username/.config/VirtualBox/Machines/SUSE 10.2/SUSE 10.2.xml'</screen>
<para>As can be seen from the above output, a new virtual machine has
been created with a new UUID and a new XML settings file.</para>
</listitem>
<listitem>
<para>To show the configuration of a particular VM, use
<computeroutput>VBoxManage showvminfo</computeroutput>; see <xref
linkend="vboxmanage-showvminfo" /> for details and an example.</para>
</listitem>
<listitem>
<para>To change settings while a VM is powered off, use
<computeroutput>VBoxManage modifyvm</computeroutput>, e.g. as
follows:<screen>VBoxManage modifyvm "Windows XP" --memory "512MB"</screen></para>
<para>For details, see <xref linkend="vboxmanage-modifyvm" />.</para>
</listitem>
<listitem>
<para>To change the storage configuration (e.g. to add a storage
controller and then a virtual disk), use <computeroutput>VBoxManage
storagectl</computeroutput> and <computeroutput>VBoxManage
storageattach</computeroutput>; see <xref
linkend="vboxmanage-storagectl" /> and <xref
linkend="vboxmanage-storageattach" /> for details.</para>
</listitem>
<listitem>
<para>To control VM operation, use one of the following:<itemizedlist>
<listitem>
<para>To start a VM that is currently powered off, use
<computeroutput>VBoxManage startvm</computeroutput>; see <xref
linkend="vboxmanage-startvm" /> for details.</para>
</listitem>
<listitem>
<para>To pause or save a VM that is currently running or change
some of its settings, use <computeroutput>VBoxManage
controlvm</computeroutput>; see <xref
linkend="vboxmanage-controlvm" /> for details.</para>
</listitem>
</itemizedlist></para>
</listitem>
</itemizedlist>
</sect1>
<sect1>
<title>Commands overview</title>
<para>When running VBoxManage without parameters or when supplying an
invalid command line, the below syntax diagram will be shown. Note that
the output will be slightly different depending on the host platform; when
in doubt, check the output of <computeroutput>VBoxManage</computeroutput>
for the commands available on your particular host.</para>
<screen>$VBOX_MANAGE_OUTPUT</screen>
<para>Each time VBoxManage is invoked, only one command can be executed.
However, a command might support several subcommands which then can be
invoked in one single call. The following sections provide detailed
reference information on the different commands.</para>
</sect1>
<sect1 id="vboxmanage-general">
<title>General options</title>
<para>
<itemizedlist>
<listitem>
<para><computeroutput>--version</computeroutput>: show the version of
this tool and exit.</para>
</listitem>
<listitem>
<para><computeroutput>--nologo</computeroutput>: suppress the output
of the logo information (useful for scripts)</para>
</listitem>
<listitem>
<para><computeroutput>--settingspw</computeroutput>: specifiy a settings
password</para>
</listitem>
<listitem>
<para><computeroutput>--settingspwfile</computeroutput>: specify a file
containing the settings password.</para>
</listitem>
</itemizedlist>
The settings password is used for certain settings which need to be
stored encrypted for security reasons. At the moment, the only encrypted
setting is the iSCSI initiator secret (see
<xref linkend="vboxmanage-storageattach" /> for details). As long as no
settings password is specified, this information is stored in
<emphasis role="bold">plain text</emphasis>. After using the
<computeroutput>--settingspw|--settingspwfile</computeroutput> option
once, it must be always used, otherwise the encrypted setting cannot
be unencrypted.
</para>
</sect1>
<sect1 id="vboxmanage-list">
<title>VBoxManage list</title>
<para>The <computeroutput>list</computeroutput> command gives relevant
information about your system and information about VirtualBox's current
settings.</para>
<para>The following subcommands are available with
<computeroutput>VBoxManage list</computeroutput>: <itemizedlist>
<listitem>
<para><computeroutput>vms</computeroutput> lists all virtual
machines currently registered with VirtualBox. By default this
displays a compact list with each VM's name and UUID; if you also
specify <computeroutput>--long</computeroutput> or
<computeroutput>-l</computeroutput>, this will be a detailed list as
with the <computeroutput>showvminfo</computeroutput> command (see
below).</para>
</listitem>
<listitem>
<para><computeroutput>runningvms</computeroutput> lists all
currently running virtual machines by their unique identifiers
(UUIDs) in the same format as with
<computeroutput>vms</computeroutput>.</para>
</listitem>
<listitem>
<para><computeroutput>ostypes</computeroutput> lists all guest
operating systems presently known to VirtualBox, along with the
identifiers used to refer to them with the
<computeroutput>modifyvm</computeroutput> command.</para>
</listitem>
<listitem>
<para><computeroutput>hostdvds</computeroutput>,
<computeroutput>hostfloppies</computeroutput>, respectively, list
DVD, floppy, bridged networking and host-only networking interfaces
on the host, along with the name used to access them from within
VirtualBox.</para>
</listitem>
<listitem>
<para><computeroutput>bridgedifs</computeroutput>,
<computeroutput>hostonlyifs</computeroutput> and
<computeroutput>dhcpservers</computeroutput>, respectively, list
bridged network interfaces, host-only network interfaces and DHCP
servers currently available on the host. Please see <xref
linkend="networkingdetails" /> for details on these.</para>
</listitem>
<listitem>
<para><computeroutput>hostinfo</computeroutput> displays information
about the host system, such as CPUs, memory size and operating
system version.</para>
</listitem>
<listitem>
<para><computeroutput>hostcpuids</computeroutput> dumps the CPUID
parameters for the host CPUs. This can be used for a more fine
grained analyis of the host's virtualization capabilities.</para>
</listitem>
<listitem>
<para><computeroutput>hddbackends</computeroutput> lists all known
virtual disk back-ends of VirtualBox. For each such format (such as
VDI, VMDK or RAW), this lists the back-end's capabilities and
configuration.</para>
</listitem>
<listitem>
<para><computeroutput>hdds</computeroutput>,
<computeroutput>dvds</computeroutput> and
<computeroutput>floppies</computeroutput> all give you information
about virtual disk images currently in use by VirtualBox, including
all their settings, the unique identifiers (UUIDs) associated with
them by VirtualBox and all files associated with them. This is the
command-line equivalent of the Virtual Media Manager; see <xref
linkend="vdis" />.</para>
</listitem>
<listitem>
<para><computeroutput>usbhost</computeroutput> supplies information
about USB devices attached to the host, notably information useful
for constructing USB filters and whether they are currently in use
by the host.</para>
</listitem>
<listitem>
<para><computeroutput>usbfilters</computeroutput> lists all global
USB filters registered with VirtualBox -- that is, filters for
devices which are accessible to all virtual machines -- and displays
the filter parameters.</para>
</listitem>
<listitem>
<para><computeroutput>systemproperties</computeroutput> displays
some global VirtualBox settings, such as minimum and maximum guest
RAM and virtual hard disk size, folder settings and the current
authentication library in use.</para>
</listitem>
<listitem>
<para><computeroutput>extpacks</computeroutput> displays all
VirtualBox extension packs currently installed; see <xref
linkend="intro-installing" /> and <xref
linkend="vboxmanage-extpack" /> for more information.</para>
</listitem>
</itemizedlist></para>
</sect1>
<sect1 id="vboxmanage-showvminfo">
<title>VBoxManage showvminfo</title>
<para>The <computeroutput>showvminfo</computeroutput> command shows
information about a particular virtual machine. This is the same
information as <computeroutput>VBoxManage list vms --long</computeroutput>
would show for all virtual machines.</para>
<para>You will get information similar to the following:</para>
<para><screen>$ VBoxManage showvminfo "Windows XP"
VirtualBox Command Line Management Interface Version $VBOX_VERSION_MAJOR.$VBOX_VERSION_MINOR.$VBOX_VERSION_BUILD
(C) 2005-$VBOX_C_YEAR $VBOX_VENDOR
All rights reserved.
Name: Windows XP
Guest OS: Other/Unknown
UUID: 1bf3464d-57c6-4d49-92a9-a5cc3816b7e7
Config file: /home/username/.config/VirtualBox/Machines/Windows XP/Windows XP.xml
Memory size: 512MB
VRAM size: 12MB
Number of CPUs: 2
Synthetic Cpu: off
Boot menu mode: message and menu
Boot Device (1): DVD
Boot Device (2): HardDisk
Boot Device (3): Not Assigned
Boot Device (4): Not Assigned
ACPI: on
IOAPIC: on
PAE: on
Time offset: 0 ms
Hardw. virt.ext: on
Nested Paging: on
VT-x VPID: off
State: powered off (since 2009-10-20T14:52:19.000000000)
Monitor count: 1
3D Acceleration: off
2D Video Acceleration: off
Teleporter Enabled: off
Teleporter Port: 0
Teleporter Address:
Teleporter Password:
Storage Controller (0): IDE Controller
Storage Controller Type (0): PIIX4
Storage Controller (1): Floppy Controller 1
Storage Controller Type (1): I82078
IDE Controller (0, 0): /home/user/windows.vdi (UUID: 46f6e53a-4557-460a-9b95-68b0f17d744b)
IDE Controller (0, 1): /home/user/openbsd-cd46.iso (UUID: 4335e162-59d3-4512-91d5-b63e94eebe0b)
Floppy Controller 1 (0, 0): /home/user/floppy.img (UUID: 62ac6ccb-df36-42f2-972e-22f836368137)
NIC 1: disabled
NIC 2: disabled
NIC 3: disabled
NIC 4: disabled
NIC 5: disabled
NIC 6: disabled
NIC 7: disabled
NIC 8: disabled
UART 1: disabled
UART 2: disabled
Audio: disabled (Driver: Unknown)
Clipboard Mode: Bidirectional
VRDE: disabled
USB: disabled
USB Device Filters:
<none>
Shared folders:
<none>
Statistics update: disabled</screen></para>
</sect1>
<sect1 id="vboxmanage-registervm">
<title>VBoxManage registervm / unregistervm</title>
<para>The <computeroutput>registervm</computeroutput> command allows you
to import a virtual machine definition in an XML file into VirtualBox. The
machine must not conflict with one already registered in VirtualBox and it
may not have any hard or removable disks attached. It is advisable to
place the definition file in the machines folder before registering
it.<note>
<para>When creating a new virtual machine with
<computeroutput>VBoxManage createvm</computeroutput> (see below), you
can directly specify the <computeroutput>--register</computeroutput>
option to avoid having to register it separately.</para>
</note></para>
<para>The <computeroutput>unregistervm</computeroutput> command
unregisters a virtual machine. If
<computeroutput>--delete</computeroutput> is also specified, the following
files will automatically be deleted as well:<orderedlist>
<listitem>
<para>all hard disk image files, including differencing files, which
are used by the machine and not shared with other machines;</para>
</listitem>
<listitem>
<para>saved state files that the machine created, if any (one if the
machine was in "saved" state and one for each online
snapshot);</para>
</listitem>
<listitem>
<para>the machine XML file and its backups;</para>
</listitem>
<listitem>
<para>the machine log files, if any;</para>
</listitem>
<listitem>
<para>the machine directory, if it is empty after having deleted all
the above.</para>
</listitem>
</orderedlist></para>
</sect1>
<sect1 id="vboxmanage-createvm">
<title>VBoxManage createvm</title>
<para>This command creates a new XML virtual machine definition
file.</para>
<para>The <computeroutput>--name <name></computeroutput> parameter
is required and must specify the name of the machine. Since this name is
used by default as the file name of the settings file (with the extension
<computeroutput>.xml</computeroutput>) and the machine folder (a subfolder
of the <computeroutput>.config/VirtualBox/Machines</computeroutput> folder - this folder name may vary depending on the operating system and the version of VirtualBox which you are using), it
must conform to your host operating system's requirements for file name
specifications. If the VM is later renamed, the file and folder names will
change automatically.</para>
<para>However, if the <computeroutput>--basefolder
<path></computeroutput> option is used, the machine folder will be
named <computeroutput><path></computeroutput>. In this case, the
names of the file and the folder will not change if the virtual machine is
renamed.</para>
<para>By default, this command only creates the XML file without
automatically registering the VM with your VirtualBox installation. To
register the VM instantly, use the optional
<computeroutput>--register</computeroutput> option, or run
<computeroutput>VBoxManage registervm</computeroutput> separately
afterwards.</para>
</sect1>
<sect1 id="vboxmanage-modifyvm">
<title>VBoxManage modifyvm</title>
<para>This command changes the properties of a registered virtual machine
which is not running. Most of the properties that this command makes
available correspond to the VM settings that VirtualBox graphical user
interface displays in each VM's "Settings" dialog; these were described in
<xref linkend="BasicConcepts" />. Some of the more advanced settings,
however, are only available through the
<computeroutput>VBoxManage</computeroutput> interface.</para>
<para>These commands require that the machine is powered off (neither
running nor in "saved" state). Some machine settings can also be changed
while a machine is running; those settings will then have a corresponding
subcommand with the <computeroutput>VBoxManage controlvm</computeroutput>
subcommand (see <xref linkend="vboxmanage-controlvm" />).</para>
<sect2>
<title>General settings</title>
<para>The following general settings are available through
<computeroutput>VBoxManage modifyvm</computeroutput>:<itemizedlist>
<listitem>
<para><computeroutput>--name <name></computeroutput>: This
changes the VM's name and possibly renames the internal virtual
machine files, as described with <computeroutput>VBoxManage
createvm</computeroutput> above.</para>
</listitem>
<listitem>
<para><computeroutput>--ostype <ostype></computeroutput>:
This specifies what guest operating system is supposed to run in
the VM. To learn about the various identifiers that can be used
here, use <computeroutput>VBoxManage list
ostypes</computeroutput>.</para>
</listitem>
<listitem>
<para><computeroutput>--memory
<memorysize></computeroutput>: This sets the amount of RAM,
in MB, that the virtual machine should allocate for itself from
the host. See the remarks in <xref linkend="gui-createvm" /> for
more information.</para>
</listitem>
<listitem>
<para><computeroutput>--vram <vramsize></computeroutput>:
This sets the amount of RAM that the virtual graphics card should
have. See <xref linkend="settings-display" /> for details.</para>
</listitem>
<listitem>
<para><computeroutput>--acpi on|off</computeroutput>;
<computeroutput>--ioapic on|off</computeroutput>: These two
determine whether the VM should have ACPI and I/O APIC support,
respectively; see <xref linkend="settings-motherboard" /> for
details.</para>
</listitem>
<listitem>
<para><computeroutput>--hardwareuuid
<uuid></computeroutput>: The UUID presented to the guest via
memory tables (DMI/SMBIOS), hardware and guest properties. By
default this is the same as the VM uuid. Useful when cloning a VM.
Teleporting takes care of this automatically.</para>
</listitem>
<listitem>
<para><computeroutput>--cpus <cpucount></computeroutput>:
This sets the number of virtual CPUs for the virtual machine (see
<xref linkend="settings-processor" />). If CPU hot-plugging is
enabled (see below), this then sets the
<emphasis>maximum</emphasis> number of virtual CPUs that can be
plugged into the virtual machines.</para>
</listitem>
<listitem>
<para><computeroutput>--rtcuseutc on|off</computeroutput>: This
option lets the real-time clock (RTC) operate in UTC time (see
<xref linkend="settings-motherboard" />).</para>
</listitem>
<listitem>
<para><computeroutput>--cpuhotplug on|off</computeroutput>: This
enables CPU hot-plugging. When enabled, virtual CPUs can be added
to and removed from a virtual machine while it is running. See
<xref linkend="cpuhotplug" /> for more information.</para>
</listitem>
<listitem>
<para><computeroutput>--plugcpu|unplugcpu
<id></computeroutput>: If CPU hot-plugging is enabled (see
above), this adds a virtual CPU to the virtual machines (or
removes one). <computeroutput><id></computeroutput>
specifies the index of the virtual CPU to be added or removed and
must be a number from 0 to the maximum no. of CPUs configured with
the <computeroutput>--cpus</computeroutput> option. CPU 0 can
never be removed.</para>
</listitem>
<listitem>
<para><computeroutput>--cpuexecutioncap
<1-100></computeroutput>: This setting controls how much cpu
time a virtual CPU can use. A value of 50 implies a single virtual
CPU can use up to 50% of a single host CPU.</para>
</listitem>
<listitem>
<para><computeroutput>--pae on|off</computeroutput>: This
enables/disables PAE (see <xref
linkend="settings-processor" />).</para>
</listitem>
<listitem>
<para><computeroutput>--longmode on|off</computeroutput>: This
enables/disables long mode (see <xref
linkend="settings-processor" />).</para>
</listitem>
<listitem>
<para><computeroutput>--synthcpu on|off</computeroutput>: This
setting determines whether VirtualBox will expose a synthetic CPU
to the guest to allow live migration between host systems that
differ significantly.</para>
</listitem>
<listitem>
<para><computeroutput>--hpet on|off</computeroutput>: This
enables/disables a High Precision Event Timer (HPET) which can
replace the legacy system timers. This is turned off by default.
Note that Windows supports a HPET only from Vista onwards.</para>
</listitem>
<listitem>
<para><computeroutput>--hwvirtex on|off</computeroutput>: This
enables or disables the use of hardware virtualization extensions
(Intel VT-x or AMD-V) in the processor of your host system; see
<xref linkend="hwvirt" />.</para>
</listitem>
<listitem>
<para><computeroutput>--triplefaultreset on|off</computeroutput>:
This setting allows to reset the guest instead of triggering a
Guru Meditation. Some guests raise a triple fault to reset the
CPU so sometimes this is desired behavior. Works only for non-SMP
guests.</para>
</listitem>
<listitem>
<para><computeroutput>--nestedpaging on|off</computeroutput>: If
hardware virtualization is enabled, this additional setting
enables or disables the use of the nested paging feature in the
processor of your host system; see <xref
linkend="hwvirt" />.</para>
</listitem>
<listitem>
<para><computeroutput>--largepages on|off</computeroutput>: If
hardware virtualization <emphasis>and</emphasis> nested paging are
enabled, for Intel VT-x only, an additional performance
improvement of up to 5% can be obtained by enabling this setting.
This causes the hypervisor to use large pages to reduce TLB use
and overhead.</para>
</listitem>
<listitem>
<para><computeroutput>--vtxvpid on|off</computeroutput>: If
hardware virtualization is enabled, for Intel VT-x only, this
additional setting enables or disables the use of the tagged TLB
(VPID) feature in the processor of your host system; see <xref
linkend="hwvirt" />.</para>
</listitem>
<listitem>
<para><computeroutput>--vtxux on|off</computeroutput>: If
hardware virtualization is enabled, for Intel VT-x only, this
setting enables or disables the use of the unrestricted guest mode
feature for executing your guest.</para>
</listitem>
<listitem>
<para><computeroutput>--accelerate3d on|off</computeroutput>: This
enables, if the Guest Additions are installed, whether hardware 3D
acceleration should be available; see <xref
linkend="guestadd-3d" />.</para>
</listitem>
<listitem>
<para>You can influence the BIOS logo that is displayed when a
virtual machine starts up with a number of settings. Per default,
a VirtualBox logo is displayed.</para>
<para>With <computeroutput>--bioslogofadein
on|off</computeroutput> and <computeroutput>--bioslogofadeout
on|off</computeroutput>, you can determine whether the logo should
fade in and out, respectively.</para>
<para>With <computeroutput>--bioslogodisplaytime
<msec></computeroutput> you can set how long the logo should
be visible, in milliseconds.</para>
<para>With <computeroutput>--bioslogoimagepath
<imagepath></computeroutput> you can, if you are so
inclined, replace the image that is shown, with your own logo. The
image must be an uncompressed 256 color BMP file without color
space information (Windows 3.0 format). The image must not be
bigger than 640 x 480.</para>
</listitem>
<listitem>
<para><computeroutput>--biosbootmenu
disabled|menuonly|messageandmenu</computeroutput>: This specifies
whether the BIOS allows the user to select a temporary boot
device. <computeroutput>menuonly</computeroutput> suppresses the
message, but the user can still press F12 to select a temporary
boot device.</para>
</listitem>
<listitem>
<para><computeroutput>--nicbootprio<1-N>
<priority></computeroutput>: This specifies the order in which
NICs are tried for booting over the network (using PXE). The
priority is an integer in the 0 to 4 range. Priority 1 is the
highest, priority 4 is low. Priority 0, which is the default unless
otherwise specified, is the lowest.
</para>
<para> Note that this option only has effect when the Intel PXE boot
ROM is used.
</para>
</listitem>
<listitem>
<para><computeroutput>--boot<1-4>
none|floppy|dvd|disk|net</computeroutput>: This specifies the boot
order for the virtual machine. There are four "slots", which the
VM will try to access from 1 to 4, and for each of which you can
set a device that the VM should attempt to boot from.</para>
</listitem>
<listitem>
<para><computeroutput>--snapshotfolder
default|<path></computeroutput>: This allows you to specify
the folder in which snapshots will be kept for a virtual
machine.</para>
</listitem>
<listitem>
<para><computeroutput>--firmware efi|bios</computeroutput>:
Specifies which firmware is used to boot particular virtual
machine: EFI or BIOS. Use EFI only if your fully understand what
you're doing.</para>
</listitem>
<listitem>
<para><computeroutput>--guestmemoryballoon
<size></computeroutput> sets the default size of the guest
memory balloon, that is, memory allocated by the VirtualBox Guest
Additions from the guest operating system and returned to the
hypervisor for re-use by other virtual machines. <size> must
be specified in megabytes. The default size is 0 megabytes. For
details, see <xref linkend="guestadd-balloon" />.</para>
</listitem>
<listitem>
<para><computeroutput>--lptmode<1-N>
<Device></computeroutput>
Specifies the Device Name of the parallel port that
the Parallel Port feature will be using. Use this
<emphasis>before</emphasis> <computeroutput>--lpt</computeroutput>.
This feature is host operating system specific.</para>
</listitem>
<listitem>
<para><computeroutput>--lpt<1-N>
<I/O base> <IRQ></computeroutput>
Specifies the I/O address of the parallel port and the IRQ
number that the Parallel Port feature will be using. Use this
<emphasis>after</emphasis>
<computeroutput>--lptmod</computeroutput>. I/O base address and IRQ are
the values that guest sees i.e. the values avalable under guest Device Manager.</para>
</listitem>
<listitem>
<para><computeroutput>--defaultfrontend
default|<name></computeroutput>: This allows you to specify
the default frontend which will be used when starting this VM; see
<xref linkend="vboxmanage-startvm" /> for details.</para>
</listitem>
</itemizedlist></para>
</sect2>
<sect2>
<title>Networking settings</title>
<para>The following networking settings are available through
<computeroutput>VBoxManage modifyvm</computeroutput>. With all these
settings, the decimal number directly following the option name ("1-N"
in the list below) specifies the virtual network adapter whose settings
should be changed.<itemizedlist>
<listitem>
<para><computeroutput>--nic<1-N>
none|null|nat|bridged|intnet|hostonly|generic
</computeroutput>: With
this, you can set, for each of the VM's virtual network cards,
what type of networking should be available. They can be not
present (<computeroutput>none</computeroutput>), not connected to
the host (<computeroutput>null</computeroutput>), use network
address translation (<computeroutput>nat</computeroutput>),
bridged networking (<computeroutput>bridged</computeroutput>) or
communicate with other virtual machines using internal networking
(<computeroutput>intnet</computeroutput>), host-only networking
(<computeroutput>hostonly</computeroutput>), or access rarely used
sub-modes (<computeroutput>generic</computeroutput>).
These options correspond
to the modes which are described in detail in <xref
linkend="networkingmodes" />.</para>
</listitem>
<listitem>
<para><computeroutput>--nictype<1-N>
Am79C970A|Am79C973|82540EM|82543GC|82545EM|virtio</computeroutput>:
This allows you, for each of the VM's virtual network cards, to
specify which networking hardware VirtualBox presents to the
guest; see <xref linkend="nichardware" />.</para>
</listitem>
<listitem>
<para><computeroutput>--cableconnected<1-N>
on|off</computeroutput>: This allows you to temporarily disconnect
a virtual network interface, as if a network cable had been pulled
from a real network card. This might be useful for resetting
certain software components in the VM.</para>
</listitem>
<listitem>
<para>With the "nictrace" options, you can optionally trace
network traffic by dumping it to a file, for debugging
purposes.</para>
<para>With <computeroutput>--nictrace<1-N>
on|off</computeroutput>, you can enable network tracing for a
particular virtual network card.</para>
<para>If enabled, you must specify with
<computeroutput>--nictracefile<1-N>
<filename></computeroutput> what file the trace should be
logged to.</para>
</listitem>
<listitem>
<para><computeroutput>--bridgeadapter<1-N>
none|<devicename></computeroutput>: If bridged networking
has been enabled for a virtual network card (see the
<computeroutput>--nic</computeroutput> option above; otherwise
this setting has no effect), use this option to specify which host
interface the given virtual network interface will use. For
details, please see <xref linkend="network_bridged" />.</para>
</listitem>
<listitem>
<para><computeroutput>--hostonlyadapter<1-N>
none|<devicename></computeroutput>: If host-only networking
has been enabled for a virtual network card (see the --nic option
above; otherwise this setting has no effect), use this option to
specify which host-only networking interface the given virtual
network interface will use. For details, please see <xref
linkend="network_hostonly" />.</para>
</listitem>
<listitem>
<para><computeroutput>--intnet<1-N>
network</computeroutput>: If internal networking has been enabled
for a virtual network card (see the
<computeroutput>--nic</computeroutput> option above; otherwise
this setting has no effect), use this option to specify the name
of the internal network (see <xref
linkend="network_internal" />).</para>
</listitem>
<listitem>
<para><computeroutput>--macaddress<1-N>
auto|<mac></computeroutput>: With this option you can set
the MAC address of the virtual network card. Normally, each
virtual network card is assigned a random address by VirtualBox at
VM creation.</para>
</listitem>
<listitem>
<para><computeroutput>--nicgenericdrv<1-N>
<backend driver></computeroutput>: If generic networking has been
enabled for a virtual network card (see the
<computeroutput>--nic</computeroutput> option above; otherwise
this setting has no effect), this mode allows you to access
rarely used networking sub-modes, such as VDE network or UDP Tunnel.
</para>
</listitem>
<listitem>
<para><computeroutput>--nicproperty<1-N>
<paramname>="paramvalue"</computeroutput>:
This option, in combination with "nicgenericdrv" allows you to
pass parameters to rarely-used network backends.</para><para>
Those parameters are backend engine-specific, and are different
between UDP Tunnel and the VDE backend drivers. For example,
please see <xref linkend="network_udp_tunnel" />.
</para>
</listitem>
</itemizedlist></para>
<sect3>
<title>NAT Networking settings.</title>
<para>The following NAT networking settings are available through
<computeroutput>VBoxManage modifyvm</computeroutput>. With all these
settings, the decimal number directly following the option name ("1-N"
in the list below) specifies the virtual network adapter whose
settings should be changed.<itemizedlist>
<listitem>
<para><computeroutput>--natpf<1-N>
[<name>],tcp|udp,[<hostip>],<hostport>,[<guestip>],
<guestport></computeroutput>: This option defines a NAT
port-forwarding rule (please see <xref linkend="natforward" />
for details).</para>
</listitem>
<listitem>
<para><computeroutput>--natpf<1-N> delete
<name></computeroutput>: This option deletes a NAT
port-forwarding rule (please see <xref linkend="natforward" />
for details).</para>
</listitem>
<listitem>
<para><computeroutput>--nattftpprefix<1-N>
<prefix></computeroutput>: This option defines a prefix
for the built-in TFTP server, i.e. where the boot file is
located (please see <xref linkend="nat-tftp" /> and <xref
linkend="nat-adv-tftp" /> for details).</para>
</listitem>
<listitem>
<para><computeroutput>--nattftpfile<1-N>
<bootfile></computeroutput>: This option defines the TFT
boot file (please see <xref linkend="nat-adv-tftp" /> for
details).</para>
</listitem>
<listitem>
<para><computeroutput>--nattftpserver<1-N>
<tftpserver></computeroutput>: This option defines the
TFTP server address to boot from (please see <xref
linkend="nat-adv-tftp" /> for details).</para>
</listitem>
<listitem>
<para><computeroutput>--natdnspassdomain<1-N>
on|off</computeroutput>: This option specifies whether the
built-in DHCP server passes the domain name for network name
resolution.</para>
</listitem>
<listitem>
<para><computeroutput>--natdnsproxy<1-N>
on|off</computeroutput>: This option makes the NAT engine proxy
all guest DNS requests to the host's DNS servers (please see
<xref linkend="nat-adv-dns" /> for details).</para>
</listitem>
<listitem>
<para><computeroutput>--natdnshostresolver<1-N>
on|off</computeroutput>: This option makes the NAT engine use
the host's resolver mechanisms to handle DNS requests (please
see <xref linkend="nat-adv-dns" /> for details).</para>
</listitem>
<listitem>
<para><computeroutput>--natsettings<1-N>
[<mtu>],[<socksnd>],[<sockrcv>],[<tcpsnd>],
[<tcprcv>]</computeroutput>: This option controls several
NAT settings (please see <xref linkend="nat-adv-settings" /> for
details).</para>
</listitem>
<listitem>
<para><computeroutput>--nataliasmode<1-N>
default|[log],[proxyonly],[sameports]</computeroutput>: This
option defines behaviour of NAT engine core: log - enables
logging, proxyonly - switches of aliasing mode makes NAT
transparent, sameports enforces NAT engine to send packets via
the same port as they originated on, default - disable all
mentioned modes above . (please see <xref
linkend="nat-adv-alias" /> for details).</para>
</listitem>
</itemizedlist></para>
</sect3>
</sect2>
<sect2 id="vboxmanage-modifyvm-other">
<title>Serial port, audio, clipboard and USB settings</title>
<para>The following other hardware settings are available through
<computeroutput>VBoxManage modifyvm</computeroutput>:<itemizedlist>
<listitem>
<para><computeroutput>--uart<1-N> off|<I/O base>
<IRQ></computeroutput>: With this option you can configure
virtual serial ports for the VM; see <xref
linkend="serialports" /> for an introduction.</para>
</listitem>
<listitem>
<para><computeroutput>--uartmode<1-N>
<arg></computeroutput>: This setting controls how VirtualBox
connects a given virtual serial port (previously configured with
the <computeroutput>--uartX</computeroutput> setting, see above)
to the host on which the virtual machine is running. As described
in detail in <xref linkend="serialports" />, for each such port,
you can specify <computeroutput><arg></computeroutput> as
one of the following options:<itemizedlist>
<listitem>
<para><computeroutput>disconnected</computeroutput>: Even
though the serial port is shown to the guest, it has no
"other end" -- like a real COM port without a cable.</para>
</listitem>
<listitem>
<para><computeroutput>server
<pipename></computeroutput>: On a Windows host, this
tells VirtualBox to create a named pipe on the host named
<computeroutput><pipename></computeroutput> and
connect the virtual serial device to it. Note that Windows
requires that the name of a named pipe begin with
<computeroutput>\\.\pipe\</computeroutput>.</para>
<para>On a Linux host, instead of a named pipe, a local
domain socket is used.</para>
</listitem>
<listitem>
<para><computeroutput>client
<pipename></computeroutput>: This operates just like
<computeroutput>server ...</computeroutput>, except that the
pipe (or local domain socket) is not created by VirtualBox,
but assumed to exist already.</para>
</listitem>
<listitem>
<para><computeroutput><devicename></computeroutput>:
If, instead of the above, the device name of a physical
hardware serial port of the host is specified, the virtual
serial port is connected to that hardware port. On a Windows
host, the device name will be a COM port such as
<computeroutput>COM1</computeroutput>; on a Linux host, the
device name will look like
<computeroutput>/dev/ttyS0</computeroutput>. This allows you
to "wire" a real serial port to a virtual machine.</para>
</listitem>
</itemizedlist></para>
</listitem>
<listitem>
<para><computeroutput>--audio none|null|oss</computeroutput>: With
this option, you can set whether the VM should have audio
support.</para>
</listitem>
<listitem>
<para><computeroutput>--clipboard
disabled|hosttoguest|guesttohost|bidirectional</computeroutput>:
With this setting, you can select whether the guest operating
system's clipboard should be shared with the host; see <xref
linkend="generalsettings" />. This requires that the Guest
Additions be installed in the virtual machine.</para>
</listitem>
<listitem>
<para><computeroutput>--monitorcount
<count></computeroutput>: This enables multi-monitor
support; see <xref linkend="settings-display" />.</para>
</listitem>
<listitem>
<para><computeroutput>--usb on|off</computeroutput>: This option
enables or disables the VM's virtual USB controller; see <xref
linkend="settings-usb" /> for details.</para>
</listitem>
<listitem>
<para><computeroutput>--usbehci on|off</computeroutput>: This
option enables or disables the VM's virtual USB 2.0 controller;
see <xref linkend="settings-usb" /> for details.</para>
</listitem>
</itemizedlist></para>
</sect2>
<sect2 id="vboxmanage-modifyvm-vrde">
<title>Remote machine settings</title>
<para>The following settings that affect remote machine behavior are
available through <computeroutput>VBoxManage
modifyvm</computeroutput>:<itemizedlist>
<listitem>
<para><computeroutput>--vrde on|off</computeroutput>: With the
VirtualBox graphical user interface, this enables or disables the
VirtualBox remote desktop extension (VRDE) server. Note that if
you are using <computeroutput>VBoxHeadless</computeroutput> (see
<xref linkend="vboxheadless" />), VRDE is enabled by
default.</para>
</listitem>
<listitem>
<para><computeroutput>--vrdeport
default|<ports></computeroutput>: A port or a range of ports
the VRDE server can bind to; "default" or "0" means port 3389, the
standard port for RDP. You can specify a comma-separated list of
ports or ranges of ports. Use a dash between two port numbers to
specify a range. The VRDE server will bind to <emphasis
role="bold">one</emphasis> of available ports from the specified
list. Only one machine can use a given port at a time. For
example, the option <computeroutput> --vrdeport
5000,5010-5012</computeroutput> will tell the server to bind to
one of following ports: 5000, 5010, 5011 or 5012.</para>
</listitem>
<listitem>
<para><computeroutput>--vrdeaddress <IP
address></computeroutput>: The IP address of the host network
interface the VRDE server will bind to. If specified, the server
will accept connections only on the specified host network
interface.</para>
<para>The setting can be used to specify whether the VRDP server
should accept either IPv4 or IPv6 or both connections:
<itemizedlist>
<listitem>
<para>only IPv4: <computeroutput>--vrdeaddress "0.0.0.0"
</computeroutput></para>
</listitem>
<listitem>
<para>only IPv6: <computeroutput>--vrdeaddress "::"
</computeroutput></para>
</listitem>
<listitem>
<para>both IPv6 and IPv4 (default): <computeroutput>--vrdeaddress ""
</computeroutput></para>
</listitem>
</itemizedlist></para>
</listitem>
<listitem>
<para><computeroutput>--vrdeauthtype
null|external|guest</computeroutput>: This allows you to choose
whether and how authorization will be performed; see <xref
linkend="vbox-auth" /> for details.</para>
</listitem>
<listitem>
<para><computeroutput>--vrdemulticon on|off</computeroutput>: This
enables multiple connections to the same VRDE server, if the
server supports this feature; see <xref lang=""
linkend="vrde-multiconnection" />.</para>
</listitem>
<listitem>
<para><computeroutput>--vrdereusecon on|off</computeroutput>: This
specifies the VRDE server behavior when multiple connections are
disabled. When this option is enabled, the server will allow a new
client to connect and will drop the existing connection. When this
option is disabled (this is the default setting), a new connection
will not be accepted if there is already a client connected to the
server.</para>
</listitem>
<listitem>
<para><computeroutput>--vrdevideochannel on|off</computeroutput>:
This enables video redirection, if it is supported by the VRDE
server; see <xref lang="" linkend="vrde-videochannel" />.</para>
</listitem>
<listitem>
<para><computeroutput>--vrdevideochannelquality
<percent></computeroutput>: Sets the image quality for video
redirection; see <xref lang=""
linkend="vrde-videochannel" />.</para>
</listitem>
</itemizedlist></para>
</sect2>
<sect2 id="vboxmanage-modifyvm-teleport">
<title>Teleporting settings</title>
<para>With the following commands for <computeroutput>VBoxManage
modifyvm</computeroutput> you can configure a machine to be a target for
teleporting. See <xref linkend="teleporting" /> for an
introduction.<itemizedlist>
<listitem>
<para><computeroutput>--teleporter on|off</computeroutput>: With
this setting you turn on or off whether a machine waits for a
teleporting request to come in on the network when it is started.
If "on", when the machine is started, it does not boot the virtual
machine as it would normally; instead, it then waits for a
teleporting request to come in on the port and address listed with
the next two parameters.</para>
</listitem>
<listitem>
<para><computeroutput>--teleporterport
<port></computeroutput>, <computeroutput>--teleporteraddress
<address></computeroutput>: these must be used with
--teleporter and tell the virtual machine on which port and
address it should listen for a teleporting request from another
virtual machine. <computeroutput><port></computeroutput> can
be any free TCP/IP port number (e.g. 6000);
<computeroutput><address></computeroutput> can be any IP
address or hostname and specifies the TCP/IP socket to bind to.
The default is "0.0.0.0", which means any address.</para>
</listitem>
<listitem>
<para><computeroutput>--teleporterpassword
<password></computeroutput>: if this optional argument is
given, then the teleporting request will only succeed if the
source machine specifies the same password as the one given with
this command.</para>
</listitem>
<listitem>
<para><computeroutput>--teleporterpasswordfile
<password></computeroutput>: if this optional argument is
given, then the teleporting request will only succeed if the
source machine specifies the same password as the one specified
in the file give with this command. Use <computeroutput>stdin</computeroutput>
to read the password from stdin.</para>
</listitem>
<listitem>
<para><computeroutput>--cpuid <leaf> <eax> <ebx>
<ecx> <edx></computeroutput>: Advanced users can use
this command before a teleporting operation to restrict the
virtual CPU capabilities that VirtualBox presents to the guest
operating system. This must be run on both the source and the
target machines involved in the teleporting and will then modify
what the guest sees when it executes the
<computeroutput>CPUID</computeroutput> machine instruction. This
might help with misbehaving applications that wrongly assume that
certain CPU capabilities are present. The meaning of the
parameters is hardware dependent; please refer to the AMD or Intel
processor manuals.</para>
</listitem>
</itemizedlist></para>
</sect2>
</sect1>
<sect1 id="vboxmanage-clonevm">
<title>VBoxManage clonevm</title>
<para>This command creates a full or linked copy of an existing virtual
machine.</para>
<para>The <computeroutput>clonevm</computeroutput> subcommand takes at
least the name of the virtual machine which should be cloned. The following
additional settings can be used to further configure the clone VM
operation:</para>
<itemizedlist>
<listitem>
<para><computeroutput>--snapshot <uuid>|<name></computeroutput>:
Select a specific snapshot where the clone operation should refer
to. Default is referring to the current state.</para>
</listitem>
<listitem>
<para><computeroutput>--mode machine|machineandchildren|all</computeroutput>:
Selects the cloning mode of the operation. If
<computeroutput>machine</computeroutput> is selected (the default),
the current state of the VM without any snapshots is cloned. In the
<computeroutput>machineandchildren</computeroutput> mode the snapshot
provided by <computeroutput>--snapshot</computeroutput> and all
child snapshots are cloned. If <computeroutput>all</computeroutput>
is the selected mode all snapshots and the current state are cloned.
</para>
</listitem>
<listitem>
<para><computeroutput>--options link|keepallmacs|keepnatmacs|keepdisknames</computeroutput>:
Allows additional fine tuning of the clone operation. The first
option defines that a linked clone should be created, which is
only possible for a machine clone from a snapshot. The next two
options allow to define how the MAC addresses of every virtual
network card should be handled. They can either be reinitialized
(the default), left unchanged
(<computeroutput>keepallmacs</computeroutput>) or left unchanged
when the network type is NAT
(<computeroutput>keepnatmacs</computeroutput>). If you add
<computeroutput>keepdisknames</computeroutput> all new disk images
are called like the original ones, otherwise they are
renamed.</para>
</listitem>
<listitem>
<para><computeroutput>--name <name></computeroutput>: Select a
new name for the new virtual machine. Default is "Original Name
Clone".</para>
</listitem>
<listitem>
<para><computeroutput>--basefolder <basefolder></computeroutput>:
Select the folder where the new virtual machine configuration should
be saved in.</para>
</listitem>
<listitem>
<para><computeroutput>--uuid <uuid></computeroutput>:
Select the UUID the new VM should have. This id has to be unique in
the VirtualBox instance this clone should be registered. Default is
creating a new UUID.</para>
</listitem>
<listitem>
<para><computeroutput>--register</computeroutput>:
Automatically register the new clone in this VirtualBox
installation. If you manually want to register the new VM later, see
<xref linkend="vboxmanage-registervm" /> for instructions how to do
so.</para>
</listitem>
</itemizedlist>
</sect1>
<sect1 id="vboxmanage-import">
<title>VBoxManage import</title>
<para>This command imports a virtual appliance in OVF format by copying
the virtual disk images and creating virtual machines in VirtualBox. See
<xref linkend="ovf" /> for an introduction to appliances.</para>
<para>The <computeroutput>import</computeroutput> subcommand takes at
least the path name of an OVF file as input and expects the disk images,
if needed, in the same directory as the OVF file. A lot of additional
command-line options are supported to control in detail what is being
imported and modify the import parameters, but the details depend on the
content of the OVF file.</para>
<para>It is therefore recommended to first run the import subcommand with
the <computeroutput>--dry-run</computeroutput> or
<computeroutput>-n</computeroutput> option. This will then print a
description of the appliance's contents to the screen how it would be
imported into VirtualBox, together with the optional command-line options
to influence the import behavior.</para>
<para>As an example, here is the screen output with a sample appliance
containing a Windows XP guest:<screen>VBoxManage import WindowsXp.ovf --dry-run
Interpreting WindowsXp.ovf...
OK.
Virtual system 0:
0: Suggested OS type: "WindowsXP"
(change with "--vsys 0 --ostype <type>"; use "list ostypes" to list all)
1: Suggested VM name "Windows XP Professional_1"
(change with "--vsys 0 --vmname <name>")
3: Number of CPUs: 1
(change with "--vsys 0 --cpus <n>")
4: Guest memory: 956 MB (change with "--vsys 0 --memory <MB>")
5: Sound card (appliance expects "ensoniq1371", can change on import)
(disable with "--vsys 0 --unit 5 --ignore")
6: USB controller
(disable with "--vsys 0 --unit 6 --ignore")
7: Network adapter: orig bridged, config 2, extra type=bridged
8: Floppy
(disable with "--vsys 0 --unit 8 --ignore")
9: SCSI controller, type BusLogic
(change with "--vsys 0 --unit 9 --scsitype {BusLogic|LsiLogic}";
disable with "--vsys 0 --unit 9 --ignore")
10: IDE controller, type PIIX4
(disable with "--vsys 0 --unit 10 --ignore")
11: Hard disk image: source image=WindowsXp.vmdk,
target path=/home/user/disks/WindowsXp.vmdk, controller=9;channel=0
(change controller with "--vsys 0 --unit 11 --controller <id>";
disable with "--vsys 0 --unit 11 --ignore")</screen></para>
<para>As you can see, the individual configuration items are numbered, and
depending on their type support different command-line options. The import
subcommand can be directed to ignore many such items with a
<computeroutput>--vsys X --unit Y --ignore</computeroutput> option, where
X is the number of the virtual system (zero unless there are several
virtual system descriptions in the appliance) and Y the item number, as
printed on the screen.</para>
<para>In the above example, Item #1 specifies the name of the target
machine in VirtualBox. Items #9 and #10 specify hard disk controllers,
respectively. Item #11 describes a hard disk image; in this case, the
additional <computeroutput>--controller</computeroutput> option indicates
which item the disk image should be connected to, with the default coming
from the OVF file.</para>
<para>You can combine several items for the same virtual system behind the
same <computeroutput>--vsys</computeroutput> option. For example, to
import a machine as described in the OVF, but without the sound card and
without the USB controller, and with the disk image connected to the IDE
controller instead of the SCSI controller, use this:<screen>VBoxManage import WindowsXp.ovf
--vsys 0 --unit 5 --ignore --unit 6 --ignore --unit 11 --controller 10</screen></para>
</sect1>
<sect1 id="vboxmanage-export">
<title>VBoxManage export</title>
<para>This command exports one or more virtual machines from VirtualBox
into a virtual appliance in OVF format, including copying their virtual
disk images to compressed VMDK. See <xref linkend="ovf" /> for an
introduction to appliances.</para>
<para>The <computeroutput>export</computeroutput> command is simple to
use: list the machine (or the machines) that you would like to export to
the same OVF file and specify the target OVF file after an additional
<computeroutput>--output</computeroutput> or
<computeroutput>-o</computeroutput> option. Note that the directory of the
target OVF file will also receive the exported disk images in the
compressed VMDK format (regardless of the original format) and should have
enough disk space left for them.</para>
<para>Beside a simple export of a given virtual machine, you can append
several product information to the appliance file. Use
<computeroutput>--product</computeroutput>,
<computeroutput>--producturl</computeroutput>,
<computeroutput>--vendor</computeroutput>,
<computeroutput>--vendorurl</computeroutput> and
<computeroutput>--version</computeroutput> to specify this additional
information. For legal reasons you may add a license text or the content
of a license file by using the <computeroutput>--eula</computeroutput> and
<computeroutput>--eulafile</computeroutput> option respectively. As with
OVF import, you must use the <computeroutput>--vsys X</computeroutput>
option to direct the previously mentioned options to the correct virtual
machine.</para>
<para>For virtualization products which aren't fully compatible with the
OVF standard 1.0 you can enable a OVF 0.9 legacy mode with the
<computeroutput>--legacy09</computeroutput> option.</para>
<para>To specify options controlling the exact content of the appliance
file, you can use <computeroutput>--option</computeroutput> to request the
creation of a manifest file (encouraged, allows detection of corrupted
appliances on import), the additional export of DVD images, and the
exclusion of MAC addresses. You can specify a list of options, e.g.
<computeroutput>--option manifest,nomacs</computeroutput>. For details,
check the help output of <computeroutput>VBoxManage export</computeroutput>.</para>
</sect1>
<sect1 id="vboxmanage-startvm">
<title>VBoxManage startvm</title>
<para>This command starts a virtual machine that is currently in the
"Powered off" or "Saved" states.</para>
<para>The optional <computeroutput>--type</computeroutput> specifier
determines whether the machine will be started in a window or whether the
output should go through <computeroutput>VBoxHeadless</computeroutput>,
with VRDE enabled or not; see <xref linkend="vboxheadless" /> for more
information. The list of types is subject to change, and it's not
guaranteed that all types are accepted by any product variant.</para>
<para>The global or per-VM default value for the VM frontend type will be
taken if the type is not explicitly specified. If none of these are set,
the GUI variant will be started.</para>
<para>The following values are allowed:</para>
<glosslist>
<glossentry>
<glossterm><computeroutput>gui</computeroutput></glossterm>
<glossdef>
<para>Starts a VM showing a GUI window. This is the default.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>headless</computeroutput></glossterm>
<glossdef>
<para>Starts a VM without a window for remote display only.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>sdl</computeroutput></glossterm>
<glossdef>
<para>Starts a VM with a minimal GUI and limited features.</para>
</glossdef>
</glossentry>
</glosslist>
<note>
<para>If you experience problems with starting virtual machines with
particular frontends and there is no conclusive error information,
consider starting virtual machines directly by running the respective
front-end, as this can give additional error information.</para>
</note>
</sect1>
<sect1 id="vboxmanage-controlvm">
<title>VBoxManage controlvm</title>
<para>The <computeroutput>controlvm</computeroutput> subcommand allows you
to change the state of a virtual machine that is currently running. The
following can be specified:</para>
<para><itemizedlist>
<listitem>
<para><computeroutput>VBoxManage controlvm <vm>
pause</computeroutput> temporarily puts a virtual machine on hold,
without changing its state for good. The VM window will be painted
in gray to indicate that the VM is currently paused. (This is
equivalent to selecting the "Pause" item in the "Machine" menu of
the GUI.)</para>
</listitem>
<listitem>
<para>Use <computeroutput>VBoxManage controlvm <vm>
resume</computeroutput> to undo a previous
<computeroutput>pause</computeroutput> command. (This is equivalent
to selecting the "Resume" item in the "Machine" menu of the
GUI.)</para>
</listitem>
<listitem>
<para><computeroutput>VBoxManage controlvm <vm>
reset</computeroutput> has the same effect on a virtual machine as
pressing the "Reset" button on a real computer: a cold reboot of the
virtual machine, which will restart and boot the guest operating
system again immediately. The state of the VM is not saved
beforehand, and data may be lost. (This is equivalent to selecting
the "Reset" item in the "Machine" menu of the GUI.)</para>
</listitem>
<listitem>
<para><computeroutput>VBoxManage controlvm <vm>
poweroff</computeroutput> has the same effect on a virtual machine
as pulling the power cable on a real computer. Again, the state of
the VM is not saved beforehand, and data may be lost. (This is
equivalent to selecting the "Close" item in the "Machine" menu of
the GUI or pressing the window's close button, and then selecting
"Power off the machine" in the dialog.)</para>
<para>After this, the VM's state will be "Powered off". From there,
it can be started again; see <xref
linkend="vboxmanage-startvm" />.</para>
</listitem>
<listitem>
<para><computeroutput>VBoxManage controlvm <vm>
savestate</computeroutput> will save the current state of the VM to
disk and then stop the VM. (This is equivalent to selecting the
"Close" item in the "Machine" menu of the GUI or pressing the
window's close button, and then selecting "Save the machine state"
in the dialog.)</para>
<para>After this, the VM's state will be "Saved". From there, it can
be started again; see <xref linkend="vboxmanage-startvm" />.</para>
</listitem>
<listitem>
<para><computeroutput>VBoxManage controlvm "VM name" teleport
--hostname <name> --port <port> [--passwordfile
<file> | --password <password>]</computeroutput> makes
the machine the source of a teleporting operation and initiates a
teleport to the given target. See <xref linkend="teleporting" /> for
an introduction. If the optional password is specified, it must match
the password that was given to the
<computeroutput>modifyvm</computeroutput> command for the target
machine; see <xref linkend="vboxmanage-modifyvm-teleport" /> for
details.</para>
</listitem>
</itemizedlist></para>
<para>A few extra options are available with
<computeroutput>controlvm</computeroutput> that do not directly affect the
VM's running state:</para>
<itemizedlist>
<listitem>
<para>The <computeroutput>setlinkstate<1-N></computeroutput>
operation connects or disconnects virtual network cables from their
network interfaces.</para>
</listitem>
<listitem>
<para><computeroutput>nic<1-N>
null|nat|bridged|intnet|hostonly|generic</computeroutput>: With this, you can
set, for each of the VM's virtual network cards, what type of
networking should be available. They can be not connected to the host
(<computeroutput>null</computeroutput>), use network address
translation (<computeroutput>nat</computeroutput>), bridged networking
(<computeroutput>bridged</computeroutput>) or communicate with other
virtual machines using internal networking
(<computeroutput>intnet</computeroutput>) or host-only networking
(<computeroutput>hostonly</computeroutput>) or access to rarely used
sub-modes
(<computeroutput>generic</computeroutput>). These options correspond
to the modes which are described in detail in <xref
linkend="networkingmodes" />.</para>
</listitem>
<listitem>
<para><computeroutput>usbattach</computeroutput> and
<computeroutput>usbdettach</computeroutput> make host USB devices
visible to the virtual machine on the fly, without the need for
creating filters first. The USB devices can be specified by UUID
(unique identifier) or by address on the host system.</para>
<para>You can use <computeroutput>VBoxManage list
usbhost</computeroutput> to locate this information.</para>
</listitem>
<listitem>
<para><computeroutput>vrde on|off</computeroutput> lets you enable or
disable the VRDE server, if it is installed.</para>
</listitem>
<listitem>
<para><computeroutput>vrdeport default|<ports></computeroutput>
changes the port or a range of ports that the VRDE server can bind to;
"default" or "0" means port 3389, the standard port for RDP. For
details, see the description for the
<computeroutput>--vrdeport</computeroutput> option in <xref
linkend="vboxmanage-modifyvm-other" />.</para>
</listitem>
<listitem>
<para><computeroutput>setvideomodehint</computeroutput> requests that
the guest system change to a particular video mode. This requires that
the Guest Additions be installed, and will not work for all guest
systems.</para>
</listitem>
<listitem>
<para><computeroutput>screenshotpng</computeroutput> takes a screenshot
of the guest display and saves it in PNG format.</para>
</listitem>
<listitem>
<para>The <computeroutput>setcredentials</computeroutput> operation is
used for remote logons in Windows guests. For details, please refer to
<xref linkend="autologon" />.</para>
</listitem>
<listitem>
<para>The <computeroutput>guestmemoryballoon</computeroutput>
operation changes the size of the guest memory balloon, that is,
memory allocated by the VirtualBox Guest Additions from the guest
operating system and returned to the hypervisor for re-use by other
virtual machines. This must be specified in megabytes. For details,
see <xref linkend="guestadd-balloon" />.</para>
</listitem>
<listitem>
<para>The <computeroutput>cpuexecutioncap
<1-100></computeroutput>: This operation controls how much cpu
time a virtual CPU can use. A value of 50 implies a single virtual CPU
can use up to 50% of a single host CPU.</para>
</listitem>
</itemizedlist>
</sect1>
<sect1>
<title>VBoxManage discardstate</title>
<para>This command discards the saved state of a virtual machine which is
not currently running, which will cause its operating system to restart
next time you start it. This is the equivalent of pulling out the power
cable on a physical machine, and should be avoided if possible.</para>
</sect1>
<sect1>
<title>VBoxManage adoptstate</title>
<para>If you have a saved state file (<computeroutput>.sav</computeroutput>)
that is separate from the VM configuration, you can use this command to
"adopt" the file. This will change the VM to saved state and when you
start it, VirtualBox will attempt to restore it from the saved state file
you indicated. This command should only be used in special setups.</para>
</sect1>
<sect1>
<title>VBoxManage snapshot</title>
<para>This command is used to control snapshots from the command line. A
snapshot consists of a complete copy of the virtual machine settings,
copied at the time when the snapshot was taken, and optionally a virtual
machine saved state file if the snapshot was taken while the machine was
running. After a snapshot has been taken, VirtualBox creates differencing
hard disk for each normal hard disk associated with the machine so that
when a snapshot is restored, the contents of the virtual machine's virtual
hard disks can be quickly reset by simply dropping the pre-existing
differencing files.</para>
<para>The <computeroutput>take</computeroutput> operation takes a snapshot
of the current state of the virtual machine. You must supply a name for
the snapshot and can optionally supply a description. The new snapshot is
inserted into the snapshots tree as a child of the current snapshot and
then becomes the new current snapshot. The
<computeroutput>--description</computeroutput> parameter allows to
describe the snapshot. If <computeroutput>--live</computeroutput>
is specified, the VM will not be stopped during the snapshot creation
(live smapshotting).</para>
<para>The <computeroutput>delete</computeroutput> operation deletes a
snapshot (specified by name or by UUID). This can take a while to finish
since the differencing images associated with the snapshot might need to
be merged with their child differencing images.</para>
<para>The <computeroutput>restore</computeroutput> operation will restore
the given snapshot (specified by name or by UUID) by resetting the virtual
machine's settings and current state to that of the snapshot. The previous
current state of the machine will be lost. After this, the given snapshot
becomes the new "current" snapshot so that subsequent snapshots are
inserted under the snapshot from which was restored.</para>
<para>The <computeroutput>restorecurrent</computeroutput> operation is a
shortcut to restore the current snapshot (i.e. the snapshot from which the
current state is derived). This subcommand is equivalent to using the
"restore" subcommand with the name or UUID of the current snapshot, except
that it avoids the extra step of determining that name or UUID.</para>
<para>With the <computeroutput>edit</computeroutput> operation, you can
change the name or description of an existing snapshot.</para>
<para>With the <computeroutput>showvminfo</computeroutput> operation, you
can view the virtual machine settings that were stored with an existing
snapshot.</para>
</sect1>
<sect1 id="vboxmanage-closemedium">
<title>VBoxManage closemedium</title>
<para>This commands removes a hard disk, DVD or floppy image from a
VirtualBox media registry.<footnote>
<para>Before VirtualBox 4.0, it was necessary to call VBoxManage
openmedium before a medium could be attached to a virtual machine;
that call "registered" the medium with the global VirtualBox media
registry. With VirtualBox 4.0 this is no longer necessary; media are
added to media registries automatically. The "closemedium" call has
been retained, however, to allow for explicitly removing a medium from
a registry.</para>
</footnote></para>
<para>Optionally, you can request that the image be deleted. You will get
appropriate diagnostics that the deletion failed, however the image will
become unregistered in any case.</para>
</sect1>
<sect1 id="vboxmanage-storageattach">
<title>VBoxManage storageattach</title>
<para>This command attaches/modifies/removes a storage medium connected to
a storage controller that was previously added with the
<computeroutput>storagectl</computeroutput> command (see the previous
section). The syntax is as follows:</para>
<screen>VBoxManage storageattach <uuid|vmname>
--storagectl <name>
[--port <number>]
[--device <number>]
[--type dvddrive|hdd|fdd]
[--medium none|emptydrive|
<uuid>|<filename>|host:<drive>|iscsi]
[--mtype normal|writethrough|immutable|shareable]
[--comment <text>]
[--setuuid <uuid>]
[--setparentuuid <uuid>]
[--passthrough on|off]
[--tempeject on|off]
[--nonrotational on|off]
[--discard on|off]
[--bandwidthgroup name|none]
[--forceunmount]
[--server <name>|<ip>]
[--target <target>]
[--tport <port>]
[--lun <lun>]
[--encodedlun <lun>]
[--username <username>]
[--password <password>]
[--initiator <initiator>]
[--intnet]</screen>
<para>A number of parameters are commonly required; the ones at the end of
the list are required only for iSCSI targets (see below).</para>
<para>The common parameters are:<glosslist>
<glossentry>
<glossterm><computeroutput>uuid|vmname</computeroutput></glossterm>
<glossdef>
<para>The VM UUID or VM Name. Mandatory.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--storagectl</computeroutput></glossterm>
<glossdef>
<para>Name of the storage controller. Mandatory. The list of the
storage controllers currently attached to a VM can be obtained
with <computeroutput>VBoxManage showvminfo</computeroutput>; see
<xref linkend="vboxmanage-showvminfo" />.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--port</computeroutput></glossterm>
<glossdef>
<para>The number of the storage controller's port which is to be
modified. Mandatory, unless the storage controller has only a
single port.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--device</computeroutput></glossterm>
<glossdef>
<para>The number of the port's device which is to be modified.
Mandatory, unless the storage controller has only a single device
per port.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--type</computeroutput></glossterm>
<glossdef>
<para>Define the type of the drive to which the medium is being
attached/detached/modified. This argument can only be omitted if
the type of medium can be determined from either the medium given
with the <computeroutput>--medium</computeroutput> argument or
from a previous medium attachment.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--medium</computeroutput></glossterm>
<glossdef>
<para>Specifies what is to be attached. The following values are
supported:<itemizedlist>
<listitem>
<para>"none": Any existing device should be removed from the
given slot.</para>
</listitem>
<listitem>
<para>"emptydrive": For a virtual DVD or floppy drive only,
this makes the device slot behaves like a removeable drive
into which no media has been inserted.</para>
</listitem>
<listitem>
<para>"additions": For a virtual DVD drive only, this
attaches the <emphasis>VirtualBox Guest Additions</emphasis>
image to the given device slot.</para>
</listitem>
<listitem>
<para>If a UUID is specified, it must be the UUID of a
storage medium that is already known to VirtualBox (e.g.
because it has been attached to another virtual machine).
See <xref linkend="vboxmanage-list" /> for how to list known
media. This medium is then attached to the given device
slot.</para>
</listitem>
<listitem>
<para>If a filename is specified, it must be the full path
of an existing disk image (ISO, RAW, VDI, VMDK or other),
which is then attached to the given device slot.</para>
</listitem>
<listitem>
<para>"host:<drive>": For a virtual DVD or floppy
drive only, this connects the given device slot to the
specified DVD or floppy drive on the host computer.</para>
</listitem>
<listitem>
<para>"iscsi": For virtual hard disks only, this allows for
specifying an iSCSI target. In this case, more parameters
must be given; see below.</para>
</listitem>
</itemizedlist></para>
<para>Some of the above changes, in particular for removeable
media (floppies and CDs/DVDs), can be effected while a VM is
running. Others (device changes or changes in hard disk device
slots) require the VM to be powered off.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--mtype</computeroutput></glossterm>
<glossdef>
<para>Defines how this medium behaves with respect to snapshots
and write operations. See <xref linkend="hdimagewrites" /> for
details.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--comment</computeroutput></glossterm>
<glossdef>
<para>Any description that you want to have stored with this
medium (optional; for example, for an iSCSI target, "Big storage
server downstairs"). This is purely descriptive and not needed for
the medium to function correctly.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--setuuid, --setparentuuid</computeroutput></glossterm>
<glossdef>
<para>Modifies the UUID or parent UUID of a medium before
attaching it to a VM. This is an expert option. Inappropriate use
can make the medium unusable or lead to broken VM configurations
if any other VM is referring to the same media already. The most
frequently used variant is <code>--setuuid ""</code>, which assigns
a new (random) UUID to an image. This is useful to resolve the
duplicate UUID errors if one duplicated an image using file copy
utilities.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--passthrough</computeroutput></glossterm>
<glossdef>
<para>For a virtual DVD drive only, you can enable DVD writing
support (currently experimental; see <xref
linkend="storage-cds" />).</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--tempeject</computeroutput></glossterm>
<glossdef>
<para>For a virtual DVD drive only, you can configure the behavior
for guest-triggered medium eject. If this is set to "on", the eject
has only temporary effects. If the VM is powered off and restarted
the originally configured medium will be still in the drive.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--nonrotational</computeroutput></glossterm>
<glossdef>
<para>This switch allows to enable the non-rotational flag for virtual
hard disks. Some guests (i.e. Windows 7+) treat such disks like SSDs
and don't perform disk fragmentation on such media.
</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--bandwidthgroup</computeroutput></glossterm>
<glossdef>
<para>Sets the bandwidth group to use for the given device; see
<xref linkend="storage-bandwidth-limit" />.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--forceunmount</computeroutput></glossterm>
<glossdef>
<para>For a virtual DVD or floppy drive only, this forcibly
unmounts the DVD/CD/Floppy or mounts a new DVD/CD/Floppy even if
the previous one is locked down by the guest for reading. Again,
see <xref linkend="storage-cds" /> for details.</para>
</glossdef>
</glossentry>
</glosslist></para>
<para>When "iscsi" is used with the
<computeroutput>--medium</computeroutput> parameter for iSCSI support --
see <xref linkend="storage-iscsi" /> --, additional parameters must or can
be used:<glosslist>
<glossentry>
<glossterm><computeroutput>--server</computeroutput></glossterm>
<glossdef>
<para>The host name or IP address of the iSCSI target;
required.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--target</computeroutput></glossterm>
<glossdef>
<para>Target name string. This is determined by the iSCSI target
and used to identify the storage resource; required.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--tport</computeroutput></glossterm>
<glossdef>
<para>TCP/IP port number of the iSCSI service on the target
(optional).</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--lun</computeroutput></glossterm>
<glossdef>
<para>Logical Unit Number of the target resource (optional).
Often, this value is zero.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--username, --password</computeroutput></glossterm>
<glossdef>
<para>Username and password (initiator secret) for target
authentication, if required (optional).<note>
<para>Username and password are stored without
encryption (i.e. in clear text) in the XML machine
configuration file if no settings password is provided.
When a settings password was specified the first time,
the password is stored encrypted.</para>
</note></para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--intnet</computeroutput></glossterm>
<glossdef>
<para>If specified, connect to the iSCSI target via Internal
Networking. This needs further configuration which is described in
<xref linkend="iscsi-intnet" />.</para>
</glossdef>
</glossentry>
</glosslist></para>
</sect1>
<sect1 id="vboxmanage-storagectl">
<title>VBoxManage storagectl</title>
<para>This command attaches/modifies/removes a storage controller. After
this, virtual media can be attached to the controller with the
<computeroutput>storageattach</computeroutput> command (see the next
section).</para>
<para>The syntax is as follows:</para>
<screen>VBoxManage storagectl <uuid|vmname>
--name <name>
[--add <ide/sata/scsi/floppy>]
[--controller <LsiLogic|LSILogicSAS|BusLogic|
IntelAhci|PIIX3|PIIX4|ICH6|I82078>]
[--portcount <1-30>]
[--hostiocache on|off]
[--bootable on|off]
[--remove]</screen>
<para>where the parameters mean: <glosslist>
<glossentry>
<glossterm><computeroutput>uuid|vmname</computeroutput></glossterm>
<glossdef>
<para>The VM UUID or VM Name. Mandatory.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--name</computeroutput></glossterm>
<glossdef>
<para>Name of the storage controller. Mandatory.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--add</computeroutput></glossterm>
<glossdef>
<para>Define the type of the system bus to which the storage
controller must be connected.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--controller</computeroutput></glossterm>
<glossdef>
<para>Allows to choose the type of chipset being emulated for the
given storage controller.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--portcount</computeroutput></glossterm>
<glossdef>
<para>This determines how many ports the SATA controller should
support.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--hostiocache</computeroutput></glossterm>
<glossdef>
<para>Configures the use of the host I/O cache for all disk images
attached to this storage controller. For details, please see <xref
linkend="iocaching" />.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--bootable</computeroutput></glossterm>
<glossdef>
<para>Selects whether this controller is bootable.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--remove</computeroutput></glossterm>
<glossdef>
<para>Removes the storage controller from the VM config.</para>
</glossdef>
</glossentry>
</glosslist></para>
</sect1>
<sect1>
<title>VBoxManage bandwidthctl</title>
<para>This command creates/deletes/modifies/shows bandwidth groups of the given
virtual machine:<screen>VBoxManage bandwidthctl <uuid|vmname>
add <name> --type disk|network --limit <megabytes per second>[k|m|g|K|M|G] |
set <name> --limit <megabytes per second>[k|m|g|K|M|G] |
remove <name> |
list [--machinereadable]</screen></para>
<para>The following subcommands are available:<itemizedlist>
<listitem>
<para><computeroutput>add</computeroutput>, creates a new bandwidth
group of given type.</para>
</listitem>
<listitem>
<para><computeroutput>set</computeroutput>, modifies the limit for an
existing bandwidth group.</para>
</listitem>
<listitem>
<para><computeroutput>remove</computeroutput>, destroys a bandwidth
group.</para>
</listitem>
<listitem>
<para><computeroutput>list</computeroutput>, shows all bandwidth groups
defined for the given VM.</para>
</listitem>
</itemizedlist>
</para>
<para>The parameters mean:<glosslist>
<glossentry>
<glossterm><computeroutput>uuid|vmname</computeroutput></glossterm>
<glossdef>
<para>The VM UUID or VM Name. Mandatory.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--name</computeroutput></glossterm>
<glossdef>
<para>Name of the bandwidth group. Mandatory.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--type</computeroutput></glossterm>
<glossdef>
<para>Type of the bandwidth group. Mandatory. Two types are
supported: <computeroutput>disk</computeroutput> and
<computeroutput>network</computeroutput>. See
<xref linkend="storage-bandwidth-limit" /> or
<xref linkend="network_bandwidth_limit" /> for a description of a
particular type.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--limit</computeroutput></glossterm>
<glossdef>
<para>Specifies the limit for the given group. Can be changed
while the VM is running. The default unit is megabytes per
second. The unit can be changed by specifying one of the
following suffixes: <computeroutput>k</computeroutput> for kilobits/s, <computeroutput>m</computeroutput> for megabits/s, <computeroutput>g</computeroutput> for gigabits/s, <computeroutput>K</computeroutput> for kilobytes/s, <computeroutput>M</computeroutput> for megabytes/s, <computeroutput>G</computeroutput> for gigabytes/s.</para>
</glossdef>
</glossentry>
</glosslist>
<note>
<para>The network bandwidth limits apply only to the traffic being sent by
virtual machines. The traffic being received by VMs is unlimited.</para>
</note>
<note>
<para>To remove a bandwidth group it must not be referenced by any disks
or adapters in running VM.</para>
</note>
</para>
</sect1>
<sect1>
<title>VBoxManage showhdinfo</title>
<para>This command shows information about a virtual hard disk image,
notably its size, its size on disk, its type and the virtual machines
which use it.<note>
<para>For compatibility with earlier versions of VirtualBox, the
"showvdiinfo" command is also supported and mapped internally to the
"showhdinfo" command.</para>
</note></para>
<para>The disk image must be specified either by its UUID (if the medium
is registered) or by its filename. Registered images can be listed by
<computeroutput>VBoxManage list hdds</computeroutput> (see <xref linkend="vboxmanage-list" />
for more information). A filename must be specified as valid path, either
as an absolute path or as a relative path starting from the current
directory.</para>
</sect1>
<sect1 id="vboxmanage-createvdi">
<title>VBoxManage createhd</title>
<para>This command creates a new virtual hard disk image. The syntax is as
follows:</para>
<screen>VBoxManage createhd --filename <filename>
--size <megabytes>
[--format VDI|VMDK|VHD] (default: VDI)
[--variant Standard,Fixed,Split2G,Stream,ESX]</screen>
<para>where the parameters mean:<glosslist>
<glossentry>
<glossterm><computeroutput>--filename</computeroutput></glossterm>
<glossdef>
<para>Allows to choose a file name. Mandatory.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--size</computeroutput></glossterm>
<glossdef>
<para>Allows to define the image capacity, in 1 MiB units.
Mandatory.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--format</computeroutput></glossterm>
<glossdef>
<para>Allows to choose a file format for the output file different
from the file format of the input file.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--variant</computeroutput></glossterm>
<glossdef>
<para>Allows to choose a file format variant for the output file.
It is a comma-separated list of variant flags. Not all
combinations are supported, and specifying inconsistent flags will
result in an error message.</para>
</glossdef>
</glossentry>
</glosslist> <note>
<para>For compatibility with earlier versions of VirtualBox, the
"createvdi" command is also supported and mapped internally to the
"createhd" command.</para>
</note></para>
</sect1>
<sect1 id="vboxmanage-modifyvdi">
<title>VBoxManage modifyhd</title>
<para>With the <computeroutput>modifyhd</computeroutput> command, you can
change the characteristics of a disk image after it has been
created:<screen>VBoxManage modifyhd <uuid|filename>
[--type normal|writethrough|immutable|shareable|
readonly|multiattach]
[--autoreset on|off]
[--compact]
[--resize <megabytes>|--resizebyte <bytes>]</screen><note>
<para>Despite the "hd" in the subcommand name, the command works with
all disk images, not only hard disks. For compatibility with earlier
versions of VirtualBox, the "modifyvdi" command is also supported and
mapped internally to the "modifyhd" command.</para>
</note></para>
<para>The disk image to modify must be specified either by its UUID
(if the medium is registered) or by its filename. Registered images
can be listed by <computeroutput>VBoxManage list hdds</computeroutput>
(see <xref linkend="vboxmanage-list" /> for more information).
A filename must be specified as valid path, either as an absolute path
or as a relative path starting from the current directory.</para>
<para>The following options are available:<itemizedlist>
<listitem>
<para>With the <computeroutput>--type</computeroutput> argument, you
can change the type of an existing image between the normal,
immutable, write-through and other modes; see <xref
linkend="hdimagewrites" /> for details.</para>
</listitem>
<listitem>
<para>For immutable (differencing) hard disks only, the
<computeroutput>--autoreset on|off</computeroutput> option
determines whether the disk is automatically reset on every VM
startup (again, see <xref linkend="hdimagewrites" />). The default
is "on".</para>
</listitem>
<listitem>
<para>With the <computeroutput>--compact</computeroutput> option,
can be used to compact disk images, i.e. remove blocks that only
contains zeroes. This will shrink a dynamically allocated image
again; it will reduce the <emphasis>physical</emphasis> size of the
image without affecting the logical size of the virtual disk.
Compaction works both for base images and for diff images created as
part of a snapshot.</para>
<para>For this operation to be effective, it is required that free
space in the guest system first be zeroed out using a suitable
software tool. For Windows guests, you can use the
<computeroutput>sdelete</computeroutput> tool provided by Microsoft.
Execute <computeroutput>sdelete -z</computeroutput> in the guest to
zero the free disk space before compressing the virtual disk
image. For Linux, use the <code>zerofree</code> utility which
supports ext2/ext3 filesystems. For Mac OS X guests, use the
<emphasis>Erase Free Space</emphasis> feature of the built-in
<emphasis>Disk Utility</emphasis>. Use
<emphasis>Zero Out Data</emphasis> there.</para>
<para>Please note that compacting is currently only available for
VDI images. A similar effect can be achieved by zeroing out free
blocks and then cloning the disk to any other dynamically allocated
format. You can use this workaround until compacting is also
supported for disk formats other than VDI.</para>
</listitem>
<listitem>
<para>The <computeroutput>--resize x</computeroutput> option (where x
is the desired new total space in <emphasis role="bold">megabytes</emphasis>)
allows you to change the capacity of an existing image; this adjusts the
<emphasis>logical</emphasis> size of a virtual disk without affecting
the physical size much.<footnote>
<para>Image resizing was added with VirtualBox 4.0.</para>
</footnote> This currently works only for VDI and VHD formats, and only
for the dynamically allocated variants, and can only be used to expand
(not shrink) the capacity.
For example, if you originally created a 10G disk which is now full,
you can use the <computeroutput>--resize 15360</computeroutput>
command to change the capacity to 15G (15,360MB) without having to create a new
image and copy all data from within a virtual machine. Note however that
this only changes the drive capacity; you will typically next need to use
a partition management tool inside the guest to adjust the main partition
to fill the drive.</para><para>The <computeroutput>--resizebyte x</computeroutput>
option does almost the same thing, except that x is expressed in bytes
instead of megabytes.</para>
</listitem>
</itemizedlist></para>
</sect1>
<sect1 id="vboxmanage-clonevdi">
<title>VBoxManage clonehd</title>
<para>This command duplicates a registered virtual hard disk image to a
new image file with a new unique identifier (UUID). The new image can be
transferred to another host system or imported into VirtualBox again using
the Virtual Media Manager; see <xref linkend="vdis" /> and <xref
linkend="cloningvdis" />. The syntax is as follows:</para>
<screen>VBoxManage clonehd <uuid|inutfile> <uuid|outputfile>
[--format VDI|VMDK|VHD|RAW|<other>]
[--variant Standard,Fixed,Split2G,Stream,ESX]
[--existing]</screen>
<para>The disk image to clone as well as the target image must be described
either by its UUIDs (if the mediums are registered) or by its filename.
Registered images can be listed by <computeroutput>VBoxManage list hdds</computeroutput>
(see <xref linkend="vboxmanage-list" /> for more information).
A filename must be specified as valid path, either as an absolute path or
as a relative path starting from the current directory.</para>
<para>The following options are available:<glosslist>
<glossentry>
<glossterm><computeroutput>--format</computeroutput></glossterm>
<glossdef>
<para>Allow to choose a file format for the output file different
from the file format of the input file.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--variant</computeroutput></glossterm>
<glossdef>
<para>Allow to choose a file format variant for the output file.
It is a comma-separated list of variant flags. Not all
combinations are supported, and specifying inconsistent flags will
result in an error message.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--existing</computeroutput></glossterm>
<glossdef>
<para>Perform the clone operation to an already existing
destination medium. Only the portion of the source medium which
fits into the destination medium is copied. This means if the
destination medium is smaller than the source only a part of it is
copied, and if the destination medium is larger than the source
the remaining part of the destination medium is unchanged.</para>
</glossdef>
</glossentry>
</glosslist> <note>
<para>For compatibility with earlier versions of VirtualBox, the
"clonevdi" command is also supported and mapped internally to the
"clonehd" command.</para>
</note></para>
</sect1>
<sect1>
<title>VBoxManage convertfromraw</title>
<para>This command converts a raw disk image to a VirtualBox Disk Image
(VDI) file. The syntax is as follows:</para>
<screen>VBoxManage convertfromraw <filename> <outputfile>
[--format VDI|VMDK|VHD]
[--variant Standard,Fixed,Split2G,Stream,ESX]
[--uuid <uuid>]
VBoxManage convertfromraw stdin <outputfile> <bytes>
[--format VDI|VMDK|VHD]
[--variant Standard,Fixed,Split2G,Stream,ESX]
[--uuid <uuid>]</screen>
<para>where the parameters mean:<glosslist>
<glossentry>
<glossterm><computeroutput>--bytes</computeroutput></glossterm>
<glossdef>
<para>The size of the image file, in bytes, provided through
stdin.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--format</computeroutput></glossterm>
<glossdef>
<para>Select the disk image format to create. Default is
VDI.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--variant</computeroutput></glossterm>
<glossdef>
<para>Allow to choose a file format variant for the output file.
It is a comma-separated list of variant flags. Not all
combinations are supported, and specifying inconsistent flags will
result in an error message.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--uuid</computeroutput></glossterm>
<glossdef>
<para>Allow to specifiy the UUID of the output file.</para>
</glossdef>
</glossentry>
</glosslist> The second form forces VBoxManage to read the content for
the disk image from standard input (useful for using that command in a
pipe).</para>
<para><note>
<para>For compatibility with earlier versions of VirtualBox, the
"convertdd" command is also supported and mapped internally to the
"convertfromraw" command.</para>
</note></para>
</sect1>
<sect1>
<title>VBoxManage getextradata/setextradata</title>
<para>These commands let you attach and retrieve string data to a virtual
machine or to a VirtualBox configuration (by specifying
<computeroutput>global</computeroutput> instead of a virtual machine
name). You must specify a key (as a text string) to associate the data
with, which you can later use to retrieve it. For example:</para>
<screen>VBoxManage setextradata Fedora5 installdate 2006.01.01
VBoxManage setextradata SUSE10 installdate 2006.02.02</screen>
<para>would associate the string "2006.01.01" with the key installdate for
the virtual machine Fedora5, and "2006.02.02" on the machine SUSE10. You
could retrieve the information as follows:</para>
<screen>VBoxManage getextradata Fedora5 installdate</screen>
<para>which would return</para>
<screen>VirtualBox Command Line Management Interface Version $VBOX_VERSION_MAJOR.$VBOX_VERSION_MINOR.$VBOX_VERSION_BUILD
(C) 2005-$VBOX_C_YEAR $VBOX_VENDOR
All rights reserved.
Value: 2006.01.01</screen>
<para>To remove a key, the <computeroutput>setextradata</computeroutput>
command must be run without specifying data (only the key), for example:
</para>
<screen>VBoxManage setextradata Fedora5 installdate</screen>
</sect1>
<sect1 id="vboxmanage-setproperty">
<title>VBoxManage setproperty</title>
<para>This command is used to change global settings which affect the
entire VirtualBox installation. Some of these correspond to the settings
in the "Global settings" dialog in the graphical user interface. The
following properties are available:<glosslist>
<glossentry>
<glossterm><computeroutput>machinefolder</computeroutput></glossterm>
<glossdef>
<para>This specifies the default folder in which virtual machine
definitions are kept; see <xref linkend="vboxconfigdata" /> for
details.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>hwvirtexclusive</computeroutput></glossterm>
<para>This specifies whether VirtualBox will make exclusive use of
the hardware virtualization extensions (Intel VT-x or AMD-V) of the
host system's processor; see <xref linkend="hwvirt" />. If you wish to
share these extensions with other hypervisors running at the same time,
you must disable this setting. Doing so has negative performance implications.
</para>
</glossentry>
<glossentry>
<glossterm><computeroutput>vrdeauthlibrary</computeroutput></glossterm>
<glossdef>
<para>This specifies which library to use when "external"
authentication has been selected for a particular virtual machine;
see <xref linkend="vbox-auth" /> for details.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>websrvauthlibrary</computeroutput></glossterm>
<glossdef>
<para>This specifies which library the web service uses to
authenticate users. For details about the VirtualBox web service,
please refer to the separate VirtualBox SDK reference (see <xref
linkend="VirtualBoxAPI" />).</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>vrdeextpack</computeroutput></glossterm>
<glossdef>
<para>This specifies which library implements the VirtualBox
Remote Desktop Extension.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>loghistorycount</computeroutput></glossterm>
<glossdef>
<para>This selects how many rotated (old) VM logs are kept.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>autostartdbpath</computeroutput></glossterm>
<glossdef>
<para>This selects the path to the autostart database. See
<xref linkend="autostart" />.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>defaultfrontend</computeroutput></glossterm>
<glossdef>
<para>This selects the global default VM frontend setting. See
<xref linkend="vboxmanage-startvm" />.</para>
</glossdef>
</glossentry>
</glosslist></para>
</sect1>
<sect1>
<title>VBoxManage usbfilter add/modify/remove</title>
<para>The <computeroutput>usbfilter</computeroutput> commands are used for
working with USB filters in virtual machines, or global filters which
affect the whole VirtualBox setup. Global filters are applied before
machine-specific filters, and may be used to prevent devices from being
captured by any virtual machine. Global filters are always applied in a
particular order, and only the first filter which fits a device is
applied. So for example, if the first global filter says to hold (make
available) a particular Kingston memory stick device and the second to
ignore all Kingston devices, that memory stick will be available to any
machine with an appropriate filter, but no other Kingston device
will.</para>
<para>When creating a USB filter using <computeroutput>usbfilter
add</computeroutput>, you must supply three or four mandatory parameters.
The index specifies the position in the list at which the filter should be
placed. If there is already a filter at that position, then it and the
following ones will be shifted back one place. Otherwise the new filter
will be added onto the end of the list. The
<computeroutput>target</computeroutput> parameter selects the virtual
machine that the filter should be attached to or use "global" to apply it
to all virtual machines. <computeroutput>name</computeroutput> is a name
for the new filter and for global filters,
<computeroutput>action</computeroutput> says whether to allow machines
access to devices that fit the filter description ("hold") or not to give
them access ("ignore"). In addition, you should specify parameters to
filter by. You can find the parameters for devices attached to your system
using <computeroutput>VBoxManage list usbhost</computeroutput>. Finally,
you can specify whether the filter should be active, and for local
filters, whether they are for local devices, remote (over an RDP
connection) or either.</para>
<para>When you modify a USB filter using <computeroutput>usbfilter
modify</computeroutput>, you must specify the filter by index (see the
output of <computeroutput>VBoxManage list usbfilters</computeroutput> to
find global filter indexes and that of <computeroutput>VBoxManage
showvminfo</computeroutput> to find indexes for individual machines) and
by target, which is either a virtual machine or "global". The properties
which can be changed are the same as for <computeroutput>usbfilter
add</computeroutput>. To remove a filter, use <computeroutput>usbfilter
remove</computeroutput> and specify the index and the target.</para>
</sect1>
<sect1 id="vboxmanage-sharedfolder">
<title>VBoxManage sharedfolder add/remove</title>
<para>This command allows you to share folders on the host computer with
guest operating systems. For this, the guest systems must have a version
of the VirtualBox Guest Additions installed which supports this
functionality.</para>
<para>Shared folders are described in detail in <xref
linkend="sharedfolders" />.</para>
</sect1>
<sect1 id="vboxmanage-guestproperty">
<title>VBoxManage guestproperty</title>
<para>The "guestproperty" commands allow you to get or set properties of a
running virtual machine. Please see <xref linkend="guestadd-guestprops" />
for an introduction. As explained there, guest properties are arbitrary
key/value string pairs which can be written to and read from by either the
guest or the host, so they can be used as a low-volume communication
channel for strings, provided that a guest is running and has the Guest
Additions installed. In addition, a number of values whose keys begin with
"/VirtualBox/" are automatically set and maintained by the Guest
Additions.</para>
<para>The following subcommands are available (where
<computeroutput><vm></computeroutput>, in each case, can either be a
VM name or a VM UUID, as with the other VBoxManage commands):<itemizedlist>
<listitem>
<para><computeroutput>enumerate <vm> [--patterns
<pattern>]</computeroutput>: This lists all the guest
properties that are available for the given VM, including the value.
This list will be very limited if the guest's service process cannot
be contacted, e.g. because the VM is not running or the Guest
Additions are not installed.</para>
<para>If <computeroutput>--patterns <pattern></computeroutput>
is specified, it acts as a filter to only list properties that match
the given pattern. The pattern can contain the following wildcard
characters:<itemizedlist>
<listitem>
<para><computeroutput>*</computeroutput> (asterisk):
represents any number of characters; for example,
"<computeroutput>/VirtualBox*</computeroutput>" would match
all properties beginning with "/VirtualBox".</para>
</listitem>
<listitem>
<para><computeroutput>?</computeroutput> (question mark):
represents a single arbitrary character; for example,
"<computeroutput>fo?</computeroutput>" would match both "foo"
and "for".</para>
</listitem>
<listitem>
<para><computeroutput>|</computeroutput> (pipe symbol): can be
used to specify multiple alternative patterns; for example,
"<computeroutput>s*|t*</computeroutput>" would match anything
starting with either "s" or "t".</para>
</listitem>
</itemizedlist></para>
</listitem>
<listitem>
<para><computeroutput>get <vm></computeroutput>: This
retrieves the value of a single property only. If the property
cannot be found (e.g. because the guest is not running), this will
print <screen>No value set!</screen></para>
</listitem>
<listitem>
<para><computeroutput>set <vm> <property> [<value>
[--flags <flags>]]</computeroutput>: This allows you to set a
guest property by specifying the key and value. If
<computeroutput><value></computeroutput> is omitted, the
property is deleted. With <computeroutput>--flags</computeroutput>
you can optionally specify additional behavior (you can combine
several by separating them with commas):<itemizedlist>
<listitem>
<para><computeroutput>TRANSIENT</computeroutput>: the value
will not be stored with the VM data when the VM exits;</para>
</listitem>
<listitem>
<para><computeroutput>TRANSRESET</computeroutput>: the value
will be deleted as soon as the VM restarts and/or exits;</para>
</listitem>
<listitem>
<para><computeroutput>RDONLYGUEST</computeroutput>: the value
can only be changed by the host, but the guest can only read
it;</para>
</listitem>
<listitem>
<para><computeroutput>RDONLYHOST</computeroutput>: reversely,
the value can only be changed by the guest, but the host can
only read it;</para>
</listitem>
<listitem>
<para><computeroutput>READONLY</computeroutput>: a combination
of the two, the value cannot be changed at all.</para>
</listitem>
</itemizedlist></para>
</listitem>
<listitem>
<para><computeroutput>wait <vm> <pattern> --timeout
<timeout></computeroutput>: This waits for a particular value
described by "pattern" to change or to be deleted or created. The
pattern rules are the same as for the "enumerate" subcommand
above.</para>
</listitem>
<listitem>
<para><computeroutput>delete <vm> <property>
</computeroutput>: Deletes a formerly set guest property.
</para></listitem>
</itemizedlist></para>
</sect1>
<sect1 id="vboxmanage-guestcontrol">
<title>VBoxManage guestcontrol</title>
<para>The "guestcontrol" commands allow you to control certain things
inside a guest from the host. Please see <xref
linkend="guestadd-guestcontrol" /> for an introduction.</para>
<para>Generally, the syntax is as follows:</para>
<screen>VBoxManage guestcontrol <uuid|vmname> <command></screen>
<para>The following subcommands are available (where
<computeroutput><uuid|vmname></computeroutput>, in each case, can either be a
VM name or a VM UUID, as with the other VBoxManage commands):<itemizedlist>
<listitem>
<para><emphasis role="bold"><computeroutput>execute</computeroutput></emphasis>,
which allows for
executing a program/script (process) which already is installed and
runnable on the guest. This command only works while a VM is up and
running and has the following syntax:</para>
<screen>VBoxManage guestcontrol <uuid|vmname> exec[ute]
--image <path to program> --username <name>
[--passwordfile <file> | --password <password>]
[--environment "<NAME>=<VALUE> [<NAME>=<VALUE>]"]
[--verbose] [--timeout <msec>]
[--wait-exit] [--wait-stdout] [--wait-stderr]
[--dos2unix] [--unix2dos]
-- [[<argument1>] ... [<argumentN>]]</screen>
<para>where the parameters mean: <glosslist>
<glossentry>
<glossterm><computeroutput>uuid|vmname</computeroutput></glossterm>
<glossdef>
<para>The VM UUID or VM name. Mandatory.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--image "<path to program>"</computeroutput></glossterm>
<glossdef>
<para>Absolute path and process name of process to execute
in the guest, e.g.
<computeroutput>C:\Windows\System32\calc.exe</computeroutput></para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--username <name></computeroutput></glossterm>
<glossdef>
<para>Name of the user the process should run under. This
user must exist on the guest OS.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--passwordfile <file></computeroutput></glossterm>
<glossdef>
<para>Password of the user account specified to be read from
the given file. If not given, an empty password is
assumed.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--password <password></computeroutput></glossterm>
<glossdef>
<para>Password of the user account specified with
<computeroutput>--username</computeroutput>. If not given,
an empty password is assumed.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--dos2unix</computeroutput></glossterm>
<glossdef>
Converts output from DOS/Windows guests to UNIX-compatible
line endings (CR + LF -> LF). Not implemented yet.
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--environment
"<NAME>=<VALUE>"</computeroutput></glossterm>
<glossdef>
<para>One or more environment variables to be set or
unset.</para>
<para>By default, the new process in the guest will be
created with the standard environment of the guest OS. This
option allows for modifying that environment. To set/modify
a variable, a pair of
<computeroutput>NAME=VALUE</computeroutput> must be
specified; to unset a certain variable, the name with no
value must set, e.g.
<computeroutput>NAME=</computeroutput>.</para>
<para>Arguments containing spaces must be enclosed in
quotation marks. More than one
<computeroutput>--environment</computeroutput> at a time can
be specified to keep the command line tidy.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--timeout <msec></computeroutput></glossterm>
<glossdef>
<para>Value (in milliseconds) that specifies the time how
long the started process is allowed to run and how long
VBoxManage waits for getting output from that process. If no
timeout is specified, VBoxManage will wait forever until the
started process ends or an error occured.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--unix2dos</computeroutput></glossterm>
<glossdef>
Converts output from a UNIX/Linux guests to DOS-/Windows-compatible
line endings (LF -> CR + LF). Not implemented yet.
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--verbose</computeroutput></glossterm>
<glossdef>
<para>Tells VBoxManage to be more verbose.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--wait-exit</computeroutput></glossterm>
<glossdef>
<para>Waits until the process ends and outputs its
exit code along with the exit reason/flags.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--wait-stdout</computeroutput></glossterm>
<glossdef>
<para>Waits until the process ends and outputs its
exit code along with the exit reason/flags. While waiting
VBoxManage retrieves the process output collected from stdout.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--wait-stderr</computeroutput></glossterm>
<glossdef>
<para>Waits until the process ends and outputs its
exit code along with the exit reason/flags. While waiting
VBoxManage retrieves the process output collected from stderr.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>[-- [<argument1s>] ... [<argumentNs>]]</computeroutput></glossterm>
<glossdef>
<para>One or more arguments to pass to the process being
executed.</para>
<para>Arguments containing spaces must be enclosed in
quotation marks.</para>
</glossdef>
</glossentry>
</glosslist></para>
<para><note>
<para>On Windows there are certain limitations for graphical
applications; please see <xref linkend="KnownIssues" /> for more
information.</para>
</note> Examples: <screen>VBoxManage --nologo guestcontrol "My VM" execute --image "/bin/ls"
--username foo --passwordfile bar.txt --wait-exit --wait-stdout -- -l /usr</screen> <screen>VBoxManage --nologo guestcontrol "My VM" execute --image "c:\\windows\\system32\\ipconfig.exe"
--username foo --passwordfile bar.txt --wait-exit --wait-stdout</screen> Note that
the double backslashes in the second example are only required on
Unix hosts.</para>
<para><note>
<para>For certain commands a user name of an existing user account on the guest
must be specified; anonymous executions are not supported for security reasons. A
user account password, however, is optional and depends on the guest's OS security
policy or rules. If no password is specified for a given user name, an empty password
will be used. On certain OSes like Windows the security policy may needs to be adjusted
in order to allow user accounts with an empty password set. Also, global domain rules might
apply and therefore cannot be changed.</para>
</note></para>
<para>Starting at VirtualBox 4.1.2 guest process execution by default is limited
to serve up to 5 guest processes at a time. If a new guest process gets started
which would exceed this limit, the oldest not running guest process will be discarded
in order to be able to run that new process. Also, retrieving output from this
old guest process will not be possible anymore then. If all 5 guest processes
are still active and running, starting a new guest process will result in an
appropriate error message.</para>
<para>To raise or lower the guest process execution limit, either the guest
property <computeroutput>/VirtualBox/GuestAdd/VBoxService/--control-procs-max-kept</computeroutput>
or VBoxService' command line by specifying <computeroutput>--control-procs-max-kept</computeroutput>
needs to be modified. A restart of the guest OS is required afterwards. To serve unlimited
guest processes, a value of <computeroutput>0</computeroutput> needs to be set (not recommended).</para>
</listitem>
<listitem>
<para><emphasis role="bold"><computeroutput>copyto</computeroutput></emphasis>,
which allows copying
files from the host to the guest (only with installed Guest
Additions 4.0 and later).</para>
<screen>VBoxManage guestcontrol <uuid|vmname> copyto|cp
<guest source> <host dest> --username <name>
[--passwordfile <file> | --password <password>]
[--dryrun] [--follow] [--recursive] [--verbose]</screen>
<para>where the parameters mean: <glosslist>
<glossentry>
<glossterm><computeroutput>uuid|vmname</computeroutput></glossterm>
<glossdef>
<para>The VM UUID or VM name. Mandatory.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>source on host</computeroutput></glossterm>
<glossdef>
<para>Absolute path of source file(s) on host to copy over
to the guest, e.g.
<computeroutput>C:\Windows\System32\calc.exe</computeroutput>.
This also can be a wildcard expression, e.g.
<computeroutput>C:\Windows\System32\*.dll</computeroutput></para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>destination on guest</computeroutput></glossterm>
<glossdef>
<para>Absolute destination path on the guest, e.g.
<computeroutput>C:\Temp</computeroutput></para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--username <name></computeroutput></glossterm>
<glossdef>
<para>Name of the user the copy process should run under.
This user must exist on the guest OS.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--passwordfile <file></computeroutput></glossterm>
<glossdef>
<para>Password of the user account specified to be read from
the given file. If not given, an empty password is
assumed.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--password <password></computeroutput></glossterm>
<glossdef>
<para>Password of the user account specified with
<computeroutput>--username</computeroutput>. If not given,
an empty password is assumed.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--dryrun</computeroutput></glossterm>
<glossdef>
<para>Tells VBoxManage to only perform a dry run instead of
really copying files to the guest.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--follow</computeroutput></glossterm>
<glossdef>
<para>Enables following symlinks on the host's
source.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--recursive</computeroutput></glossterm>
<glossdef>
<para>Recursively copies files/directories of the specified
source.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--verbose</computeroutput></glossterm>
<glossdef>
<para>Tells VBoxManage to be more verbose.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--flags <flags></computeroutput></glossterm>
<glossdef>
<para>Additional flags to set. This is not used at the
moment.</para>
</glossdef>
</glossentry>
</glosslist></para>
</listitem>
<listitem>
<para><emphasis role="bold"><computeroutput>copyfrom</computeroutput></emphasis>,
which allows copying
files from the guest to the host (only with installed Guest
Additions 4.0 and later). It has the same parameters as
<computeroutput>copyto</computeroutput> above.</para>
</listitem>
<listitem>
<para><emphasis role="bold"><computeroutput>createdirectory</computeroutput></emphasis>,
which allows
copying files from the host to the guest (only with installed Guest
Additions 4.0 and later).</para>
<screen>VBoxManage guestcontrol <uuid|vmname> createdir[ectory]|mkdir|md
<guest directory>... --username <name>
[--passwordfile <file> | --password <password>]
[--parents] [--mode <mode>] [--verbose]</screen>
<para>where the parameters mean: <glosslist>
<glossentry>
<glossterm><computeroutput>uuid|vmname</computeroutput></glossterm>
<glossdef>
<para>The VM UUID or VM name. Mandatory.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>directory to create on guest</computeroutput></glossterm>
<glossdef>
<para>Absolute path of directory/directories to create on
guest, e.g. <computeroutput>D:\Foo\Bar</computeroutput>.
Parent directories need to exist (e.g. in this example
<computeroutput>D:\Foo</computeroutput>) when switch
<computeroutput>--parents</computeroutput> is omitted. The
specified user must have appropriate rights to create the
specified directory.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--username <name></computeroutput></glossterm>
<glossdef>
<para>Name of the user the copy process should run under.
This user must exist on the guest OS.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--passwordfile <file></computeroutput></glossterm>
<glossdef>
<para>Password of the user account specified to be read from
the given file. If not given, an empty password is
assumed.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--password <password></computeroutput></glossterm>
<glossdef>
<para>Password of the user account specified with
<computeroutput>--username</computeroutput>. If not given,
an empty password is assumed.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--parents</computeroutput></glossterm>
<glossdef>
<para>Also creates not yet existing parent directories of
the specified directory, e.g. if the directory
<computeroutput>D:\Foo</computeroutput> of
<computeroutput>D:\Foo\Bar</computeroutput> does not exist
yet it will be created. Without specifying
<computeroutput>--parent</computeroutput> the action would
have failed.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--mode <mode></computeroutput></glossterm>
<glossdef>
<para>Sets the permission mode of the specified directory.
Only octal modes (e.g.
<computeroutput>0755</computeroutput>) are supported right
now.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--verbose</computeroutput></glossterm>
<glossdef>
<para>Tells VBoxManage to be more verbose.</para>
</glossdef>
</glossentry>
</glosslist></para>
</listitem>
<listitem>
<para><emphasis role="bold"><computeroutput>removedirectory</computeroutput></emphasis>,
which allows deletion of guest directories (only with installed Guest
Additions 4.3.2 and later).</para>
<screen>VBoxManage guestcontrol <uuid|vmname> removedir[ectory]|rmdir
<guest directory>... --username <name>
[--passwordfile <file> | --password <password>]
[--recursive|-R|-r] [--verbose]</screen>
<para>where the parameters mean: <glosslist>
<glossentry>
<glossterm><computeroutput>uuid|vmname</computeroutput></glossterm>
<glossdef>
<para>The VM UUID or VM name. Mandatory.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>directory to remove on guest</computeroutput></glossterm>
<glossdef>
<para>Absolute path of directory/directories to remove on
guest, e.g. <computeroutput>D:\Foo\Bar</computeroutput>. The
specified user must have appropriate rights to delete the
specified guest directories.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--username <name></computeroutput></glossterm>
<glossdef>
<para>Name of the user the copy process should run under.
This user must exist on the guest OS.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--passwordfile <file></computeroutput></glossterm>
<glossdef>
<para>Password of the user account specified to be read from
the given file. If not given, an empty password is
assumed.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--password <password></computeroutput></glossterm>
<glossdef>
<para>Password of the user account specified with
<computeroutput>--username</computeroutput>. If not given,
an empty password is assumed.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--recursive</computeroutput></glossterm>
<glossdef>
<para>Remove directories and their contents recursively.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--verbose</computeroutput></glossterm>
<glossdef>
<para>Tells VBoxManage to be more verbose.</para>
</glossdef>
</glossentry>
</glosslist></para>
</listitem>
<listitem>
<para><emphasis role="bold"><computeroutput>removefile</computeroutput></emphasis>,
which allows deletion of guest files (only with installed Guest
Additions 4.3.2 and later).</para>
<screen>VBoxManage guestcontrol <uuid|vmname> removefile|rm
<guest file>... --username <name>
[--passwordfile <file> | --password <password>]
[--verbose]</screen>
<para>where the parameters mean: <glosslist>
<glossentry>
<glossterm><computeroutput>uuid|vmname</computeroutput></glossterm>
<glossdef>
<para>The VM UUID or VM name. Mandatory.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>file to remove on guest</computeroutput></glossterm>
<glossdef>
<para>Absolute path of a file/files to remove on
guest, e.g. <computeroutput>D:\Foo\Bar\text.txt</computeroutput>. The
specified user must have appropriate rights to delete the
specified guest files.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--username <name></computeroutput></glossterm>
<glossdef>
<para>Name of the user the copy process should run under.
This user must exist on the guest OS.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--passwordfile <file></computeroutput></glossterm>
<glossdef>
<para>Password of the user account specified to be read from
the given file. If not given, an empty password is
assumed.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--password <password></computeroutput></glossterm>
<glossdef>
<para>Password of the user account specified with
<computeroutput>--username</computeroutput>. If not given,
an empty password is assumed.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--verbose</computeroutput></glossterm>
<glossdef>
<para>Tells VBoxManage to be more verbose.</para>
</glossdef>
</glossentry>
</glosslist></para>
</listitem>
<listitem>
<para><emphasis role="bold"><computeroutput>ren[ame]|mv</computeroutput></emphasis>,
which allows renaming of guest files and/or directories (only with installed Guest
Additions 4.3.2 and later).</para>
<screen>VBoxManage guestcontrol <uuid|vmname> ren[ame]|mv
<source>... <dest> --username <name>
[--passwordfile <file> | --password <password>]
[--verbose]</screen>
<para>where the parameters mean: <glosslist>
<glossentry>
<glossterm><computeroutput>uuid|vmname</computeroutput></glossterm>
<glossdef>
<para>The VM UUID or VM name. Mandatory.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>source</computeroutput></glossterm>
<glossdef>
<para>Absolute path of one or more source(s) to move to
destination. If more than one source is specified, destination
must be an existing directory on the guest. The specified user
must have appropriate rights to access source and destination
files and directories.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>dest</computeroutput></glossterm>
<glossdef>
<para>Absolute path of the destination to move the source(s)
to. This can be a directory or a file, depending if one or more
sources have been specified. The specified user
must have appropriate rights to access the destination
file and directory.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--username <name></computeroutput></glossterm>
<glossdef>
<para>Name of the user the copy process should run under.
This user must exist on the guest OS.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--passwordfile <file></computeroutput></glossterm>
<glossdef>
<para>Password of the user account specified to be read from
the given file. If not given, an empty password is
assumed.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--password <password></computeroutput></glossterm>
<glossdef>
<para>Password of the user account specified with
<computeroutput>--username</computeroutput>. If not given,
an empty password is assumed.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--verbose</computeroutput></glossterm>
<glossdef>
<para>Tells VBoxManage to be more verbose.</para>
</glossdef>
</glossentry>
</glosslist></para>
</listitem>
<listitem>
<para><emphasis role="bold"><computeroutput>createtemporary</computeroutput></emphasis>,
which allows
copying files from the host to the guest (only with installed Guest
Additions 4.2 and later).</para>
<screen>VBoxManage guestcontrol <uuid|vmname> createtemp[orary]|mktemp
<template> --username <name>
[--passwordfile <file> | --password <password>]
[--directory] [--secure] [--tmpdir <directory>]
[--domain <domain>] [--mode <mode>] [--verbose]</screen>
<para>where the parameters mean: <glosslist>
<glossentry>
<glossterm><computeroutput>uuid|vmname</computeroutput></glossterm>
<glossdef>
<para>The VM UUID or VM name. Mandatory.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>template</computeroutput></glossterm>
<glossdef>
<para>A file name without a path and with at least three consecutive 'X'
characters or ending in 'X'
</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--username <name></computeroutput></glossterm>
<glossdef>
<para>Name of the user the copy process should run under.
This user must exist on the guest OS.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--passwordfile <file></computeroutput></glossterm>
<glossdef>
<para>Password of the user account specified to be read from
the given file. If not given, an empty password is
assumed.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--password <password></computeroutput></glossterm>
<glossdef>
<para>Password of the user account specified with
<computeroutput>--username</computeroutput>. If not given,
an empty password is assumed.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--directory</computeroutput></glossterm>
<glossdef>
<para>Create a temporary directory instead of a file.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--secure</computeroutput></glossterm>
<glossdef>
<para>
Secure creation. The file mode is fixed to
<computeroutput>0755</computeroutput>. And the operation
will fail if it cannot performed securely.
</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--tmpdir <directory></computeroutput></glossterm>
<glossdef>
<para>
Directory where the file / directory is created. If not
specified, the platform-specific temp directory is used.
</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--mode <mode></computeroutput></glossterm>
<glossdef>
<para>Sets the permission mode of the specified directory.
Only octal modes (e.g.
<computeroutput>0755</computeroutput>) are supported right
now.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--verbose</computeroutput></glossterm>
<glossdef>
<para>Tells VBoxManage to be more verbose.</para>
</glossdef>
</glossentry>
</glosslist></para>
</listitem>
<listitem>
<para><emphasis role="bold"><computeroutput>list</computeroutput></emphasis>,
which lists various guest control information such as open guest sessions,
guest processes and guest files.</para>
<screen>VBoxManage guestcontrol <uuid|vmname> list
<all|sessions|processes|files> [--verbose]</screen>
<para>where the parameters mean: <glosslist>
<glossentry>
<glossterm><computeroutput>uuid|vmname</computeroutput></glossterm>
<glossdef>
<para>The VM UUID or VM name. Mandatory.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>all|sessions|processes|files</computeroutput></glossterm>
<glossdef>
<para>Whether to list guest sessions, guest processes, guest files
or all information available. Mandatory.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--verbose</computeroutput></glossterm>
<glossdef>
<para>Tells VBoxManage to be more verbose.</para>
</glossdef>
</glossentry>
</glosslist></para>
</listitem>
<listitem>
<para><emphasis role="bold"><computeroutput>process kill</computeroutput></emphasis>,
which terminates specific guest processes of a guest session, based on either the
session's ID or the session's name.</para>
<screen>VBoxManage guestcontrol <uuid|vmname> process kill
--session-id <ID>
| --session-name <name or pattern>
[--verbose]
<PID> ... <PID n></screen>
<para>where the parameters mean: <glosslist>
<glossentry>
<glossterm><computeroutput>uuid|vmname</computeroutput></glossterm>
<glossdef>
<para>The VM UUID or VM name. Mandatory.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--session-id</computeroutput></glossterm>
<glossdef>
<para>Specifies the guest session to use by its ID.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--session-name</computeroutput></glossterm>
<glossdef>
<para>Specifies the guest session to use by its name. Multiple
sessions can be closed when specifying * or ? wildcards.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--verbose</computeroutput></glossterm>
<glossdef>
<para>Tells VBoxManage to be more verbose.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput><PID> ... <PID n></computeroutput></glossterm>
<glossdef>
<para>List of process identifiers (PIDs) to terminate.</para>
</glossdef>
</glossentry>
</glosslist></para>
</listitem>
<listitem>
<para><emphasis role="bold"><computeroutput>[p[s]]kill</computeroutput></emphasis>,
which terminates specific guest processes of a guest session, based on either the
session's ID or the session's name.</para>
<screen>VBoxManage guestcontrol <uuid|vmname> process kill
--session-id <ID>
| --session-name <name or pattern>
[--verbose]
<PID> ... <PID n></screen>
<para>where the parameters mean: <glosslist>
<glossentry>
<glossterm><computeroutput>uuid|vmname</computeroutput></glossterm>
<glossdef>
<para>The VM UUID or VM name. Mandatory.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--session-id</computeroutput></glossterm>
<glossdef>
<para>Specifies the guest session to use by its ID.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--session-name</computeroutput></glossterm>
<glossdef>
<para>Specifies the guest session to use by its name. Multiple
sessions can be closed when specifying * or ? wildcards.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--verbose</computeroutput></glossterm>
<glossdef>
<para>Tells VBoxManage to be more verbose.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput><PID> ... <PID n></computeroutput></glossterm>
<glossdef>
<para>List of process identifiers (PIDs) to terminate.</para>
</glossdef>
</glossentry>
</glosslist></para>
</listitem>
<listitem>
<para><emphasis role="bold"><computeroutput>session close</computeroutput></emphasis>,
which closes specific guest sessions, based on either the session's ID or the
session's name.</para>
<screen>VBoxManage guestcontrol <uuid|vmname> session close
--session-id <ID>
| --session-name <name or pattern>
| --all
[--verbose]</screen>
<para>where the parameters mean: <glosslist>
<glossentry>
<glossterm><computeroutput>uuid|vmname</computeroutput></glossterm>
<glossdef>
<para>The VM UUID or VM name. Mandatory.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--session-id</computeroutput></glossterm>
<glossdef>
<para>Close a guest session specified by its ID.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--session-name</computeroutput></glossterm>
<glossdef>
<para>Close a guest session specified by its name. Multiple sessions
can be closed when specifying * or ? wildcards.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--all</computeroutput></glossterm>
<glossdef>
<para>Close all guest sessions.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--verbose</computeroutput></glossterm>
<glossdef>
<para>Tells VBoxManage to be more verbose.</para>
</glossdef>
</glossentry>
</glosslist></para>
</listitem>
<listitem>
<para><emphasis role="bold"><computeroutput>stat</computeroutput></emphasis>,
which displays file
or file system status on the guest.</para>
<screen>VBoxManage guestcontrol <uuid|vmname> stat
<file>... --username <name>
[--passwordfile <file> | --password <password>]
[--verbose]</screen>
<para>where the parameters mean: <glosslist>
<glossentry>
<glossterm><computeroutput>uuid|vmname</computeroutput></glossterm>
<glossdef>
<para>The VM UUID or VM name. Mandatory.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>file element(s) to check on guest</computeroutput></glossterm>
<glossdef>
<para>Absolute path of directory/directories to check on
guest, e.g. <computeroutput>/home/foo/a.out</computeroutput>.
The specified user must have appropriate rights to access
the given file element(s).</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--username <name></computeroutput></glossterm>
<glossdef>
<para>Name of the user the copy process should run under.
This user must exist on the guest OS.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--passwordfile <file></computeroutput></glossterm>
<glossdef>
<para>Password of the user account specified to be read from
the given file. If not given, an empty password is
assumed.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--password <password></computeroutput></glossterm>
<glossdef>
<para>Password of the user account specified with
<computeroutput>--username</computeroutput>. If not given,
an empty password is assumed.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--verbose</computeroutput></glossterm>
<glossdef>
<para>Tells VBoxManage to be more verbose.</para>
</glossdef>
</glossentry>
</glosslist></para>
</listitem>
<listitem>
<para><emphasis role="bold"><computeroutput>updateadditions</computeroutput></emphasis>,
which allows
for updating an already installed Guest Additions version on the
guest (only already installed Guest Additions 4.0 and later).</para>
<screen>VBoxManage guestcontrol <uuid|vmname> updateadditions
[--source "<guest additions .ISO file to use>"] [--verbose]
[--wait-start] [-- [<argument1>] ... [<argumentN>]]</screen>
<para>where the parameters mean: <glosslist>
<glossentry>
<glossterm><computeroutput>uuid|vmname</computeroutput></glossterm>
<glossdef>
<para>The VM UUID or VM name. Mandatory.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--source</computeroutput> "<guest additions .ISO file to
use>"</glossterm>
<glossdef>
<para>Full path to an alternative VirtualBox Guest Additions
.ISO file to use for the Guest Additions update.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--verbose</computeroutput></glossterm>
<glossdef>
<para>Tells VBoxManage to be more verbose.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--wait-start</computeroutput></glossterm>
<glossdef>
<para>Starts the regular updating process and waits until the
actual Guest Additions update inside the guest was started.
This can be necessary due to needed interaction with the
guest OS during the installation phase.</para>
<para>When omitting this flag VBoxManage will wait for the
whole Guest Additions update to complete.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>[-- [<argument1s>] ... [<argumentNs>]]</computeroutput></glossterm>
<glossdef>
<para>Optional command line arguments to use for the Guest Additions
installer. Useful for retrofitting features which weren't installed
before on the guest.</para>
<para>Arguments containing spaces must be enclosed in
quotation marks.</para>
</glossdef>
</glossentry>
</glosslist></para>
</listitem>
<listitem>
<para><emphasis role="bold"><computeroutput>watch</computeroutput></emphasis>,
which prints current guest control activity.</para>
<screen>VBoxManage guestcontrol <uuid|vmname> watch
[--verbose]</screen>
<para>where the parameters mean: <glosslist>
<glossentry>
<glossterm><computeroutput>uuid|vmname</computeroutput></glossterm>
<glossdef>
<para>The VM UUID or VM name. Mandatory.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>--verbose</computeroutput></glossterm>
<glossdef>
<para>Tells VBoxManage to be more verbose.</para>
</glossdef>
</glossentry>
</glosslist></para>
</listitem>
</itemizedlist></para>
</sect1>
<sect1 id="vboxmanage-debugvm">
<title>VBoxManage debugvm</title>
<para>The "debugvm" commands are for experts who want to tinker with the
exact details of virtual machine execution. Like the VM debugger described
in <xref linkend="ts_debugger" />, these commands are only useful if you are
very familiar with the details of the PC architecture and how to debug
software.</para>
<para>The subcommands of "debugvm" all operate on a running virtual
machine. The following are available:<itemizedlist>
<listitem>
<para>With <computeroutput>dumpguestcore --filename
<name></computeroutput>, you can create a system dump of the
running VM, which will be written into the given file. This file
will have the standard ELF core format (with custom sections); see
<xref linkend="ts_guest-core-format" />.</para>
<para>This corresponds to the
<computeroutput>writecore</computeroutput> command in the debugger.
</para>
</listitem>
<listitem>
<para>The <computeroutput>info</computeroutput> command is used to
display info items relating to the VMM, device emulations and
associated drivers. This command takes one or two arguments: the
name of the info item, optionally followed by a string containing
arguments specific to the info item.
The <computeroutput>help</computeroutput> info item provides a
listning of the available items and hints about any optional
arguments.</para>
<para>This corresponds to the <computeroutput>info</computeroutput>
command in the debugger.</para>
</listitem>
<listitem>
<para>The <computeroutput>injectnmi</computeroutput> command causes
a non-maskable interrupt (NMI) in the guest, which might be useful
for certain debugging scenarios. What happens exactly is dependent
on the guest operating system, but an NMI can crash the whole guest
operating system. Do not use unless you know what you're
doing.</para>
</listitem>
<listitem>
<para>The <computeroutput>osdetect</computeroutput> command makes the
VMM's debugger facility (re-)detection the guest operation
system.</para>
<para>This corresponds to the <computeroutput>detect</computeroutput>
command in the debugger.</para>
</listitem>
<listitem>
<para>The <computeroutput>osinfo</computeroutput> command is used to
display info about the operating system (OS) detected by the VMM's
debugger facility.</para>
</listitem>
<listitem>
<para>The <computeroutput>getregisters</computeroutput> command is
used to display CPU and device registers. The command takes a list
of registers, each having one of the following forms:
<itemizedlist>
<listitem><computeroutput>register-set.register-name.sub-field</computeroutput></listitem>
<listitem><computeroutput>register-set.register-name</computeroutput></listitem>
<listitem><computeroutput>cpu-register-name.sub-field</computeroutput></listitem>
<listitem><computeroutput>cpu-register-name</computeroutput></listitem>
<listitem><computeroutput>all</computeroutput></listitem>
</itemizedlist>
The <computeroutput>all</computeroutput> form will cause all
registers to be shown (no sub-fields). The registers names are
case-insensitive. When requesting a CPU register the register set
can be omitted, it will be selected using the value of the
<computeroutput>--cpu</computeroutput> option (defaulting to 0).
</para>
</listitem>
<listitem>
<para>The <computeroutput>setregisters</computeroutput> command is
used to change CPU and device registers. The command takes a list
of register assignments, each having one of the following forms:
<itemizedlist>
<listitem><computeroutput>register-set.register-name.sub-field=value</computeroutput></listitem>
<listitem><computeroutput>register-set.register-name=value</computeroutput></listitem>
<listitem><computeroutput>cpu-register-name.sub-field=value</computeroutput></listitem>
<listitem><computeroutput>cpu-register-name=value</computeroutput></listitem>
</itemizedlist>
The value format should be in the same style as what
<computeroutput>getregisters</computeroutput> displays, with the
exception that both octal and decimal can be used instead of
hexadecimal. The register naming and the default CPU register set
are handled the same way as with the
<computeroutput>getregisters</computeroutput> command.</para>
</listitem>
<listitem>
<para>The <computeroutput>statistics</computeroutput> command can be
used to display VMM statistics on the command line. The
<computeroutput>--reset</computeroutput> option will reset
statistics. The affected statistics can be filtered with the
<computeroutput>--pattern</computeroutput> option, which accepts
DOS/NT-style wildcards (<computeroutput>?</computeroutput> and
<computeroutput>*</computeroutput>).</para>
</listitem>
</itemizedlist></para>
</sect1>
<sect1 id="metrics">
<title>VBoxManage metrics</title>
<para>This command supports monitoring the usage of system resources.
Resources are represented by various metrics associated with the host
system or a particular VM. For example, the host system has a
<computeroutput>CPU/Load/User</computeroutput> metric that shows the
percentage of time CPUs spend executing in user mode over a specific
sampling period.</para>
<para>Metric data is collected and retained internally; it may be
retrieved at any time with the <computeroutput>VBoxManage metrics
query</computeroutput> subcommand. The data is available as long as the
background <computeroutput>VBoxSVC</computeroutput> process is alive. That
process terminates shortly after all VMs and frontends have been
closed.</para>
<para>By default no metrics are collected at all. Metrics collection does
not start until <computeroutput>VBoxManage metrics setup</computeroutput>
is invoked with a proper sampling interval and the number of metrics to be
retained. The interval is measured in seconds. For example, to enable
collecting the host processor and memory usage metrics every second and
keeping the 5 most current samples, the following command can be
used:</para>
<screen>VBoxManage metrics setup --period 1 --samples 5 host CPU/Load,RAM/Usage</screen>
<para>Metric collection can only be enabled for started VMs. Collected
data and collection settings for a particular VM will disappear as soon as
it shuts down. Use <computeroutput>VBoxManage metrics list
</computeroutput> subcommand to see which metrics are currently available.
You can also use <computeroutput>--list</computeroutput> option with any
subcommand that modifies metric settings to find out which metrics were
affected.</para>
<para>Note that the <computeroutput>VBoxManage metrics
setup</computeroutput> subcommand discards all samples that may have been
previously collected for the specified set of objects and metrics.</para>
<para>To enable or disable metrics collection without discarding the data
<computeroutput>VBoxManage metrics enable</computeroutput> and
<computeroutput>VBoxManage metrics disable</computeroutput> subcommands
can be used. Note that these subcommands expect metrics, not submetrics,
like <code>CPU/Load</code> or <code>RAM/Usage</code> as parameters. In
other words enabling <code>CPU/Load/User</code> while disabling
<code>CPU/Load/Kernel</code> is not supported.</para>
<para>The host and VMs have different sets of associated metrics.
Available metrics can be listed with <computeroutput>VBoxManage metrics
list</computeroutput> subcommand.</para>
<para>A complete metric name may include an aggregate function. The name
has the following form:
<computeroutput>Category/Metric[/SubMetric][:aggregate]</computeroutput>.
For example, <computeroutput>RAM/Usage/Free:min</computeroutput> stands
for the minimum amount of available memory over all retained data if
applied to the host object.</para>
<para>Subcommands may apply to all objects and metrics or can be limited
to one object or/and a list of metrics. If no objects or metrics are given
in the parameters, the subcommands will apply to all available metrics of
all objects. You may use an asterisk
("<computeroutput>*</computeroutput>") to explicitly specify that the
command should be applied to all objects or metrics. Use "host" as the
object name to limit the scope of the command to host-related metrics. To
limit the scope to a subset of metrics, use a metric list with names
separated by commas.</para>
<para>For example, to query metric data on the CPU time spent in user and
kernel modes by the virtual machine named "test", you can use the
following command:</para>
<screen>VBoxManage metrics query test CPU/Load/User,CPU/Load/Kernel</screen>
<para>The following list summarizes the available subcommands:</para>
<glosslist>
<glossentry>
<glossterm><computeroutput>list</computeroutput></glossterm>
<glossdef>
<para>This subcommand shows the parameters of the currently existing
metrics. Note that VM-specific metrics are only available when a
particular VM is running.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>setup</computeroutput></glossterm>
<glossdef>
<para>This subcommand sets the interval between taking two samples
of metric data and the number of samples retained internally. The
retained data is available for displaying with the
<code>query</code> subcommand. The <computeroutput>--list
</computeroutput> option shows which metrics have been modified as
the result of the command execution.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>enable</computeroutput></glossterm>
<glossdef>
<para>This subcommand "resumes" data collection after it has been
stopped with <code>disable</code> subcommand. Note that specifying
submetrics as parameters will not enable underlying metrics. Use
<computeroutput>--list</computeroutput> to find out if the command
did what was expected.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>disable</computeroutput></glossterm>
<glossdef>
<para>This subcommand "suspends" data collection without affecting
collection parameters or collected data. Note that specifying
submetrics as parameters will not disable underlying metrics. Use
<computeroutput>--list</computeroutput> to find out if the command
did what was expected.</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>query</computeroutput></glossterm>
<glossdef>
<para>This subcommand retrieves and displays the currently retained
metric data.<note>
<para>The <code>query</code> subcommand does not remove or
"flush" retained data. If you query often enough you will see
how old samples are gradually being "phased out" by new
samples.</para>
</note></para>
</glossdef>
</glossentry>
<glossentry>
<glossterm><computeroutput>collect</computeroutput></glossterm>
<glossdef>
<para>This subcommand sets the interval between taking two samples
of metric data and the number of samples retained internally. The
collected data is displayed periodically until Ctrl-C is pressed
unless the <computeroutput>--detach</computeroutput> option is
specified. With the <computeroutput>--detach</computeroutput>
option, this subcommand operates the same way as <code>setup</code>
does. The <computeroutput>--list</computeroutput> option shows which
metrics match the specified filter.</para>
</glossdef>
</glossentry>
</glosslist>
</sect1>
<sect1>
<title>VBoxManage hostonlyif</title>
<para>With "hostonlyif" you can change the IP configuration of a host-only
network interface. For a description of host-only networking, please
refer to <xref linkend="network_hostonly" />. Each host-only interface is
identified by a name and can either use the internal DHCP server or a
manual IP configuration (both IP4 and IP6).</para>
</sect1>
<sect1 id="vboxmanage-dhcpserver">
<title>VBoxManage dhcpserver</title>
<para>The "dhcpserver" commands allow you to control the DHCP server that
is built into VirtualBox. You may find this useful when using internal or
host-only networking. (Theoretically, you can enable it for a bridged
network as well, but that will likely cause conflicts with other DHCP
servers in your physical network.)</para>
<para>Use the following command line options:<itemizedlist>
<listitem>
<para>If you use internal networking for a virtual network adapter
of a virtual machine, use <computeroutput>VBoxManage dhcpserver add
--netname <network_name></computeroutput>, where
<computeroutput><network_name></computeroutput> is the same
network name you used with <computeroutput>VBoxManage modifyvm
<vmname> --intnet<X>
<network_name></computeroutput>.</para>
</listitem>
<listitem>
<para>If you use host-only networking for a virtual network adapter
of a virtual machine, use <computeroutput>VBoxManage dhcpserver add
--ifname <hostonly_if_name></computeroutput> instead, where
<computeroutput><hostonly_if_name></computeroutput> is the
same host-only interface name you used with
<computeroutput>VBoxManage modifyvm <vmname>
--hostonlyadapter<X>
<hostonly_if_name></computeroutput>.</para>
<para>Alternatively, you can also use the --netname option as with
internal networks if you know the host-only network's name; you can
see the names with <computeroutput>VBoxManage list
hostonlyifs</computeroutput> (see <xref linkend="vboxmanage-list" />
above).</para>
</listitem>
</itemizedlist></para>
<para>The following additional parameters are required when first adding a
DHCP server:<itemizedlist>
<listitem>
<para>With <computeroutput>--ip</computeroutput>, specify the IP
address of the DHCP server itself.</para>
</listitem>
<listitem>
<para>With <computeroutput>--netmask</computeroutput>, specify the
netmask of the network.</para>
</listitem>
<listitem>
<para>With <computeroutput>--lowerip</computeroutput> and
<computeroutput>--upperip</computeroutput>, you can specify the
lowest and highest IP address, respectively, that the DHCP server
will hand out to clients.</para>
</listitem>
</itemizedlist></para>
<para>Finally, you must specify <computeroutput>--enable</computeroutput>
or the DHCP server will be created in the disabled state, doing
nothing.</para>
<para>After this, VirtualBox will automatically start the DHCP server for
given internal or host-only network as soon as the first virtual machine
which uses that network is started.</para>
<para>Reversely, use <computeroutput>VBoxManage dhcpserver
remove</computeroutput> with the given <computeroutput>--netname
<network_name></computeroutput> or <computeroutput>--ifname
<hostonly_if_name></computeroutput> to remove the DHCP server again
for the given internal or host-only network.</para>
<para>To modify the settings of a DHCP server created earlier with
<computeroutput>VBoxManage dhcpserver add</computeroutput>, you can use
<computeroutput>VBoxManage dhcpserver modify</computeroutput> for a given
network or host-only interface name.</para>
</sect1>
<sect1 id="vboxmanage-extpack">
<title>VBoxManage extpack</title>
<para>The "extpack" command allows you to add or remove VirtualBox
extension packs, as described in <xref
linkend="intro-installing" />.<itemizedlist>
<listitem>
<para>To add a new extension pack, use <computeroutput>VBoxManage
extpack install <.vbox-extpack></computeroutput>. This command
will fail if an older version of the same extension pack is already
installed. The optional <computeroutput>--replace</computeroutput>
parameter can be used to uninstall the old package before the new
package is installed.</para>
</listitem>
<listitem>
<para>To remove a previously installed extension pack, use
<computeroutput>VBoxManage extpack uninstall
<name></computeroutput>. You can use
<computeroutput>VBoxManage list extpacks</computeroutput> to show
the names of the extension packs which are currently installed;
please see <xref linkend="vboxmanage-list" /> also. The optional
<computeroutput>--force</computeroutput> parameter can be used to
override the refusal of an extension pack to be uninstalled.</para>
</listitem>
<listitem>
<para>The <computeroutput>VBoxManage extpack
cleanup</computeroutput> command can be used to remove temporary
files and directories that may have been left behind if a previous
install or uninstall command failed.</para>
</listitem>
</itemizedlist></para>
<para>The following commands show examples how to list extension packs and
remove one:<screen>
$ VBoxManage list extpacks
Extension Packs: 1
Pack no. 0: Oracle VM VirtualBox Extension Pack
Version: 4.1.12
Revision: 77218
Edition:
Description: USB 2.0 Host Controller, VirtualBox RDP, PXE ROM with E1000 support.
VRDE Module: VBoxVRDP
Usable: true
Why unusable:
$ VBoxManage extpack uninstall "Oracle VM VirtualBox Extension Pack"
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Successfully uninstalled "Oracle VM VirtualBox Extension Pack".</screen></para>
</sect1>
</chapter>
|