Received: from eggs.gnu.org ([2001:4830:134:3::10]:38266) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YYAmb-0001IL-8T for qemu-devel@nongnu.org; Wed, 18 Mar 2015 06:01:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YYAmX-0006T8-25 for qemu-devel@nongnu.org; Wed, 18 Mar 2015 06:01:01 -0400 Received: from indium.canonical.com ([91.189.90.7]:47690) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YYAmW-0006Sz-RF for qemu-devel@nongnu.org; Wed, 18 Mar 2015 06:00:57 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1YYAmW-00084h-2f for ; Wed, 18 Mar 2015 10:00:56 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 0CCE12E80C7 for ; Wed, 18 Mar 2015 10:00:56 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Wed, 18 Mar 2015 09:52:01 -0000 From: Bjoern Bornemann Sender: bounces@canonical.com References: <20150318095201.14963.52664.malonedeb@soybean.canonical.com> Message-Id: <20150318095201.14963.52664.malonedeb@soybean.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1433510] [NEW] VM Konfig mismatches when -readconfig option is used Reply-To: Bug 1433510 <1433510@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Public bug reported: Since qemu is able to write / read config files, i thought it might be cool= to use this. = BUT: = qemu allways adds an default network interface, when i use the -readconfig option. Till now, i start my VM like this (all variables are defined and working well in this script) /opt/bin/qemu-system-x86_64 \ -m 512M \ -vga vmware \ -name ${VMname} \ -display sdl,window_close=3Doff,ctrl_grab=3Don \ -machine q35,accel=3Dkvm -enable-kvm \ -drive file=3D./${SystemHDDname}.hdd,index=3D0,if=3Dvirtio,media=3Ddisk \ -drive file=3D"${ISOfile}",index=3D2,if=3Dvirtio,media=3Dcdrom \ -boot menu=3Don,once=3Dd \ -net nic,vlan=3D0,model=3Dvirtio,macaddr=3D52:54:00:6D:AA:0C,name=3Duplink= \ -net user,vlan=3D0,name=3DVLANextern,net=3D192.168.42.0/24 \ -usbdevice tablet \ -balloon virtio \ -net nic,vlan=3D238,model=3Dvirtio,macaddr=3D52:54:00:6D:AA:0D \ -net vde,vlan=3D238,name=3DVLANintern,sock=3D${VDEsocket} \ -rtc base=3Dutc,clock=3Dhost \ -writeconfig ./${VMname}.qemu the monitor tells me: QEMU 2.2.90 monitor - type 'help' for more information (qemu) info network = hub 238 \ hub238port1: VLANintern: index=3D0,type=3Dvde,sock=3D/media/daten/vm/vde= /test.virtuell.zh3,fd=3D9 \ hub238port0: virtio-net-pci.1: index=3D0,type=3Dnic,model=3Dvirtio-net-p= ci,macaddr=3D52:54:00:6d:aa:0d hub 0 \ hub0port1: VLANextern: index=3D0,type=3Duser,net=3D192.168.42.0,restrict= =3Doff \ hub0port0: virtio-net-pci.0: index=3D0,type=3Dnic,model=3Dvirtio-net-pci= ,macaddr=3D52:54:00:6d:aa:0c which is perfectly correct. and now the result for qemu-system-x86_64 -readconfig ./${VMname}.qemu: QEMU 2.2.90 monitor - type 'help' for more information (qemu) info network = hub 238 \ hub238port1: VLANintern: index=3D0,type=3Dvde,sock=3D/media/daten/vm/vde= /test.virtuell.zh3,fd=3D9 \ hub238port0: virtio-net-pci.1: index=3D0,type=3Dnic,model=3Dvirtio-net-p= ci,macaddr=3D52:54:00:6d:aa:0d hub 0 \ hub0port3: user.1: index=3D0,type=3Duser,net=3D10.0.2.0,restrict=3Doff \ hub0port2: e1000.0: index=3D0,type=3Dnic,model=3De1000,macaddr=3D52:54:0= 0:12:34:56 \ hub0port1: VLANextern: index=3D0,type=3Duser,net=3D192.168.42.0,restrict= =3Doff \ hub0port0: virtio-net-pci.0: index=3D0,type=3Dnic,model=3Dvirtio-net-pci= ,macaddr=3D52:54:00:6d:aa:0c Is it a bug or just misconfigured? Thanks in advance. BorneBjoern ** Affects: qemu-kvm Importance: Undecided Status: New ** Attachment added: "vm config file" https://bugs.launchpad.net/bugs/1433510/+attachment/4348870/+files/vRout= er.qemu ** Project changed: qemu =3D> qemu-kvm -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1433510 Title: VM Konfig mismatches when -readconfig option is used Status in qemu-kvm: New Bug description: Since qemu is able to write / read config files, i thought it might be co= ol to use this. = BUT: = qemu allways adds an default network interface, when i use the -readconfig option. Till now, i start my VM like this (all variables are defined and working well in this script) /opt/bin/qemu-system-x86_64 \ -m 512M \ -vga vmware \ -name ${VMname} \ -display sdl,window_close=3Doff,ctrl_grab=3Don \ -machine q35,accel=3Dkvm -enable-kvm \ -drive file=3D./${SystemHDDname}.hdd,index=3D0,if=3Dvirtio,media=3Ddisk \ -drive file=3D"${ISOfile}",index=3D2,if=3Dvirtio,media=3Dcdrom \ -boot menu=3Don,once=3Dd \ -net nic,vlan=3D0,model=3Dvirtio,macaddr=3D52:54:00:6D:AA:0C,name=3Dupli= nk \ -net user,vlan=3D0,name=3DVLANextern,net=3D192.168.42.0/24 \ -usbdevice tablet \ -balloon virtio \ -net nic,vlan=3D238,model=3Dvirtio,macaddr=3D52:54:00:6D:AA:0D \ -net vde,vlan=3D238,name=3DVLANintern,sock=3D${VDEsocket} \ -rtc base=3Dutc,clock=3Dhost \ -writeconfig ./${VMname}.qemu the monitor tells me: QEMU 2.2.90 monitor - type 'help' for more information (qemu) info network = hub 238 \ hub238port1: VLANintern: index=3D0,type=3Dvde,sock=3D/media/daten/vm/v= de/test.virtuell.zh3,fd=3D9 \ hub238port0: virtio-net-pci.1: index=3D0,type=3Dnic,model=3Dvirtio-net= -pci,macaddr=3D52:54:00:6d:aa:0d hub 0 \ hub0port1: VLANextern: index=3D0,type=3Duser,net=3D192.168.42.0,restri= ct=3Doff \ hub0port0: virtio-net-pci.0: index=3D0,type=3Dnic,model=3Dvirtio-net-p= ci,macaddr=3D52:54:00:6d:aa:0c which is perfectly correct. = and now the result for qemu-system-x86_64 -readconfig ./${VMname}.qemu: QEMU 2.2.90 monitor - type 'help' for more information (qemu) info network = hub 238 \ hub238port1: VLANintern: index=3D0,type=3Dvde,sock=3D/media/daten/vm/v= de/test.virtuell.zh3,fd=3D9 \ hub238port0: virtio-net-pci.1: index=3D0,type=3Dnic,model=3Dvirtio-net= -pci,macaddr=3D52:54:00:6d:aa:0d hub 0 \ hub0port3: user.1: index=3D0,type=3Duser,net=3D10.0.2.0,restrict=3Doff \ hub0port2: e1000.0: index=3D0,type=3Dnic,model=3De1000,macaddr=3D52:54= :00:12:34:56 \ hub0port1: VLANextern: index=3D0,type=3Duser,net=3D192.168.42.0,restri= ct=3Doff \ hub0port0: virtio-net-pci.0: index=3D0,type=3Dnic,model=3Dvirtio-net-p= ci,macaddr=3D52:54:00:6d:aa:0c = Is it a bug or just misconfigured? Thanks in advance. BorneBjoern To manage notifications about this bug go to: https://bugs.launchpad.net/qemu-kvm/+bug/1433510/+subscriptions