virt-install can't find existing network
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
virtinst (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
After created network with non-root user, virsh can find those networks by same user, but virt-install can not.
Anyway, virt-manager can create VM with network 'management'.
$ sudo dpkg -l | grep virtinst
ii virtinst 0.600.1-1ubuntu3.2 Programs to create and clone virtual machines
$ sudo dpkg -l | grep libvirt-bin
ii libvirt-bin 0.9.8-2ubuntu17.8 programs for the libvirt library
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.2 LTS
Release: 12.04
Codename: precise
$virsh net-list
Name State Autostart
-------
api active yes
data active yes
external active yes
management active yes
$virsh net-dumpxml management
<network>
<name>
<uuid>
<forward mode='nat'/>
<bridge name='virbr1' stp='on' delay='0' />
<mac address=
<ip address=
</ip>
</network>
$/usr/bin/
[Tue, 07 May 2013 15:24:20 virt-install 12408] DEBUG (cli:220) Launched with command line:
/usr/bin/
[Tue, 07 May 2013 15:24:20 virt-install 12408] DEBUG (cli:326) Requesting libvirt URI default
[Tue, 07 May 2013 15:24:20 virt-install 12408] DEBUG (cli:328) Received libvirt URI qemu:///session
[Tue, 07 May 2013 15:24:20 virt-install 12408] DEBUG (virt-install:259) Requesting virt method 'default', hv type 'default'.
[Tue, 07 May 2013 15:24:20 virt-install 12408] DEBUG (virt-install:469) Received virt method 'hvm'
[Tue, 07 May 2013 15:24:20 virt-install 12408] DEBUG (virt-install:470) Hypervisor name is 'kvm'
[Tue, 07 May 2013 15:24:21 virt-install 12408] ERROR (cli:439) Error in network device parameters: Virtual network 'management' does not exist: Network not found: no network with matching name 'management'
[Tue, 07 May 2013 15:24:21 virt-install 12408] DEBUG (cli:440)
Traceback (most recent call last):
File "/usr/lib/
dev = parse_network(
File "/usr/lib/
bridge=
File "/usr/lib/
self.network = network
File "/usr/lib/
fset(self, val, *args, **kwargs)
File "/usr/lib/
% (newnet, str(e)))
ValueError: Virtual network 'management' does not exist: Network not found: no network with matching name 'management'
Specifying hypervisor connection URI for virt-install will solve this issue:
/usr/bin/ virt-install --connect qemu:///system -n bootstrap -r 2000 --vcpus=1 --disk /vms/bootstrap. img,size= 20,bus= virtio, cache=writeback --cdrom /iso/ubuntu- server- 12.04.iso --vnc --noautoconsole --os-type linux --accelerate --network= network= management, model=virtio -d