- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我有一个设置,我通过 virt-install 执行新 VM 的 kickstart。
一切运行正常,但虚拟机没有按照 kickstart 文件中的指示执行重启,而是关闭了。
VM主机为运行libvirt 1.2.17-13的CentOS 7.2系统
一旦我手动启动新的 VM,一切都如预期的那样。
有谁知道系统拒绝重启的原因以及如何解决这个问题?
谢谢。
这是我的 kickstart 文件的模板:
(请不要开始讨论禁用 selinux 和不使用 firewalld。问题是关于重启 ;-))
# Kickstart Configuration for MINIMAL CENTOS
# We are going to perform a fresh installation
install
eula --agreed
# Set language, keyboard and timezone
lang en_US.UTF-8
keyboard us
timezone Europe/Amsterdam
# Set authentication options
# authconfig --enableshadow --enablemd5
auth --useshadow --enablemd5
# No SELinux
selinux --disabled
# Enable the firewall and open the ssh port
# firewall --enable --ssh
firewall --disable
# Set services
services --enabled=NetworkManager,sshd
# Run the installation in text mode
text
# Skip initialization of X
skipx
# Configure the harddisk
# This is a macro that will be replaced by the actual disk configuration
{DISKCONFIG}
# Define the network interface and the hostname
# {IP} and {FQDN} are macros that will be replaced by correct values
network --activate --device=eth0 --bootproto=static --ip=192.168.1.{IP} --netmask=255.255.255.0 --gateway=192.168.1.1 --nameserver=192.168.1.199 --hostname={FQDN} --noipv6
# Set the root password
# For obvious reasons, I have removed the root hash here
rootpw --iscrypted {ROOTHASH}
# configer epel and puppetlab client repo
# {BASEURL} and {NETINSTURL} are macros that are replaced by the actual values
repo --name=base --baseurl={BASEURL}/os/x86_64
repo --name=extras --baseurl={BASEURL}/extras/x86_64
repo --name=updates --baseurl={BASEURL}/updates/x86_64
# We will install from internet
url --url {NETINSTURL}
# Reboot after the kickstart process is finished
# HERE is the reboot command
reboot
# Install the minimal system with some extras
%packages --nobase
coreutils
yum
yum-cron
rpm
e2fsprogs
lvm2
grub2
sysstat
ntp
openssh-server
openssh-clients
man
mlocate
epel-release
wget
%end
%post --log=/root/ks-post.log
exec < /dev/tty3 > /dev/tty3
chvt 3
echo
echo "################################"
echo "# Running Post Configuration #"
echo "################################"
echo
echo "################################"
echo "# Install puppetlabs and stdlib library"
echo "################################"
rpm -ivh {PUPPETLABS}
yum install -y puppet
puppet module install puppetlabs-stdlib
# retrieve the configuration files
# {CONFIGFILEHOST} is a macro that will be replaced by a correct value
wget -O /etc/puppet/puppet.conf http://{CONFIGFILEHOST}/puppet.conf
# Now run puppet to finish configuration
puppet agent -t
# swap to console 1
chvt 1
%end
这是/var/log/anaconda 中所有日志文件的最后 10 行:
==========
= anaconda.log
==========
05:38:32,645 INFO anaconda: Writing network configuration
05:38:32,646 INFO anaconda: Creating users
05:38:32,646 INFO anaconda: Clearing libuser.conf at /tmp/libuser.bNJxLy
05:38:32,898 INFO anaconda: Creating users
05:38:32,899 INFO anaconda: Configuring addons
05:38:32,906 INFO anaconda: Configuring addons
05:38:32,906 INFO anaconda: Generating initramfs
05:38:56,905 INFO anaconda: Generating initramfs
05:38:56,905 INFO anaconda: Running post-installation scripts
05:38:56,905 INFO anaconda: Running kickstart %%post script(s)
==========
= ifcfg.log
==========
05:31:10,594 DEBUG ifcfg: ONBOOT=yes
05:31:10,594 DEBUG ifcfg: IPV6INIT=no
05:31:10,594 DEBUG ifcfg: TYPE=Ethernet
05:31:10,594 DEBUG ifcfg: IPADDR=192.168.1.122
05:31:10,594 DEBUG ifcfg: PREFIX=24
05:31:10,594 DEBUG ifcfg: GATEWAY=192.168.1.1
05:31:10,594 DEBUG ifcfg: DEFROUTE=yes
05:31:10,594 DEBUG ifcfg: IPV4_FAILURE_FATAL=no
05:31:10,594 DEBUG ifcfg: NAME="System eth0"
05:31:10,598 DEBUG ifcfg: all settings: [{'802-3-ethernet': {'mac-address-blacklist': [], 's390-options': {}}, 'connection': {'interface-name': 'eth0', 'timestamp': 1460179868L, 'uuid': '81805767-a6d5-4aa2-8c01-7e425bf4dbf5', 'secondaries': [], 'type': '802-3-ethernet', 'id': 'System eth0', 'permissions': []}, 'ipv4': {'addresses': [[2046929088L, 24L, 16885952L]], 'dns-search': [], 'gateway': '192.168.1.1', 'route-data': [], 'dns': [3338774720L], 'routes': [], 'address-data': [{'prefix': 24L, 'address': '192.168.1.122'}], 'method': 'manual'}, 'ipv6': {'addresses': [], 'dns-search': [], 'route-data': [], 'dns': [], 'routes': [], 'address-data': [], 'method': 'ignore'}}]
==========
= journal.log
==========
Apr 09 05:38:56 <FQDN> dracut[32525]: -rw-r--r-- 1 root root 70269 Mar 31 18:46 usr/lib/modules/3.10.0-327.13.1.el7.x86_64/kernel/drivers/md/dm-snapshot.ko
Apr 09 05:38:56 <FQDN> dracut[32525]: -rw-r--r-- 1 root root 14245 Mar 31 18:46 usr/lib/modules/3.10.0-327.13.1.el7.x86_64/kernel/drivers/md/dm-switch.ko
Apr 09 05:38:56 <FQDN> dracut[32525]: -rw-r--r-- 1 root root 110245 Mar 31 18:46 usr/lib/modules/3.10.0-327.13.1.el7.x86_64/kernel/drivers/md/dm-thin-pool.ko
Apr 09 05:38:56 <FQDN> dracut[32525]: -rw-r--r-- 1 root root 25797 Mar 31 18:46 usr/lib/modules/3.10.0-327.13.1.el7.x86_64/kernel/drivers/md/dm-verity.ko
Apr 09 05:38:56 <FQDN> dracut[32525]: -rw-r--r-- 1 root root 5869 Mar 31 18:46 usr/lib/modules/3.10.0-327.13.1.el7.x86_64/kernel/drivers/md/dm-zero.ko
Apr 09 05:38:56 <FQDN> dracut[32525]: -rw-r--r-- 1 root root 11701 Mar 31 18:46 usr/lib/modules/3.10.0-327.13.1.el7.x86_64/kernel/drivers/md/linear.ko
Apr 09 05:38:56 <FQDN> dracut[32525]: drwxr-xr-x 2 root root 0 Apr 9 07:38 usr/lib/modules/3.10.0-327.13.1.el7.x86_64/kernel/drivers/md/persistent-data
Apr 09 05:38:56 <FQDN> dracut[32525]: -rw-r--r-- 1 root root 108901 Mar 31 18:46 usr/lib/modules/3.10.0-327.13.1.el7.x86_64/kernel/drivers/md/persistent-data/dm-persistent-data.ko
Apr 09 05:38:56 <FQDN> dracut[32525]: -rw-r--r-- 1 root root 26061 Mar 31 18:46 usr/lib/modules/3.10.0-327.13.1.el7.x86_64/kernel/drivers/md/raid0.ko
Apr 09 05:38:56 <FQDN> dracut[32525]: -rw-r--r-- 1 root root 63909 Mar 31 18:46 usr/lib/modules/3.10.0-327.13.1.el7.x86_64/kernel/drivers/md/raid1.ko
==========
= ks-script-6SQvP5.log
==========
==========
= packaging.log
==========
05:38:29,324 INFO packaging: iwl7260-firmware-22.0.7.0-43.el7.noarch (304/306)
05:38:29,324 INFO packaging: iwl5150-firmware-8.24.2.2-43.el7.noarch (305/306)
05:38:29,324 INFO packaging: iwl100-firmware-39.31.5.1-43.el7.noarch (306/306)
05:38:29,324 INFO packaging: 2620 blocks
05:38:29,324 INFO packaging: ==== end rpm scriptlet logs ====
05:38:32,906 INFO packaging: recreating initrd for 3.10.0-327.13.1.el7.x86_64
==========
= program.log
==========
05:41:33,559 INFO program: HTTP request sent, awaiting response... 200 OK
05:41:33,559 INFO program: Length: 260 [text/plain]
05:41:33,559 INFO program: Saving to: '/etc/puppet/puppet.conf'
05:41:33,560 INFO program:
05:41:33,560 INFO program: 0K 100% 85.8M=0s
05:41:33,560 INFO program:
05:41:33,570 INFO program: 2016-04-09 07:39:51 (85.8 MB/s) - '/etc/puppet/puppet.conf' saved [260/260]
05:41:33,570 INFO program:
05:41:33,570 DEBUG program: Return code: 0
05:41:33,574 INFO program: Running... /bin/sh /tmp/ks-script-6SQvP5
==========
= storage.log
==========
05:31:22,498 DEBUG blivet: DeviceTree.getDevicesByType returned []
05:31:22,498 DEBUG blivet: DeviceTree.getDevicesByType: hidden: False ; incomplete: False ; device_type: mdcontainer ;
05:31:22,499 DEBUG blivet: DeviceTree.getDevicesByType returned []
05:31:22,499 DEBUG blivet: DeviceTree.getDevicesByType: hidden: False ; incomplete: False ; device_type: dm-multipath ;
05:31:22,500 DEBUG blivet: DeviceTree.getDevicesByType returned []
05:31:22,500 INFO blivet: not writing out mpath configuration
05:31:22,500 DEBUG blivet: DeviceTree.getDevicesByType: hidden: False ; incomplete: False ; device_type: zfcp ;
05:31:22,501 DEBUG blivet: DeviceTree.getDevicesByType returned []
05:38:29,391 DEBUG blivet: DeviceTree.getDevicesByInstance: hidden: False ; incomplete: False ; device_class: <class 'blivet.devices.network.NetworkStorageDevice'> ;
05:38:29,392 DEBUG blivet: DeviceTree.getDevicesByInstance returned []
还有/root/ks-post.log 的尾部:
Resolving <CONFIGFILEHOST> (<CONFIGFILEHOST>)... 192.168.1.15
Connecting to <CONFIGFILEHOST> (<CONFIGFILEHOST>)|192.168.1.15|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 260 [text/plain]
Saving to: '/etc/puppet/puppet.conf'
0K 100% 85.8M=0s
2016-04-09 07:39:51 (85.8 MB/s) - '/etc/puppet/puppet.conf' saved [260/260]
最佳答案
如果这出现在其他任何人的搜索结果中,安装程序很可能由于来自 puppet 代理的非零退出代码而停止。尝试以下补丁:
puppet agent -t || true
关于centos - 通过 virt-install 启动不会重启,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36450384/
我在生产环境中有一个 python 应用程序(在 CentOS 6.2/Python 2.6.6 上)占用了: 800M VIRT / 15M RES / 2M SHR 在 (Fedora 16/Py
我在 virt-manager 中设置了一个 Windows 10 虚拟机,它在我的笔记本电脑上运行起来就像一个魅力。但当我在工作时,我想使用双显示器设置。我尝试添加第二个 QXL 监视器,我可以在
看完wiki libvirt我开始 virt-install 从 Debian10 netinstall ISO 镜像安装 VM: % sudo virt-install --debug --conn
我安装了Ubuntu18.04 kvm-qemu 虚拟化设置中的桌面,它正在工作。我发现在虚拟机的 virt-manager 设置中有一个直接内核启动选项。我想从主机使用 gdb 调试内核。 请帮助查
我在 Android Studio 模拟器中遇到问题,我在运行项目时收到此消息 C:\Users\User\AppData\Local\Android\sdk\tools\emulator.exe
在容器中运行 libvirtd 服务 - 使用以下链接中列出的步骤 - http://www.projectatomic.io/blog/2014/10/libvirtd_in_containers/
我在 ubuntu 服务器上,我一直在寻找如何通过 vnc 连接到本地虚拟机以继续设置。我使用 安装虚拟机 sudo virt-install --virt-type kvm --name debia
我有一个运行了很多线程的进程。当我使用该进程 ID 执行 top -H -p 时,输出中的 VIRT 和 RES 对于进程运行期间的所有线程始终相同。 这是什么意思? 最佳答案 您会看到相同的值,因为
我有一个设置,我通过 virt-install 执行新 VM 的 kickstart。 一切运行正常,但虚拟机没有按照 kickstart 文件中的指示执行重启,而是关闭了。 VM主机为运行libvi
有没有人成功让 community.libvirt.virt 模块与 Ansible 一起工作?我找不到包含所有必要步骤的完整指南。我在 AWS EC2 上运行 Ubuntu 18。 我一直试图让这个
安装了 virt-manager, 目标虚拟机是安装了 spice-vdagent 的 debian jessie 共享剪贴板,无延迟鼠标输入有效 展示:香料 视频:QXL channel spice
我已经在 Linux Mint 20 上安装了 qemu virt-manager libvirt,我有一个 AMD FX(tm)-4300 四核处理器,在 bios 中启用了 AMD-V,重新启动了
是否可以让 virt-viewer 以 2 个显示器启动? 背景:我们有一个基于 linux 的零售系统,通常在具有多个显示器的终端上运行。基本上,当 X 启动时,我们会检测连接了多少显示器并基于此配
我已经在笔记本电脑上安装了 KVM/QEMU/libvirt,并尝试使用 virt-manager 访问它。当我运行 sudo virt-manager -c qemu:///system 时,出现以
此 HTOP 输出中的 VIRT 列是什么意思?它以红色和粗体显示。 我正在运行一个具有 4 个节点 的 Elasticsearch 集群并为海量数据编制索引。 1700 个索引,包含 3 个分片,一
我在带有 ubuntu64 16.04 的 MacOS 上使用 Vagrant。运行 htop,我可以看到 vagrant ssh 进程实际上可以使用 530G(在 VIRT 列中)。 这是Vagra
我正在使用 Ubuntu 12.10 64 位上的 kvm 虚拟化 Windows 7 镜像。以下是我机器的规范: CPU:英特尔 i7-2860WM ,8G 内存 我正在使用使用 Windows 7
我想使用 docker 下载一个 vagrant windows 镜像并在其上下载 selenium jar 并让它启动一个 selenium 集线器。我不确定最好的方法是什么,或者即使它是可能的。我
扩展 org.teiid.translator.ws 以通过迭代分页 Web 服务返回的所有页面来读取完整的记录集的好方法是什么? 最佳答案 由于结果分页不是任何 REST API 标准的一部分(与
我正在使用 jasper 报告服务器 6.2.0,我们有一些生成多达 50k、60k 页的巨大报告。前 300 页将存储在内存中,其余页面将在/opt/jasper-report-server/apa
我是一名优秀的程序员,十分优秀!