/srv/irclogs.ubuntu.com/2017/11/15/#ubuntu-s390x.txt

xnoxcpaelzer, can i fake an ECKD drive with like file loop mounts?16:08
xnoxcpaelzer, to lift raw track data... even though the underlying is just a loop mount.16:08
xnoxin a QEMU kvm, not a z/vm16:08
cpaelzerxnox: ah you have a raw track image and want to load that16:13
cpaelzerxnox: how about dd it onto a spare dasd and providing that to the guest then?16:13
cpaelzerso on host dd to disk16:13
cpaelzerand then add the dasd to the guest16:13
cpaelzerthat is kind of a loop mount, but with a spare dasd instead of /dev/loop16:13
xnoxcpaelzer, i have no dasd at all.16:13
xnoxcpaelzer, i'm in kvm, need to create a raw track data dump. somehow =)16:14
xnoxcpaelzer, because for a z/vm cloud; i need to ship raw track data dump, not a tarball.16:16
cpaelzeroh "inside" kvm16:18
cpaelzernot on the host16:18
cpaelzerI actually don't know16:18
cpaelzerborntraeger: ^^16:18
cpaelzerhca: ^^16:18
borntraegerxnox, cpaelzer, not sure what you are trying to achieve.16:20
borntraegerwhat kind of system do you have and what do you want to do16:20
cpaelzerborntraeger: being inside a KVM guest and having a raw image of track data16:20
cpaelzerborntraeger: being abel to mount it16:20
cpaelzerthat is the case xnox has if I got it right16:20
* cpaelzer feels there is an answer of the "you should know" kind coming16:21
borntraegerwhat raw track image is this? How was it created?16:21
cpaelzerxnox: what was the source ?16:21
xnoxcpaelzer, borntraeger, for normal ubuntu cloud images, we create a empty file, kparxt connect it, create partition table, debootstrap things on it, run zipl, unmount. and that ends up being a cloud image in qcow2 format that is bootable in s390x Ubuntu Openstack.16:22
xnoxcpaelzer, borntraeger - now, for the L1CC (original) / z/VM cloud connector / nova-zvm it needs raw track data. Thus in the past i would ssh into a z/VM16:23
borntraegerSo its an image file for z/VM guests?16:24
borntraegerxnox, still do not get what kind of raw track file you have and how it was created16:26
xnoxand then i would qemu-nbd mount this qcow2 image, dd it onto a dasd drive, re-run zipl, switch the drive into raw track access mode, package that as a file and ship it to glance16:26
xnoxfrom where nova-zvm-driver takes that raw track data file, blasts it onto ECKD dasd drive to provision new z/vms16:26
xnoxhowever, currently launchpad builds everything in containers, and we create qcow2 image statically. And ideally, I should be able to create a raw track data of an eckd drive, without having a physical dasd drive to mangle.16:27
borntraegerso you use a Linux under z/VM with the dasd driver in raw access mode to access the raw tracks after you have filled it with "normal means"16:27
xnoxborntraeger, can nova-zvm-driver use a non-raw-track-data image? but like a regular qcow2/raw iamge?16:27
borntraegerxnox, I have no clue whatsoever about the z/Vm openstack driver16:28
cpaelzerxnox: borntraeger knows everything but likely wants to stay away from nova-zvm things :-)16:28
xnoxborntraeger, currently yes; but ideally i do not want to =/ because my stock build environment has no dasd drives that i can abuse.16:28
xnoxborntraeger, i'm after to qemu-img convert -> raw track data; because surely it should be possible for the linux kernel, and/or userspace construct track data, which when dd'ed onto a dasd drive in raw track mode just "magically works"16:29
xnoxborntraeger, is there a defined data format of what raw track data is?16:30
borntraegerxnox, I am sure that there is some way to construct the track data out of block data16:30
borntraegerxnox, but I do not know16:30
borntraegerxnox, maybe somewhere in the zdsfs fuse tool you find information about the track format16:30
borntraegerxnox, s390tools/libzds/16:31
cpaelzerborntraeger: do you think it would make sense to write to linux-s390 mailing list with that16:32
cpaelzerborntraeger: for the other devs around you to check their toolboxes if one has something that achieves that?16:33
borntraegercpaelzer, yes  maybe.16:33
borntraegerxnox, cpaelzer, wouldnt it be better if z/VM openstack would support a raw image?16:35
cpaelzeroh yes of course16:35
borntraegerthe openstack thing uses xcat, which uses a Linux16:36
xnoxborntraeger, as long as i can force zipl to create the right boot code which would be bootable off dasd....16:36
borntraegerso I would assume that this is possible16:36
borntraegerxnox, you can force all kind of things with zipl16:36
xnoxborntraeger, my understand was that blasting raw image onto dasd, wouldn't end up with the right bootcode. I should test it.16:36
borntraegerzipl.conf has targettype (e.g. CDL)16:37
borntraegerand targetgeometry16:37
xnoxborntraeger, who can i talk to about image formats that the newly rewritten cloud connector supports.16:37
borntraegerand targetblocksize16:37
borntraegerxnox, no idea. its not us in Boeblingen16:37
* xnox somehow thought that zipl for CDL ends up on stuff outside of raw image and somewhere before it in the raw track data, but i guess not.16:37
borntraegerxnox, its on the first track which is smaller than the usual 4k16:38
borntraegerbut when you write it the dasd driver ignores the additional bytes and fakes 4k16:38
xnoxborntraeger, right but the first track is "accesible" by dd when basting things to /dev/dasda which is in non-raw mode. ack.16:40
borntraegeryes16:40
xnoxcool.16:40
borntraegerxnox, "newly rewritten cloud connector" refers to whatever is on z/VM I guess?16:41
borntraegerxnox, for the kvm openstack mpavone should be able to tell you everything16:41
xnoxborntraeger, i believe it refers to the "old xcat thing stuff to do openstack instances in z/vm" but rewritten / renamed / upgraded for newer openstack.16:42
xnoxborntraeger, kvm openstack is all good. we ship cloud images that are usable directly - just add a config drive, and voila.16:43

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