kvm 遇到的错误ERROR 验证安装位置出错:打开 URL ftp://127.0.0.1/centos7u3 失败:[Errno 111] 拒绝连接。Cannot set up guest

错误1:

The ERROR validation installation position ERROR: failed to open the URL ftp://127.0.0.1/centos7u3:111] [Errno rejected the connection.
ERROR 验证安装位置出错:打开 URL ftp://127.0.0.1/centos7u3 失败:[Errno 111] 拒绝连接。

我们需要找到正确的ip,virbr0里面的ip才是跟在ftp后面的。
kvm 遇到的错误ERROR 验证安装位置出错:打开 URL ftp://127.0.0.1/centos7u3 失败:[Errno 111] 拒绝连接。Cannot set up guest_第1张图片
kvm 遇到的错误ERROR 验证安装位置出错:打开 URL ftp://127.0.0.1/centos7u3 失败:[Errno 111] 拒绝连接。Cannot set up guest_第2张图片
如果还是报错:

1.vsftpd是否正常启动
[root@localhost ftp]# systemctl status vsftpd
● vsftpd.service - Vsftpd ftp daemon
   Loaded: loaded (/usr/lib/systemd/system/vsftpd.service; disabled; vendor preset: disabled)
   Active: active (running) since 一 2020-04-13 23:41:41 CST; 25min ago
  Process: 10088 ExecStart=/usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf (code=exited, status=0/SUCCESS)
 Main PID: 10089 (vsftpd)
    Tasks: 1
   CGroup: /system.slice/vsftpd.service
           └─10089 /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf

4月 13 23:41:41 localhost.localdomain systemd[1]: Starting Vsftpd ftp daemon...
4月 13 23:41:41 localhost.localdomain systemd[1]: Started Vsftpd ftp daemon.

2.是否挂载成功
如果你挂载成功的话,找到你挂载的目录(我这里是/var/ftp/centos7u3)
该文件本来是空的,但是你挂载成功后会显示镜像文件里面的内容
```[root@localhost ftp]# ls /var/ftp/centos7u3
CentOS_BuildTag  GPL       LiveOS    RPM-GPG-KEY-CentOS-7
EFI              images    Packages  RPM-GPG-KEY-CentOS-Testing-7
EULA             isolinux  repodata  TRANS.TBL

3.防火墙关闭
systemctl stop firewalld
[root@localhost ftp]# systemctl status firewalld
● firewalld.service - firewalld - dynamic firewall daemon
   Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)
   Active: inactive (dead) since 一 2020-04-13 22:48:43 CST; 1h 22min ago
     Docs: man:firewalld(1)
  Process: 747 ExecStart=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS (code=exited, status=0/SUCCESS)
 Main PID: 747 (code=exited, status=0/SUCCESS)

4月 13 22:46:36 localhost.localdomain systemd[1]: Starting firewalld - dynamic fir....
4月 13 22:46:37 localhost.localdomain systemd[1]: Started firewalld - dynamic fire....
4月 13 22:48:42 localhost.localdomain systemd[1]: Stopping firewalld - dynamic fir....
4月 13 22:48:43 localhost.localdomain systemd[1]: Stopped firewalld - dynamic fire....
Hint: Some lines were ellipsized, use -l to show in full.



## 错误2:
ERROR    内部错误:qemu unexpectedly closed the monitor: qemu: could not load kernel '/var/lib/libvirt/boot/virtinst-vmlinuz.B5eIh7': No such file or directory
正在删除磁盘 'vm9.img'                                    |    0 B  00:00:00     
域安装失败,您可以运行下列命令重启您的域:
'virsh start virsh --connect qemu:///system start vm9'
否则请重新开始安装。
![在这里插入图片描述](https://img-blog.csdnimg.cn/20200413233207746.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2JhaWR1XzM4ODAzOTg1,size_16,color_FFFFFF,t_70)
![在这里插入图片描述](https://img-blog.csdnimg.cn/20200413233338756.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2JhaWR1XzM4ODAzOTg1,size_16,color_FFFFFF,t_70)
找了半天错,最终终于找到了
![在这里插入图片描述](https://img-blog.csdnimg.cn/20200413233453308.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2JhaWR1XzM4ODAzOTg1,size_16,color_FFFFFF,t_70)
我的这个镜像文件才28M
![在这里插入图片描述](https://img-blog.csdnimg.cn/20200413233547935.png)
而这个文件本身是800M
![在这里插入图片描述](https://img-blog.csdnimg.cn/20200413233627741.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2JhaWR1XzM4ODAzOTg1,size_16,color_FFFFFF,t_70)
我是直接拉过去的,所以导致镜像文件传输失败,而且还无法察觉。
因为直接拉是不可能的了,所以我打开了finalshell,连接该虚拟机直接将镜像文件重新上传。
![在这里插入图片描述](https://img-blog.csdnimg.cn/20200413233918136.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2JhaWR1XzM4ODAzOTg1,size_16,color_FFFFFF,t_70)
![在这里插入图片描述](https://img-blog.csdnimg.cn/20200413234012745.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2JhaWR1XzM4ODAzOTg1,size_16,color_FFFFFF,t_70)
![在这里插入图片描述](https://img-blog.csdnimg.cn/20200413234430692.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2JhaWR1XzM4ODAzOTg1,size_16,color_FFFFFF,t_70)
正常启动



## 错误3:磁盘给的太小
storage configuration failed: Not enough free space on disks for automatic partitioning
![在这里插入图片描述](https://img-blog.csdnimg.cn/20200413234929627.png)
![在这里插入图片描述](https://img-blog.csdnimg.cn/20200413235314750.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2JhaWR1XzM4ODAzOTg1,size_16,color_FFFFFF,t_70)
导致磁盘太小没法继续安装。
![在这里插入图片描述](https://img-blog.csdnimg.cn/20200413235524478.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2JhaWR1XzM4ODAzOTg1,size_16,color_FFFFFF,t_70)
![在这里插入图片描述](https://img-blog.csdnimg.cn/20200413235641661.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2JhaWR1XzM4ODAzOTg1,size_16,color_FFFFFF,t_70)
![在这里插入图片描述](https://img-blog.csdnimg.cn/20200413235649603.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2JhaWR1XzM4ODAzOTg1,size_16,color_FFFFFF,t_70)
第五项安全通过。

你可能感兴趣的:(笔记)