/srv/irclogs.ubuntu.com/2021/03/03/#ubuntu-server.txt

=== vlm_ is now known as vlm
=== Guest80556 is now known as caribou
antaresgadesHello. I'm trying to install 20.04 on a old hp dc7800 machine. I have a issue relating using of ahrdware RAID. I defined that RAID1 with the BIOS Intel Matrix Storage Manager, but the installer is not able to see it when partitioning etc. Moreover, if I try to install the OS in one of the disks, the installation breaks (there are some complaints10:51
antaresgadesabout finding partitions)10:51
antaresgadesI've found that I should ensure to use the ubuntu SERVER disks for installation and of course I'm sure that I'm using it10:52
antaresgadesandy advice?10:52
lordievaderCan you drop to a shell and see if the kernel is seeing any drives?10:53
ducassewhich files do i need to copy across to move a libvirt/kvm vm from one host to another?10:57
antaresgadesI've dropped and made a ls /dev and I see devices md, md126, md127, sda and sdb11:00
antaresgadesand also with dmesg I see at least it see the drives11:00
antaresgadesand explicitely, some lines refer to md/raid1_md126 active with 2 out of 2 mirrors and many lines more11:01
antaresgadeswith fdisk -l it shows /dev/sda, /dev/sdb and /dev/md12611:03
lordievaderducasse: Depends on your setup.11:05
lordievaderantaresgades: And you don't see those in the server installer?11:05
lordievaderducasse: Are you using qcow based files or lvm volumes or something for your vms?11:05
ducasselordievader: qcow11:06
antaresgadeslordievader: That's the issue. I'm offered the options USE an ENTIRE DISK in "guided storage configuration" and no RAID is present. And I I choose "Custom storage layout" , the two physical devices are present but no RAID.11:08
lordievaderducasse: In that case you want to transfer the qcow file and the xml definition of the VM. Import the xml definition on the other end. Adjust the config to reflect the new path to the qcow file.11:08
antaresgadeslordievader: by the way, the installer version is 21.01.211:08
lordievaderantaresgades: What I remember from my last Ubuntu server install (mind you years back) was that there was no support for md-raid/lvm in the 'normal' image, but there was in the alternate server image.11:09
ducasselordievader: where are the xml files stored by default?11:09
lordievaderIt could be that there, still, is no support for md/lvm in the normal image. (Don't ask why not, beats me)11:10
antaresgadesI will try then. But maybe the right question here is: Would I take any advantage from BIOS RAID over software RAID? Do you have any experience on this? Maybe it is not worth the pain11:10
lordievaderducasse: `/var/lib/libvirt` probably, but you rather want to use the `virsh dumpxml` command.11:12
lordievaderantaresgades: Hardware raid is faster (but has downsides). Software raid is more flexible (especially if you use LVM).11:12
ducassek, thanks11:12
ducassedo i use it to export the qcow too?11:13
lordievaderNo, that is just to export the definition/config of the VM. Not the disk itself.11:14
ducasseright, got it11:18
ducasselordievader: do i import the xml with virsh too?11:21
lordievaderYes11:24
antaresgadeslordievader: Taking into account that I'm in a hurry with this... I'll dive into software RAID and see what happens;)  However, I've read that a recommended setup is having a software RAID and LVM on top. Is it possible to achieve with two diffffrente ccapacity (250 vs 500 gb) disks?11:25
lordievaderWait a minute, you said md drives right? That sounds like software raid already11:26
RoyKantaresgades: uses mdadm to create raids and then put lvm on top and then filesystems on lv's. mixing disks with different sizes is a bit trickyer, since a raidset can only consist of similar disk sizes. but if you must, you can partition the larger drives and use those partitions with the smaller drives and then add another raid with the leftover partitions. then use lvm on top to merge it all11:42
RoyKtogether. it's a bit messy, but it works11:43
antaresgadeslordievader: for what I've reading, it looks like BIOS RAID are more or less like a software at the end. Maybe tht's why is seen tht way by the installer11:45
antaresgadesRoyK: Yes it looks like a little mess. However, I've found here a guide for creating RAID with the installer with 20.04. At least I'm able to begin to the installation, see what happens11:46
antaresgadeshttps://askubuntu.com/questions/1234949/install-ubuntu-20-04-focal-fossa-with-raid-1-on-two-devices11:46
antaresgadesBut is a mess... all this happens when you must assembly a frankenstein savenging old computers from one day to the next :DD11:47
lordievaderantaresgades: I'd just use lvm, also for the raids. LVM is using md-raid for raids anyways.11:52
lordievaderLVM allows you to specify per logical volume if you want it in raid, and what kind of raid.11:52
antaresgadesI'll give a try then11:53
RoyKoh - he left13:21
xnoxcpaelzer:  i'm trying to figure out how to set Ubuntu circle of friend in https://uefi.org/specs/ACPI/6.4/05_ACPI_Software_Programming_Model/ACPI_Software_Programming_Model.html#boot-graphics-resource-table-bgrt16:47
xnoxso far i don't see anything in qemu16:47
xnoxand i think it is possible in EDK2 build. But I don't see a nice way of doing it, apart from like replacing the tianocore stock image.16:47
xnoxany ideas on how to make edk2 build to use Ubuntu logo by default?16:49
=== misuto2 is now known as misuto
MIFquestion, I just frozzed my self out of my server18:46
MIFis there a way to get into it?18:46
Ussatterminal ?18:49
Ussatyou cant ssh in is what you mean ?18:49
=== ijohnson is now known as ijohnson|lunch
MIFno I can't18:49
UssatSo...terminal it is. Is this a VM ?18:50
MIFNo18:50
MIFI am going to go and restart it18:50
UssatGluck18:50
UssatHow, if you dont have access ?18:53
MIFI have the physical server18:54
MIFbut I can't even loggin via keyboard18:54
=== guillaumedsde01 is now known as guillaumedsde0
=== Guest19629 is now known as MIF
=== lifeless_ is now known as lifeless
=== ijohnson|lunch is now known as ijohnson
daftykinshello folks, i'm trying to get cifs multiuser working today - so far everything works correctly if i SSH into the host as a user, then add the password manually using cifscreds - i'm following this: https://serverfault.com/questions/392619/how-to-map-windows-acl-to-linux-ones-on-a-cifs-share20:29
daftykinsthings aren't working once i reached step 7 however, which was tying this into PAM to have it automatically add the password to the keyring at login, logs show this - "request-key[40885]: : No matching action"20:30
UssatMIF, what do you mean you cant log in via keyboard, what happens when you try ?20:38
daftykins/etc/request-key.d/ contains 2 cifs related files provided by the package cifs-utils ; understanding why this doesn't work out of the box is beyond me :(20:46
TJ-daftykins: did you try the note "Before the second line, the existence of a permanent session keyring should be ensured ..." ?20:52
daftykinsTJ-: both /etc/pam.d/login and /etc/pam.d/sshd contain this line so i assumed it'd be ok "session    optional   pam_keyinit.so force revoke"20:54
TJ-daftykins: is it failing for ssh and console logins?20:55
daftykinsTJ-: as it's a remote server, the SSH case is the only one relevant to me really - i do see the error i posted twice immediately, but on a user logging in i do see a positive looking line in logs: sshd[40778]: pam_cifscreds(sshd:session): credential key for \\192.168.10.3\username added20:56
TJ-daftykins: that's what I meant - if one works and one doesn't that points to a problem in the failing access (SSH) rather than a failure in your overall configuration21:00
TJ-daftykins: try forcing SSH to use 'required'  "session required pam_keyinit.so"21:00
daftykinsok testing21:02
daftykinsTJ-: nah, identical output21:03
TJ-daftykins: see "man 8 pam_keyinit" -- try adding the 'debug' option maybe?21:04
daftykinsyeah debug is on in order to get the "No matching action" output21:04
daftykinseither that or i'm checking for logs in the wrong way, right now i'm just reading the end of "journalctl -xe"21:05
TJ-has the system any other non-default PAM settings added?21:05
daftykinsnah, vanilla system otherwise21:05
TJ-I'm wondering if there's another PAM module interferring due to ordering21:06
daftykinsunless R-Studio has done anything in order to tie its' logins to it21:06
daftykinsTJ-: for fun i created a debian 10 VM and that behaves identically21:38
TJ-fails for ssh but not for console?21:39
daftykinsTJ-: no, fails on both21:40
TJ-hmmm, would something like this (with correct UID) give clues? " journalctl -u user@1000.service "21:44
daftykinsi sub'd that to be my username and left it as 1000 since that's my UID, do i need to change .service to something else as well? i just got no output at all21:45
daftykinsoh my deary me i solved it21:49
daftykinslet me test again to confirm21:50
daftykinsok it works on my debian VM logging in at a TTY, but not over SSH21:53
daftykinsthat's really weird21:56
TJ-daftykins: right, so it's the unique path PAM takes for SSH vs login (console) - compare the options and figure out what ssh is missing!22:01
daftykinsbtw my mistake before was that i was specifying domain=<server IP> in the pam.d files but my .smbpass credential file didn't declare the domain, i added that param "domain=IP" and it began working22:02
daftykinsTJ-: i've no idea how to do that part :D22:03
daftykinsweeeeird now both work on my debian VM22:06

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