[libvirt] Set allmulticast automatically on macvtap interfaces
Hi, the easiest way to connect a domain to a network is a macvtap interface with the following XML code: This makes everything work but incoming IPv6, which relies on multicast, which is filtered by the macvtap interface by default. I need to do "ip link set dev macvtap1 allmulticast on" on the host after starting the domain to make incoming IPv6 work. >From reading the docs, I guess that setting the interface's trustGuestRxFilters attribute to yes would help here. However, https://libvirt.org/formatdomain.html#elementsNICS says If the model type is set to virtio and interface's trustGuestRxFilters attribute is set to yes, changes made to the interface mac address, unicast/multicast receive filters, and vlan settings in the guest will be monitored and propagated to the associated macvtap device on the host Does that mean that the guest will be able to change its VLAN to any other VLAN that is present on the host? Or am I misunderstanding things here? Assuming that trustGuestRxFilters is the right thing to do and that it does not open myself to blatant security issues, how would I set that from virt-manager? Greetings Marc -- ----- Marc Haber | "I don't trust Computers. They | Mailadresse im Header Leimen, Germany| lose things."Winona Ryder | Fon: *49 6224 1600402 Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] libvirt not wanting to read back its own interface XML
Hi Guido, I didn't mean to accuse Debian of doing a bad job with netcf. On Sun, Oct 22, 2017 at 09:26:31AM +0200, Guido Günther wrote: > On Thu, Oct 19, 2017 at 02:41:31PM +0200, Marc Haber wrote: > > On Thu, Oct 19, 2017 at 01:37:45PM +0200, Michal Privoznik wrote: > > > Aha! the thing is, you're using netcf backend while I'm using the udev > > > one. This error message comes from netcf. It's a netcf's bug. CCing > > > Laine who should know more. > > > > Where can I read up about the different backends available? Is it a > > compile-time setting or can I configure that on my system? > > > > Actually, I'm doing the configuration outside of libvirt anyway (with > > systemd-networkd), I just want the interface to be in virt-manager's > > selection dropdown, so I don't care too much about netcf. > > https://bugs.debian.org/cgi-bin/pkgreport.cgi?archive=0;dist=unstable;ordering=normal;repeatmerged=0;src=netcf > > doesn't look that bad. Not following includes is troublesome (#875762) but > shouldn't be too hard to fix. Can you file bugs for other issues you're > seeing? This would make it simpler to decide whether we disable netcf > support or fix the issues that are there. It is just that I have configuring my networks in special ways for nearly two decades, using the "manual" method of ifupdown way before it was officially introduced into the Debian packages (#88948, sic!), and am therefore used to other packages doing network configuration not playing around pretty well on my systems. And I have stopped using ifupdown entirely with jessie, and have migrated over to systemd-networkd. My expertise with current ifupdown is to limited to be of any use. I would love to see systemd-networkd support for netcf, though. Greetings Marc -- - Marc Haber | "I don't trust Computers. They | Mailadresse im Header Leimen, Germany| lose things."Winona Ryder | Fon: *49 6224 1600402 Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] libvirt not wanting to read back its own interface XML
On Thu, Oct 19, 2017 at 01:37:45PM +0200, Michal Privoznik wrote: > Aha! the thing is, you're using netcf backend while I'm using the udev > one. This error message comes from netcf. It's a netcf's bug. CCing > Laine who should know more. Where can I read up about the different backends available? Is it a compile-time setting or can I configure that on my system? Actually, I'm doing the configuration outside of libvirt anyway (with systemd-networkd), I just want the interface to be in virt-manager's selection dropdown, so I don't care too much about netcf. Greetings Marc -- ----- Marc Haber | "I don't trust Computers. They | Mailadresse im Header Leimen, Germany| lose things."Winona Ryder | Fon: *49 6224 1600402 Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] libvirt not wanting to read back its own interface XML
On Thu, Oct 19, 2017 at 11:52:34AM +0200, Michal Privoznik wrote: > On 10/18/2017 04:48 PM, Marc Haber wrote: > > Hi, > > > > I'm trying to give libvirt knowlegde of a VLAN interface that is > > configured by a different means and not by libvirt. To figure out the > > syntax, I created a VLAN interface through virt-manager and dumped out > > the XML: > > > > > > > > > > > > > > > > > > > > > > > > > > I then removed the Interface in virt-manager and tried to have libvirt > > read back its own XML. > > > > [12/784]mh@testsid85:~ $ virsh iface-dumpxml ens3.180 > ens3.180.xml > > [13/785]mh@testsid85:~ $ virsh iface-define ens3.180.xml > > error: Failed to define interface from ens3.180.xml > > error: XML error: could not get interface XML description: XML invalid - > > Expecting an element start, got nothing > > > > What is going on here? How do I define a VLAN interface via XML? > > This is weird. However, I'm unable to reproduce with the latest libvirt. > What's your version? Have you tried the latest one? I have Debian unstable, libvirt 3.8.0. Greetings Marc -- - Marc Haber | "I don't trust Computers. They | Mailadresse im Header Leimen, Germany| lose things."Winona Ryder | Fon: *49 6224 1600402 Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] libvirt not wanting to read back its own interface XML
On Thu, Oct 19, 2017 at 10:08:37AM +0200, Martin Kletzander wrote: > On Wed, Oct 18, 2017 at 04:48:45PM +0200, Marc Haber wrote: > > Hi, > > > > I'm trying to give libvirt knowlegde of a VLAN interface that is > > configured by a different means and not by libvirt. To figure out the > > syntax, I created a VLAN interface through virt-manager and dumped out > > the XML: > > > > > > > > > > > > > > > > > > > > > > > > > > I then removed the Interface in virt-manager and tried to have libvirt > > read back its own XML. > > > > [12/784]mh@testsid85:~ $ virsh iface-dumpxml ens3.180 > ens3.180.xml > > [13/785]mh@testsid85:~ $ virsh iface-define ens3.180.xml > > error: Failed to define interface from ens3.180.xml > > error: XML error: could not get interface XML description: XML invalid - > > Expecting an element start, got nothing > > > > What is going on here? How do I define a VLAN interface via XML? > > > > Hm, weird. Before looking at where the problem is, it could be easier to find > if we knew how virt-manager was able to define this. Can you look at the logs > for the XML from virt-manager? [Mi, 18 Okt 2017 16:38:57 virt-manager 31596] DEBUG (interface:253) Creating int erface 'ens3.180' with xml: This directly opens the next issue: I explicitly asked virt-manager to do "no configuration" of IPv6, which seems to be the case in the XML given to libvirt by virt-manager, but still, the libvirt-generated XML contains the IPv6 configuration of the interface (which it shouldn't, IMO). I tried iface-define with also with the link speed clause removed, but the error message remains the same. Greetings Marc -- - Marc Haber | "I don't trust Computers. They | Mailadresse im Header Leimen, Germany| lose things."Winona Ryder | Fon: *49 6224 1600402 Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
[libvirt] libvirt not wanting to read back its own interface XML
Hi, I'm trying to give libvirt knowlegde of a VLAN interface that is configured by a different means and not by libvirt. To figure out the syntax, I created a VLAN interface through virt-manager and dumped out the XML: I then removed the Interface in virt-manager and tried to have libvirt read back its own XML. [12/784]mh@testsid85:~ $ virsh iface-dumpxml ens3.180 > ens3.180.xml [13/785]mh@testsid85:~ $ virsh iface-define ens3.180.xml error: Failed to define interface from ens3.180.xml error: XML error: could not get interface XML description: XML invalid - Expecting an element start, got nothing What is going on here? How do I define a VLAN interface via XML? Greetings Marc -- ----- Marc Haber | "I don't trust Computers. They | Mailadresse im Header Leimen, Germany| lose things."Winona Ryder | Fon: *49 6224 1600402 Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [libvirt-users] virt-manager - how to add /dev/mapper as a storage pool
On Tue, Aug 09, 2011 at 12:45:06PM -0400, Cole Robinson wrote: > Not really sure then, maybe this is something that libvirt should be > extended to handle. CCing libvirt devel list Please note that I am only subscribed to libvirt-users, please Cc me on replies. There is also https://bugzilla.redhat.com/show_bug.cgi?id=710866 which I filed back in June when I encountered this for the first time. I accidentally filed the issue a second time yesterday but marked it as a duplicate. Greetings Marc -- - Marc Haber | "I don't trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things."Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 3221 2323190 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
[libvirt] could no query memory balloon allocation
Hi, I am playing around with libvirt and KVM on a Debian sid system (with a self-built kernel 2.6.36, 64bit kernel and 32bit userland). I have pulled libvirt 0.8.4 from experimental. When I try staring a VM using virtu-manager, I get the error message "Error starting domain: operation failed: could not query memory balloon allocation". This is probably some weird timing issue - when I have an strace attached to the libvirtd, everything is fine. In the #kvm IRC channel, people have told me that there may be an issue between some kernel versions and some libvirt versions, but neither the list archives nor the git changelog of 0.8.5 indicate such an issue (and #virt on oftc is quiet as usual). Can anybody explain what is going on on my system and what I could do to work around the issue? Greetings Marc -- - Marc Haber | "I don't trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things."Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 3221 2323190 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] Cannot use console with 0.7.5, error: internal error no assigned pty for device serial0
Hi, On Fri, Jan 15, 2010 at 03:13:25PM +0100, Marc Haber wrote: > $ dpkg --list *kvm* > Desired=Unknown/Install/Remove/Purge/Hold > | Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend > |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) > ||/ Name VersionDescription > +++-==-==- > ii kvm72+dfsg-2 Full virtualization on x86 hardware This turned out to be the problem, libvirt didn't handle KVM 72's output correctly. photron helped identifying this issue on IRC, which I really appreciate, and there is a patch available to fix libvirt 0.7.5 with old KVM again. The real issue was that Debian has renamed the kvm package to qemu-kvm, which I didn't notice, and continued using an ancient kvm version. qemu-kvm from Debian unstable works fine with libvirt 0.7.5. Greetings Marc -- ----- Marc Haber | "I don't trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things."Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 3221 2323190 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] Cannot use console with 0.7.5, error: internal error no assigned pty for device serial0
Hi, On Fri, Jan 15, 2010 at 07:51:12PM +0100, Marc Haber wrote: > On Fri, Jan 15, 2010 at 05:45:27PM +0100, Marc Haber wrote: > > Took that patch, applied it to Debian's 0.7.5-4 source package, built > > the package, installed it, same error. > > Looks to me like the issue is still present in git head. git bisect shows the first bad commit being 60e8977fdd97e0952174773f17f8fa6fca664223 Author: Matthew Booth Date: Mon Dec 14 10:50:01 2009 +0100 Get QEMU pty paths from the monitor This is not a big surprise ;) I'm going back to 0.7.4 for the mean time, but am prepared to test things over the weekend. I will only have intermittent access to a KVM-able host starting monday though, so it would be good if we sorted this out over the weekend. Greetings Marc -- ----- Marc Haber | "I don't trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things."Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 3221 2323190 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] Cannot use console with 0.7.5, error: internal error no assigned pty for device serial0
On Fri, Jan 15, 2010 at 05:45:27PM +0100, Marc Haber wrote: > Took that patch, applied it to Debian's 0.7.5-4 source package, built > the package, installed it, same error. Looks to me like the issue is still present in git head. git clone ./autogen create debian/ to allow building the debian package rm debian/patches/series rm docs/Makefile.am touch docs/Makefile.am autoreconf debuild dpkg --install issue still present. Greetings Marc -- ----- Marc Haber | "I don't trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things."Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 3221 2323190 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] Cannot use console with 0.7.5, error: internal error no assigned pty for device serial0
On Fri, Jan 15, 2010 at 02:29:09PM +, Daniel P. Berrange wrote: > If I were a betting man, I'd bet on this changeset which was missed > from the 0.7.5 release > > http://libvirt.org/git/?p=libvirt.git;a=commit;h=c0a9b6a5338e54b64a4a28415ffbdb6bcc2b38c5 Took that patch, applied it to Debian's 0.7.5-4 source package, built the package, installed it, same error. Greetings Marc -- ----- Marc Haber | "I don't trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things."Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 3221 2323190 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] Cannot use console with 0.7.5, error: internal error no assigned pty for device serial0
Hi, On Fri, Jan 15, 2010 at 11:43:26AM +, Matthew Booth wrote: > Could you please post the full domain XML, and the QEMU command line it > generated? You can get the latter from > /var/log/libvirt/qemu/.log. Can you also post the versions of > qemu and libvirt? $ cat /etc/libvirt/qemu/grml-test.xml grml-test ce24153b-b997-0f04-6fd1-ac06cfb780a7 262144 262144 1 hvm destroy destroy destroy /usr/bin/kvm $ sudo tail /var/log/libvirt/qemu/grml-test.log LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin HOME=/ QEMU_AUDIO_DRV=none /usr/bin/kvm -S -M pc -m 256 -smp 1 -name grml-test -monitor unix:/var/lib/libvirt/qemu/grml-test.monitor,server,nowait -no-reboot -boot c -drive file=/dev/mapper/usb160g-grml--test,if=virtio,index=0,boot=on -net nic,macaddr=52:54:00:39:d8:4b,vlan=0,model=virtio -net tap,fd=39,vlan=0 -serial pty -parallel none -usb -vnc 127.0.0.1:0 -k de char device redirected to /dev/pts/3 $ dpkg --list *kvm* Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name VersionDescription +++-==-==- ii kvm72+dfsg-2 Full virtualization on x86 hardware $ dpkg --list *qemu* Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name VersionDescription +++-==-==- ii qemu 0.11.1-2 fast processor emulator ii qemu-system0.11.1-2 QEMU full system emulation binaries ii qemu-user 0.11.1-2 QEMU user mode emulation binaries ii qemu-utils 0.11.1-2 QEMU utilities $ dpkg --list '*libvirt*' Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name VersionDescription +++-==-==- ii libvirt-bin0.7.5-3the programs for the libvirt library ii libvirt0 0.7.5-3library for interfacing with different virtu ii python-libvirt 0.7.5-3libvirt Python bindings $ I am not sure whether the qemu listed above is actually used by the kvm binary. If you need additional information, please ask. Greetings Marc -- ----- Marc Haber | "I don't trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things."Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 3221 2323190 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
[libvirt] Cannot use console with 0.7.5, error: internal error no assigned pty for device serial0
[my apologies for this re-post. I stupidly managed to hide the first instance of this mail away in an unrelated patch-thread and am thus afraid that the people who could have answered didn't see it] Hi, I have one test host running Debian unstable (kernel 2.6.32.3), and I would like to virtualize on it using KVM and virsh. Debian unstable has libvirt 0.7.5. On this host, I cannot start any KVM domain using console with these XML parts: When I try virsh start $domain, I get the error message: error: internal error no assigned pty for device serial0 When I remove the serial and console stanza, the machine starts up. This is the configuration documented everywhere. At first, I suspected a change in the configuration syntax and filed Debian bug #565145, But on the #virt IRC channel, people suggested that there was a change in libvirt parsing KVM's output, which may be a genuine bug breaking the console. Is this already a known issue? Can I do anything to help debugging? Greetings Marc -- - Marc Haber | "I don't trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things."Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 3221 2323190 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] Cannot use console with 0.7.5, error: internal error no assigned pty for device serial0
I apologize for thread hijacking, I missed editing out the IN-Reply-To-Header. Sorry. Greetings Marc -- - Marc Haber | "I don't trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things."Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 3221 2323190 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
[libvirt] Cannot use console with 0.7.5, error: internal error no assigned pty for device serial0
Hi, I have one test host running Debian unstable (kernel 2.6.32.3), and I would like to virtualize on it using KVM and virsh. Debian unstable has libvirt 0.7.5. On this host, I cannot start any KVM domain using console with these XML parts: When I try virsh start $domain, I get the error message: error: internal error no assigned pty for device serial0 When I remove the serial and console stanza, the machine starts up. This is the configuration documented everywhere. At first, I suspected a change in the configuration syntax and filed Debian bug #565145, But on the #virt IRC channel, people suggested that there was a change in libvirt parsing KVM's output, which may be a genuine bug breaking the console. Is this already a known issue? Can I do anything to help debugging? Greetings Marc -- - Marc Haber | "I don't trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things."Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 3221 2323190 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list