Import of OVA into XEN - possible?

860 views
Skip to first unread message

Drew White

unread,
May 10, 2016, 9:59:01 PM5/10/16
to qubes-users
Is it possible to import OVA/OVF into Qubes/XEN?

If not, how hard would it be to make an import feature in the Qubes-Manager for this functionality?

Not too hard I would assume, but I never know because of how things are with Qubes-Manager and the way it does things.

IF it's possible, can you have something in the config that the manager looks for to be able to identify it as an import, and thus NOT overwrite the configuration file?

The "do not overwrite" needs to be added in anyway, in my opinion, because I have 4 drive configs at times, and I have to have a custom config file each time, and I have to start it by CLI every time, then I have to edit it to remove the CD, and restart it, then do the next bit I need, then shut down then reinsert CD code, then do it again and again, with no simple way of making this work properly.

But anyway, what is the possibility of this being achievable with relative ease for an update?

Looking forward to your response.

Sincerely,
Drew.

Marek Marczykowski-Górecki

unread,
May 11, 2016, 6:24:36 PM5/11/16
to Drew White, qubes-users
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Tue, May 10, 2016 at 06:59:01PM -0700, Drew White wrote:
> Is it possible to import OVA/OVF into Qubes/XEN?
>
> If not, how hard would it be to make an import feature in the Qubes-Manager
> for this functionality?
>
> Not too hard I would assume, but I never know because of how things are
> with Qubes-Manager and the way it does things.

Search the mailing list archive - AFAIR there was some attempt to do this.
It should be possible as OVA/OVF is just an archive with VM description
(useless for Qubes) and disk image in vmdk format, which can be easily
converted to "raw" format using qemu-img.

> IF it's possible, can you have something in the config that the manager
> looks for to be able to identify it as an import, and thus NOT overwrite
> the configuration file?
>
> The "do not overwrite" needs to be added in anyway, in my opinion, because
> I have 4 drive configs at times, and I have to have a custom config file
> each time, and I have to start it by CLI every time, then I have to edit it
> to remove the CD, and restart it, then do the next bit I need, then shut
> down then reinsert CD code, then do it again and again, with no simple way
> of making this work properly.
>
> But anyway, what is the possibility of this being achievable with relative
> ease for an update?
>
> Looking forward to your response.
>
> Sincerely,
> Drew.
>


- --
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXM7EcAAoJENuP0xzK19csK3sH/iFsSQSm8MDsqW3mt1W/6txm
Jf2ScVZ+EQK6sm7SI9ywo2CFps/rNdi701asbVli4WO16nIR9lVDPUX09s6xiUKe
pgOOgSrQYfI1KX9EqIKsoFy0ccetytPX073zWgYzQUd2qvmte5PC0F15ltMuc0i7
eAnKFR3w4YLRkyE0BImUzKCYULQPNreGsFgOPgq/ey9LSSrvrKqkUJa4UQilVv9K
Pjpev8YSFrlH0rmXXSha4nqkMMuk6MJLxoX1ZZCeEtyRuEe2F4JTqagC9sRgAmVp
wNxEcQQv+4U0eFpJhwA2ypxCW+cWPWIpYwu8VnHCov9g6sHxw1oiIub+wpoA4NQ=
=E1So
-----END PGP SIGNATURE-----

Drew White

unread,
May 11, 2016, 8:25:36 PM5/11/16
to qubes-users, drew....@gmail.com


On Thursday, 12 May 2016 08:24:36 UTC+10, Marek Marczykowski-Górecki wrote:
Search the mailing list archive - AFAIR there was some attempt to do this.
It should be possible as OVA/OVF is just an archive with VM description
(useless for Qubes) and disk image in vmdk format, which can be easily
converted to "raw" format using qemu-img.

Well, that's where my first problem comes in.
qemu-img for Qubes, the version is not able to convert VMDK version 3.
qemu-img is version 1.6.2 in dom0.

Other than that, can't it be an automated process in the manager? Read, unzip, and convert all in one?
 

Marek Marczykowski-Górecki

unread,
May 11, 2016, 8:36:16 PM5/11/16
to Drew White, qubes-users
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Feel free to send patches, we'll be very happy to accept them...

- --
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXM8/4AAoJENuP0xzK19cst40H/0doopO2IzUCxPFyRX6dGrJV
Rb2g/VZYR5CmyOJOr2JzLp1kguqNGHt88+0k3X0QJXMn7h2NN1P62AClxT2AAh2r
4rLkg/Jz2GjYpJUd7ebBeke+NJxDNvVJx3HsPxFn0G17ApHOHe9rJIK5/vvhO/3s
ESCf7fNs5OJG1uB21Q7vWYCG9RP2R1vNSrzYsyXn+hwm0StS9BX4338H3h6++YHU
GJCPILRVLc2ezJFhjBwVdqRCeZkBzXHz0UayUjZh6DZbUJWdUHljQz35zuf/mKLB
PxKM95VxMvPCzb2u9nmD5BtHuHiw6p8IGfCohD2E+RKJJXOpYgOMl+lqwmukSOQ=
=W0sY
-----END PGP SIGNATURE-----

Drew White

unread,
May 11, 2016, 9:10:41 PM5/11/16
to qubes-users, drew....@gmail.com


On Thursday, 12 May 2016 10:36:16 UTC+10, Marek Marczykowski-Górecki wrote:
Feel free to send patches, we'll be very happy to accept them...

What version of software would I require?
What is the gui side you develop in?
How would I send them in?

Marek Marczykowski-Górecki

unread,
May 11, 2016, 9:19:45 PM5/11/16
to Drew White, qubes-users
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Generally take a look here:
https://www.qubes-os.org/doc/source-code/
https://www.qubes-os.org/doc/contributing/

Specifically: just a script (preferably in python), which will handle
OVA files will be enough. I can handle packaging stuff.

- --
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXM9opAAoJENuP0xzK19csxQkH/j5baodQPIT/NvsgX2K8i2U5
3hIwiX9EPtOdPFqRonnT1nsc6fNckoKKgB0nndkztcDaw1XSwcN8KLXIGMIdPzQw
twkarCgbNuh3SqHMDZ8gurWATh3E54KD7vbTNsSM8ugEiXyr67MqLOG4MiJArZzN
TwOnbvfoyuMEluPlLCxFCgPUVqy3WtwOGr2hgOFU4gmRETnPw2yWQSm+5i/ELNDa
AE//HvXPtA1fk6eparweSvIaAOOex2msd1qhoNnnKe7P2cenKYzh8cfxw7gDWU8B
ARtovnamteEG6MzAub1u8H95BwvWSZS9kYBJ1oNOJI3O7qSyNybnvbVfXN+CPkI=
=niZ6
-----END PGP SIGNATURE-----

Drew White

unread,
May 11, 2016, 9:26:14 PM5/11/16
to qubes-users, drew....@gmail.com


On Thursday, 12 May 2016 11:19:45 UTC+10, Marek Marczykowski-Górecki wrote:
On Wed, May 11, 2016 at 06:10:41PM -0700, Drew White wrote:
> On Thursday, 12 May 2016 10:36:16 UTC+10, Marek Marczykowski-Górecki wrote:
> >
> > Feel free to send patches, we'll be very happy to accept them...
> What version of software would I require?
> What is the gui side you develop in?
> How would I send them in?

Generally take a look here:
https://www.qubes-os.org/doc/source-code/
https://www.qubes-os.org/doc/contributing/

Specifically: just a script (preferably in python), which will handle
OVA files will be enough. I can handle packaging stuff.

Thanks Marek, I'll take another look at all that, and let you know.

I'll leave the packaging for you then, but it will be a part of the Qubes Manager?
Or do you want it as a separate application that you can call from the manager?

It's up to you, but that will just determine how I build it for integration.
Let me know when you get a chance.

Thanks.


 

Marek Marczykowski-Górecki

unread,
May 11, 2016, 9:31:58 PM5/11/16
to Drew White, qubes-users
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Wed, May 11, 2016 at 06:26:13PM -0700, Drew White wrote:
>
>
> On Thursday, 12 May 2016 11:19:45 UTC+10, Marek Marczykowski-Górecki wrote:
> >
> > On Wed, May 11, 2016 at 06:10:41PM -0700, Drew White wrote:
> > > On Thursday, 12 May 2016 10:36:16 UTC+10, Marek Marczykowski-Górecki
> > wrote:
> > > >
> > > > Feel free to send patches, we'll be very happy to accept them...
> > > What version of software would I require?
> > > What is the gui side you develop in?
> > > How would I send them in?
> >
> > Generally take a look here:
> > https://www.qubes-os.org/doc/source-code/
> > https://www.qubes-os.org/doc/contributing/
> >
> > Specifically: just a script (preferably in python), which will handle
> > OVA files will be enough. I can handle packaging stuff.
> >
>
> Thanks Marek, I'll take another look at all that, and let you know.
>
> I'll leave the packaging for you then, but it will be a part of the Qubes
> Manager?
> Or do you want it as a separate application that you can call from the
> manager?

Better a separate application. Then it can be integrated into Qubes
Manager, some command line tools and maybe others.

> It's up to you, but that will just determine how I build it for integration.
> Let me know when you get a chance.
>
> Thanks.
>
>
>
>


- --
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXM90FAAoJENuP0xzK19csY1kH/1dt4ThOdHSgAresq4yt8mQd
EJ0eCPdHYVuU7VOOPFAAFCGnS8NP/sMZMJDMal35TR4nljRb5RBiKopYIYcpVMoz
XwVofunZdocreK3mEcwR9tP3k8a1CX+x55Dn+nITAGsdmMJQWTgRFHl5TrfPTnkM
arkODGG+bDpI6PgzpJ/lUjlRJ+2/mzbdNoYV3xvSos9iLcbx2qqO/oDWvN5Bx3+A
Zr6Phs/WVh++a4xo1bzM1Qu2dmP0V9j+ykiXXSrgB/tlD9nHK6/+bomxHjL6HuiP
mHfXYFZ38ysi1xK3pwpWajP8rwT8wj/c7iYGSx/jnPMnjXRJ8/ADMwF5tietl5E=
=JGfB
-----END PGP SIGNATURE-----

Drew White

unread,
May 11, 2016, 9:40:22 PM5/11/16
to qubes-users, drew....@gmail.com
On Thursday, 12 May 2016 11:31:58 UTC+10, Marek Marczykowski-Górecki wrote:
On Wed, May 11, 2016 at 06:26:13PM -0700, Drew White wrote:
> Or do you want it as a separate application that you can call from the
> manager?

Better a separate application. Then it can be integrated into Qubes
Manager, some command line tools and maybe others.

Not a problem, I'll build the CLI and front end to utilise the CLI in a graphical way.

I've already got the structure and methodology. I'll just have to work out using the
GITHUB stuff and get the data I need to be able to perform the action effectively.

Anyhow, I'll let you know how it goes. if I have questions, I'll ask.

Thanks again.

Drew White

unread,
May 11, 2016, 11:19:33 PM5/11/16
to qubes-users, drew....@gmail.com


On Thursday, 12 May 2016 11:31:58 UTC+10, Marek Marczykowski-Górecki wrote:
On Wed, May 11, 2016 at 06:26:13PM -0700, Drew White wrote:
> On Thursday, 12 May 2016 11:19:45 UTC+10, Marek Marczykowski-Górecki wrote:
> > Generally take a look here:
> > https://www.qubes-os.org/doc/source-code/
> > https://www.qubes-os.org/doc/contributing/
> >
> > Specifically: just a script (preferably in python), which will handle
> > OVA files will be enough. I can handle packaging stuff.
> >
>
> Thanks Marek, I'll take another look at all that, and let you know.

I've taken a look at the links, and I'll proceed following the proceedures provided.

 
> I'll leave the packaging for you then, but it will be a part of the Qubes
> Manager?
> Or do you want it as a separate application that you can call from the
> manager?

Better a separate application. Then it can be integrated into Qubes
Manager, some command line tools and maybe others.

I'll post it into the devel area in a bit, that way it can be noted, and any other things that people
would like to have added in, for different formats for import can be added in.

Initially I was planning for OVA. Then VMX

Reply all
Reply to author
Forward
0 new messages