Re: [CentOS] Prevent Anaconda from switching root and swap partition
- On Apr 7, 2021, at 2:39 PM, Nicolas Thierry-Mieg nicolas.thierry-m...@univ-grenoble-alpes.fr wrote: > On 3/31/21 11:10 AM, Nicolas Kovacs wrote: >> Hi, >> >> More often than not, when installing CentOS, I choose manual partitioning and >> then apply the KISS principle, with a very simple partitioning scheme that >> looks more or less like this: >> >>* /boot partition: 500 MB, ext2 >>* swap partition: equivalent to amount of RAM >>* root partition: available space, ext4 >> >> Now when I do this, Anaconda insists on switching my swap and root >> partitions, >> so instead of this: >> >>* /dev/sda1: boot partition >>* /dev/sda2: swap partition >>* /dev/sda3: root partition >> >> ... I get this: >> >>* /dev/sda1: boot partition >>* /dev/sda2: root partition >>* /dev/sda3: swap partition >> >> Up until now this hasn't bothered me much. But for my needs right now it >> does, >> because I need my root partition to be at the end of the disk, so it can be >> expanded later on. >> >> Anyone knows how I can prevent Anaconda from switching my root and swap >> partitions? What I'm doing right now is switching to a text console with >> Ctrl-Alt-F5, manually partition using fdisk, switch back to Anaconda and then >> rescan the disk, but it's quite a PITA. > > an alternative could be to NOT create any swap partition, and set up a > swap file instead. > man mkswap > man swapon Or you can use kickstart to install OS. So partitions will be in right order. ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Update CentOS 6 one last time?
- On Dec 8, 2020, at 6:31 PM, Paul Storck via CentOS centos@centos.org wrote: > Hello, is it possible to install the final updates for CentOS 6? > I ran a yum update and I received this message "Error: Cannot find a valid > baseurl for repo: base" > I assume it's due to the EOL of CentOS 6? You can add 6.10 section to /etc/yum.repos.d/CentOS-Vault.repo and after that install all last updates for CentOS 6 ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS-virt] Centos + VM + public ip
> Hi, > > I've got a dedicated server with OVH and I'd like to host a public VM. I'd > like > Centos OS 7 or 8, I installed KVM already, I got the VM and bought the IP and > created a virtual mac id. I know I have to bridge it somehow but I can't seem > to find a proper tutorial. Do you know where to start? You can do next: 1) Create bridge interface (for example br0) on dedicated server. Associate this interface with your Ethernet interface and assign IP address to br0. 2a) When you would create VM add parameter --network=bridge:br0 to the virt-install in command line. Or smth similar if you create VM in another way. 2b) Or edit xml file for your VM and add or change config: 3) Inside the VM assign real/public IP to you Ethernet (probably eth0) interface. That's all. If you have additional questions or you need more detail explanation you can write me directly. ___ CentOS-virt mailing list CentOS-virt@centos.org https://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS] Encrypted container on CentOS VPS
- On Feb 16, 2020, at 5:18 PM, H age...@meddatainc.com wrote: > I wonder if it is possible to set up an encrypted "file container" on a CentOS > VPS? Yes. You can create LUKS-container on CentOS VPS. > I am the root user of the VPS but the hosting company also has access to > the VPS and thus all files. Is it possible to create a LUKS-container on the > VPS and those files only be accessible by me? IOW, most of the file system on > the VPS would be regular file system but the container could be used by me as > needed. This would allow the VPS to reboot normally, I could ssh in normally > etc etc. I would rsync files as needed to this LUKS-container though. > > ___ > CentOS mailing list > CentOS@centos.org > https://lists.centos.org/mailman/listinfo/centos ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
[CentOS] Problem loading the VM after reboots.
I had a strange problem. After restarting the VM can not always run. The last line in the console (virsh console): init: Re-executing /sbin/init Please stand by while rebooting the system... Restarting system. machine restart At this time, one of the CPU core is loaded 100% (qemu-kvm process, top command) %Cpu7 : 41.8 us, 57.6 sy, 0.0 ni, 0.6 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st # free totalusedfree shared buff/cache available Mem:8009692 377744 11640769392 6467872 7299800 Swap: 2097148 0 2097148 This behavior only when the virtual machine CentOS 6.8 and HV CentOS 7.3.1116. Unsuccessful restart may occur after 2 successful, and maybe after 5 successful, and maybe on the first reboot. No clear pattern of a problem I have not seen. Tested different VM. Here's how behaved virtual machine if its reboot through virsh reboot: virsh # reboot test1 Domain test1 is being rebooted virsh # reboot test1 Domain test1 is being rebooted virsh # destroy test1 Domain test1 destroyed virsh # start test1 Domain test1 started virsh # reboot test1 Domain test1 is being rebooted virsh # reboot test1 Domain test1 is being rebooted virsh # destroy test1 Domain test1 destroyed virsh # start test1 Domain test1 started virsh # reboot test1 Domain test1 is being rebooted virsh # reboot test1 Domain test1 is being rebooted virsh # reboot test1 Domain test1 is being rebooted virsh # reboot test1 Domain test1 is being rebooted virsh # reboot test1 Domain test1 is being rebooted virsh # reboot test1 Domain test1 is being rebooted virsh # reboot test1 Domain test1 is being rebooted virsh # destroy test1 Domain test1 destroyed If the VM shutdown and then start, the problem does not occur. The problem does not occur if the VM CentOS 7.3.1611 (10 successful reboots of 10) or if the VM Windows Server 2008 R2 (10 successful reboots of 10). If the VM CentOS 6.8 and HV CentOS 6.8 the problem does not occur. First HV is: CentOS 7.3.1611 with 3.10.0-514.6.2.el7.x86_64 and 3.10.0-514.6.1.el7.x86_64 qemu-kvm-ev.x86_6410:2.6.0-28.el7_3.3.1 libvirt.x86_642.0.0-10.el7_3.4 Kernel module: kvm_intel 170181 kvm 554609 Second HV is: CentOS 7.3.1611 with 3.10.0-514.6.2.el7.x86_64 qemu-kvm.x86_6410:1.5.3-126.el7_3.3 libvirt.x86_642.0.0-10.el7_3.4 Kernel module: kvm_intel 170181 kvm 554609 ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
[CentOS-virt] Problem loading the VM after reboots.
I had a strange problem. After restarting the VM can not always run. The last line in the console (virsh console): init: Re-executing /sbin/init Please stand by while rebooting the system... Restarting system. machine restart At this time, one of the CPU core is loaded 100% (qemu-kvm process, top command) %Cpu7 : 41.8 us, 57.6 sy, 0.0 ni, 0.6 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st # free totalusedfree shared buff/cache available Mem:8009692 377744 11640769392 6467872 7299800 Swap: 2097148 0 2097148 This behavior only when the virtual machine CentOS 6.8 and HV CentOS 7.3.1116. Unsuccessful restart may occur after 2 successful, and maybe after 5 successful, and maybe on the first reboot. No clear pattern of a problem I have not seen. Tested different VM. Here's how behaved virtual machine if its reboot through virsh reboot: virsh # reboot test1 Domain test1 is being rebooted virsh # reboot test1 Domain test1 is being rebooted virsh # destroy test1 Domain test1 destroyed virsh # start test1 Domain test1 started virsh # reboot test1 Domain test1 is being rebooted virsh # reboot test1 Domain test1 is being rebooted virsh # destroy test1 Domain test1 destroyed virsh # start test1 Domain test1 started virsh # reboot test1 Domain test1 is being rebooted virsh # reboot test1 Domain test1 is being rebooted virsh # reboot test1 Domain test1 is being rebooted virsh # reboot test1 Domain test1 is being rebooted virsh # reboot test1 Domain test1 is being rebooted virsh # reboot test1 Domain test1 is being rebooted virsh # reboot test1 Domain test1 is being rebooted virsh # destroy test1 Domain test1 destroyed If the VM shutdown and then start, the problem does not occur. The problem does not occur if the VM CentOS 7.3.1611 (10 successful reboots of 10) or if the VM Windows Server 2008 R2 (10 successful reboots of 10). If the VM CentOS 6.8 and HV CentOS 6.8 the problem does not occur. First HV is: CentOS 7.3.1611 with 3.10.0-514.6.2.el7.x86_64 and 3.10.0-514.6.1.el7.x86_64 qemu-kvm-ev.x86_6410:2.6.0-28.el7_3.3.1 libvirt.x86_642.0.0-10.el7_3.4 Kernel module: kvm_intel 170181 kvm 554609 Second HV is: CentOS 7.3.1611 with 3.10.0-514.6.2.el7.x86_64 qemu-kvm.x86_6410:1.5.3-126.el7_3.3 libvirt.x86_642.0.0-10.el7_3.4 Kernel module: kvm_intel 170181 kvm 554609 ___ CentOS-virt mailing list CentOS-virt@centos.org https://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS] [CentOS-virt] Increase CPU usage on HV after upgrade (7.2 -> 7.3)
Hello Sandro, Friday, January 20, 2017, 6:54:02 PM, you wrote: > On Thu, Jan 19, 2017 at 3:40 PM, Subscriber <ml-li...@agoris.net.ua> wrote: > Hello Sandro, > Thursday, January 19, 2017, 12:12:25 PM, you wrote: >> Discussed with KVM guys, here's the answer: >> 1% per VM seems to much on idle VM; if the VM is not idle you are >> getting better performance in exchange. For idle VMs the difference >> should be roughly 0.1% per VM. > I compared the graphics load on the CPU before and after the upgrade. > After the upgrade is clearly increased CPU System time load. In all > of this mode and load VM themselves became approximately the same. > Can you share exact version of kvm, libvirt and qemu-kvm / qemu-kvm-ev you're > using? kvm_intel In CentOS 7.2.1511: kernel-3.10.0-327.36.3.el7.x86_64 qemu-kvm-1.5.3-105.el7_2.7.x86_64 libvirt-daemon-kvm-1.2.17-13.el7_2.5.x86_64 After upgrade from 7.2.1511 to 7.3.1611: It was (after upgrading to this version, I noticed described in the first report the situation): kernel-3.10.0-514.2.2.el7.x86_64 qemu-kvm-1.5.3-126.el7.x86_64 libvirt-daemon-kvm-2.0.0-10.el7_3.2.x86_64 Now (as of 2017/01/22): kernel-3.10.0-514.6.1.el7.x86_64 qemu-kvm-1.5.3-126.el7_3.3.x86_64 libvirt-daemon-kvm-2.0.0-10.el7_3.4.x86_64 It takes 1-2 days for monitoring, to determine whether the situation has changed since the last update. ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Increase CPU usage on HV after upgrade (7.2 -> 7.3)
Hello m, Thursday, January 19, 2017, 5:17:48 PM, you wrote: >>> In the mean time, if you have not disabled it, you should find some >>> collected statistics from sysstat/sar. >>> Look at the sarXX files under /var/log/sa. They should be kept for 30 >>> day >>> by default in CentOS 7. >> >> Unfortunately, on that host such statistics is disabled. > > That's surprising. That's such an old, low-level daemon/reporting tool > Was it disabled deliberately? And why? Heritage from the old admin to me. ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Increase CPU usage on HV after upgrade (7.2 -> 7.3)
Hello Gordon, Thursday, January 19, 2017, 4:57:48 PM, you wrote: > On 01/19/2017 06:29 AM, Subscriber wrote: >>> and what kind of IO patterns do those VMs >>> have? >> Do not quite understand. What do you mean? >> > What at the VMs doing? Its gateway from local network to Internet > Are they entirely idle? At work time - No. Another time in most - Yes > Are they doing light > work, mostly reading from disks? If they're not generating disk IO, > then that's not related. Well no. They are not loaded the disc(s). No heavy for write operations. ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Increase CPU usage on HV after upgrade (7.2 -> 7.3)
Hello Gordon, Thursday, January 19, 2017, 5:09:29 PM, you wrote: > On 01/19/2017 06:54 AM, Subscriber wrote: >> But I collect such statistics in Zabbix. And the numbers and graphs >> indicate an increase in the load on the CPU (ie System time). > "load" has another meaning in the context of POSIX system performance > counters. I'm pretty sure you're talking about CPU utilization and not > "load", right? Definitely. ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Increase CPU usage on HV after upgrade (7.2 -> 7.3)
Hello Subscriber, Thursday, January 19, 2017, 4:44:04 PM, you wrote: > Hello Gianluca, > Wednesday, January 18, 2017, 3:54:15 PM, you wrote: >> In the mean time, if you have not disabled it, you should find some >> collected statistics from sysstat/sar. >> Look at the sarXX files under /var/log/sa. They should be kept for 30 day >> by default in CentOS 7. > Unfortunately, on that host such statistics is disabled. But I collect such statistics in Zabbix. And the numbers and graphs indicate an increase in the load on the CPU (ie System time). ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Increase CPU usage on HV after upgrade (7.2 -> 7.3)
Hello Gianluca, Wednesday, January 18, 2017, 3:54:15 PM, you wrote: > In the mean time, if you have not disabled it, you should find some > collected statistics from sysstat/sar. > Look at the sarXX files under /var/log/sa. They should be kept for 30 day > by default in CentOS 7. Unfortunately, on that host such statistics is disabled. > So you can compare cpu, mem, I/O profiles before and after the upgrade. > If you have access to Red Hat documents you can look also here: > https://access.redhat.com/articles/325783 > or in general some articles like this: > https://www.blackmoreops.com/2014/06/18/sysstat-sar-examples-usage/ > and to create pdf graphics with kSar > https://www.thomas-krenn.com/en/wiki/Linux_Performance_Analysis_using_kSar > HIH, > Gianluca > ___ > CentOS mailing list > CentOS@centos.org > https://lists.centos.org/mailman/listinfo/centos -- Best regards, Subscribermailto:ml-li...@agoris.net.ua ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Increase CPU usage on HV after upgrade (7.2 -> 7.3)
Hello Gordon, Wednesday, January 18, 2017, 11:52:35 PM, you wrote: > On 01/18/2017 05:34 AM, Subscriber wrote: >> Someone noticed something similar? > How is your storage arranged, It is software RAID1 + LVM > and what kind of IO patterns do those VMs > have? Do not quite understand. What do you mean? > During recent testing, I found that the read performance of software > RAID volumes was worse under 7.3 than it was under 7.2. Most other IO > had improved significantly: > https://plus.google.com/+GordonMessmer/posts/eSe6iNmk1Fs?sfc=false ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
[CentOS] Increase CPU usage on HV after upgrade (7.2 -> 7.3)
Hello , After upgrading the system from CentOS 7.2.1511 to CenOS 7.3.1611 I see that the average processing time has increased from 5-7% to 12-15% (doubled). Not critical but it is not pleasant. Server as KVM with 5 virtual machines. Someone noticed something similar? If so, how to fix that? Thx. ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
[CentOS-virt] Increase CPU usage on HV after upgrade (7.2 -> 7.3)
Hello , After upgrading the system from CentOS 7.2.1511 to CenOS 7.3.1611 I see that the average processing time has increased from 5-7% to 12-15% (doubled). Not critical but it is not pleasant. Server as KVM with 5 virtual machines. Someone noticed something similar? If so, how to fix that? Thx. ___ CentOS-virt mailing list CentOS-virt@centos.org https://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS] CentOS7 firewalld ploblem
Thursday, July 14, 2016, 11:32:31 AM, you wrote: > Dear Members, > Please tell me how can I fix this problem. > Against allow imap on firewalld, I cannot access to the server. imap - port 143 pop3 - port 110 add to firewalld service pop3 or try telnet 153.153.xxx.xxx 143 > [root@speedex ~]# telnet 153.153.xxx.xxx 110 > Trying 153.153.xxx.xxx... > telnet: connect to address 153.153.xxx.xxx: No route to host > After stopping forewalld I can access to the server. > [root@speedex ~]# telnet 153.153.xxx.xxx 110 > Trying 153.153.xxx.xxx... > Connected to 153.153.xxx.xxx. > Escape character is '^]'. > +OK Dovecot ready. > ^] telnet>> quit > I have attached nmcli and firewalld data. Please check it. > If you need more please tell me. > Tadao -- Best regards, Subscribermailto:ml-li...@agoris.net.ua ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Kernel panic on 6.8 release with kernel-2.6.32-642.el6.x86_64
Hello Sorin, Thursday, May 26, 2016, 1:58:29 PM, you wrote: > Hi, > Of the four machines tested, two failed with a kernel panic. > At the time, I just rebooted to a previous kernel, as a quick fix. > I found some of the issues you list already. > I've run the CR-updates on a few test-machines since they became available > and have had no problem. Weird... > I've tested some more now, and it seems the upgrade went fine on my > Virtualbox Win7-host for the test-guests. No kernel-panic, all seems well. > The ones that failed were all Hyper-V guests. > I need to pick a sacrificial physical computer and see if it's reproducible. > For now, trouble-shooting and testing on Hyper-V as I write this. Im just updated VM from 6.7 on 6.8 without problems. KVM hypervisor CentOS6.7 -- Best regards, Subscribermailto:ml-li...@agoris.net.ua ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
[CentOS-virt] version(qemu-kvm) with parallel port support
Whether there is a version of the qemu-kvm with support for parallel port (passthrough). I need parallel port for Windows VM (security dongle LPT). I use on one host # /usr/libexec/qemu-kvm -version QEMU emulator version 2.3.0 (qemu-kvm-ev-2.3.0-31.el7_2.10.1) another host /usr/libexec/qemu-kvm -version QEMU emulator version 1.5.3 (qemu-kvm-1.5.3-105.el7_2.3) Both versions do not support parallel port and generate error: qemu-kvm: -device isa-parallel,chardev=char parallel 0,id=parallel 0: 'isa-parallel' is not a valid device model name ___ CentOS-virt mailing list CentOS-virt@centos.org https://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS] KVM Virtualization Network VLAN CentOS7
Hello FrancisM, Thursday, April 7, 2016, 11:20:20 AM, you wrote: > After trying the method using the 'nmcli' its the same error result as > what I encountered in using the 'nmtui' by the way after configuring then > check it in the nmtui its the same configuration as what I have done > earlier. You mast use or NetworkManager.service or network.service, not both systemctl disable network.service systemctl enable NetworkManager.service nmcli connection show > [root@server network-scripts]# systemctl status network.service -l > ● network.service - LSB: Bring up/down networking >Loaded: loaded (/etc/rc.d/init.d/network) >Active: failed (Result: exit-code) since Tue 2015-04-07 17:19:00 SGT; > 1min 13s ago > Docs: man:systemd-sysv-generator(8) > Process: 48732 ExecStop=/etc/rc.d/init.d/network stop (code=exited, > status=0/SUCCESS) > Process: 49302 ExecStart=/etc/rc.d/init.d/network start (code=exited, > status=1/FAILURE) > Apr 07 17:17:28 server network[49302]: [ OK ] > Apr 07 17:17:29 server network[49302]: Bringing up interface > team1_slave_enp5s0f1: Connection successfully activated (D-Bus active > path: /org/freedesktop/NetworkManager/ActiveConnection/69) > Apr 07 17:17:29 server network[49302]: [ OK ] > Apr 07 17:19:00 server network[49302]: *Bringing up interface vlan247: > Error: Timeout 90 sec expired.* > Apr 07 17:19:00 server network[49302]: *[FAILED]* > Apr 07 17:19:00 server network[49302]: Bringing up interface br247: [ OK > ] > Apr 07 17:19:00 server systemd[1]: network.service: control process exited, > code=exited status=1 > Apr 07 17:19:00 server systemd[1]: Failed to start LSB: Bring up/down > networking. > Apr 07 17:19:00 server systemd[1]: Unit network.service entered failed > state. > Apr 07 17:19:00 server systemd[1]: network.service failed. > [root@server network-scripts]# > I will try to use other configuration on this bridge. Does it matter if I > use TEAMING and not BONDING on this bridging configuration because the two > nic card that is trunk is configured as TEAMING in my CentOS7 I am using teaming +bridge +vlan. All works as expected/ ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] KVM Virtualization Network VLAN CentOS7
Hello FrancisM, Thursday, April 7, 2016, 8:03:38 AM, you wrote: > I tried last night and it seems like the vlans that I created is failing to > bring-up. So this is what Im doing > in my DATA trunk port at my HomeLab Im doing this > 2 port configured for teaming1 (set as link only port) -> Create Bridge > (br0 port) on top of the teaming1 -> create slave vlan10,20,30,40 and the > parent is br0. Am I doing this correctly? Thanks not exactly. nmcli connection add con-name br10 ifname br10 type bridge stp no nmcli connection down br10 nmcli connection edit br10 set ipv4.method disabled set ipv6.method ignore save quit nmcli connection up br10 nmcli connection add con-name vlan10 ifname vlan10 type vlan dev teaming1 id 10 nmcli connection down vlan10 nmcli connection edit vlan10 set connection.master br10 set connection.slave-type bridge verify fix save exit nmcli connection up vlan10 similarly for br20+vlan20, br30+vlan30, br40+vlan40 ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] KVM Virtualization Network VLAN CentOS7
Hello James, Wednesday, April 6, 2016, 5:34:26 PM, you wrote: > Note that this is pretty much the last use case you cannot use > NetworkManager for but need the legacy network service ... to save you some > pain in trying to configure it ;) I disagree... NetworkManager works perfectly. ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
[CentOS] Bridg and dhclient
Hi. Anyone can help me? I have Linux 3.10.0-123.20.1.el7.x86_64 # cat /etc/os-release NAME=CentOS Linux VERSION=7 (Core) ID=centos ID_LIKE=rhel fedora VERSION_ID=7 PRETTY_NAME=CentOS Linux 7 (Core) I added new virtual interfaces (br71 and vlan71) via NetworkManager # cat /etc/sysconfig/network-scripts/ifcfg-br71 DEVICE=br71 STP=no TYPE=Bridge BOOTPROTO=none IPV6INIT=no NAME=br71 ONBOOT=yes # cat /etc/sysconfig/network-scripts/ifcfg-vlan71 VLAN=yes TYPE=Vlan DEVICE=vlan71 PHYSDEV=team0 VLAN_ID=71 REORDER_HDR=0 BOOTPROTO=none IPV6INIT=no NAME=vlan71 ONBOOT=yes NM_CONTROLLED=yes BRIDGE=br71 Q: When interface going up (nmcli connection up br71) it was trying to get ip-addres via dhclient (but options BOOTPROTO=none uses). Why? nmcli device status DEVICETYPE STATE CONNECTION vlan71vlan connected vlan71 br71 bridgeconnecting (getting IP configuration) br71 Something wrong in my config files? Thx. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos