Re: [Query] Facing issue in build libvirt6.0 on ubuntu 1804
Thanks, I'll check it out. On Thu, Apr 30, 2020, 6:02 PM Michal Privoznik wrote: > On 4/30/20 2:26 PM, Ramesh B wrote: > > Hi Michel, > > > > Thanks for quick update. > > > >Weird. I have slightly older version and it works for me. Maybe > > configure is picking something else, some weird binary/python script? > > > > *=>* I have python 3.6 version, is it required latest version e.g Python > > 3.8 ? > > No. I meant that perhaps configure was picking the script from say > /usr/local/bin, e.g. some local, self installed version which is broken. > > > > > > > Ideally, you would construct the domain XML to match the command line > > and then use 'virsh define' to store the XML in libvirt. From that point > > on, libvirt will know about the domain and you can use all libvirt APIs > > to control it. > > > > *=>* could you please share sample xml & commands for reference to try > > above procedure. > > Few Qemu parameters are as follows, > >-m 2048 -smp 2 -M q35 > >-enable-kvm > >--cpu host > > 2 >2 > > hvm > > > > > > /usr/bin/qemu-system-x86_64 > > > > Michal > >
Re: [Query] Facing issue in build libvirt6.0 on ubuntu 1804
On 4/30/20 2:26 PM, Ramesh B wrote: Hi Michel, Thanks for quick update. Weird. I have slightly older version and it works for me. Maybe configure is picking something else, some weird binary/python script? *=>* I have python 3.6 version, is it required latest version e.g Python 3.8 ? No. I meant that perhaps configure was picking the script from say /usr/local/bin, e.g. some local, self installed version which is broken. Ideally, you would construct the domain XML to match the command line and then use 'virsh define' to store the XML in libvirt. From that point on, libvirt will know about the domain and you can use all libvirt APIs to control it. *=>* could you please share sample xml & commands for reference to try above procedure. Few Qemu parameters are as follows, -m 2048 -smp 2 -M q35 -enable-kvm --cpu host 2 2 hvm /usr/bin/qemu-system-x86_64 Michal
Re: [Query] Facing issue in build libvirt6.0 on ubuntu 1804
Hi Michel, Thanks for quick update. Weird. I have slightly older version and it works for me. Maybe configure is picking something else, some weird binary/python script? * =>* I have python 3.6 version, is it required latest version e.g Python 3.8 ? Ideally, you would construct the domain XML to match the command line and then use 'virsh define' to store the XML in libvirt. From that point on, libvirt will know about the domain and you can use all libvirt APIs to control it. * =>* could you please share sample xml & commands for reference to try above procedure. Few Qemu parameters are as follows, -m 2048 -smp 2 -M q35 -enable-kvm --cpu host Regards, Babu B On Thu, Apr 30, 2020 at 4:33 PM Michal Privoznik wrote: > On 4/30/20 12:53 PM, Ramesh B wrote: > > Hi Michal, > > > > Please find the details below, > > rst2html5 1.10.6 (Docutils 0.16 [release], Python 3.6.9, on linux) > > > > Weird. I have slightly older version and it works for me. Maybe > configure is picking something else, some weird binary/python script? > > > > > is there any other way to access/control the guest os running on top > QEMU ? > > > Ideally, you would construct the domain XML to match the command line > and then use 'virsh define' to store the XML in libvirt. From that point > on, libvirt will know about the domain and you can use all libvirt APIs > to control it. > Unless your cmd line is super complicated then usually virt-install > --import in combination with --print-xml allows you to converge into the > current config. > > Michal > >
Re: [Query] Facing issue in build libvirt6.0 on ubuntu 1804
Ok, thanks for the clarification. On Thu, Apr 30, 2020, 5:11 PM Daniel P. Berrangé wrote: > On Thu, Apr 30, 2020 at 05:08:17PM +0530, Ramesh B wrote: > > Hi Daniel, > > > > Thanks for command. > > Can I install specific version of prebuilt libvirt ? > > > > Eg: version 6.0 > > No, you get whatever the OS distro provides. > > > Regards, > Daniel > -- > |: https://berrange.com -o- > https://www.flickr.com/photos/dberrange :| > |: https://libvirt.org -o- > https://fstop138.berrange.com :| > |: https://entangle-photo.org-o- > https://www.instagram.com/dberrange :| > >
Re: [Query] Facing issue in build libvirt6.0 on ubuntu 1804
On Thu, Apr 30, 2020 at 05:08:17PM +0530, Ramesh B wrote: > Hi Daniel, > > Thanks for command. > Can I install specific version of prebuilt libvirt ? > > Eg: version 6.0 No, you get whatever the OS distro provides. Regards, Daniel -- |: https://berrange.com -o-https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o-https://fstop138.berrange.com :| |: https://entangle-photo.org-o-https://www.instagram.com/dberrange :|
Re: [Query] Facing issue in build libvirt6.0 on ubuntu 1804
Hi Daniel, Thanks for command. Can I install specific version of prebuilt libvirt ? Eg: version 6.0 On Thu, Apr 30, 2020, 4:54 PM Daniel P. Berrangé wrote: > On Thu, Apr 30, 2020 at 01:35:18PM +0530, Ramesh B wrote: > > Hi all, > > > > I am trying to build libvirt 6.0 on ubuntu OS 18.04. > > Facing one issue libvirt source compilation. > > > > > > :215: (ERROR/3) Error in "code-block" directive: > > 1 argument(s) required, 0 supplied. > > > > .. code-block:: > > > >help [command-or-group] > > > > > > :229: (ERROR/3) Error in "code-block" directive: > > 1 argument(s) required, 0 supplied. > > > > .. code-block:: > > === > > > > *Source:* https://libvirt.org/sources/libvirt-6.0.0.tar.xz > > > > *Build Command*: > > $ mkdir build && cd build > > $ ../configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var > > $ make > > $ sudo make install > > > > Need help in solving the build error. > > is it possible to install libvirt package without build > > if yes please share the command/procedure/link. > > Get a pre-built from with > > $ sudo apt-get install libvirt-bin libvirt-daemon > > > Regards, > Daniel > -- > |: https://berrange.com -o- > https://www.flickr.com/photos/dberrange :| > |: https://libvirt.org -o- > https://fstop138.berrange.com :| > |: https://entangle-photo.org-o- > https://www.instagram.com/dberrange :| > >
Re: [Query] Facing issue in build libvirt6.0 on ubuntu 1804
On Thu, Apr 30, 2020 at 01:35:18PM +0530, Ramesh B wrote: > Hi all, > > I am trying to build libvirt 6.0 on ubuntu OS 18.04. > Facing one issue libvirt source compilation. > > > :215: (ERROR/3) Error in "code-block" directive: > 1 argument(s) required, 0 supplied. > > .. code-block:: > >help [command-or-group] > > > :229: (ERROR/3) Error in "code-block" directive: > 1 argument(s) required, 0 supplied. > > .. code-block:: > === > > *Source:* https://libvirt.org/sources/libvirt-6.0.0.tar.xz > > *Build Command*: > $ mkdir build && cd build > $ ../configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var > $ make > $ sudo make install > > Need help in solving the build error. > is it possible to install libvirt package without build > if yes please share the command/procedure/link. Get a pre-built from with $ sudo apt-get install libvirt-bin libvirt-daemon Regards, Daniel -- |: https://berrange.com -o-https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o-https://fstop138.berrange.com :| |: https://entangle-photo.org-o-https://www.instagram.com/dberrange :|
Re: [Query] Facing issue in build libvirt6.0 on ubuntu 1804
On 4/30/20 12:53 PM, Ramesh B wrote: Hi Michal, Please find the details below, rst2html5 1.10.6 (Docutils 0.16 [release], Python 3.6.9, on linux) Weird. I have slightly older version and it works for me. Maybe configure is picking something else, some weird binary/python script? is there any other way to access/control the guest os running on top QEMU ? Ideally, you would construct the domain XML to match the command line and then use 'virsh define' to store the XML in libvirt. From that point on, libvirt will know about the domain and you can use all libvirt APIs to control it. Unless your cmd line is super complicated then usually virt-install --import in combination with --print-xml allows you to converge into the current config. Michal
Re: [Query] Facing issue in build libvirt6.0 on ubuntu 1804
Hi Michal, Please find the details below, rst2html5 1.10.6 (Docutils 0.16 [release], Python 3.6.9, on linux) is there any other way to access/control the guest os running on top QEMU ? Thanks, Ramesh On Thu, Apr 30, 2020 at 3:47 PM Michal Privoznik wrote: > [Please keep the list CCed] > > On 4/30/20 12:02 PM, Ramesh B wrote: > > Hi Michal, > > > > Thanks for quick response. > > > > Ubuntu: 18.04.3 LTS > > QEMU emulator version 4.2.0 > > libvirtd (libvirt) 4.0.0 > > > > I have lunched the guest os using QEMU. > > I would like to use the virsh commands to get the status / control of > > guest OS. > > when i run any virsh commands not getting any response from QEMU. > > When i tried to explore, found the solution saying use of QEMU monitor > > will help. > > added the below command while lunch, > > -chardev > > > socket,id=charmonitor,path=/var/lib/libvirt/qemu/domain-freebsd11.0/monitor.sock,server,nowait > > > -mon chardev=charmonitor,id=monitor,mode=control > > > > but result in below mentioed error: > > Failed to bind socket to > > /var/lib/libvirt/qemu/domain-freebsd11.0/monitor.sock > > > > Then thought of building libvirt 6.0 version, will help to solve the > > problem. > > Ah, so you wanted to use 'virsh qemu-attach' to attach libvirt to a > running qemu. Yeah, it needs a monitor. However, the functionality was > not maintained and probably not functional anyway so we've removed in > the 5.5.0 release. > > > > > Please guide me to solve this problem. > > > > Regards, > > Babu B > > > > > But what's interesting is that you are unable to build. Which package is > providing the rst2* binaries? Are their up to date? > > Michal > >
Re: [Query] Facing issue in build libvirt6.0 on ubuntu 1804
[Please keep the list CCed] On 4/30/20 12:02 PM, Ramesh B wrote: Hi Michal, Thanks for quick response. Ubuntu: 18.04.3 LTS QEMU emulator version 4.2.0 libvirtd (libvirt) 4.0.0 I have lunched the guest os using QEMU. I would like to use the virsh commands to get the status / control of guest OS. when i run any virsh commands not getting any response from QEMU. When i tried to explore, found the solution saying use of QEMU monitor will help. added the below command while lunch, -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/domain-freebsd11.0/monitor.sock,server,nowait -mon chardev=charmonitor,id=monitor,mode=control but result in below mentioed error: Failed to bind socket to /var/lib/libvirt/qemu/domain-freebsd11.0/monitor.sock Then thought of building libvirt 6.0 version, will help to solve the problem. Ah, so you wanted to use 'virsh qemu-attach' to attach libvirt to a running qemu. Yeah, it needs a monitor. However, the functionality was not maintained and probably not functional anyway so we've removed in the 5.5.0 release. Please guide me to solve this problem. Regards, Babu B But what's interesting is that you are unable to build. Which package is providing the rst2* binaries? Are their up to date? Michal
Re: [Query] Facing issue in build libvirt6.0 on ubuntu 1804
On Thu, Apr 30, 2020 at 11:18:02AM +0200, Michal Privoznik wrote: > On 4/30/20 10:05 AM, Ramesh B wrote: > > Hi all, > > > > I am trying to build libvirt 6.0 on ubuntu OS 18.04. > > Facing one issue libvirt source compilation. > > > > > > :215: (ERROR/3) Error in "code-block" directive: > > 1 argument(s) required, 0 supplied. > > > > .. code-block:: > > > > help [command-or-group] > > > > > > :229: (ERROR/3) Error in "code-block" directive: > > 1 argument(s) required, 0 supplied. > > > > .. code-block:: > > === > > More context would be helpful, but this looks like rst2man or rst2html > failed. Again, context would be helpful to know which one and whether it's > caused by a problem in our released code or rst2*. Last time someone reported this problem it was due to an outdated local / pip install of the python3-docutils package Our CI passes on Ubuntu 18.04, so we know it works with the official distro provided python3-docutils Deb package. Regards, Daniel -- |: https://berrange.com -o-https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o-https://fstop138.berrange.com :| |: https://entangle-photo.org-o-https://www.instagram.com/dberrange :|
Re: [Query] Facing issue in build libvirt6.0 on ubuntu 1804
On 4/30/20 10:05 AM, Ramesh B wrote: Hi all, I am trying to build libvirt 6.0 on ubuntu OS 18.04. Facing one issue libvirt source compilation. :215: (ERROR/3) Error in "code-block" directive: 1 argument(s) required, 0 supplied. .. code-block:: help [command-or-group] :229: (ERROR/3) Error in "code-block" directive: 1 argument(s) required, 0 supplied. .. code-block:: === More context would be helpful, but this looks like rst2man or rst2html failed. Again, context would be helpful to know which one and whether it's caused by a problem in our released code or rst2*. Michal
[Query] Facing issue in build libvirt6.0 on ubuntu 1804
Hi all, I am trying to build libvirt 6.0 on ubuntu OS 18.04. Facing one issue libvirt source compilation. :215: (ERROR/3) Error in "code-block" directive: 1 argument(s) required, 0 supplied. .. code-block:: help [command-or-group] :229: (ERROR/3) Error in "code-block" directive: 1 argument(s) required, 0 supplied. .. code-block:: === *Source:* https://libvirt.org/sources/libvirt-6.0.0.tar.xz *Build Command*: $ mkdir build && cd build $ ../configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var $ make $ sudo make install Need help in solving the build error. is it possible to install libvirt package without build if yes please share the command/procedure/link. Thanks, Ramesh