blob: d1c77f0273d6fa01d32f72ba96072803a1052555 (
plain) (
blame)
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
|
# -----------------------------------------------------------------------------
# Copyright (c) 2010..2012 - OpenSLX GmbH
#
# This program/file is free software distributed under the GPL version 2.
# See http://openslx.org/COPYING
#
# If you have any feedback please consult http://openslx.org/feedback and
# send your feedback to feedback@openslx.org
#
# General information about OpenSLX can be found at http://openslx.org
# -----------------------------------------------------------------------------
# Include file (machine template) for run-virt.include of the OpenSLX virtual-
# box plugin
cat << EOF > "${machconfig}"
<?xml version="1.0"?>
<VirtualBox xmlns="http://www.innotek.de/VirtualBox-settings" version="1.12-linux">
<Machine uuid="{${machineuuid}}" name="${vm_name}" OSType="${vmostype}">
<ExtraData>
<ExtraDataItem name="GUI/AutoresizeGuest" value="on"/>
<ExtraDataItem name="GUI/Fullscreen" value="on"/>
<ExtraDataItem name="GUI/LastCloseAction" value="powerOff"/>
<ExtraDataItem name="GUI/MiniToolBarAutoHide" value="on"/>
<ExtraDataItem name="GUI/MiniToolBarAlignment" value="top"/>
<ExtraDataItem name="GUI/ShowMiniToolBar" value="yes"/>
<ExtraDataItem name="GUI/SaveMountedAtRuntime" value="yes"/>
<ExtraDataItem name="GUI/Seamless" value="off"/>
</ExtraData>
<Hardware version="2">
<CPU count="${cpu_cores}">
<HardwareVirtEx enabled="${enablevt}" exclusive="true"/>
<HardwareVirtExNestedPaging enabled="${npaging}"/>
<HardwareVirtExVPID enabled="false"/>
<PAE enabled="true"/>
</CPU>
<Memory RAMSize="${mem}"/>
<Boot>
<Order position="1" device="${boot}"/> <!-- HardDisk, DVD, Network, Floppy -->
<Order position="2" device="None"/>
<Order position="3" device="None"/>
<Order position="4" device="None"/>
</Boot>
<!-- check for xml configured enable3d parameter -->
<Display VRAMSize="${vram}" monitorCount="1" accelerate3D="${enable3d}" accelerate2DVideo="${enable2d}"/>
<!-- authType="External", "Guest", "Null" -->
<RemoteDisplay enabled="false" port="${vrdpport}" authType="Null" authTimeout="5000"/>
<BIOS>
<ACPI enabled="true"/>
<IOAPIC enabled="true"/>
<Logo fadeIn="false" fadeOut="false" displayTime="0"/>
<BootMenu mode="MessageAndMenu"/>
<TimeOffset value="0"/>
<PXEDebug enabled="false"/>
</BIOS>
<USBController enabled="true" enabledEhci="true"/>
<Network>
<Adapter slot="0" enabled="true" MACAddress="${macaddr}" cable="true" speed="0" type="${vb_network_card}">
<${network_kind}/>
</Adapter>
<Adapter slot="1" enabled="false" MACAddress="${vdemacaddr}" cable="true" speed="0" type="${vb_network_card}">
<GenericInterface driver="VDE">
<Properties name="network" value="/tmp/vde-switch"/>
</GenericInterface>
</Adapter>
<Adapter slot="2" enabled="false" MACAddress="080027A3A3CC" cable="true" speed="0" type="Am79C973"/>
<Adapter slot="3" enabled="false" MACAddress="0800277356CC" cable="true" speed="0" type="Am79C973"/>
<Adapter slot="4" enabled="false" MACAddress="080027CEA8CC" cable="true" speed="0" type="Am79C973"/>
<Adapter slot="5" enabled="false" MACAddress="0800271B8DCC" cable="true" speed="0" type="Am79C973"/>
<Adapter slot="6" enabled="false" MACAddress="08002771BBCC" cable="true" speed="0" type="Am79C973"/>
<Adapter slot="7" enabled="false" MACAddress="080027EB6ACC" cable="true" speed="0" type="Am79C973"/>
</Network>
<UART>
<Port slot="0" enabled="false" IOBase="0x3f8" IRQ="4" hostMode="Disconnected"/>
<Port slot="1" enabled="false" IOBase="0x3f8" IRQ="4" hostMode="Disconnected"/>
</UART>
<LPT>
<Port slot="0" enabled="false" IOBase="0x378" IRQ="4"/>
<Port slot="1" enabled="false" IOBase="0x378" IRQ="4"/>
</LPT>
<!-- should be configured depending on the chosen operating system -->
<AudioAdapter controller="${guestaudio}" driver="Alsa" enabled="${audio}"/> <!-- OSS, Alsa, Pulse -->
<!-- should be configured depending on the chosen operating system -->
<SharedFolders>
<SharedFolder name="${sharename}" hostPath="${sharepath}" writable="true"/>
</SharedFolders>
<Clipboard mode="Bidirectional"/>
<Guest memoryBalloonSize="0" statisticsUpdateInterval="0"/>
<!--
<GuestProperties>
<GuestProperty name="/VirtualBox/HostGuest/SysprepExec" value="" timestamp="1268140071072799000" flags="TRANSIENT, RDONLYGUEST"/>
<GuestProperty name="/VirtualBox/HostGuest/SysprepArgs" value="" timestamp="1268140071072949000" flags="TRANSIENT, RDONLYGUEST"/>
<GuestProperty name="/VirtualBox/GuestInfo/OS/Product" value="Linux" timestamp="1268140267864540000" flags=""/>
<GuestProperty name="/VirtualBox/GuestInfo/OS/Release" value="4.1.2" timestamp="1268140267894449000" flags=""/>
<GuestProperty name="/VirtualBox/GuestInfo/OS/LoggedInUsersList" value="vbox" timestamp="1268164075149967000" flags=""/>
</GuestProperties>
-->
</Hardware>
<!-- should be configured depending on the chosen operating system -->
<StorageControllers>
<StorageController name="IDE Controller" type="PIIX4" PortCount="2">
<AttachedDevice type="HardDisk" port="0" device="0">
<Image uuid="{${imageuuid}}"/>
</AttachedDevice> <!-- PLEASE DO NOT REMOVE THIS COMMENT (HD)!!! -->
<AttachedDevice passthrough="false" type="DVD" port="0" device="1">
<HostDrive src="${cdrom_0}"/>
</AttachedDevice> <!-- PLEASE DO NOT REMOVE THIS COMMENT (CD)!!! -->
</StorageController>
<StorageController name="Floppy Controller" type="I82078" PortCount="1">
<AttachedDevice type="Floppy" port="0" device="0">
</AttachedDevice>
<AttachedDevice type="Floppy" port="0" device="1">
<Image uuid="{288d5452-2dd3-44f2-bfc8-78e205a4fa87}"/>
</AttachedDevice>
</StorageController>
<!--
<StorageController name="SCSI Controller" type="LsiLogic" PortCount="16">
<AttachedDevice type="HardDisk" port="0" device="0">
<Image uuid="{812c82bf-bd1a-4f59-a5b6-b54ae2f6c669}"/>
</AttachedDevice>
</StorageController>
-->
</StorageControllers>
</Machine>
</VirtualBox>
EOF
|