我正在尝试使用virt-install创build一个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。 在创buildcentos 5.X或centos 6.X KVM guest虚拟机时,我没有任何问题。 我只在创build7位客人时遇到问题。 有没有人遇到类似的东西?
它似乎试图使用主机的IP地址。 我找到的解决方案是使用kickstart文件来完成安装。 我已经写了一篇关于它的博客文章https://dimokaragiannis.wordpress.com/2015/04/17/issue-while-creating-a-centsos-7-kvm-guest/