Libvirt/KVM vm-无网络连接

Libvirt/KVM vm-无网络连接

我已经在物理 ubuntu 14.04 主机上安装了 devstack(OpenStacks 开发平台),并且一直在尝试按照以下教程进行操作手动创建图像。我已尝试过 Ubuntu 和 Windows,但在任何虚拟机中连接任何网络时都遇到了问题!

具体来说,我在每个操作系统中遇到的问题是:

  • 在 Windows 中,我完成了 Windows Server 2008 R2 的安装(使用RedHat VirtIO SCSI 驱动程序)。但是,从此处安装网络适配器会导致以太网适配器出现错误Windows cannot load the device driver for this hardware。我尝试了这些驱动程序的多个版本,包括最新版本,并按照 serverfault/superuser 中的几个线程来解决这个问题,但无济于事 - 但是我认为我的问题可能更基本,因为我也遇到了 Linux 的问题:
  • 在 Ubuntu 中我无法访问互联网。它无法通过 DHCP 获取 IP。当我尝试手动设置 IP 和网关时,它也不起作用。

我尝试过运行命令行virt-install,使用virt-manager,也只是kvm运行演示在这里

我已确认默认网络正在通过 运行virsh net-list。我还尝试创建自己的虚拟网络转发到主机上的其他物理网卡。

我感觉我一定错过了一些非常基本的东西——因为 Devstack 应该为我处理所有事情。有人能解释一下我错过了什么吗?

我认为有人会问,下面是我在物理主机上的 ifconfig 输出。eth1是我设置的原始接口。br100是默认通过ip route。它有我通过 SSH 连接的 IP 地址。virbr1我稍后设置了它,eth1看看我是否可以设置自己的虚拟 NIC 来解决问题。

在此先感谢任何人提供的帮助!

br100     Link encap:Ethernet  HWaddr 6c:f0:49:6a:38:cf  
          inet addr:10.0.0.1  Bcast:10.0.0.255  Mask:255.255.255.0
          inet6 addr: fe80::16:12ff:fec1:f0a6/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:907152 errors:0 dropped:37287 overruns:0 frame:0
          TX packets:423660 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:747967771 (747.9 MB)  TX bytes:342487377 (342.4 MB)

eth0      Link encap:Ethernet  HWaddr 6c:f0:49:6a:38:ce  
          inet addr:10.2.3.235  Bcast:10.255.255.255  Mask:255.0.0.0
          inet6 addr: fe80::6ef0:49ff:fe6a:38ce/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:18049 errors:504072 dropped:3377 overruns:504071 frame:1
          TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1225147 (1.2 MB)  TX bytes:900 (900.0 B)

eth1      Link encap:Ethernet  HWaddr 6c:f0:49:6a:38:cf  
          inet6 addr: fe80::6ef0:49ff:fe6a:38cf/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:7586088 errors:62 dropped:125 overruns:61 frame:1
          TX packets:2869705 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:7508464333 (7.5 GB)  TX bytes:504000761 (504.0 MB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:3472993 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3472993 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:6684075053 (6.6 GB)  TX bytes:6684075053 (6.6 GB)

virbr0    Link encap:Ethernet  HWaddr da:41:fb:f4:b3:f4  
          inet addr:192.168.122.1  Bcast:192.168.122.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

virbr1    Link encap:Ethernet  HWaddr 52:54:00:35:3d:e3  
          inet addr:10.2.3.1  Bcast:10.2.3.7  Mask:255.255.255.248
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:106 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:5320 (5.3 KB)  TX bytes:126 (126.0 B)

vnet0     Link encap:Ethernet  HWaddr fe:54:00:c7:ca:0e  
          inet6 addr: fe80::fc54:ff:fec7:ca0e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:255 errors:0 dropped:0 overruns:0 frame:0
          TX packets:44521 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:22614 (22.6 KB)  TX bytes:2318324 (2.3 MB)

vnet1     Link encap:Ethernet  HWaddr fe:16:3e:05:ac:f2  
          inet6 addr: fe80::fc16:3eff:fe05:acf2/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:437 errors:0 dropped:0 overruns:0 frame:0
          TX packets:87504 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:107942 (107.9 KB)  TX bytes:7140337 (7.1 MB)

vnet2     Link encap:Ethernet  HWaddr fe:54:00:67:ea:d2  
          inet6 addr: fe80::fc54:ff:fe67:ead2/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:30 errors:0 dropped:0 overruns:0 frame:0
          TX packets:275 errors:0 dropped:74 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:4560 (4.5 KB)  TX bytes:14532 (14.5 KB)

vnet3     Link encap:Ethernet  HWaddr fe:54:00:93:8b:54  
          inet6 addr: fe80::fc54:ff:fe93:8b54/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:106 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1034 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:6804 (6.8 KB)  TX bytes:53970 (53.9 KB)

相关内容