Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support editing (or removing) auxiliary devices from ovf #80

Open
evanjs opened this issue May 29, 2020 · 1 comment
Open

Support editing (or removing) auxiliary devices from ovf #80

evanjs opened this issue May 29, 2020 · 1 comment

Comments

@evanjs
Copy link

evanjs commented May 29, 2020

Recently, I encountered this issue when trying to import an OVA made with VirtualBox into VMWare/ESXi.

I was able to execute the first part of the solution using:
cot edit-hardware nixos-20.09pre-git-x86_64-linux.ova -v vmx-14 -o nixos.ova.

However, it doesn't seem like there are any options to edit hardware devices outside CPU, network devices, memory, etc.

Editing aside, perhaps we could start by allowing users to remove devices in order to help resolve some compatibility issues like the one mentioned above.

In this case, for example, I believe all I would need to do is remove all devices with a DeviceType of 35.

@glennmatthews
Copy link
Owner

I'm not opposed to adding new subcommands to create/edit/delete generic hardware Item elements - the existing cot edit-hardware command is complex enough that I wouldn't want to add this functionality to that command. Something like:

cot add-hardware-item PACKAGE [-o output] [-i instanceid] [-t type] [-s subtype] [-q quantity] [-n name] ...
cot remove-hardware-item PACKAGE [-o output] [-i instanceid] [-t type] ...

It may be a while until I can get to this enhancement, but a pull request would be very welcome if you want to make an attempt at it yourself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants