/srv/irclogs.ubuntu.com/2018/10/06/#ubuntu-server.txt

plmHi all16:34
plmpeople, I would like to run Ubuntu ARM 18.4 in a VM, what is the best choice?16:34
blackflow!crosspost16:34
ubottuPlease don't ask the same question in multiple Ubuntu channels at the same time. Many helpers are in more than one channel and it's not fair to them or the other people seeking support.16:34
plmblackflow: I need no GUI, so is just server, because this I post here too. Sorry16:36
blackflowplm: so you want ARM on non-ARM harware?16:37
blackflowqemu. in fact, always qemu. whether it uses kvm or not, is a different question. :)16:37
plmblackflow: yes.16:37
plmblackflow: actually I have the 14.4 running on qemu16:38
plmblackflow: I dont know how that image was made. But I need a newer version of python16:38
plmblackflow: I tryed a ppa, works installing a new python version (python3.6), but erros when installing python3.6-venv16:39
plmblackflow: I tryied too to upgrade from 14.4 directaly to 18.4, but have errors16:39
blackflowyeah go through 16.04 first16:40
blackflowbut be aware there's plenty of radically different stuff now, since 14.0416:40
blackflowas for your actual problem not sure I understand it. and personally I have zero exp. with ARM. Was jsut saying that for any virtualization solutions, same arch or cross arch, qemu is your tool of choice.16:41
plmblackflow: ok. I will to try go to 16.4 and after to 18.4. Will try that now.16:41
plmblackflow: all right, using qemu =D16:41
plmblackflow: hey16:44
plmblackflow: sorry. I did to you a wrong information.16:44
plmI tried update  14.4 to 16.4 and I have error too, but...16:44
plmblackflow: I tried again, without apt-get -f dist-upgrade, but just install the new python version (python3.5) and works16:45
plmblackflow: 16.4 dont have python 3.616:45
plmso I will to try chances sources.list to install 3.516:45
plmand after installed I will change sources.list to use bionic, and try apt-get install python3.616:46
blackflowplm: yeah that's totall not advisable. don't install packages from different releases.16:47
blackflow*totally16:47
plmblackflow: was the unique form to hace success16:47
plmupagrade 14.4 to 16.4 I have error16:47
blackflowwhat error?16:47
plmblackflow: moment, I will try again and post here the error.16:48
plmblackflow: the qemu is very slow, just wait more a moment =D16:57
blackflowyou can post it, someone might help, I have to step out for a while17:01
plmblackflow: :(17:05
plmblackflow: all right17:05
plmblackflow: anyway, thanks17:05
=== not_phunyguy is now known as phunyguy
plmblackflow: are yoy there? This is the error doing upgrade from 14.4 to 16.4:17:32
plm/var/lib/dpkg/info/debconf.prerm: 12: /var/lib/dpkg/info/debconf.prerm: pyclean: not found17:32
plmdpkg: warning: subprocess old pre-removal script returned error exit status 12717:32
plmdpkg: trying script from the new package instead ...17:32
plmblackflow: complete log error: http://dpaste.com/0XQF5PZ17:34
plmanyone more can help me with this upgrade error?17:36
_KaszpiR_pycompile: not found17:42
plm_KaszpiR_: yes, I see that.17:42
_KaszpiR_https://stackoverflow.com/questions/30962402/dpkg-error-pycompile-not-found17:42
plm_KaszpiR_: I did *exactally* that that thared recommend, and not works17:43
plm_KaszpiR_: sudo apt-get  -f install; sudo dpkg --configure -a; sudo apt install -f --reinstall python3-minimal17:44
plm_KaszpiR_: I tried too that alternative above there17:44
TJ-plm: see if there is a file in the system already with "dpkg -S pyclean" and "dpkg -S pycompile"17:44
plmTJ-: all right. Please, give me a momento, I crating that scenario again.17:46
TJ-plm: it's possible the files are there but they have a shebang line that refers to an executable that is missing (such as the python 2.x vs 3.x issue)17:47
plmTJ-: all right. If necessary, and better to upgrade from 14.4 to 16.4, I can remove any packages, and after upgraded to 16.4, install again. Anyway, please, wait, I creating that scenario again to do that commands that yuy paste me.17:50
plmTJ-: more some minutes =D18:21
plmTJ-: done18:26
plmTJ-: root@mintboxa:~# dpkg -S pyclean18:27
plmdh-python: /usr/share/debhelper/autoscripts/prerm-pypyclean18:27
plmTJ-: python-minimal: /usr/bin/pycompile18:27
plmpython: /usr/share/debhelper/autoscripts/postinst-pycompile18:27
plmTJ-: there are more lines. Complete log is here: http://dpaste.com/174STZ618:28
plmTJ-: and now, what I need to do?18:28
TJ-plm: what does "head /usr/bin/pyclean" report?18:30
TJ-plm: first line only - the shebang18:30
plmTJ-: http://dpaste.com/37MF6BP18:31
plmTJ-: root@mintboxa:~# head /usr/bin/pyclean18:31
plm#! /usr/bin/python18:31
plm# -*- coding: UTF-8 -*- vim: et ts=4 sw=418:31
plmTJ-: I need to change that "#! /usr/bin/python"?18:34
TJ-plm: no, I'm trying to check on what to expect. What does "readlink -e /usr/bin/python" report?18:36
plmTJ-: root@mintboxa:~# readlink -e /usr/bin/python18:38
plmroot@mintboxa:~#18:38
TJ-plm: also check for "head /usr/bin/pycompile" and use readlink -e on what it shows, too. Ensure both point to executables18:38
plmroot@mintboxa:~# head /usr/bin/pycompile18:38
plm#! /usr/bin/python18:38
plm# -*- coding: utf-8 -*- vim: et ts=4 sw=418:38
TJ-plm: what does "file /usr/bin/python" report ?18:38
plmroot@mintboxa:~# readlink -e /usr/bin/pycompile18:38
plm/usr/bin/pycompile18:38
plmroot@mintboxa:~#18:38
plmroot@mintboxa:~# file /usr/bin/python18:39
plm/usr/bin/python: ERROR: cannot open `/usr/bin/python' (No such file or directory)18:39
plmroot@mintboxa:~#18:39
TJ-plm: there is your problem18:39
TJ-plm: what does "ls -l /usr/bin/python*" report? It might just be a missing symlink18:39
plmTJ-: there is no python.18:39
TJ-plm: there should be!18:40
plmTJ-: http://dpaste.com/2JFK0GH18:40
plmTJ-: many lines, I paste ^18:40
TJ-plm: so there is both python2.7 and python3.4 installed but nothing is symlinking from /usr/bin/python. Let's fix that manually with "sudo ln -s python2.7 /usr/bin/python"18:41
TJ-plm: now your upgrade problems should be solved18:41
plmTJ-: =D Trying again apt-get -f dist-upgrade18:42
plmTJ-: debconf pass =D  upgrading...18:45
plmTJ-: still upgrading. Is possible to give more power to qemu? Qemu is very slow :(18:53
TJ-plm: shouldn't be if you're using KVM hardware accelearion18:57
TJ-plm: unless it needs more cores or more RAM of course18:58
plmTJ-: this is my qemu start.sh http://dpaste.com/3GRCB9Z18:59
plmTJ-: There that ai put more RAM/core dedicated to qemu, or qemu get automatically from my system. My ssytem has 12GB RAM and many cores18:59
plmI think is that "-m 1024" that is 1024MB, right?19:02
TJ-plm: yes19:03
plm"-smp <NUMBER> - Specify the number of cores the guest is permitted to use. The number can be higher than the available cores on the host system"19:04
plmI will to try use after upgrade, the "-smp 4" =D19:04
TJ-plm: it's an ARM cortex, so can't expect it to be fast. But, is it I/O bound to a slow device such as SDcard?19:04
plmTJ-: no, is in MY SATA HD, very fast19:05
TJ-plm: ok, what's the device ?19:06
plmTJ-: I think is RAM just 1024 the problem, and maybe without -smp param, it get just one core.19:06
plmTJ-: Disk /dev/sda: 931,5 GiB, 1000204886016 bytes, 1953525168 sectors19:06
plmTJ-: Model Family:     Western Digital Blue19:07
plmDevice Model:     WDC WD10EZEX-00BN5A019:07
TJ-plm: it's not SATA, the VM says root=/dev/mmcblk0p1 -- mmc is likely an SD card19:07
plmTJ-: I dont know why that "root=/dev/mmcblk0p1" I have just one disc in my PC19:08
TJ-plm: is it mapping the boot files inside the VM guest as an SD card then?19:08
TJ-plm: Ah, further on I see "-sd rootfs.img"19:09
TJ-plm: you can use 'iotop' on the host to see if there's a bottleneck there.19:10
plm13391 be/4 root        3.47 K/s  114.65 K/s  0.00 %  1.00 % qemu-system-arm -M realview-pb-a8 -cpu cortex-a8 -m 1024 -ke~.1.1:255.0.0.0:armqemu -sd rootfs.img -initrd initrd.img -usb19:11
plmTJ-: ^19:11
TJ-plm: maybe it is doing full emulation - not providing any hardware support like KVM does on x86 ?19:13
plmpi@deskdev-pi:~$ cat /proc/cpuinfo  | grep -i kvm19:13
plmpi@deskdev-pi:~$19:13
plmTJ-: ^19:13
TJ-plm: there you go then; I know there is kvm support for HYP on ARM - not sure if it is baked in though or you need external (self-built) binaries for that19:17
TJ-plm: i see 'kvmtool' is in the Ubuntu archives, so you could install that and use "lkvm" to run the guests19:19
TJ-plm: you might also check the kernel was built with CONFIG_KVM19:21
plmTJ-: in the host: root@deskdev-pi:~# apt-cache search kvmtool19:21
plmkvmtool - Native Linux KVM TOOL19:21
plmjust install kvmtool in the host?19:21
plmand how I call "lkvm" for the qemu guests?19:21
TJ-plm: well not 'just' - that's the userspace handler. You need to ensure the CPU/kernel support HYP mode and can load the kvm module19:21
plm"CONFIG_KVM" are there easy waty (cat) to check?19:22
TJ-plm: you'd need to install kvmtool and "man lkvm"19:22
plmok19:22
TJ-plm: "grep KVM /boot/config-$(uname -r)" usually19:22
plmCONFIG_KVM_GUEST=y19:23
plmmany lines, will put on dpaste19:23
plmTJ-: http://dpaste.com/0Z4WB3H19:23
TJ-plm: the host is ARM yes?19:25
plmTJ-: no, is a x86, intel19:25
plmmodel name: Intel(R) Core(TM) i5-3330 CPU @ 3.00GHz19:26
TJ-Oh! I thought you said it was an ARM coretex19:26
plm3 cores19:26
plmsorry if I say wrong19:26
plmthe guest (qemu) are running the arm19:26
TJ-so everything is as expected. you cannot get hardware acceleration (KVM) support for another foreign architecture like ARM19:26
plmohh19:27
TJ-so qemu is running in software emulation mode, which is why it is slow19:27
plmmut if my qemu was runing a x86, I can get acceleration, right?19:27
plmbut maybe confifgure more RAM and -smp 3 help =D19:27
TJ-when you run a guest of the same architecture as the host, qemu can use KVM to allow the host CPU to safely execute most instructions with 0 delay. With a different arch, the host has to simulate every machine instruction19:28
plmTJ-: Understood.19:28
plmTJ-: well, I think is finishing the upgrade to 16.4. after I will upgrade to 18.4 =D19:29
plmTJ-: as python problem was fixed, to 18.4 will have no problems, right?19:29
TJ-That's one reason I like the PC Engines APU series - based on x86 AMD CPUs - and designed to be routers but can support much more. I've got SSD in one, as well as SD-card, with 4 gigabit ports, and 2 spare mini-pcie slots19:30
TJ-plm: I'd hope so :)19:30
plmTJ-: please, what model did you bought? I would like to check price on the internet =D19:42
plmTJ-: finished upgrade. doing a reboot to check if boot ok19:42
plmTJ-:19:47
plmTJ-: error after reboot mounting filesystem19:48
plmTJ-: I will paste de image becouse is not possible to copy from qemu window19:49
plmTJ-: https://paste.pics/3V0PK19:50
plmTJ-: are you there19:50
plm?19:50
plmTJ-: ping =D19:57
TJ-plm: sorry, was at dinner. APU2C4  https://pcengines.ch/apu2c4.htm20:05
plmTJ-: hey =D20:06
TJ-plm: with this case https://pcengines.ch/case1d2bluu.htm20:07
plmI will check later =D Did you see my image with erros?20:07
plm*picture20:07
plmTJ-: I just did reboot after upgraded20:08
TJ-plm: was that when running the guest with qemu?20:15
plmTJ-: yes20:18
plmTJ-: that picture is just of guest. I have the qemu running on host x86 linux20:18
TJ-plm: the only causes of those messages is in containers, not virtual machines20:18
plmTJ-: look a new picure20:18
TJ-plm ^^^ that I could find, so I'm not sure what is going on there.20:19
plmTJ-: https://i.paste.pics/3V0TM.png20:19
TJ-plm: "failed to mount tmpfs at/sys/fs/cgroup" suggest sysfs isn't mounted at /sys/20:20
TJ-plm: so I suspect something wrong with how systemd is starting up, or on some config it is relying on20:21
plmTJ-: but before upgrade boot ok20:21
plmwas the upgrade make that problem, right?20:21
plmmaybe to do something before reboot, after upgraded?20:22
TJ-plm: I'd doubt it - this shouldall happen automatically20:22
plmshit :(20:22
plmthat was my hope =D20:23
plmAre there something to do to change that, maybe before booting?20:23
TJ-plm: not sure what is going on. systemd (the init daemon that runs as PID 1) has internal logic to mount sysfs, so maybe that is there but it fails to create cgroup part - there isn't enough info. Can you boot it with "systemd.log_level=debug" on the guest kernel's command line ?20:38
plmTJ-: yes20:41
plmTJ-: qemu-system-arm: -usb: Could not open 'systemd.log_level=debug': No such file or directory20:42
plmTJ-: I did:20:43
TJ-plm: you might want to add a serial console to the guest so you can capture the text output, rather than trying to screenshot what may be a LOT of output20:43
plmfunction run_qemu ()20:43
plm{20:43
plm        qemu-system-arm -M realview-pb-a8 -cpu cortex-a8 -m 1024 -kernel uImage.realview-vm.kernel -net  nic -net tap,ifname=tap0 -append "root=/dev/mmcblk0p1 rootwait rw ip=${QEMU_IP}:${IP}:${IP}:255.0.0.0:armqemu" -sd rootfs.img -initrd initrd.img -usb systemd.log_level=debug20:43
plm}20:43
TJ-plm: !!!! silly20:43
TJ-plm: you have to add inside the quotes for the -append "..." !!20:43
plmohh20:43
plmright20:43
plmTJ-:         qemu-system-arm -M realview-pb-a8 -cpu cortex-a8 -m 1024 -kernel uImage.realview-vm.kernel -net  nic -net tap,ifname=tap0 -append "root=/dev/mmcblk0p1 rootwait rw ip=${QEMU_IP}:${IP}:${IP}:255.0.0.0:armqemu systemd.log_level=debug" -sd rootfs.img -initrd initrd.img -usb20:44
plmTJ-: I tried to run with that conf above ^, but not show more error than last time20:45
TJ-plm: so it is failing VERY early then20:46
plmplm: :( I was take a look on this: https://github.com/nongiach/arm_now]20:47
plmhttps://github.com/nongiach/arm_now20:47
plmTJ-: what do you think ^?20:47
plmubuntu 18.4 on that ^20:48
plmarm_now works here, but is not possible install python, and other apps :(20:56
TJ-plm: are you doing exploit testing? It doesn't seem ideal for much else20:56
plmTJ-: you are rith, I need a full system20:56
plmTJ-: look this :20:56
plmTJ-: https://gist.github.com/Liryna/1071075120:57
plmThat ^ I think will works right? I see arm_now in this url, but as comment, o the bottom of page20:57
TJ-plm: you could boot the guest as far as the end of the initial ramdisk init script, before it calls the systemd init on the real rootfs - that should give you a busybox shell to investigate from. in that -append="..." add "break=init"20:58
plmTJ-: doing now, moment21:00
plmTJ-: qemu-system-arm -M realview-pb-a8 -cpu cortex-a8 -m 1024 -kernel uImage.realview-vm.kernel -net  nic -net tap,ifname=tap0 -append "root=/dev/mmcblk0p1 rootwait rw ip=${QEMU_IP}:${IP}:${IP}:255.0.0.0:armqemu systemd.log_level=debug break=init" -sd rootfs.img -initrd initrd.img -usb21:01
plmTJ-: pi@deskdev-pi:~/tmp/tmp/vm-cortex_a8_omap3$ sudo ./qemu_start.sh21:02
plmConfiguring NAT21:02
plmTUNSETIFF: Device or resource busy21:02
plmqemu-system-arm: -net tap,ifname=tap0: could not configure /dev/net/tun (tap0): Device or resource busy21:02
plmTJ-: sorry21:03
plmtwo qemu session21:03
TJ-plm: I was about to say that :)21:03
plmTJ-:21:04
plmworks21:04
plmBusysbox line21:04
plmTJ-: (iniramfs)21:04
TJ-plm: right, so "mount" - is there a sysfs at /sys ?21:05
plmhttps://paste.pics/3V0YL21:06
plmno21:06
plm"mount" show just "mount: no  /proc/mounts"21:07
plmTJ-: ^21:07
TJ-plm: hmmm21:07
TJ-plm: "cat /proc/mounts" ?21:07
plmTJ-: https://paste.pics/3V0YW21:08
TJ-plm: so it's not pivoted yet.. so we need to track down where the rootfs is right now. do "ls -la" and show me21:09
plmTJ-: https://paste.pics/3V10121:10
TJ-plm: ahhh, under /root/ I think. Show me "ls -la /root/" please21:11
plmTJ-: https://paste.pics/3V10821:11
TJ-plm: aha! there's the rootfs! OK "cat /root/proc/mounts"21:12
plmTJ-: https://paste.pics/3V10G21:13
TJ-plm: we're making progress, there's the sysfs. lets see what is in it "ls -l /root/sys/fs/"21:15
plmTJ-: https://paste.pics/3V10T21:17
TJ-plm: so the node is there but nothing else in it yet. So it must be systemd's job to mount the cgroup fs there, and then add its other file-systems.21:18
TJ-plm: I'm not sure why it isn't doing that then - the initrd is preparing the ground correctly21:18
plmhmm21:19
TJ-plm: try getting the init to continue to boot to systemd with "exit"21:19
plmok21:19
plmTJ-: https://paste.pics/3V11221:19
TJ-plm: I wonder if this "autofs4" is the root cause?21:20
plmI dont know :(21:20
TJ-plm: restart the guest - let it drop to the shell again, then try "modprobe autofs4"21:21
plmok21:21
TJ-plm: I suspect that will fail with the same error and so we'll need to search the file-system for it. I'm wondering if it is missing21:21
plmTJ-: done, and now?21:21
plm"modprobe autofs4" just pass to next line21:22
TJ-that suggests it loaded!21:22
TJ-try "lsmod | grep autofs"21:22
plm"exit"?21:22
plmok21:22
TJ-plm: that ought to show the module is loaded21:22
plmdont have lsmod21:22
plmlsmod: not found21:22
plm"lsmod: not found"21:22
TJ-oh phooey of course!21:22
TJ-because we're not in the real rootfs yet21:23
plmTJ-: "/bin/sh: lsmod: not found"21:23
plmok21:23
TJ-plm: this may work: "/root/sbin/lsmod | grep autofs"21:23
plmTJ-: https://paste.pics/3V11T21:24
TJ-plm: lol - so we got the command to work but it expects /proc/modules, and we're at /root/proc/modules! let's do it manually: "grep autofs4 /root/proc/modules"21:28
plmTJ-: "grep autofs4 /root/proc/modules" just pass to next line21:29
TJ-plm: so no match then.21:29
TJ-plm: ok, lets try "find /root/lib/modules -name 'autofs4.ko' "21:30
plm"/root/lib/modules" do not exists21:30
plm"/root/lib/modprobe.d" exists21:30
TJ-plm: eeek, that'd cause the problems alright!21:31
plmhmmm21:31
TJ-plm: show me "ls /root/lib/modules/"21:31
plm:)21:31
TJ-plm: all the modules for each kernel version should be under that path21:31
TJ-plm: which suggests the dist-upgrade didn't complete correctly21:32
plm"ls /root/lib/modules/" show "not file or directory"21:32
plmTJ-: I did "apt-get -f dist-ugprade"21:32
TJ-plm: now I'm really concerned; that is very broken21:32
plmTJ-: after that no error show for me21:33
TJ-plm how about "find /root/lib/"21:33
TJ-plm: I want to see what IS found21:33
plm"find /root/lib/" show many many lines, need to paste?21:33
TJ-plm: I think you need to fix this using qemu-static and a chroot, not a virtual machine.21:33
TJ-plm: screenshot what you can see, that'll give me an idea21:34
plmTJ-: "find /root/lib/" show more than a page, I cant copy more than a page, becouse past in qemu window21:34
plmok21:34
TJ-plm: show me the last page21:34
TJ-plm: actually no, hang on21:34
TJ-plm: show me this instead: "find /root/lib -type d"21:34
plmTJ-: https://paste.pics/3V13621:34
plmTJ-: https://paste.pics/3V139 "find /root/lib -type d"21:35
plmTJ-: https://paste.pics/3V13G "find /root/lib -type d" - page 121:36
TJ-plm: can you remind me of the content of the script on the host that starts qemu?21:36
plmTJ-: qemu-system-arm -M realview-pb-a8 -cpu cortex-a8 -m 1024 -kernel uImage.realview-vm.kernel -net  nic -net tap,ifname=tap0 -append "root=/dev/mmcblk0p1 rootwait rw ip=${QEMU_IP}:${IP}:${IP}:255.0.0.0:armqemu systemd.log_level=debug break=init" -sd rootfs.img -initrd initrd.img -usb21:37
plmTJ-: function run_qemu ()21:37
plm{21:37
plmqemu-system-arm -M realview-pb-a8 -cpu cortex-a8 -m 1024 -kernel uImage.realview-vm.kernel -net  nic -net tap,ifname=tap0 -append "root=/dev/mmcblk0p1 rootwait rw ip=${QEMU_IP}:${IP}:${IP}:255.0.0.0:armqemu systemd.log_level=debug break=init" -sd rootfs.img -initrd initrd.img -usb21:37
TJ-plm: the problem seems to be there are no kernel (modules) installed, which means the linux-image-$VERSION-generic packages are missing21:37
plmhmm21:37
plmIs possible to copy from original qemu image?21:37
TJ-plm: ahhh, there is the problem! you're loading the kernel image external to the rootfs, so you've not installed the matching kernel modules21:37
TJ-plm: you need the modules that were built with that kernel ("uImage.realview-vm.kernel") so the versions match21:38
plmTJ-: http://dpaste.com/0MCCHK121:38
TJ-plm: it's not a 'true' virtual machine21:38
plmthis is complete start.sh qemu ^21:38
plmhmm21:39
TJ-plm: as in you're providing the kernel and initrd so the OS in the rootfs doesn't have them, and so it likely doesn't even have access to the correct packages that contain the modules21:39
plmTJ-: but how before upgrade that works?21:39
TJ-plm: when the system was 14.04 this didn't matter because the init system was upstart and it didn't try to insmod any kernel modules. But systemd expects to be able to21:40
plmTJ-: pi@deskdev-pi:~/tmp/tmp/vm-cortex_a8_omap3$ ls21:40
plminitrd.img  qemu_start.sh  rootfs.img  uImage.realview-vm.kernel21:40
plmpi@deskdev-pi:~/tmp/tmp/vm-cortex_a8_omap3$21:40
plmunderstood21:41
TJ-plm: the OS inside the rootfs has no control over its boot device, its kernel, or its initial ramdisk21:41
plmwhat we can to do to fix that?21:41
plmTJ-: how is possible to fix that?21:42
TJ-plm: usually the OS installs the linux-image-$VERSION-generic (contains kernel + modules) and linux-headers-$VERSION-generic (contains files required to build other modules for that  kernel) and the modules are stored at /lib/modules/$VERSION/ - but your rootfs is mssing all those21:42
plmTJ-: are there something to do in qemu config, like as, I will start again 14.4 and upgrade again to 16.421:43
TJ-plm: you need to find the built modules matching that kernel you are using, then install them into the rootfs at /lib/modules/$VERSION/  and then run "depmod --all" to fill the module cache21:43
TJ-plm: with the external kernel/initrd there's not a lot you can do - they are not Ubuntu kernels21:44
plmTJ-: now, or before upgrade to 16.4?21:44
plmhmm21:44
plmTJ-: so, are there no solution for this case?21:44
TJ-plm: is there not an Ubuntu kernel image that you can use?21:44
plmplm: I can use any kernel.21:44
plmbut that is what I have21:45
TJ-plm: where did you get that uImage.realview-vm.kernel ?21:45
TJ-plm: because that's where you would need to get the matching modules / headers21:46
plmplm: I dont know, this are here many years, i think :(21:46
plmTJ-: I dont know, this are here many years, i think :(21:46
TJ-plm: is that guest image every run on real hardware, or always as a virtual machine?21:48
plmhmm21:49
plmTJ-: always ion VM21:49
plmTJ-: just after i complete my python app, I generate a package in this arm VM and after send to run in a real armv721:50
TJ-plm: ok, so you could change things then. I'd suggest installing qemu-user-static and binfmt-support on the host, loop-mounting that rootfs and using qemu-user-static to chroot into it21:50
plmall right, doing now21:51
TJ-that package contains "/usr/bin/qemu-arm-static" which you should be able to call on (automatically if you install binfmt-support)21:52
plmTJ-: binfmt-support already installed and now I installed the "qemu-user-static"21:52
plmTJ-:  and now?21:52
plm"loop-mounting that rootfs and using qemu-user-static to chroot into it" how to do that?21:52
TJ-plm: hmm, it is a while since I had to do this, can't recall all the steps now21:52
plmTJ-: "mount -o loop rootfs.img /mnt/rootfs"21:53
plm?21:53
plmmount -o loop rootfs.img /mnt/rootfs21:53
plmhttps://stackoverflow.com/questions/75862/mount-rootfs-on-loopback21:53
TJ-plm: "sudo mkdir /target" then "sudo chroot /target /bin/bash" - if that works you'll be running the *ARM* binaries21:53
plmok21:53
TJ-plm: oh yeah, mount loop first!!!21:53
plmTJ-: I will stop that lat vm busibox, ok?21:54
TJ-plm: "sudo mkdir /target", "sudo mount -o loop rootfs.img /target", then  "sudo chroot /target /bin/bash" - if that works you'll be running the *ARM* binaries21:54
TJ-plm: tes21:54
TJ-yes21:54
plmok21:54
plmpi@deskdev-pi:~/tmp/tmp/vm-cortex_a8_omap3$ sudo mount -o loop rootfs.img /target21:55
plmmount: wrong fs type, bad option, bad superblock on /dev/loop0,21:55
plm       missing codepage or helper program, or other error21:55
plmTJ-: ^21:55
plmoh21:55
TJ-plm: hmm, it is ext4 isn't it?21:56
TJ-plm: maybe it's due to the OMAP - is it big-endian or little-endian?21:56
plmTJ-: good question21:56
plm:)21:56
plmI think is little endiar21:56
plmcortex a8 (armv7)21:57
TJ-plm: "file rootfs.img"21:57
plmpi@deskdev-pi:~/tmp/tmp/vm-cortex_a8_omap3$ file rootfs.img21:57
plmrootfs.img: DOS/MBR boot sector; partition 1 : ID=0x83, active, start-CHS (0x0,32,33), end-CHS (0x17e,113,51), startsector 2048, 6141952 sectors21:57
plmTJ-: ^21:57
TJ-plm: hmmm, not much help was it!21:57
TJ-plm: it looks like a raw disk image though, mentioning partitions, so you need to do "sudo losetup --partscan /dev/loop0 rootfs.img"21:58
TJ-plm: then you should have some /dev/loop0pX nodes, probablly just loop0p1 ?21:58
plmpi@deskdev-pi:~/tmp/tmp/vm-cortex_a8_omap3$ sudo losetup --partscan /dev/loop0 rootfs.img21:59
plmpi@deskdev-pi:~/tmp/tmp/vm-cortex_a8_omap3$21:59
plmpi@deskdev-pi:~/tmp/tmp/vm-cortex_a8_omap3$ ls /dev/loop0p121:59
plm/dev/loop0p121:59
plmYes21:59
TJ-plm: yay! so then "mount /dev/loop0p1 /target"21:59
TJ-with 'sudo' of course21:59
plmdone22:00
plm=D22:00
plmmounted22:00
plmTJ-: ^22:00
TJ-plm: OK, acid test now. "sudo chroot /target /bin/bash" - if this works are you get a root shell (# not $ prompt) then it worked22:02
TJ-s/are/and/22:02
plmpi@deskdev-pi:~$ sudo chroot /target /bin/bash22:02
plmchroot: failed to run command ‘/bin/bash’: No such file or directory22:02
plmTJ-: ^22:03
plmpi@deskdev-pi:~$ sudo chroot /target22:03
plmchroot: failed to run command ‘/bin/bash’: No such file or directory22:03
TJ-plm: OK, check if one exists first: "ls /target/bin/bash"22:03
plmpi@deskdev-pi:~$ ls /target/bin/bash22:03
plm/target/bin/bash22:03
plmTJ-: yes, exists22:03
TJ-plm: now we'll check it is ARM format: "file /target/bin/bash"22:03
plmTJ-: pi@deskdev-pi:~$ file /target/bin/bash22:04
plm/target/bin/bash: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 2.6.32, BuildID[sha1]=3b053d97ab6f0b39d06f6a7dc204f5398b29cb68, stripped22:04
TJ-plm: good, so the problem here then must be qemu-arm-static not being called22:05
plmTJ-: "qemu-user-static" was what you say to me install22:07
plm"qemu-arm-static" do not exists22:07
TJ-plm: "pastebinit <( update-binfmts --display | grep -C 6 qemu-arm )"22:07
plmTJ-: pi@deskdev-pi:~$ pastebinit <( update-binfmts --display | grep -C 6 qemu-arm )22:08
plmhttp://paste.ubuntu.com/p/VfCfMQRFFH/22:08
TJ-so they're there and installed22:08
plmTJ-: root@deskdev-pi:~# apt-cache search qemu-arm-static22:09
plmroot@deskdev-pi:~#22:09
plmroot@deskdev-pi:~# apt-cache search qemu-user-static22:09
plmqemu-user - QEMU user mode emulation binaries22:09
plmqemu-user-static - QEMU user mode emulation binaries (static version)22:09
plm"qemu-user-static" already installed22:09
TJ-it' so long since I needed to do this I can't recall all the nuances, but everything looks correct22:10
plmTJ-: maybe change in the /target to have a bash22:12
plmTJ-: pi@deskdev-pi:/target$ ls22:12
plmbin  boot  dev  etc  home  lib  lost+found  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var22:12
plmpi@deskdev-pi:/target$22:12
TJ-plm: show me "ls /proc/sys/fs/binfmt_misc"22:13
plmTJ-: on the target ou host?22:13
plmpi@deskdev-pi:~$ ls /proc/sys/fs/binfmt_misc22:13
plmcli  jarwrapper  python3.5  qemu-aarch64  qemu-arm    qemu-cris  qemu-microblaze  qemu-mips64    qemu-mipsel  qemu-ppc64       qemu-ppc64le  qemu-sh4    qemu-sparc        qemu-sparc64  status22:13
plmjar  python2.7   python3.6  qemu-alpha    qemu-armeb  qemu-m68k  qemu-mips        qemu-mips64el  qemu-ppc     qemu-ppc64abi32  qemu-s390x    qemu-sh4eb  qemu-sparc32plus  register      wine22:13
plmpi@deskdev-pi:~$22:13
plmTJ-: host ^22:13
TJ-plm: goood22:14
TJ-aha!22:15
plmwhat? =D22:15
TJ-plm: "sudo cp /usr/bin/qemu-armeb-static /target/usr/bin/"22:15
TJ-plm: "sudo cp /usr/bin/qemu-arm-static /target/usr/bin/"22:15
TJ-plm: then "sudo chroot /target /bin/bash"22:15
plmTJ-: works22:16
plm=D22:16
TJ-plm: want me to explain why?22:16
plmTJ-: becuse guest do not know that is a static arm?22:17
TJ-well no.. you recall we did "update-binfmts --display" and part of that showed "interpreter = /usr/bin/qemu-arm-static"22:17
plm interpreter = /usr/bin/qemu-arm-static22:18
plmline 3322:18
computa_mikeHi - I'm running festival on a virtual Ubuntu Server - Is there a virtual soundcard device I can use that will allow me to render test to speech on the server?  See reference to snd_dummy.  Is this the right way to go?22:18
plminstead /bin/bash is /usr/bin/qemu-arm-static?22:18
TJ-so, when we chroot the into /target/ that becomes the new root dir, so when the kernel recognises the 'magic' bytes of /bin/bash as being for ARM it tries to execute /usr/bin/qemu-arm-static *inside* the chroot - so we had to copy those in22:18
plmTJ-: ohh, now in a real "system"22:19
TJ-plm: you still don't have the proc sys dev file-systems so the guest won't have any network right now I doubt, so we'll need to do that now we have the chroot working22:19
plmok22:19
TJ-plm: try "ping 1.1.1.1" - I expect it to fail :)22:20
plmroot@deskdev-pi:/# ping 1.1.1.122:20
plmPING 1.1.1.1 (1.1.1.1) 56(84) bytes of data.22:20
plmUnsupported ioctl: cmd=0x890622:20
plm64 bytes from 1.1.1.1: icmp_seq=1 ttl=55 time=17.9 ms22:20
plmTJ-: ^22:20
TJ-plm: eeek! I didn't expect that :D22:20
TJ-plm: let's test DNS. "ping iam.tj"22:20
plmTJ-: but a ioctl problem22:20
plmroot@deskdev-pi:/# ping iam.tj22:21
plmping: unknown host iam.tj22:21
TJ-plm: right, no DNS as yet22:21
plmTJ-: change the resolv.conf?22:21
TJ-without DNS we can't use apt to install packages22:21
plmTJ-: ok, I will put "nameserver 8.8.8.8" on /etc/resolv.conf, right?22:21
TJ-no, do "exit" to return to the host22:22
plmTJ-: ok22:22
plmTJ-: after exist /target continuit mounted22:22
TJ-then do "sudo mount --bind /etc/resolv.conf /target/etc/resolv.conf" - this puts the host's dns config inside the guest.22:22
plmTJ-: df show mounted22:22
TJ-then do "chroot /target /bin/bash" again, and try "ping iam.tj"22:22
plmok22:23
plmTJ-: pi@deskdev-pi:~$ sudo mount --bind /etc/resolv.conf /target/etc/resolv.conf22:23
plmpi@deskdev-pi:~$ chroot /target /bin/bash22:23
plmchroot: cannot change root directory to '/target': Operation not permitted22:23
plmpi@deskdev-pi:~$22:23
TJ-'sudo'22:23
plmohh22:23
plmTJ-: done22:23
TJ-sorry, I forget it sometimes22:23
TJ-test the ping22:23
plmTJ-: root@deskdev-pi:/# ping iam.tj22:24
plmPING iam.tj (109.74.197.122) 56(84) bytes of data.22:24
plmUnsupported ioctl: cmd=0x890622:24
plm64 bytes from astute.ly (109.74.197.122): icmp_seq=1 ttl=50 time=210 ms22:24
TJ-plm: OK we'll ignore that ioctl for now22:26
TJ-we have DNS22:26
TJ-so you can do "apt update"22:26
plmTJ-: doing "apt update"22:26
plmTJ-: done22:26
TJ-which means you can then do "apt install linux-image-generic linux-headers-generic"22:26
plmTJ-: ok, doing22:26
plmTJ-: downloading22:27
plm0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.22:27
plmAfter this operation, 384 MB of additional disk space will be used.22:27
TJ-this may break because it'll want to install GRUB boot-loader I think - which may mean we need the devtmps mounting (from outside)22:27
TJ-cancel it for now with Ctrl+C if you haven't already said "yes"22:27
plmok22:27
plmok, canceled22:27
plmyes, I did yes22:28
TJ-because the VM was using mmcblk device, and now we're using a loop, we may have problems configuring this22:28
plmTJ-: problem just with grup?22:29
TJ-plm: but.. now you can use the rootfs in this way (with qemu-arm-static) do you need to run this as a VM any more?22:29
plm*grub22:29
plmTJ-: anymore?22:29
plmTJ-: I not understand. we can do anything with this VM22:30
plmTJ-: I have original saved22:30
plmTJ-: original with 14.422:30
TJ-plm: no, I mean something different.22:31
TJ-What I mean is, now you are able to directly run programs (using this chroot method) in the ARM rootfs, will you still need to run it as a virtual machine with QEMU ?22:32
plmTJ-: oh, do you say if I need to run like as befode, starting start.sh on qemu?22:32
plmTJ-: no, this way is fine if I can run everything like as a qemu MACHINE22:32
plmTJ-: maybe just fix that ioctl =D22:33
TJ-plm: right now the only different is, mounting via chroot, the init system doesn't run, so it doesn't start like a 'real' PC or virtual machine does22:33
TJ-plm: if you need it to start system services we'd need to do some more work for that.22:33
plmTJ-: all right, it dont have a IP addres too.22:34
TJ-plm: correct, it's part of the host, not a separate 'pc'22:34
plmTJ-: no, this is fine. Can I use full apt-get etc etc, right?22:34
plmThumpxr: no prlbmea about not ipadress, I copy via cp the files com guest to host and vice versa22:34
TJ-plm: yes, as long as you do that mount --bind for /etc/resolv.conf22:34
plmTJ-: so, now can I upgrade to 18.4?22:35
TJ-plm: errrrrr! you really like trying to break things don't you!? :D22:35
plmTJ-: hahaah22:35
TJ-plm: do you have a snapshot of it as it is now, in case it goes wrong ?22:35
plmTJ-: I need python3.622:35
plm16.4 has just python3.522:36
TJ-plm: if you have a snapshot/copy of the current rootfs then sure, try a do-release-upgrade22:36
plm"do you have a snapshot of it as it is now, in case it goes wrong ?" not yet. Bu I can save this vm that we are working.22:36
TJ-plm: if you need to make a snapshot you'll need to exit the chroot and unmount and close the loop device first22:37
plmI do a copy and upgrade to 18.4 in the new copy22:37
plmTJ-: allright, trying that now22:37
TJ-plm: so you'd do "exit"  then "sudo umount /target/etc/resolv.conf; sudo umount /target; sudo losetup -d /dev/loop0"22:38
TJ-plm: if all that works you can safely make a copy of the rootfs.img22:38
plmpi@deskdev-pi:~$ sudo umount /target/etc/resolv.conf22:38
plmpi@deskdev-pi:~$ sudo umount /target22:38
plmpi@deskdev-pi:~$ sudo losetup -d /dev/loop022:38
plmpi@deskdev-pi:~$22:38
plmTJ-: doing a copy22:38
plmTJ-: done, now go to chroot again right?22:39
TJ-plm: once you've made a copy, then "sudo losetup -P /dev/loop0 rootfs.img; sudo mount /dev/loop0p1 /target; sudo mount --bind /etc/resolv.conf /target/etc/resolv.conf" then "sudo  chroot /target /bin/bash"22:39
plmTJ-: i@deskdev-pi:~/tmp/tmp/vm-cortex_a8_omap3$ sudo losetup -P /dev/loop0 rootfs.img22:40
plmlosetup: rootfs.img: failed to set up loop device: Device or resource busy22:40
plmpi@deskdev-pi:~/tmp/tmp/vm-cortex_a8_omap3$22:40
TJ-plm: did you check it was correcly detached before you did the copy? use "losetup -a" to list the active loops22:41
plmpi@deskdev-pi:~/tmp/tmp/vm-cortex_a8_omap3$ losetup -a22:41
plm/dev/loop0: []: (/home/pi/tmp/tmp/vm-cortex_a8_omap3/rootfs.img)22:41
plmpi@deskdev-pi:~/tmp/tmp/vm-cortex_a8_omap3$22:41
plmTJ-: ^22:41
TJ-plm: right so it wasn't detached earlier. OK. best to make sure it gets detached, and redo the copy22:42
plmTJ-: ok22:42
TJ-try "sudo losetup -v -d /dev/loop0" then check it has gone with "losetup -a"22:42
plmpi@deskdev-pi:~/tmp/tmp/vm-cortex_a8_omap3$ sudo losetup -v -d /dev/loop022:43
plmpi@deskdev-pi:~/tmp/tmp/vm-cortex_a8_omap3$ losetup -a22:43
plm/dev/loop0: []: (/home/pi/tmp/tmp/vm-cortex_a8_omap3/rootfs.img)22:43
plmpi@deskdev-pi:~/tmp/tmp/vm-cortex_a8_omap3$22:43
plmTJ-: ^22:43
TJ-plm: something still has a handle to it, we need to find out what.22:43
TJ-plm: try "mount | grep target"22:43
plmpi@deskdev-pi:~/tmp/tmp/vm-cortex_a8_omap3$ mount | grep target22:43
plmpi@deskdev-pi:~/tmp/tmp/vm-cortex_a8_omap3$22:43
TJ-plm: strange! how about "sudo lsof /dev/loop0p1"22:44
TJ-plm: actually, does "ls /dev/loop0p1" list the node?22:44
plmpi@deskdev-pi:~/tmp/tmp/vm-cortex_a8_omap3$ sudo lsof /dev/loop0p122:44
plmlsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs22:44
plm      Output information may be incomplete.22:44
plmpi@deskdev-pi:~/tmp/tmp/vm-cortex_a8_omap3$22:44
plmpi@deskdev-pi:~/tmp/tmp/vm-cortex_a8_omap3$ ls /dev/loop0p122:45
plm/dev/loop0p122:45
TJ-plm: right, so "losetup -d" didn't remove it - meaning something has it open22:45
TJ-plm:  try "sudo lsof | grep target"22:45
plmpi@deskdev-pi:~/tmp/tmp/vm-cortex_a8_omap3$ sudo lsof | grep target22:45
plmlsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs22:45
plm      Output information may be incomplete.22:46
plmTJ-: ^22:46
plmpi@deskdev-pi:~/tmp/tmp/vm-cortex_a8_omap3$22:46
plmohh22:46
plmmy GUI22:46
TJ-plm: oh grrrr!22:46
TJ-plm: *shoot* it :D22:46
plmTJ-: when that command was start, the GUI show the mount point22:46
plmpi@deskdev-pi:~/tmp/tmp/vm-cortex_a8_omap3$ losetup -a22:46
TJ-plm: of course, those interfering GUIs22:46
plmpi@deskdev-pi:~/tmp/tmp/vm-cortex_a8_omap3$22:46
plmdoing backup again22:46
TJ-plm: yay! so copy then rebuild22:46
plm*snapchot22:47
TJ-plm: once you've made a copy, then "sudo losetup -P /dev/loop0 rootfs.img; sudo mount /dev/loop0p1 /target; sudo mount --bind /etc/resolv.conf /target/etc/resolv.conf" then "sudo  chroot /target /bin/bash"22:47
plmTJ-: done =D22:49
plmroot@deskdev-pi:/# uname -a22:49
plmLinux deskdev-pi 4.4.0-101-generic #124-Ubuntu SMP Fri Nov 10 18:29:59 UTC 2017 armv7l armv7l armv7l GNU/Linux22:49
plmroot@deskdev-pi:/#22:49
plmroot@deskdev-pi:/# ping 8.8.8.822:49
plmPING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.22:49
plmUnsupported ioctl: cmd=0x890622:49
plmthat ioctl is a problem?22:49
TJ-not sure, but is the ping not working now?22:49
plmroot@deskdev-pi:/# cat /etc/apt/sources.list22:49
plmdeb http://ports.ubuntu.com/ubuntu-ports/ xenial main universe22:49
plmdeb http://ports.ubuntu.com/ xenial main restricted universe multiverse22:49
plmok, changing to bionic and upgrade22:49
plmall right?22:50
plmTJ-: ^?22:50
TJ-plm: that ioctl warning - could be 16.04 specific. This issue seems to suggest 18.04 will be OK: https://github.com/ryankurte/docker-rpi-emu/issues/1122:51
TJ-plm: yes. do "do-release-upgrade"22:51
plm"do-release-upgrade" instead "apt-get update; apt-get -f dist-upgrade"?22:51
TJ-plm: yes22:52
plm"/etc/apt/sources.list" 3L, 136C written22:52
plmE138: Can't write viminfo file /home/pi/.viminfo!22:52
plmPress ENTER or type command to continue22:52
TJ-d-r-u looks for the release files correctly22:52
TJ-plm: did you alter /etc/apt/sources.list ? You shouldn't - d-r-u will do that correctly22:52
plmTJ-: save file, but show that error, why?22:52
plmroot@deskdev-pi:/# ls -l /etc/apt/sources.list22:53
TJ-plm: because there is no user 'pi' inside the chroot?22:53
plm-rw-r--r-- 1 root root 136 Oct  6 22:52 /etc/apt/sources.list22:53
plmohh22:53
TJ-plm: I suspect your host environment copied something over about the 'pi' user. You can check with "env |  grep pi"22:54
plmTJ-: http://dpaste.com/253DD9W22:54
plmTJ-: I copy just that qemu-static.. to bash remember?22:54
TJ-right, that was why22:55
TJ-you can do "export HOME=/root/" to fix that up whilst inside the chroot22:55
plmTJ-: "export HOME=/root/" not show more the error, yes22:55
plmTJ-: doing "do-release-upgrade"22:56
plmTJ-: root@deskdev-pi:/# do-release-upgrade22:56
plmbash: do-release-upgrade: command not found22:56
plmroot@deskdev-pi:/# apt-get install do-release-upgrade22:57
plmE: Unable to locate package do-release-upgrade22:57
plmTJ-: are you sure that is "do-release-upgrade"?22:57
TJ-hang on22:57
TJ-plm: "apt install ubuntu-release-upgrader-core"22:58
plmTJ-: ohh, in my host that is the "16.4" has "do-release-upgrade", but the host is x8622:58
plmok22:58
plmE: Unable to locate package ubuntu-release-upgrader-core22:58
plmTJ-: ^22:58
plmohh22:58
plmTJ-: I need back to sources.list to xenial22:58
plm?22:58
TJ-plm: grrr, on the host do "dpkg -S do-release-upgrade" and see what package it is22:58
TJ-plm: YES!!!!22:59
plmroot@deskdev-pi:~# dpkg -S do-release-upgrade22:59
plmubuntu-release-upgrader-core: /usr/share/man/man8/do-release-upgrade.8.gz22:59
plmubuntu-release-upgrader-core: /usr/bin/do-release-upgrade22:59
plmTJ-: do-release-upgrade dont have on guest (ARM)23:00
TJ-plm: right, so correct sources.list and try again23:00
plmTJ-: maybe dont have that for arm?23:01
TJ-plm: it's python code I think so should be :)23:01
plmroot@deskdev-pi:/# cat /etc/apt/sources.list23:01
plmdeb http://ports.ubuntu.com/ubuntu-ports/ xenial main universe23:01
plmdeb http://ports.ubuntu.com/ xenial main restricted universe multiverse23:01
plm"apt-get update" done23:01
plmroot@deskdev-pi:/# apt-get install do-release-upgrade23:01
plmE: Unable to locate package do-release-upgrade23:01
TJ-plm: "apt install ubuntu-release-upgrader-core"23:01
plmTJ-: ^23:01
plmworks23:01
plm=D23:01
TJ-plm finally :D23:02
TJ-plm: you sure know how to break things :p23:02
plmTJ-: hahaa, 16.4 to 18.4 cant break, ubuntu rocks23:02
plmTJ-: ubuntu can't break one LTS to another, think about stable servers23:03
plmTJ-: installed23:03
plmdoing "do-release-upgrade"23:03
plmwhat is the diferrence between "do-release-upgrade" and "apt-get -f distyr-upgrade"?23:04
TJ-I'm going to go soon, it is past midnight here and my eyes are dying23:04
TJ-plm: d-r-u takes care of some corner-case issues23:04
plmTJ-: ohh, what time is it?23:04
TJ-plm: but other than that it calls dist-upgrade under the hood23:04
plmHere is 20PM23:04
TJ-I'm in England23:05
plm"d-r-u" I not understand this, where you see this?23:05
plmTJ-: I'm Brazil.23:05
TJ-plm: d-r-u == do-release-upgrade - we often shorten these long names to single-letters like that23:05
plmTJ-: ohh23:05
plmTJ-: now is very fast23:05
plmTJ-: now is faster than inside VM23:06
TJ-plm: your ARM image should be now it isn't doing virtual machine emulation23:06
TJ-plm: with a VM it has to pretend to have all that hardware too and simulate the way it behaves23:06
plmTJ-: but now I have a ARMv7 running?23:07
plmthe static-qemu dont have the same with chroot?23:07
TJ-plm: I suspect it may be possible to use LXD (the container technology) to run a full proper ARM container on your x96 host - but I've never seen anyone do that. I'll investigate that tomorrow23:07
TJ-plm: yes, but it only has to simulate the ARM instructions in the binaries, not a whole load of hardware23:08
plmTJ-: hmm23:08
plmTJ-: now, after upgraded (if no erros) to 18.4, i have a no a "reboot", right? +D23:09
plmTJ-: http://dpaste.com/2QQDZBK23:09
plmTJ-: look this error ^23:09
TJ-plm, no reboot required, correct23:10
plmTJ-: yesterday  I tried a updagrade 14.4 to 18.4 and downloaded. Doing fo course, with apt-get -f dist-upgrade.23:11
TJ-plm: and you CAN run an LXD  ARM container on X86. See  https://askubuntu.com/questions/816886/how-do-run-an-arm-lxd-container-on-my-intel-host#81688723:11
TJ-plm: Answer "no" to that question whilst we investigate it23:11
TJ-plm: show me the content of /etc/apt/sources.list (from the 'guest' chroot)23:12
plmTJ-: ok, "no" say23:12
plmAborting23:12
plmReading package lists... Done23:12
plmBuilding dependency tree23:12
plmReading state information... Done23:12
plmroot@deskdev-pi:/# cat /etc/apt/sources.list23:12
plmdeb http://ports.ubuntu.com/ubuntu-ports/ bionic main universe23:12
plmdeb http://ports.ubuntu.com/ bionic main restricted universe multiverse23:12
TJ-plm: did you change it back to xenial earlier?23:13
plmTJ-: yes, just to install the d-r-u23:13
plmaftet I nack to bionic23:13
TJ-plm: "sed -i 's/bionic/xenial/g' /etc/apt/sources.list "23:13
plmAfter I back to bionic23:13
plmroot@deskdev-pi:/# sed -i 's/bionic/xenial/g' /etc/apt/sources.list23:14
plmroot@deskdev-pi:/#23:14
plmTJ-: ^23:14
TJ-plm: then "cat /etc/apt/sources.list" you should see it is now xenial23:14
plmroot@deskdev-pi:/# cat /etc/apt/sources.list23:14
plmdeb http://ports.ubuntu.com/ubuntu-ports/ xenial main universe23:14
plmdeb http://ports.ubuntu.com/ xenial main restricted universe multiverse23:14
TJ-plm: OK, now retry "do-release-upgrade"23:14
plmTJ-: doing23:14
plmTJ-: stopped in "Reading state information... Done", but before stopped a time in this line too.23:18
TJ-give it chance, it should be figuring out what needs doing23:19
plmworking23:19
plmTJ-: done23:23
plmTJ-: http://dpaste.com/3JJT5HR23:23
TJ-plm: it's not done any package upgrades!23:26
plmTJ-: yes, becaouse already with xenial, since last upgrade23:26
plmlast when I did from 14.423:27
TJ-but it's supposed to be installing the 18.04 bionic packages23:28
TJ-what does "dpkg --print-architecture" report?23:28
plmTJ-: root@deskdev-pi:/# dpkg --print-architecture23:29
plmarmhf23:29
TJ-that's available in the ports archive too23:29
TJ-try "sudo apt update && sudo apt full-upgrade" - see if that suggest package upgrades23:30
plmTJ-: http://dpaste.com/2H6PH5B23:31
TJ-that's more like it! go ahead :)23:31
TJ-looks like d-r-u is broken for armhf23:31
plmTJ-: d-r-u change automatically the sources.list right?:23:32
TJ-Yes which is why you've got that long list of new packages23:32
plmTJ-: ok, "sudo apt update && sudo apt full-upgrade" will be fine to go 18.4?23:33
plm=D23:33
TJ-yes23:33
plmTJ-: so, doing =D23:33
plmTJ-: uhull, going to 18.4 ARMv7 =D23:34
plm3 minutes =D23:34
TJ-I'm going to leave now before any more errors pop up - I need sleep!23:35
TJ-good luck with it. I should be around tomorrow if you need any more help23:35
plmTJ-: hey! Thank you so much for today!23:37
plmTJ-: you help me so, so much!23:37
plmTJ-:Good night, and tomorrow I piong you ifI need more help =D23:37
TJ-g'night :)23:38

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