/srv/irclogs.ubuntu.com/2016/11/25/#cloud-init.txt

=== gfidente is now known as gfidente|afk
=== shardy is now known as shardy_afk
vans163Anyone know the correct way to use cloud-init with qemu?18:04
vans163If I pass the .iso I created to qemu as -drive then remove it.  I fail to boot up the second time with errors like this  blk_update_request: I/O error, dev fd0, sector 018:04
vans163reading google seems to indicate maybe the cloud image expects that drive to be there18:04
powersjvans163: I have been using something similar to: https://ubuntu-smoser.blogspot.cl/2013/02/using-ubuntu-cloud-images-without-cloud.html18:53
vans163powersj: doing -hda/hdb like that does not allow to pass virtio18:55
vans163im gonna try using -cdrom i guess18:55
vans163or i guess will have to keep the cloud-init.iso always mounted/attached18:55
vans163everytime that vm boots18:55
powersjWell so here is what I end up using, which you can see the virtio cmd: https://gist.github.com/powersj/987069c407c5115acfd72a09ce1b9be918:57
vans163powersj: wil investigate that fully thanks, but that last command to run qemu looks identical to mine. My trouble starts is on the second boot I leave out -drive file=$SEED_FILE,format=raw,if=virtio18:58
powersjvery specific for my use-case of going through cloud configs quickly, but you can play with it18:58
powersjah18:58
vans163do you leave out this line "-drive file=$SEED_FILE,format=raw,if=virtio" on second boot and further?18:58
powersjah second boot? let me try18:59
vans163yea like make the seed.iso, attach it, boot, works. Shutdown QEMu fully, start qemu again the same main disk, BUT leave out "-drive file=$SEED_FILE,format=raw,if=virtio". It does not boot, gives those errors "blk_update_request: I/O error, dev fd0, sector 0"   Do you see these at all?19:00
vans163By default I get 3 of those using the ubuntu xenial 16.04 cloud image19:00
vans163but it does not affect anything19:00
vans163without the $SEED_FILE theres like 10-12 of them, and Ubuntu does not boot19:01
powersjvans163: agreed, seeing same thing19:02
vans163powersj: fails to boot fully too? Gets stuck after those blk_update_request errors?19:04
powersjI wonder if it is stuck waiting for userdata or something like that19:04
vans163ah19:04
powersjvans163: yes just sits there19:04
powersjwhen I added the seed back in it boots as expected like you mentioned19:05
vans163i was going crazy at first, i thought my filesystem was corrupting the image and im using ZFS x.x19:05
powersjha! glad I could at least confirm it for you19:06
vans163yea thanks. so would this be a bug?19:06
vans163im not sure if its local to xenial ubuntu or if itl happen on other images19:06
powersjI'm not sure, I don't know enough if there is some setting you would need to disable or mark on the cloud-img I'm using to allow 2nd boot19:06
vans163i see. I think il just run with always having the seed attached for now19:07

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