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
Feature request: Ability to configure a filesystem label for virtual floppy #6587
Comments
Hi! I'm new to Packer and was also looking for a way to use the QEMU builder with a Ubuntu cloud image as backing file. Is there a specific reason why you want to use floppy? I found that
Where the seed directory contains the meta-data and user-data files. However, I tried using a seed image (created with
Tested with the following images: |
@simonklb I didn't know about |
@simonklb I tried nocloud-net this morning and the problem is that Centos7 still uses cloudinit-0.7.9 which doesn't support the nocloud-net datasource or the
It wasn't introduced until version 17.1 |
Ah, that explains it. I believe that prior to this change you could get the cloud-config by simulating the EC2 metadata service on 169.254.169.254. Not sure if it's possible to achieve this using Packer though. Otherwise I guess you are stuck with having to mount the seed image using Would love to hear other solutions to this if there are any available! |
{
"floppy_files": [
"data/qemu/user-data",
"data/qemu/meta-data"
],
"floppy_label": "cidata"
} |
Oh yes this looks like it was solved in #8099 and just left off the closure notes; thanks for pointing this out. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Follow up to: #3015
Use Case
I want to be able to build images based on existing cloud Images:
These images come with
cloud-init
pre-installed, which allows an admin to set a default password or SSH authorized key at boot time. This "user-data" can be supplied in various ways,I want to use either the NoCloud or the ConfigDrive datasources, in conjunction with the Packer Qemu builder.
With these datasources, the user-data can be supplied on a vfat formatted floppy disk drive attached to the VM, but it needs to have a specific filesystem label:
cidata
for NoCloud: https://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.htmlconfig-2
for ConfigDrive v2: https://cloudinit.readthedocs.io/en/0.7.9/topics/datasources/configdrive.html#version-2I'd like to be able to choose the label that is given to the Packer floppy drive. E.g.
Workarounds
Meanwhile, there are couple of workarounds:
Neither of these Cloud Init DataSource mechanisms check the floppy disk filesystem label.
System Info
The text was updated successfully, but these errors were encountered: