gpt4 book ai didi

linux - 创建 CentOS 7 KVM guest 时出现问题

转载 作者:太空狗 更新时间:2023-10-29 12:02:42 26 4
gpt4 key购买 nike

我正在尝试使用 virt-install 执行以下命令来创建 CentOS 7 KVM 客户机

# virt-install -n centos7 -r 2048  --vcpus=1 --os-type linux --os-variant=rhel7 --network bridge=br0 --nographics --location='http://ftp.ntua.gr/pub/linux/centos/7/os/x86_64/' --extra-args='console=tty0 console=ttyS0,115200n8 serial' --disk path=/mnt/sdb/kvms/images/centos7.img,size=12 --hvm

执行失败显示如下信息

[  OK  ] Reached target Basic System.
dracut-initqueue[545]: RTNETLINK answers: File exists
dracut-initqueue[545]: Warning: Could not boot.
dracut-initqueue[545]: Warning: /dev/root does not exist
Starting Dracut Emergency Shell...
Warning: /dev/root does not exist
Generating "/run/initramfs/rdsosreport.txt"
Entering emergency mode. Exit the shell to continue.
Type "journalctl" to view system logs.
You might want to save "/run/initramfs/rdsosreport.txt" to a USB stick or /boot
after mounting them and attach it to a bug report.
dracut:/#

我的服务器是Centos 6.5。我在创建 centos 5.X 或 centos 6.X KVM 客户机时没有遇到任何问题。我只在创建 centos 7 guest 时遇到问题。有没有人经历过类似的事情?

最佳答案

它似乎试图使用主机的 IP 地址。我找到的一个解决方案是使用 kickstart 文件来进行安装。我已经写了一篇关于它的博客文章 https://dimokaragiannis.wordpress.com/2015/04/17/issue-while-creating-a-centsos-7-kvm-guest/

关于linux - 创建 CentOS 7 KVM guest 时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29154184/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com