UPC / ravada

Remote Virtual Desktops Manager
https://ravada.upc.edu/
GNU Affero General Public License v3.0
552 stars 175 forks source link

Create an empty virtual machine #918

Closed dani-sanchez-dorado closed 5 years ago

dani-sanchez-dorado commented 6 years ago

Hello, I'm testing create a vm from our provisioning system, based in OpenGnsys. I need to create an empty vm, with an empty disk, that boots directly from PXE. I think that KVM base provides the PXE client, but all options to create a new machine is iso-based.

Thanks!

frankiejol commented 6 years ago

There is no easy way from the frontend now. But you can create a machine from another tool, then import it to Ravada from the CLI like this: $ sudo rvd_back --import-domain nameofthedomain

We will add a new feature to create virtual machines with PXE in a future release.

dani-sanchez-dorado commented 6 years ago

I have been testing kvm definitions and I have discovered that you can get an PXE boot vm with this little changes:

If you get this error:

error: unsupported configuration: per-device boot elements cannot be used together with os/boot elements

you have missed a boot order statement somewhere

And that's all

frankiejol commented 6 years ago

This is a pretty good feedback from @dani-sanchez-dorado . I have to review this carefully, but I guess it won't be hard to add this new feature to create empty-pxe virtual machines. We could add a new tab to the create machine section.