Cloud-init FreeBSD

FlorinMarian

Well-Known Member
Nov 13, 2017
88
4
48
29
#Please move to correct cattegory, I was asleep when I wroted here.

Hi, guys!
I use cloud-init as KVM template source and it works very well with Linux distributions buth with FreeBSD (from multiple sources) I encounter this problem:
Code:
 /usr/bin/qemu-img resize -f qcow2 /home2/images/1000/vm-1000-disk-0.qcow2 5630252228149248
qemu-img: Failed to grow the L1 table: File too large

df -h
Code:
root@s1:~# df -h
Filesystem                      Size  Used Avail Use% Mounted on
udev                             16G     0   16G   0% /dev
tmpfs                           3.2G   25M  3.1G   1% /run
/dev/md2                         20G  4.4G   15G  24% /
tmpfs                            16G   46M   16G   1% /dev/shm
tmpfs                           5.0M     0  5.0M   0% /run/lock
tmpfs                            16G     0   16G   0% /sys/fs/cgroup
/dev/mapper/vg-data             385G   85G  280G  24% /var/lib/vz
/dev/nvme1n1p1                  511M  160K  511M   1% /boot/efi
/dev/mapper/local_hdd-data_hdd  3.6T   76G  3.4T   3% /home2
/dev/fuse                        30M   28K   30M   1% /etc/pve
tmpfs                           3.2G     0  3.2G   0% /run/user/0

VM Info
Code:
root@s1:~# qm config 1000
agent: 1
boot: c
bootdisk: virtio0
cicustom: user=local:snippets/cloudinit-9009.yaml
cipassword: **********
ciuser: root
cores: 1
hotplug: disk,network,usb
ide2: local_hdd:1000/vm-1000-cloudinit.qcow2,media=cdrom,size=4M
ipconfig0: ip=dhcp
memory: 1024
name: vps.server.com
scsihw: virtio-scsi-pci
serial0: socket
smbios1: uuid=634085e3-706d-4666-b752-ff1c6e9a0a15
sockets: 1
vcpus: 1
vga: qxl
virtio0: local_hdd:9009/base-9009-disk-0.raw/1000/vm-1000-disk-0.qcow2,size=5243776K
vmgenid: 9878c920-4c78-4479-aca5-824f44896be3

Any idea?
 
Last edited:
/usr/bin/qemu-img resize -f qcow2 /home2/images/1000/vm-1000-disk-0.qcow2 5630252228149248
if I read qemu-img(1) correctly that would result in a 5(.00066) Petabyte image - is this your intention?

Haven't tried creating such a large qcow2 file myself - but would guess that it could be problematic to not run into issues (at least with the underlying filesystem) - see also the qemu-docs on qcow2: https://github.com/qemu/qemu/blob/master/docs/interop/qcow2.txt

I hope this helps!
 
  • Like
Reactions: FlorinMarian
if I read qemu-img(1) correctly that would result in a 5(.00066) Petabyte image - is this your intention?

Haven't tried creating such a large qcow2 file myself - but would guess that it could be problematic to not run into issues (at least with the underlying filesystem) - see also the qemu-docs on qcow2: https://github.com/qemu/qemu/blob/master/docs/interop/qcow2.txt

I hope this helps!
NVM, that was a try to use .qcow images provided by FreeBSD directly, I've create my own templates and now everything is fine.
Thank you for you work!
 
  • Like
Reactions: Stoiko Ivanov
NVM, that was a try to use .qcow images provided by FreeBSD directly, I've create my own templates and now everything is fine.
Thank you for you work!
Hello, did you manage to make FreeBSD work cloud-init and qemu guest agent ? i just dont get it to install cloud-init on clean freebsd os
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!