From: Henning Schild <henning.schild@siemens.com>
To: <isar-users@googlegroups.com>
Cc: Henning Schild <henning.schild@siemens.com>
Subject: [PATCH 1/2] vm-img: virtualbox: update ovf template
Date: Mon, 27 Feb 2023 18:48:19 +0100 [thread overview]
Message-ID: <20230227174820.10959-2-henning.schild@siemens.com> (raw)
In-Reply-To: <20230227174820.10959-1-henning.schild@siemens.com>
These templates are by enlarge taken from exported VMs, so it is really
hard to change only one thing at a time and ensuring things will still
work as expected. So this commit does multiple things at a time.
It repairs the ofv by taking the StorageControllers into the Hardware
block.
It switches the default disk from IDE to virtio.
It adds a USB host controller and pointer device.
Signed-off-by: Henning Schild <henning.schild@siemens.com>
---
.../virtualbox/vm-img-virtualbox.ovf.tmpl | 83 +++++++++++++------
1 file changed, 58 insertions(+), 25 deletions(-)
diff --git a/meta-isar/recipes-core/images/virtualbox/vm-img-virtualbox.ovf.tmpl b/meta-isar/recipes-core/images/virtualbox/vm-img-virtualbox.ovf.tmpl
index c9561a2c3e53..66d558515748 100644
--- a/meta-isar/recipes-core/images/virtualbox/vm-img-virtualbox.ovf.tmpl
+++ b/meta-isar/recipes-core/images/virtualbox/vm-img-virtualbox.ovf.tmpl
@@ -63,14 +63,41 @@
<rasd:ResourceSubType>PIIX4</rasd:ResourceSubType>
<rasd:ResourceType>5</rasd:ResourceType>
</Item>
+ <Item>
+ <rasd:Address>0</rasd:Address>
+ <rasd:Caption>virtioSCSIController0</rasd:Caption>
+ <rasd:Description>VirtioSCSI Controller</rasd:Description>
+ <rasd:ElementName>virtioSCSIController0</rasd:ElementName>
+ <rasd:InstanceID>5</rasd:InstanceID>
+ <rasd:ResourceSubType>VirtioSCSI</rasd:ResourceSubType>
+ <rasd:ResourceType>20</rasd:ResourceType>
+ </Item>
+ <Item>
+ <rasd:Address>0</rasd:Address>
+ <rasd:Caption>usb</rasd:Caption>
+ <rasd:Description>USB Controller</rasd:Description>
+ <rasd:ElementName>usb</rasd:ElementName>
+ <rasd:InstanceID>6</rasd:InstanceID>
+ <rasd:ResourceType>23</rasd:ResourceType>
+ </Item>
+ <Item>
+ <rasd:AddressOnParent>3</rasd:AddressOnParent>
+ <rasd:AutomaticAllocation>false</rasd:AutomaticAllocation>
+ <rasd:Caption>sound</rasd:Caption>
+ <rasd:Description>Sound Card</rasd:Description>
+ <rasd:ElementName>sound</rasd:ElementName>
+ <rasd:InstanceID>7</rasd:InstanceID>
+ <rasd:ResourceSubType>ensoniq1371</rasd:ResourceSubType>
+ <rasd:ResourceType>35</rasd:ResourceType>
+ </Item>
<Item>
<rasd:AddressOnParent>0</rasd:AddressOnParent>
<rasd:Caption>disk1</rasd:Caption>
<rasd:Description>Disk Image</rasd:Description>
<rasd:ElementName>disk1</rasd:ElementName>
<rasd:HostResource>/disk/vmdisk1</rasd:HostResource>
- <rasd:InstanceID>5</rasd:InstanceID>
- <rasd:Parent>3</rasd:Parent>
+ <rasd:InstanceID>8</rasd:InstanceID>
+ <rasd:Parent>5</rasd:Parent>
<rasd:ResourceType>17</rasd:ResourceType>
</Item>
<Item>
@@ -78,50 +105,56 @@
<rasd:Caption>Ethernet adapter on 'NAT'</rasd:Caption>
<rasd:Connection>NAT</rasd:Connection>
<rasd:ElementName>Ethernet adapter on 'NAT'</rasd:ElementName>
- <rasd:InstanceID>6</rasd:InstanceID>
+ <rasd:InstanceID>9</rasd:InstanceID>
<rasd:ResourceType>10</rasd:ResourceType>
</Item>
</VirtualHardwareSection>
<vbox:Machine ovf:required="false" version="1.12-linux" uuid="{${VM_UUID}}" name="${OVA_NAME}" OSType="Debian_64" snapshotFolder="Snapshots" lastStateChange="${LAST_CHANGE}">
<ovf:Info>Complete VirtualBox machine configuration in VirtualBox format</ovf:Info>
+ <ExtraData>
+ <ExtraDataItem name="GUI/FirstRun" value="no"/>
+ </ExtraData>
<Hardware>
<CPU count="${OVA_NUMBER_OF_CPU}">
- <PAE enabled="true"/>
+ <PAE enabled="false"/>
+ <LongMode enabled="true"/>
+ <X2APIC enabled="true"/>
<HardwareVirtExLargePages enabled="false"/>
</CPU>
<Memory RAMSize="${OVA_MEMORY}"/>
- <Firmware type="${OVA_FIRMWARE_UPPERCASE}"/>
- <Boot>
- <Order position="1" device="HardDisk"/>
- <Order position="2" device="None"/>
- <Order position="3" device="None"/>
- <Order position="4" device="None"/>
- </Boot>
+ <Firmware type="${OVA_FIRMWARE_UPPERCASE}"/>
+ <HID Pointing="USBTablet"/>
+ <Chipset type="ICH9"/>
<Display VRAMSize="${OVA_VRAM}" monitorCount="1" accelerate3D="${OVA_3D_ACCEL}" accelerate2DVideo="false"/>
- <RemoteDisplay enabled="false"/>
- <BIOS>
- <IOAPIC enabled="${OVA_ACPI}"/>
+ <RemoteDisplay enabled="true"/>
+ <BIOS>
+ <IOAPIC enabled="${OVA_ACPI}"/>
</BIOS>
- <USBController enabled="false" enabledEhci="false"/>
+ <USB>
+ <Controllers>
+ <Controller name="OHCI" type="OHCI"/>
+ <Controller name="EHCI" type="EHCI"/>
+ </Controllers>
+ </USB>
<Network>
<Adapter slot="0" enabled="true" MACAddress="${PRIMARY_MAC}" cable="true" type="virtio">
<NAT/>
</Adapter>
</Network>
- <LPT>
- <Port slot="1" enabled="false" IOBase="0x378" IRQ="7"/>
- </LPT>
<AudioAdapter driver="Pulse" enabled="false"/>
<Clipboard/>
<GuestProperties/>
+ <StorageControllers>
+ <StorageController name="IDE" type="PIIX4" PortCount="2" useHostIOCache="true" Bootable="true">
+ <AttachedDevice passthrough="false" type="DVD" hotpluggable="false" port="1" device="0"/>
+ </StorageController>
+ <StorageController name="SATA" type="VirtioSCSI" PortCount="1" useHostIOCache="false" Bootable="true">
+ <AttachedDevice type="HardDisk" port="0" device="0">
+ <Image uuid="{${DISK_UUID}}"/>
+ </AttachedDevice>
+ </StorageController>
+ </StorageControllers>
</Hardware>
- <StorageControllers>
- <StorageController name="IDE Controller" type="PIIX4" PortCount="2" useHostIOCache="true" Bootable="true">
- <AttachedDevice type="HardDisk" port="0" device="0">
- <Image uuid="{${DISK_UUID}}"/>
- </AttachedDevice>
- </StorageController>
- </StorageControllers>
</vbox:Machine>
</VirtualSystem>
</Envelope>
--
2.39.2
next prev parent reply other threads:[~2023-02-27 19:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-27 17:48 [PATCH 0/2] vm-img: ovf template updates Henning Schild
2023-02-27 17:48 ` Henning Schild [this message]
2023-02-27 17:48 ` [PATCH 2/2] vm-img: vmware: update ovf template Henning Schild
2023-02-27 20:41 ` [PATCH 0/2] vm-img: ovf template updates Henning Schild
2023-03-07 4:12 ` Uladzimir Bely
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230227174820.10959-2-henning.schild@siemens.com \
--to=henning.schild@siemens.com \
--cc=isar-users@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox