xen安装虚拟机报错Virtual network 'default' does not exist

回复 收藏
运行   virt-install -n aaaa -r 512 -f /xen/aaaa.img  -l nfs:192.168.111.2:/mnt/  报错:

ERROR    Virtual network 'default' does not exist: this function is not supported by the connection driver: virNetworkLookupByName
Traceback (most recent call last):
  File "/usr/sbin/virt-install", line 892, in ?
    main()
  File "/usr/sbin/virt-install", line 678, in main
    options.nonetworks, guest)
  File "/usr/sbin/virt-install", line 251, in get_networks
    map(lambda m, n: cli.get_network(m, n, guest), macs, networks)
  File "/usr/sbin/virt-install", line 251, in
    map(lambda m, n: cli.get_network(m, n, guest), macs, networks)
  File "/usr/lib/python2.4/site-packages/virtinst/cli.py", line 386, in get_network
    conn=guest.conn)
  File "/usr/lib/python2.4/site-packages/virtinst/VirtualNetworkInterface.py", line 53, in __init__
    self.network = network
  File "/usr/lib/python2.4/site-packages/virtinst/VirtualNetworkInterface.py", line 79, in set_network
    raise ValueError(_("Virtual network '%s' does not exist: %s") \
ValueError: Virtual network 'default' does not exist: this function is not supported by the connection driver: virNetworkLookupByName、


解决办法:
重启xend服务
分析:因为变动了网卡的设置,xen可能没有识别现网环境,需要初始化一下(重启xend服务)
2011-08-08 09:19 举报
已邀请:

回复帖子,请先登录注册

退出全屏模式 全屏模式 回复
评分
可选评分理由: