/srv/irclogs.ubuntu.com/2017/04/22/#ubuntu-server.txt

tomreynno, there is no 'default - always right', also the bits differ for files vs. directories00:13
sarnoldI interpreted his question to be about / specifically00:14
tomreyn(it is totally possible that 755 on files is what you want, though)00:14
tomreynoh, right, i didnt00:14
tomreyniif it's just about the uppermost directory on any ubuntu system (which also happens to serve web content) then i agree00:15
drabtomreyn: I don00:16
drabwhups00:16
tomreynoh he left00:16
sarnoldif he ran chmod -R 777 / then the eeasiest way out is going o be renting a new server and moving over the files you care about :)00:16
drabI don't know if you saw the previous msg, but just to loop back00:16
drabI had to set fb=false00:16
drabnofb doesn't work for whatever reason even tho it's an official kernel parameter00:17
tomreyndrab: alrighty, thanks, and glad you found out.00:17
drabany tips on must do tweaks for qemu performances?00:21
sarnoldit might be useful to pass in the 'current cpu' as the cpu type; that way all the instructions you -do- have can be used00:22
sarnoldI think the defaults are conservative so you can migrate from one compute host to another00:22
drabk, thanks00:30
drabtwo things I've seen is the use of virtio in disk devices and network devs00:30
drabbut still not clear how those work00:30
sarnoldinstead of emulating ten-year-old hardware00:31
sarnoldthey just shove bytes around :)00:31
drab:)00:31
tomreyn i.e. use whenever you can00:32
drabwell that's part of the thing, how do I know if I can? I don't get what's special about them that makes it possible or not to use them00:32
tomreynyou need guest support00:33
drabah, ok, that's one bit I missed00:33
tomreynlinux has it, but windows doesn't until you install drivers00:33
sarnoldmost non-terrible OSes have support for virtio of differentl flavors00:33
draboh, that's np, I'm just doing linux00:33
drabeven, just ubuntu xenial (for now at least)00:33
drabso nothing special to install there? it just works [tm]?00:33
tomreynit should [tm]00:34
drabheh :)00:34
drabwhat about virtio-scsi ? I've seen that floating around on a few pages as "better", but in various examples I only saw virtio-blk-pci00:35
tomreynhmm i'm not sure there, maybe sarnold knows which one to prefer. my guess is that scsi is more overhead but more compatible. like a (PCI bus attached) nvme conmpared to a (SCSI controller attached) ssd00:38
sarnoldI hadn't heard of virtio-scsi before00:38
drabit popped up on this guide: https://doc.opensuse.org/documentation/leap/virtualization/html/book.virt/cha.qemu.host.html#kvm.virtio-scsi00:39
drabin the recommended host settings00:39
drabthat guide is actually the most complete I've found00:39
sarnoldsuse invests a -lot- in great docs00:39
sarnoldaha! scsi passthrough00:40
drabthat doesn't try to say "oh you wanna run qemu plain? let me tell you about libvirt"00:40
sarnoldif you -want- scsi passthrough that'll be better indeed. but that's a specific thing.00:40
drab:?00:40
drabgotcha00:40
drabtbh I'm kind of confused by scsi... back in the days you had to have a scsi card and scsi devices... now a usb key seems to go thorugh the scsi layer00:41
ppetrakidrab, scsi is just a common verb set to move blocks. no sense in reinventing the wheel, again.01:22
ppetrakisarnold, I guess virtio-scsi is just more better: https://www.ovirt.org/develop/release-management/features/storage/virtio-scsi/01:22
sarnoldppetraki: nice page, thanks01:25
sarnoldppetraki: I've never heard of the ~30 device limit of virtio-blk before01:26
sarnoldthat would certainly limit some operations :001:26
ppetrakisarnold, I guess it's a PCI limit of whatever bridge they virtually implemented01:27
ppetrakisarnold, now you can do multpath in a vm!01:28
drabppetraki: fair enough, thanks01:29
* sarnold fails over01:29
drabI'm trying to find out why it doesn't let me use virtio-blk, or if it's just a naming problem01:29
drabie when I say "virtio" in the device definition it's really using virtio-blk-pci01:30
drabit takes virtio-net-pci for the network card, but not virtio-blk for the img file01:30
ppetrakidrab, how was the image file built? raw image? qcow2?01:31
ppetrakidrab, so my favorite thing to do with qemu and the options is to cheat. I configure something using virt-manager the way I think it should look, start it, then look at the qemu args passed to it.01:34
drabppetraki: raw image on top of zfs (hence avoiding qcow2, as I understand that'd be twice copy on write and not worth it)01:35
ppetrakidrab, ok, good, did you tell qemu format=raw?01:35
drabppetraki: I'm having problems cheating, tried to get libvirt going on my desktops and just got all kinds of fails01:36
drabI did01:36
ppetrakierg!01:36
drabI don't want use libvirt long term so I didn't bother trying to figure out what I was doing wrong01:36
ppetrakiI don't want to use libvirt long term either, neither did openstack, but dammit it just wont die...01:37
drablol01:40
ppetrakidrab, ok I cheated for you http://pastebin.ubuntu.com/24430578/01:40
ppetrakidrab, now you can shove this in a script and parameterize what you need01:41
ppetrakidrab, I just made it install from whatever iso I could find, create a 4G RAM 2 CPU system with a 20G root01:42
drabholy cow, looks more like bad time reading than a command line01:43
drabthanks, much appreciated01:43
ppetrakidrab,  this looks like the line that matters the most "-drive file=/var/lib/libvirt/images/centos7.0.qcow2,format=qcow2,if=none,id=drive-virtio-disk0 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x7,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=2"01:43
ppetrakioh I don't read anymore, my eyes hate me01:43
drablol, bed time reading, Freudian slip I guess01:43
drabI hear you01:43
drabtoday I got lucky, I got to spent 4hrs in a basement pulling fiber <301:44
drabspend*01:44
ppetrakiso the -drive switch creates the vlun and also instantites a label "drive-virtio-disk0" and then attach that to the drive we want in the -drive switch01:44
ppetrakiI mean -device switch01:44
drabyeah, see, you have virtio-blk-pci there, in the device definition01:45
ppetrakiI would make the boot index lower because this thing is "booting from CD"  and change the format to raw, other than that "its simple"01:45
drabsomehow that doesn't work on my test machine for some reason I don't get01:45
ppetrakiare you root?01:45
drabyeah, looks ok, also looks like it's got the stuff I was wondering about re monitoring socket, so will check that out too01:45
ppetrakidrab, sudo kvm-ok for me01:46
drablemme try again with stuff from the example, the onliner I had was clobbering device and drive, maybe shorthand or hold syntax01:46
drabyeah kvm is ok01:47
ppetrakidrab, ok. sounds like a plane01:47
ppetrakiI mean plan01:47
* ppetraki is tired01:47
drabppetraki: it kind of worked, I had to append an if=none to the drive which I don't get, but otherwise it went through01:59
drabqemu-system-x86_64: -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x7,drive=d-v-disk0,id=dddisk0: Drive 'd-v-disk0' is already in use because it has been automatically connected to another device (did you need 'if=none' in the drive options?)01:59
drabthat's the error I got02:00
ppetrakidrab, its open sore, it's not supposed to make sense02:02
ppetrakidrab,  that sharp edge is supposed to be there ;)02:02
drabopen sore, that's gonna stay with me for a while :D02:05
ppetrakidrab, I got it from engineers way older and saltier than I02:05
ppetrakio/02:13
drab.o/02:15
drabthanks again man, much appreciate the help, have a good rest of the day02:16
lordievaderGood morning06:41
=== JanC is now known as Guest51396
=== JanC_ is now known as JanC
=== Ale is now known as Guest33116
kotVasjahi12:48
CarlFKtrying to pxe install to a nvme, someone in #u said try here.    onboard nvme ssd thing.  I somehow got xenial to boot last year.  wiped it trying to install zesty.  installer runs, I get these partitioning options:14:50
CarlFKthe installer gave me 1 big partition.  text mode install screens about partitioning https://veyepar.nextdayvideo.com/static/temp/d.html14:51
CarlFKthe installer does install files to it, but when I boot: "insert boot media" https://veyepar.nextdayvideo.com/static/temp/d6-0.png14:52
drabCarlFK: just to confitm, you said yuo had it working?15:12
drabbecuase I had that same rpoblem and it turned out the mobo/bios just didn't support it15:12
drab(this was a SM server and I chcked with them/bios engineers)15:12
CarlFKdrab:  yes working.  no idea how.  i play with a bunch of machines.15:12
drabbut it otherwise exibhited the same behavior as you describe, reason being the boot is done with kernel from pxe, not from nvme, and by the time that's loaded /root can be loaded from nvme15:13
drabCarlFK: 100% sure you weren't booting from something else? a usb key, a cd, a small /boot on another disk... etc?15:13
drabdon't mean to be insisting, but it's kind of crucial :)15:13
draband we'd be all wasting time if it wasn't actually possible and there was something else lost in translation15:14
drabpossible -> straight boot, indirect is obvious possible15:14
drab"no idea how" is the part that kind of worries me :)15:15
drabhave you checked the mobo's manual, does it say it can boot from nvme? same for bios15:15
drabwhat mobo is it?15:15
draband what bios version15:15
drabalso what nvme device? is it plugged straight into the mobo or are you using some kind of pcie adapter? or is it a pcie nvme device to begin with?15:16
CarlFK/sys/devices/virtual/dmi/id # cat board_name15:25
CarlFKH170M-D3H-CF15:25
CarlFKhttp://www.gigabyte.us/Motherboard/GA-H170M-D3H-GSM-rev-10#support-manual15:26
CarlFKclosest I could find, doesn't matter, pdf wont' dl15:26
CarlFKnor the bios15:26
CarlFKnvme plugged into slot on mv.  samsung something.  512gig15:27
CarlFKmb lists it as a boot option.  I suspect I had the efi stuff setup before, and it listed both efi: and non as 2 boot options15:28
drabok, that was my next thing, nvme support generally is uefi only, not bios. are you booting in bios or uefi mode? and was linux installed in eufi mode?15:28
CarlFKI am starting to think the u installer di will do efi if it sees the fat partition.  so maybe I have to create that first?15:28
drabCarlFK: ime it does efi if the bios is setup for efi only/the installation is started as efi15:29
drabif you're pxe'botting are you passing efi files to it?15:29
drabbooting*15:29
CarlFKoh.. pxe.. no.  I bet thats what I need to find15:29
drabyeah pxe needs additional steps/work to boot in efi mode and do an efi installation15:30
drabif you're running vanilla pxe you're likely installing in bios mode15:31
drabyou could try to install with a CD if you can, might be quicker to verify15:31
draband make sure your bios is set to efi or that when the prompt comes up you select to boot the CD as efi15:31
drabwhich will get you an efi install15:32
drabat least that's afaicr, my efi foo id generally weak, I'm old and so is my hw :)15:32
drabanybody knows a workaround for this bug: https://bugs.launchpad.net/ubuntu/+source/memtest86+/+bug/156474015:33
ubottuLaunchpad bug 1564740 in memtest86+ (Ubuntu) "Booting kernel failed: Invalid argument" [High,Confirmed]15:33
drabwhat I don't get is why memtest works fine on both vbox, a bunch of desktops, but not the SM machine15:33
drabsome of the desktops are also intel15:33
drabthey are all in bios mode15:33
ikoniawhy would you run memtest in vbox15:34
drabpxe booting the memtest image served via tftp15:34
ikoniait's virtual memory15:34
ikoniabut why would you do that in a vm15:34
drabikonia: to test that the pxe infra is working and passing up the right files15:34
drabso I test that first, thant est on a couple hw machines/desktops, then test on the server15:34
ikoniawhat happens when you try to boot it for tftpboot15:35
drabthat why I cover all classess of hw and scenarios, since pxe must work on virtual too to provision containers15:35
CarlFKexcept I don'15:35
drabI'm not actually testing the ram15:35
CarlFKexcept I don't have a cd drive.. but leme find pxe efi stuff...15:35
drabikonia: it boots fine on the desktops and the VM, it just fails on the SM server15:35
drablike in that bug15:35
drabit complains about an invalid argument15:35
ikoniaSM server ?15:35
drabsupermicro server15:35
ikoniawhat's an SM server15:35
ikoniaok - so thats most likley the pxe setup on the card15:36
ikoniathe invalid argument is known on some network cards15:36
ikoniayou can get around it with a setting on the tftpserver15:36
drabuhm, ok, interesting, hadn't heard of it15:36
ikoniaI can't remember which one it is off the top of my head15:36
drabgreat, ok, that's still a useful hint, thank you15:36
ikoniaI can't remember which way around it is, either some cards don't fully comply and expect an argument that isn't needed, or they are over strict and demand an argument that isn't needed15:37
ikoniaI can't remember which way around it is15:37
tomreynCarlFK: the bios and manual download work fine from my location. should i store a copy for you somewhere?15:44
tomreyn(and have you tried it from a different location, yet)15:45
CarlFKtomreyn: I tired a few of the area links.  wget says 2017-04-22 10:45:02 (1.47 MB/s) - Read error at byte 31119/13554428 (Connection reset by peer). Retrying.15:45
CarlFKoh hey, 3rd times a charm. got it.15:46
CarlFKhttp://archive.ubuntu.com/ubuntu/dists/zesty/main/uefi/   thats all I see around install stuff15:52
drabikonia: ok, found a workaround15:59
drabI don't know why the other wasn't working and what was up with what you mentioned, couldn't google anything about it15:59
drabbut I changed and instead of trying to boot the memtest binary16:00
drabI used memdisk to load the memtest.iso from passmark16:00
draband that works across all environments/hw classes so good enough16:00
drabtakes a few extra secs to get the iso compared to just the bin, but whatever16:00
drabCarlFK: if you don't need to pass preseeding, you could do what I just did16:01
draband load the entire iso from network16:01
drabthat'd be the same as booting from CD16:01
drabvs booting a kernel and going straight into install16:01
CarlFKI am a little confused.  not even sure what terms to use any more.  I either boot bios or efi, right?16:02
drabright16:02
patdk-lapwell, what do you use?16:02
patdk-lapbios or efi?16:02
drabbut there's two pieces, both the bootable media and the bios must be on efi/or bios16:02
drabyou can have an efi that fallsback to bios16:03
draband stuff like that16:03
drabso the boot part needs to be configured on efi, boot the install media as efi, and then the install media needs to install efi compatible boot loader16:03
drabmostly this magically happens, ie ubuntu install CD will pick up a boot from efi and isntall efi, at least that's my experience on desktops, but with pxe boot is a little more complicated16:04
patdk-lapand maybe all has to be signed too16:04
drabsince you decice what to serve16:04
drabthat too, le sigh16:04
drabbrb16:04
CarlFKpatdk-lap: #ipxe says NiXZe: the rom usually has both efi and pcbios, however the configuration to enable them is confusing to say the least in most bios/firmware implementations16:05
CarlFKso I am trying to use efi, but I may not be.16:05
patdk-lapheh? it's supersimple in every one I have seen16:05
patdk-lapyou just go into the settings, and select uefi boot, and disable legacy boot16:06
patdk-lapnow your in uefi/efi mode16:06
CarlFKhave you looked at the firmware? ;)16:06
patdk-lapenable legacy and you are back to old fashon bios boot16:06
patdk-lapno, cause I have no idea what device you have16:06
CarlFK#ipxe (05:50:16 PM) Shiz: and sometimes the option is there but the efi rom simply is not16:07
CarlFKI pick efi options, but seems I am ending up in legacy16:07
CarlFKis there any way to tell from the installer busybox shell?16:08
patdk-lapwhat system is this?16:08
CarlFK/sys/devices/virtual/dmi/id # cat board_name  --> H170M-D3H-CF16:09
CarlFKhttp://www.gigabyte.us/Motherboard/GA-H170M-D3H-GSM-rev-10#support-manual16:09
CarlFKclosest model I could find16:09
patdk-lapoh wait16:21
patdk-lapyou want pxe boot?16:21
CarlFKyes16:21
patdk-lapit is *rare* for nic pxe boot to work in uefi mode16:21
patdk-lapI have seen some the last month16:21
patdk-lapbut before that, I would have said it wouldn't work at all16:21
CarlFKcan I chain load ipxe?  (which I guess has efi support)16:21
jerichowasahoaxisn't pxe that thing for 32 bit systems that lets them access larger addresses16:21
patdk-lapjeremy_carroll, heh?16:22
patdk-lapa30 enable?16:22
CarlFKpxe = load kernen/init from tftp server16:22
jerichowasahoaxmaybe i'm thinking of another acronym then16:22
CarlFKnic rom has a little tcpip stack16:22
patdk-lapyes, you could boot ipxe, if ipxe has a uefi mode16:22
patdk-lapbut ya, not the nic rom16:22
patdk-lapya, that board says nic does not support uefi16:23
patdk-lapstorage boot option set to uefi only16:23
patdk-lapcsm support set to disabled16:24
patdk-lap(csm support is the, if uefi failes, fall back to legacy bios boot)16:24
CarlFKbtw - I have the box the board came in: ga-h170m-d3h  - no mention of cf16:25
CarlFKif I am currently able to pxe boot the installer, do I need to change anything ?16:26
CarlFKer16:27
jerichowasahoaxto accomplish what? my znc buffer doesn't go far enough back16:27
patdk-lapif you want to use uefi? you must boot uefi16:27
patdk-lapor the installer will not setup uefi install16:27
CarlFK(11:22:46 AM) patdk-lap: yes, you could boot ipxe, if ipxe has a uefi mode16:27
patdk-lapif you don't care, then don't worry, whatever booted it will install and make work16:27
jerichowasahoaxif you want to make absolutely sure you're booting in uefi mode, check for the presence of /sys/firmware/efi/efivars16:28
patdk-lapI have never uefi booted ipxe before, as the systems I use it on don't have uefi support, only use old systems with it16:28
CarlFKcan I boot from the nvme? (ssd on the board)16:29
CarlFKer, in legacy mode16:29
patdk-lapask your bios16:30
CarlFKI couldn't figure that out from the manual.16:30
CarlFKor the bios16:30
CarlFKcurrently when it boots the ssd i get  "no boot media"16:31
patdk-lapI have booted all my nvme systems without uefi and with uefi both16:31
CarlFKi can pxe boot the installer into rescue mode, mount it.  grub-installer it.. no error, but still not boot16:31
CarlFKzesty installer BusyBox v1.22.1 (Ubuntu 1:1.22.0-19ubuntu2)   ~ # ls /sys/firmware/ -> acpi    dmi     memmap16:58
CarlFKsame for /target/sys/firmware/17:01
CarlFKso I pxe booted, I am in legacy mode, both the installer shell and what the installer installed.  bios says it will boot the ssd in legacy mode.  what do I do to install grub?17:16
CarlFK(pretty sure there is a bug here, but I dont' know what I am doing well enough to just file a issue )17:16
CarlFKhttps://en.wikipedia.org/wiki/EFI_system_partition   "some UEFI implementations immediately switch to the BIOS-based CSM booting..."19:26
CarlFKwho knows what mode we started in?19:27
drabre21:29
drabCarlFK: did you manager to get it to work?21:29
drabmanage*21:29
=== haasn is now known as hanna

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