From 1e421a0de1f3bb04cc0a9b515b2fa0b7f30cee13 Mon Sep 17 00:00:00 2001 From: Alex Davies Date: Thu, 9 May 2024 17:22:46 -0300 Subject: [PATCH] Build as a VM --- README.md | 7 +++++ ova-compose.yml | 75 +++++++++++++++++++++++++++++++++++++++++++++++++ virtualize.sh | 3 ++ 3 files changed, 85 insertions(+) create mode 100644 ova-compose.yml create mode 100755 virtualize.sh diff --git a/README.md b/README.md index 6b3ee13..60d01d2 100644 --- a/README.md +++ b/README.md @@ -16,3 +16,10 @@ distrobox enter spiri-sdk-desktop-main cd /opt/spiri-sdk/PX4-Autopilot/ make px4_sitl gazebo-classic #Start the simulator ``` + +# Building + +```bash +docker build -t spiri-desktop-sdk ./ +./virtualize.sh spiri-desktop-sdk spiri-sdk.ova +``` diff --git a/ova-compose.yml b/ova-compose.yml new file mode 100644 index 0000000..5d37092 --- /dev/null +++ b/ova-compose.yml @@ -0,0 +1,75 @@ +system: + name: spiri-sdk + type: vmx-17 + os_vmw: other4xLinux64Guest + firmware: efi + secure_boot: false + # default_configuration: grande + +networks: + vm_network: + name: "VM Network" + description: "The VM Network network" + +hardware: + cpus: 2 + memory: 2048 + # sata1: + # type: sata_controller + scsi1: + type: scsi_controller + # cdrom1: + # type: cd_drive + # parent: sata1 + rootdisk: + type: hard_disk + parent: scsi1 + #Set automatically as part of our pipeline, do not change + disk_image: /tmp/output.vmdk + usb1: + type: usb_controller + # ethernet1: + # type: ethernet + # subtype: VmxNet3 + # network: vm_network + # videocard1: + # type: video_card + # vmci1: + # type: vmci + +# configurations: +# tall: +# label: Tall +# description: too little for the money +# grande: +# label: Grande +# description: just right +# venti: +# label: Venti +# description: too much + +# environment: +# transports: +# - com.vmware.guestInfo +# - iso +# categories: +# email: Email Settings +# properties: +# guestinfo.admin.email: +# value: admin@company.org +# user_configurable: true +# type: string +# description: "The Admin's email address" +# label: "Email Address" +# category: email + +# extra_configs: +# feature.enabled: +# required: false +# value: true +# log.rotateSize: +# value: 2048000 + +product: + product: Spiri SDK desktop + vendor: Spiri Robotics diff --git a/virtualize.sh b/virtualize.sh new file mode 100755 index 0000000..524092a --- /dev/null +++ b/virtualize.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock --privileged -v $PWD:/d2vm -w /d2vm git.spirirobotics.com/spiri/utils-docker_to_ovf:main $@