/srv/irclogs.ubuntu.com/2023/04/25/#cloud-init.txt

=== esv_ is now known as esv
=== esv_ is now known as esv
holmanbmeena: possibly13:52
holmanbmeena: how did upstreaming the lxd fixes into freebsd go? did those land?13:53
holmanbmeena: I may be trying to figure out how to use freebsd on lxd soon, if so13:53
meenaholmanb: yes. it boots, but so far, the virtio thing remains unfixed13:54
holmanbThe virtio issue is what causes high cpu usage?13:55
holmanbI have cpus to spare for now, I guess13:55
meenayou'll need one to burn, until you disable the virtio_random module13:56
holmanbheh13:57
holmanbDo you have notes you'd be willing to share on how you got you got it set up on lxd?13:58
holmanbI can figure it out if not13:59
holmanbmeena: also, is there anything in particular about pr/2127 that you see needing rebase? 14:00
meenaholmanb: download a qcow image: https://download.freebsd.org/releases/VM-IMAGES/13.2-RELEASE/amd64/Latest/FreeBSD-13.2-RELEASE-amd64.qcow2.xz (13.2 has my fix, so no need to go bleeding edge, but, 14.0 is just around the corner)14:04
meenaimport the image into lxd14:05
meenalaunch, lxd console into it, then login as root with no password14:05
meenasysrc devmatch_blacklist="virtio_random.ko"14:07
meenaand reboot14:07
meenathis still has no cloud-init installed, of course ;)14:08
meenapkg install net/cloud-init-devel14:08
holmanbPerfect, thanks14:12
meenahttps://download.freebsd.org/releases/CI-IMAGES/13.2-RELEASE/amd64/Latest/FreeBSD-13.2-RELEASE-amd64-BASIC-CI.raw.xz this might be better. it already has ssh enabled14:38
* meena is downloading both rn20:14
meenamaybe I could build a packer recipie for how to create an LXD image for FreeBSD?20:15
meenaholmanb: oh, you need to convert the images to qcow2 first20:26
minimalmeena: that's easy assuming you have qemu-img installed: "qemu-img convert file.raw file.qcow2"20:28
meenaminimal: i do21:05
meenahrm, the CI images don't boot21:07
meenai dunno what's going on, but it's not booting for me: https://gist.github.com/c00792c3f9d74cd8b2cd9822e823386521:58
meenaboots now, but cloud-init is waiting for OpenStack to answer…22:17
meenatrying to get lxd-agent compiling on FreeBSD: https://github.com/lxc/lxd/issues/1160322:37
-ubottu:#cloud-init- Issue 11603 in lxc/lxd "compiling lxd-agent for FreeBSD" [Open]22:37
minimalmeena: your earlier problem was that Secure Boot was enabled?23:07
meenaminimal: yeah23:08
meenaI guess once we get images built and signed officially it's no problem, but it's another stumbling stone in bootstrapping23:08
minimalmeena: "cloud-init is waiting for OpenStack to answer" - have you tried creating your image with a reduced set of datasources specified in /etc/cloud/cloud.cfg ?23:09
minimali.e. only LXD23:09
meenaabsolutely not.23:10
meenaI'm mostly just stumbling around blindfolded23:10
meena(will i need lxd-agent running for that to work?)23:10
meenaI guess i could've found out by trying what minimal suggested23:11
meenatomorrow, then.23:12
minimalin /etc/cloud/cloud.cfg (or create a file in /etc/cloud/cloud.cfg.d/) add "datasource_list: LXD"23:12
minimalthen when c-i starts it will only try to use the LXD DataSource, rather than going through the default set of multiple DSes in order23:12
minimalI wouldn't expect you to need lxd-agent for that to work23:13
minimalI've been meaning to figure out how to create LXD images of Alpine myself23:15

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!