OpenNebula / one

The open source Cloud & Edge Computing Platform bringing real freedom to your Enterprise Cloud 🚀
http://opennebula.io
Apache License 2.0
1.19k stars 472 forks source link

Disk layout of Alpine Linux appliances #5616

Open vholer opened 5 years ago

vholer commented 5 years ago

Disk layout of the Alpine appliances is not ideal, should be just single partition https://github.com/OpenNebula/marketplace/issues/8#issuecomment-438371343:

label: dos
label-id: 0x512515ea
device: /dev/loop1
unit: sectors

/dev/loop1p1 : start=        2048, size=      204800, type=83, bootable
/dev/loop1p2 : start=      206848, size=      262144, type=82
/dev/loop1p3 : start=      468992, size=      579584, type=83
kvaps commented 5 years ago

Same thing with ubuntu >18.04

even worse, because it is using gpt partition table:

ubuntu1804-5.6.0-0.20181019.qcow2

label: gpt
label-id: 848AD1B1-1D5F-401B-A434-EA84F4486685
device: /dev/nbd0
unit: sectors
first-lba: 34
last-lba: 4612062

/dev/nbd0p1 : start=      227328, size=     4384735, type=0FC63DAF-8483-4772-8E79-3D69D8477DE4, uuid=9AF2A094-D88E-442C-9854-3056387ACADC
/dev/nbd0p14 : start=        2048, size=        8192, type=21686148-6449-6E6F-744E-656564454649, uuid=C0335306-930C-4116-87B1-F370DB2F6F60
/dev/nbd0p15 : start=       10240, size=      217088, type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B, uuid=960141A4-CB62-45C5-84B9-D5217E57A152

ubuntu1810-5.6.0-0.20181019.qcow2

label: gpt
label-id: 3429552B-A5EA-4796-8939-A08468C192D1
device: /dev/nbd1
unit: sectors
first-lba: 34
last-lba: 4612062

/dev/nbd1p1 : start=      227328, size=     4384735, type=0FC63DAF-8483-4772-8E79-3D69D8477DE4, uuid=30CD0EE8-2F26-4269-BB0B-F9D4986E6A0D
/dev/nbd1p14 : start=        2048, size=        8192, type=21686148-6449-6E6F-744E-656564454649, uuid=F9A24581-483E-41E6-8615-E4DF46D3F5EA
/dev/nbd1p15 : start=       10240, size=      217088, type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B, uuid=72D64632-6E10-44D1-9064-BCFCE765B49F

Do we support gpt?

vholer commented 5 years ago

For Alpine, we build the images from scratch and we can (more or less) modify the process to match the general user requirements. That's why we have this ticket.

For Ubuntu, we reuse their cloud images https://cloud-images.ubuntu.com/ and only customize them to work with the OpenNebula. Those images aren't perfect (different disk layout or filesystems), but all the functionality for running inside the OpenNebula cloud is there. There are no plans to modify this process right now.

GPT is supported by the growpart tool, no problem with it.

meerkampdvv commented 4 years ago

@vholer i would love to help with the images but i cant find the sources are they Public ?

kvaps commented 4 years ago

@meerkampdvv I've already did this in https://github.com/kvaps/opennebula-images

Generated images can be found on https://marketplace.opennebula.wedos.cloud/

kvaps commented 2 years ago

BTW, I wrote a generator opennebula-images from the official Dockerfiles, unfortunately I have no time to finish it.

The sources can be found here, take a look: https://github.com/kvaps/opennebula-images/tree/da5bcbadbe2915167ef74fde7166ff4d75fb1151/new