Here's a step by step guide to convert a Virtualbox .ova to a Vagrant box.
- List your VMs to find the VM id you want to convert:
$ VBoxManage list vms
"testing" {a3f59eed-b9c5-4a5f-9977-187f8eb8c4d4}
- You can now package the .ova VM as Vagrant box:
| /* | |
| MIT License | |
| Copyright (c) [2023] [George Elsham] | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is |
| // Run any SwiftUI view as a Mac app. | |
| import Cocoa | |
| import SwiftUI | |
| NSApplication.shared.run { | |
| VStack { | |
| Text("Hello, World") | |
| .padding() | |
| .background(Capsule().fill(Color.blue)) |
| #!/usr/bin/env xcrun -sdk macosx swift | |
| // Displays UI in an NSWindow which can interact with the commandline | |
| // Usage: `echo "Bar" | ./swift-ui-commandline-tool.swift` | |
| import Foundation | |
| import SwiftUI | |
| extension CommandLine { | |
| static let input: String = { AnyIterator { readLine() }.joined() }() |
Here's a step by step guide to convert a Virtualbox .ova to a Vagrant box.
$ VBoxManage list vms
"testing" {a3f59eed-b9c5-4a5f-9977-187f8eb8c4d4}
| # Make sure you grab the latest version | |
| curl -OL https://github.com/google/protobuf/releases/download/v3.2.0/protoc-3.2.0-linux-x86_64.zip | |
| # Unzip | |
| unzip protoc-3.2.0-linux-x86_64.zip -d protoc3 | |
| # Move protoc to /usr/local/bin/ | |
| sudo mv protoc3/bin/* /usr/local/bin/ | |
| # Move protoc3/include to /usr/local/include/ |
| # put this in your ~/.screenrc to make | |
| # ^A D (uppercase) switch on, and | |
| # ^A U (uppercase) switch off, converting | |
| # CR (return keys) input into CRLF | |
| bind D bindkey "\015" stuff "\015\012" | |
| bind U bindkey "\015" stuff "\015" |