start virtual network default for kvm

I recognized a problem with Debian and virtual network ‘default’ running kvm.

I got a error message like the following:

ERROR    Virtual network 'default' has not been started.
    Traceback (most recent call last):
    File "/usr/bin/virt-install", line 943, in 
      main()
    File "/usr/bin/virt-install", line 770, in main
      options.nonetworks, guest)
    File "/usr/bin/virt-install", line 335, in get_networks
      map(lambda kwargs: cli.get_network(kwargs, guest), net_kwargs)
    File "/usr/bin/virt-install", line 335, in 
      map(lambda kwargs: cli.get_network(kwargs, guest), net_kwargs)
    File "/usr/lib/pymodules/python2.6/virtinst/cli.py", line 548, in get_network
      n = VirtualNetworkInterface(**net_kwargs)
    File "/usr/lib/pymodules/python2.6/virtinst/VirtualNetworkInterface.py", line 67, in init
      self.network = network
    File "/usr/lib/pymodules/python2.6/virtinst/VirtualNetworkInterface.py", line 117, in set_network
      "started.") % newnet)
    ValueError: Virtual network 'default' has not been started.

Solution

The easiest solution was to start default network by hand:

$ sudo virsh net-start default
    Network default started
comments powered by Disqus