Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
1
votes
2
answers
1997
views
Unable to kickstart machine with spacewalk / 404 squashfs.img
I am using spacewalk 2.6 on a CentOS7 machine. I am trying to kickstart machine from the spacewalk server. For troubleshooting purposes, i have * disabled SElinux * no iptabled/firewalld I have tried creating an installable tree during the syncing of channel/repo of a CentOS7. After the distribution...
I am using spacewalk 2.6 on a CentOS7 machine.
I am trying to kickstart machine from the spacewalk server.
For troubleshooting purposes, i have
* disabled SElinux
* no iptabled/firewalld
I have tried creating an installable tree during the syncing of channel/repo of a CentOS7. After the distribution is added in spacewalk, is set the installer generation to Red Hat Linux 7. I have also mounted an iso of a netinstall iso of SL, and copied its content to the spcewalk server to create a distribution in Spacewalk
I create a kickstart in the GUI of spacewalk, all fine and well.
When i kickstart a machine, it fails because it cannot find
LiveOS/squashfs.img
. The file is there on the server, but the httpd gives an 404. I tried to widen the permission on the LiveOS folder in the kickstart tree but no dice.
10.10.70.8 - - [15/Jan/2017:12:39:00 +0100] "POST /cobbler_api HTTP/1.1" 200 143 "-" "Java/1.8.0_111"
10.10.70.8 - - [15/Jan/2017:12:39:00 +0100] "POST /cobbler_api HTTP/1.1" 200 129 "-" "Java/1.8.0_111"
10.10.10.6 - - [15/Jan/2017:12:39:00 +0100] "GET /var/satellite/rhn/kickstart/sl_netinst/.treeinfo HTTP/1.1" 404 4715 "-" "curl/7.29.0"
10.10.10.6 - - [15/Jan/2017:12:39:00 +0100] "GET /var/satellite/rhn/kickstart/sl_netinst/LiveOS/squashfs.img HTTP/1.1" 404 4715 "-" "curl/7.29.0"
-rw-r-xr-x. 1 777 root 282337280 Jan 13 23:48 /var/satellite/rhn/kickstart/sl_netinst/LiveOS/squashfs.img
Can someone help me troublshoot this?
Arch
(11 rep)
Jan 15, 2017, 11:44 AM
• Last activity: Apr 21, 2025, 10:00 PM
1
votes
1
answers
1280
views
Suse 12.1 autoyast, root password not set
I'm trying to configure autoyast to run via cobbler. For some reason the root password is not getting set. I've tried to use encrypted password and generating a profile from GUI autoyast and then copying the "users" section. Nothing seems to work. This is what I have in the autoyast xml file. false...
I'm trying to configure autoyast to run via cobbler.
For some reason the root password is not getting set.
I've tried to use encrypted password and generating a profile from GUI autoyast and then copying the "users" section. Nothing seems to work.
This is what I have in the autoyast xml file.
false
password
root
Thanks in advance.
KianTern
(59 rep)
Jan 28, 2013, 02:19 PM
• Last activity: Nov 12, 2020, 09:00 PM
0
votes
1
answers
1393
views
How to configure DHCP server in Virtualbox CentOS7 VM for Cobbler PXE boot?
I am very new to Virtual Box and try to emulate [cobber][1] PXE boot network installation in virtual box Trying to configure VM1 as PXE/DHCP server and make VM2 as client to get the IP from VM1 DHCP server on network boot for network installation. But keep on getting IP from host machine where virtu...
I am very new to Virtual Box and try to emulate cobber PXE boot network installation in virtual box
Trying to configure VM1 as PXE/DHCP server and make VM2 as client to get the IP from VM1 DHCP server on network boot for network installation.
But keep on getting IP from host machine where virtual box installed. because of that VM2 could not find the pxeboot files that is present in the VM1.
**VM1 dhcp status snippet:**
Listening on LPF/enp0s3/08:00:27:86:b1:c6/192.168.43.0/24
Aug 09 19:03:23 localhost.localdomain dhcpd: Sending on LPF/enp0s3/08:00:27:86:b1:c6/192.168.43.0/24
Aug 09 19:03:23 localhost.localdomain dhcpd: Sending on Socket/fallback/fallback-net
Aug 09 19:03:23 localhost.localdomain systemd[1] : Started DHCPv4 Server Daemon.
**VM1 dhcp conf file**
ddns-update-style interim;
allow booting;
allow bootp;
ignore client-updates;
set vendorclass = option vendor-class-identifier;
option pxe-system-type code 93 = unsigned integer 16;
subnet 192.168.43.0 netmask 255.255.255.0 {
option routers 192.168.43.1;
option domain-name-servers 192.168.43.1;
option subnet-mask 255.255.255.0;
range dynamic-bootp 192.168.43.100 192.168.43.254;
default-lease-time 21600;
max-lease-time 43200;
next-server 192.168.43.146;
class "pxeclients" {
match if substring (option vendor-class-identifier, 0, 9) = "PXEClient";
if option pxe-system-type = 00:02 {
filename "ia64/elilo.efi";
} else if option pxe-system-type = 00:06 {
filename "grub/grub-x86.efi";
} else if option pxe-system-type = 00:07 {
filename "grub/grub-x86_64.efi";
} else if option pxe-system-type = 00:09 {
filename "grub/grub-x86_64.efi";
} else {
filename "pxelinux.0";
}
}
}
# group for Cobbler DHCP tag: default
group {
host centostest.mydomain.com-net0 {
hardware ethernet 08:00:27:7f:aa:f1;
fixed-address 192.168.43.120;
option host-name "centostest.mydomain.com";
option subnet-mask 255.255.255.0;
option routers 192.168.43.1;
filename "/pxelinux.0";
next-server 192.168.43.146;
}
}
**VM1 adapter setting - server**
**VM2 Adapter setting - client**
**Upon network boot of VM2, it gets IP 192.168.43.17 instead of 192.168.43.120 as provided in the vm1 dhcp conf file**
How to fix this issue?



Mohan
(143 rep)
Aug 9, 2019, 02:03 PM
• Last activity: Sep 18, 2019, 11:29 AM
0
votes
0
answers
822
views
Failed to start LSB: daemon for libvirt virtualization API
I am trying to install cobber(https://cobbler.github.io/) in centos VM. when I tried to start cobbler , libvirtd fails to start message thrown. [root@dev cobbler]# systemctl start cobblerd Job for cobblerd.service failed because the control process exited with error code. See "systemctl status cobbl...
I am trying to install cobber(https://cobbler.github.io/) in centos VM.
when I tried to start cobbler , libvirtd fails to start message thrown.
[root@dev cobbler]# systemctl start cobblerd
Job for cobblerd.service failed because the control process exited with error code. See "systemctl status cobblerd.service" and "journalctl -xe" for details.
cobblerd.service log
[root@dev cobbler]# systemctl status cobblerd.service
● cobblerd.service - LSB: daemon for libvirt virtualization API
Loaded: loaded (/etc/rc.d/init.d/cobblerd; bad; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2019-05-24 04:30:55 PDT; 7s ago
Docs: man:systemd-sysv-generator(8)
Process: 1615 ExecStart=/etc/rc.d/init.d/cobblerd start (code=exited, status=1/FAILURE)
May 24 04:30:54 dev systemd: Starting LSB: daemon for libvirt virtualization API...
May 24 04:30:55 dev cobblerd: Starting cobbler daemon: [FAILED]
May 24 04:30:55 dev systemd: cobblerd.service: control process exited, code=exited status=1
May 24 04:30:55 dev systemd: Failed to start LSB: daemon for libvirt virtualization API.
May 24 04:30:55 dev systemd: Unit cobblerd.service entered failed state.
May 24 04:30:55 dev systemd: cobblerd.service failed.
Below is the logs of journalctl -xe
[root@dev ~]# systemctl start cobblerd
Job for cobblerd.service failed because the control process exited with error code. See "systemctl status cobblerd.service" and "journalctl -xe" for details.
[root@dev ~]# journalctl -xe
Jun 03 19:58:34 ztp-dev sshd: Failed password for invalid user support from 104.99.0.147 port 56131 ssh2
Jun 03 19:58:34 ztp-dev sshd: Connection reset by 104.99.0.147 port 56131 [preauth]
Jun 03 19:58:36 ztp-dev sshd: Did not receive identification string from 104.99.0.147 port 56418
Jun 03 19:58:45 ztp-dev polkitd: Registered Authentication Agent for unix-process:29996:625961854 (system bus name :1.3601 [/usr/bin/pkttyagent --notify-fd 5 --fall
Jun 03 19:58:45 ztp-dev systemd: Reloading.
Jun 03 19:58:45 ztp-dev polkitd: Unregistered Authentication Agent for unix-process:29996:625961854 (system bus name :1.3601, object path /org/freedesktop/PolicyKit
Jun 03 19:59:21 ztp-dev sshd: Invalid user demo from 125.207.14.76 port 47714
Jun 03 19:59:21 ztp-dev sshd: input_userauth_request: invalid user demo [preauth]
Jun 03 19:59:21 ztp-dev sshd: pam_unix(sshd:auth): check pass; user unknown
Jun 03 19:59:21 ztp-dev sshd: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=125.207.14.76
Jun 03 19:59:23 ztp-dev sshd: Failed password for invalid user demo from 125.207.14.76 port 47714 ssh2
Jun 03 19:59:23 ztp-dev sshd: Received disconnect from 125.207.14.76 port 47714:11: Bye Bye [preauth]
Jun 03 19:59:23 ztp-dev sshd: Disconnected from 125.207.14.76 port 47714 [preauth]
Jun 03 20:00:09 ztp-dev sshd: Did not receive identification string from 219.92.1.132 port 57163
Jun 03 20:00:17 ztp-dev sshd: Address 25.95.113.42 maps to host.colocrossing.com, but this does not map back to the address - POSSIBLE BREAK-IN ATTEMPT!
Jun 03 20:00:17 ztp-dev sshd: Invalid user raynard from 25.95.113.42 port 52350
Jun 03 20:00:17 ztp-dev sshd: input_userauth_request: invalid user raynard [preauth]
Jun 03 20:00:17 ztp-dev sshd: pam_unix(sshd:auth): check pass; user unknown
Jun 03 20:00:17 ztp-dev sshd: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=25.95.113.42
Jun 03 20:00:19 ztp-dev sshd: Failed password for invalid user raynard from 25.95.113.42 port 52550 ssh2
Jun 03 20:00:19 ztp-dev sshd: Received disconnect from 25.95.113.42 port 52350:11: Bye Bye [preauth]
Jun 03 20:00:19 ztp-dev sshd: Disconnected from 25.95.113.42 port 52350 [preauth]
Jun 03 20:00:28 ztp-dev polkitd: Registered Authentication Agent for unix-process:30025:625972177 (system bus name :1.3602 [/usr/bin/pkttyagent --notify-fd 5 --fall
Jun 03 20:00:28 ztp-dev systemd: Starting LSB: daemon for libvirt virtualization API...
-- Subject: Unit cobblerd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit cobblerd.service has begun starting up.
Jun 03 20:00:29 ztp-dev cobblerd: Starting cobbler daemon: [FAILED]
Jun 03 20:00:29 ztp-dev systemd: cobblerd.service: control process exited, code=exited status=1
Jun 03 20:00:29 ztp-dev systemd: Failed to start LSB: daemon for libvirt virtualization API.
-- Subject: Unit cobblerd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit cobblerd.service has failed.
--
-- The result is failed.
Jun 03 20:00:29 ztp-dev systemd: Unit cobblerd.service entered failed state.
Jun 03 20:00:29 ztp-dev systemd: cobblerd.service failed.
Jun 03 20:00:29 ztp-dev polkitd: Unregistered Authentication Agent for unix-process:30025:625972177 (system bus name :1.3602, object path /org/freedesktop/PolicyKit
I could able to start libvirtd like below.
[root@dev cobbler]# systemctl status libvirtd
● libvirtd.service - Virtualization daemon
Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2019-05-24 04:09:21 PDT; 20min ago
Docs: man:libvirtd(8)
https://libvirt.org
Main PID: 789 (libvirtd)
Tasks: 19 (limit: 32768)
CGroup: /system.slice/libvirtd.service
├─ 789 /usr/sbin/libvirtd
├─29627 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_leaseshelper
└─29628 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_leaseshelper
May 24 04:09:21 dev systemd: Starting Virtualization daemon...
May 24 04:09:21 dev systemd: Started Virtualization daemon.
May 24 04:09:21 dev dnsmasq: read /etc/hosts - 2 addresses
May 24 04:09:21 dev dnsmasq: read /var/lib/libvirt/dnsmasq/default.addnhosts - 0 addresses
May 24 04:09:21 dev dnsmasq-dhcp: read /var/lib/libvirt/dnsmasq/default.hostsfile
I could able to start/stop libvirt using systemctl start/stop libvirt command, but libvirtd fails to start when run the systemctl start cobblerd
How to address this issue?
Thanks,
Mohan
Mohan
(143 rep)
May 27, 2019, 01:37 AM
• Last activity: Jun 4, 2019, 03:28 AM
0
votes
1
answers
68
views
CentOS7 repository- is there such a thing?
I have found a CentOS7 EPEL repository here: http://www.mirrorservice.org/sites/download.fedora.redhat.com/pub/epel/7/x86_64/ but I was wondering if there is such a thing as just a Centos7 repository (i.e. not the EPEL one)? The reason I ask is I'm looking through a cobbler servers listed repositori...
I have found a CentOS7 EPEL repository here:
http://www.mirrorservice.org/sites/download.fedora.redhat.com/pub/epel/7/x86_64/
but I was wondering if there is such a thing as just a Centos7 repository (i.e. not the EPEL one)?
The reason I ask is I'm looking through a cobbler servers listed repositories, and for the previous version of Centos (6.5) it states it holds both a "Centos6.5-EPEL" repository AND a "CentOS 6.5" repository. Yet when I google to try and find the location a purely Centos repository, I can't find anything.
nmh
(169 rep)
Aug 19, 2016, 10:02 AM
• Last activity: Aug 25, 2018, 09:20 PM
0
votes
1
answers
383
views
Preseeding a Debian Jessie doesn't yield a default gateway
I used this in the .seed file: d-i netcfg/choose_interface select eth0 d-i netcfg/get_hostname string fj4.testnet d-i netcfg/disable_autoconfig boolean true d-i netcfg/dhcp_failed note d-i netcfg/dhcp_options select Configure network manually d-i netcfg/get_ipaddress string 10.201.0.34 d-i netcfg/ge...
I used this in the .seed file:
d-i netcfg/choose_interface select eth0
d-i netcfg/get_hostname string fj4.testnet
d-i netcfg/disable_autoconfig boolean true
d-i netcfg/dhcp_failed note
d-i netcfg/dhcp_options select Configure network manually
d-i netcfg/get_ipaddress string 10.201.0.34
d-i netcfg/get_netmask string 255.255.0.0
d-i netcfg/get_gateway string 10.201.0.1
d-i netcfg/get_nameservers string 10.206.0.11
d-i netcfg/confirm_static boolean true
which I use (adapted, with cobbler) and the installed system does have the correct ip address and netmask, but no gateway directive in the /etc/network/interfaces file.
What am I missing?
elpollodiablo
(11 rep)
Mar 30, 2017, 03:04 PM
• Last activity: Mar 30, 2017, 03:46 PM
1
votes
1
answers
333
views
Can't virt-install during the kickstart of the hypervisor
We install physical machines using cobbler/kickstart. On theses physical machines we need to be sure that one specific VM is installed and will be running on startup, so we tried to install the vm during a kickstart %post section without success so far. Our first try was dead simple: %post --log=/ro...
We install physical machines using cobbler/kickstart.
On theses physical machines we need to be sure that one specific VM is installed and will be running on startup, so we tried to install the vm during a kickstart %post section without success so far.
Our first try was dead simple:
%post --log=/root/virt.log
service libvirtd start
virt-install ... --import
%end
But we had
running in chroot ignoring request
so we tried with --nochroot
but still nothing.
Any ideas? This is our client request, I'm not even sure this is really compliant with the cobbler way.
michael_bitard
(113 rep)
Oct 7, 2016, 08:16 AM
• Last activity: Oct 7, 2016, 01:54 PM
2
votes
1
answers
792
views
Rsync error using replicate command with cobbler
I am having an issue with creating a cobbler clone using the `replicate` command. I have a total of 4 distros in the original cobbler. All of them are being cloned correctly, except for one. This is the error I get when I am running replicate: received on stderr: Rsyncing distro FC22-ws-i386 running...
I am having an issue with creating a cobbler clone using the
replicate
command. I have a total of 4 distros in the original cobbler. All of them are being cloned correctly, except for one. This is the error I get when I am running replicate:
received on stderr:
Rsyncing distro FC22-ws-i386
running: rsync -avzH cobbler_machine::distro-FC22-ws-i386 /var/www/cobbler/ks_mirror/fedora22_ws
received on stdout:
received on stderr: @ERROR: Unknown module 'distro-FC22-ws-i386'
rsync error: error starting client-server protocol (code 5) at main.c(1503) [receiver=3.0.6]
I tried finding similar examples of the @ERROR: Unkown module, but I couldn't use the other cases I found online to get a solution for my issue. Rsync works properly for all the other ones. I am suspecting there is something missing inside of the fedora22_ws directory, but I don't know what it could be. Any ideas?
LinuxLearner
(459 rep)
Aug 10, 2016, 11:27 PM
• Last activity: Aug 11, 2016, 04:40 PM
0
votes
1
answers
604
views
Cobbler+Kickstart $basearch problems
I'm using CentOS 6.5 with Cobbler 2.4 (from EPEL). I'm trying to use a heredoc comment to create a repo file (which works) without the `$basearch` being interpreted. What happens is the file is created except `$basearch` is replaced with nothing (e.g. it's removed). What I have: %post #raw cat > /et...
I'm using CentOS 6.5 with Cobbler 2.4 (from EPEL). I'm trying to use a heredoc comment to create a repo file (which works) without the http://repo.local/repo/$basearch
enabled=1
priority=99
gpgcheck=0
REPO
#end raw
%end
What actually gets put in
$basearch
being interpreted. What happens is the file is created except $basearch
is replaced with nothing (e.g. it's removed).
What I have:
%post
#raw
cat > /etc/yum.repos.d/blah.repo </etc/yum.repos.d/blah.repo
($basearch
is missing):
[repo]
name=repo
baseurl=http://repo.local/repo/
enabled=1
priority=99
gpgcheck=0
Things I have have verified:
- I know it's not Cobbler or Cheetah because cobbler validateks
and cobbler profile getks ...
reports back to me the kickstart script unmodified (when using #raw
and #end raw
.
- I created a sample of the template within Cheetah and it properly showed the un-escaped string.
I was doing some further research and found this , from the first bullet it looks like $basearch
is a special variable within kickstart. Are there any suggestions on how to get around this without using curl
to get the file or explicitly defining the architecture? I want to keep this within the kickstart file for simplicity sake.
user26053
Jul 17, 2014, 09:15 PM
• Last activity: Jul 18, 2014, 01:04 PM
2
votes
1
answers
284
views
RHEL6 not registering correctly when using PXE boot via Cobbler
When I create a RHEL6 server using the DVD media, it works fine. However, we want to do PXE installs. We import the RHEL6 DVD to cobbler by doing the following: $ sudo mount -o loop,ro rhel6-dvd.iso /media $ sudo cobbler import --path=/media/ --name=rhel-6 --arch=x86_64 The install goes through fine...
When I create a RHEL6 server using the DVD media, it works fine. However, we want to do PXE installs.
We import the RHEL6 DVD to cobbler by doing the following:
$ sudo mount -o loop,ro rhel6-dvd.iso /media
$ sudo cobbler import --path=/media/ --name=rhel-6 --arch=x86_64
The install goes through fine. However, it seems that the registration isn't completed correctly. Here is the output:
The system has been registered with id: (snipped ID)
Installed Product Current Status:
With a regular install, I'd get a list of products. When I do
yum repolist
, I don't get any of the RHN repos:
# yum repolist
Loaded plugins: product-id, security, subscription-manager
Updating certificate-based repositories.
repo id repo name status
epel Extra Packages for Enterprise Linux 6 - x86_64 8,312
repolist: 8,312
Any idea why it is not registering correctly via cobbler
but working fine when using DVDs?
Belmin Fernandez
(9877 rep)
Jan 18, 2013, 04:05 PM
• Last activity: May 22, 2013, 06:15 AM
Showing page 1 of 10 total questions