Re: [gentoo-user] virt-manager qemu problem

2018-11-18 Thread Mick
On Sunday, 18 November 2018 13:49:12 GMT jdm wrote:
> On Sat, 17 Nov 2018 23:39:42 +
> 
> Mick  wrote:
> > On Saturday, 17 November 2018 10:55:21 GMT jdm wrote:
> > > Hi,
> > > 
> > > I am trying to run virt-manager and or qemu with 3d acceleration
> > > using virtio-gpu options.
> > > 
> > > When I start the virtual machine in virt-manager all I get is a
> > > screen of static (complete screen corruption of lines and blocks)
> > > 
> > > I also get the same problem when trying to start from CLI with the
> > > following
> > > 
> > > /usr/bin/qemu-system-x86_64 \
> > > -enable-kvm \
> > > -cpu host \
> > > -smp 8 \
> > > -m 4G \
> > > -net nic,macaddr=52:54:00:12:34:56 -net user \
> > > -soundhw es1370 \
> > > -usb -device usb-tablet \
> > > -show-cursor \
> > > -vga virtio \
> > > -display gtk,gl=on \
> > > -drive file=arch.img,if=virtio &
> > > 
> > > This used to work fine but has recently gone wrong. I have tried
> > > several guests all with the same results of corrupted screens.
> > > 
> > > I can start machines with normal qxl options and all is fine so
> > > think this is just an issue with virtio 3d acceleration.
> > > 
> > > Any ideas?
> > > 
> > > Thanks
> > > 
> > > John
> > 
> > All I can think is this should be related to the host GPU and any
> > recent update to its drivers.  On an old Radeon here I have not
> > noticed any problems running:
> > 
> > -display gtk,gl=on
> > 
> > or
> > 
> > -display sdl,gl=on
> 
> I decided to update virglrenderer upto version  (not sure if I
> should do this but heyho) as there is only one version available. This
> has allowed me to run vm from CLI so that has helped there but not with
> virt-manager, which now just shows a blank screen.
> 
> I have a RX480 radeon card which is yearish old so perhaps support for
> newer cards is not as good.
> 
> John

I'm still on virglrenderer-0.6.0, with a 10+ year old RV730/M96-XT [Mobility 
Radeon HD 4670] and radeon rather than amdgpu firmware.  I am not using virt-
manager, just qemu off the CLI.

-- 
Regards,
Mick

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] virt-manager qemu problem

2018-11-18 Thread jdm
On Sat, 17 Nov 2018 23:39:42 +
Mick  wrote:

> On Saturday, 17 November 2018 10:55:21 GMT jdm wrote:
> > Hi,
> > 
> > I am trying to run virt-manager and or qemu with 3d acceleration
> > using virtio-gpu options.
> > 
> > When I start the virtual machine in virt-manager all I get is a
> > screen of static (complete screen corruption of lines and blocks)
> > 
> > I also get the same problem when trying to start from CLI with the
> > following
> > 
> > /usr/bin/qemu-system-x86_64 \
> > -enable-kvm \
> > -cpu host \
> > -smp 8 \
> > -m 4G \
> > -net nic,macaddr=52:54:00:12:34:56 -net user \
> > -soundhw es1370 \
> > -usb -device usb-tablet \
> > -show-cursor \
> > -vga virtio \
> > -display gtk,gl=on \
> > -drive file=arch.img,if=virtio &
> > 
> > This used to work fine but has recently gone wrong. I have tried
> > several guests all with the same results of corrupted screens.
> > 
> > I can start machines with normal qxl options and all is fine so
> > think this is just an issue with virtio 3d acceleration.
> > 
> > Any ideas?
> > 
> > Thanks
> > 
> > John  
> 
> All I can think is this should be related to the host GPU and any
> recent update to its drivers.  On an old Radeon here I have not
> noticed any problems running:
> 
> -display gtk,gl=on
> 
> or
> 
> -display sdl,gl=on
> 

I decided to update virglrenderer upto version  (not sure if I
should do this but heyho) as there is only one version available. This
has allowed me to run vm from CLI so that has helped there but not with
virt-manager, which now just shows a blank screen.

I have a RX480 radeon card which is yearish old so perhaps support for
newer cards is not as good.

John



Re: [gentoo-user] virt-manager qemu problem

2018-11-17 Thread Mick
On Saturday, 17 November 2018 10:55:21 GMT jdm wrote:
> Hi,
> 
> I am trying to run virt-manager and or qemu with 3d acceleration using
> virtio-gpu options.
> 
> When I start the virtual machine in virt-manager all I get is a screen
> of static (complete screen corruption of lines and blocks)
> 
> I also get the same problem when trying to start from CLI with the
> following
> 
> /usr/bin/qemu-system-x86_64 \
> -enable-kvm \
> -cpu host \
> -smp 8 \
> -m 4G \
> -net nic,macaddr=52:54:00:12:34:56 -net user \
> -soundhw es1370 \
> -usb -device usb-tablet \
> -show-cursor \
> -vga virtio \
> -display gtk,gl=on \
> -drive file=arch.img,if=virtio &
> 
> This used to work fine but has recently gone wrong. I have tried
> several guests all with the same results of corrupted screens.
> 
> I can start machines with normal qxl options and all is fine so
> think this is just an issue with virtio 3d acceleration.
> 
> Any ideas?
> 
> Thanks
> 
> John

All I can think is this should be related to the host GPU and any recent 
update to its drivers.  On an old Radeon here I have not noticed any problems 
running:

-display gtk,gl=on

or

-display sdl,gl=on

-- 
Regards,
Mick

signature.asc
Description: This is a digitally signed message part.


[gentoo-user] virt-manager qemu problem

2018-11-17 Thread jdm
Hi,

I am trying to run virt-manager and or qemu with 3d acceleration using
virtio-gpu options. 

When I start the virtual machine in virt-manager all I get is a screen
of static (complete screen corruption of lines and blocks) 

I also get the same problem when trying to start from CLI with the
following

/usr/bin/qemu-system-x86_64 \
-enable-kvm \
-cpu host \
-smp 8 \
-m 4G \
-net nic,macaddr=52:54:00:12:34:56 -net user \
-soundhw es1370 \
-usb -device usb-tablet \
-show-cursor \
-vga virtio \
-display gtk,gl=on \
-drive file=arch.img,if=virtio &

This used to work fine but has recently gone wrong. I have tried
several guests all with the same results of corrupted screens.

I can start machines with normal qxl options and all is fine so
think this is just an issue with virtio 3d acceleration.

Any ideas?

Thanks

John






Re: [gentoo-user] virt-manager and ssh

2013-10-07 Thread Stefan G. Weichinger
Am 03.10.2013 15:39, schrieb Michael Hampicke:

 Server side:
 
 [ebuild   R   ~] app-emulation/libvirt-1.1.2-r3  USE=caps libvirtd
 lvm macvtap nls numa python qemu udev vepa virt-network -audit
 -avahi -firewalld -fuse -iscsi -lxc -nfs -openvz -parted -pcap
 -phyp -policykit -rbd -sasl (-selinux) -systemd -uml -virtualbox
 -xen PYTHON_SINGLE_TARGET=python2_7 -python2_6
 PYTHON_TARGETS=python2_7 -python2_6 0 kB
 
 I connect via ssh+pubkey

Would you mind sharing your libvirtd.conf as well?
Did you add a separate user/group for libvirtd on the server side?

Thanks!




Re: [gentoo-user] virt-manager and ssh

2013-10-07 Thread Michael Hampicke
Am 07.10.2013 11:29, schrieb Stefan G. Weichinger:
 Am 03.10.2013 15:39, schrieb Michael Hampicke:
 
 Server side:

 [ebuild   R   ~] app-emulation/libvirt-1.1.2-r3  USE=caps libvirtd
 lvm macvtap nls numa python qemu udev vepa virt-network -audit
 -avahi -firewalld -fuse -iscsi -lxc -nfs -openvz -parted -pcap
 -phyp -policykit -rbd -sasl (-selinux) -systemd -uml -virtualbox
 -xen PYTHON_SINGLE_TARGET=python2_7 -python2_6
 PYTHON_TARGETS=python2_7 -python2_6 0 kB

 I connect via ssh+pubkey
 
 Would you mind sharing your libvirtd.conf as well?
 Did you add a separate user/group for libvirtd on the server side?
 
 Thanks!
 
 

Hi Stefan, I did not change my libvirtd.conf
There are no options set there, only comments.

# egrep -i 'qemu|kvm|libvirt' /etc/passwd /etc/group
/etc/passwd:qemu:x:77:77:added by portage for
libvirt:/dev/null:/sbin/nologin
/etc/group:kvm:x:78:qemu
/etc/group:qemu:x:77:


Once I had a problem with libvirt too. I remember that there was some
debug option. When enabled you could see what libvirt was doing exactly.
But I don't remeber where that options was. Maybe it was some enviroment
variable that you had to set? Something like

DEBUGOPTIONS=whatever virsh your commands

and

DEBUGOPTIONS=whatever libvirt --option-to-not-fork-in-background

I don't have the man page handy right now. HTH



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] virt-manager and ssh

2013-10-07 Thread Stefan G. Weichinger
Am 07.10.2013 19:24, schrieb Michael Hampicke:
 Am 07.10.2013 11:29, schrieb Stefan G. Weichinger:
 Am 03.10.2013 15:39, schrieb Michael Hampicke:
 
 Server side:
 
 [ebuild   R   ~] app-emulation/libvirt-1.1.2-r3  USE=caps
 libvirtd lvm macvtap nls numa python qemu udev vepa
 virt-network -audit -avahi -firewalld -fuse -iscsi -lxc -nfs
 -openvz -parted -pcap -phyp -policykit -rbd -sasl (-selinux)
 -systemd -uml -virtualbox -xen PYTHON_SINGLE_TARGET=python2_7
 -python2_6 PYTHON_TARGETS=python2_7 -python2_6 0 kB
 
 I connect via ssh+pubkey
 
 Would you mind sharing your libvirtd.conf as well? Did you add a
 separate user/group for libvirtd on the server side?
 
 Thanks!
 
 
 
 Hi Stefan, I did not change my libvirtd.conf There are no options
 set there, only comments.
 
 # egrep -i 'qemu|kvm|libvirt' /etc/passwd /etc/group 
 /etc/passwd:qemu:x:77:77:added by portage for 
 libvirt:/dev/null:/sbin/nologin /etc/group:kvm:x:78:qemu 
 /etc/group:qemu:x:77:
 
 
 Once I had a problem with libvirt too. I remember that there was
 some debug option. When enabled you could see what libvirt was
 doing exactly. But I don't remeber where that options was. Maybe it
 was some enviroment variable that you had to set? Something like
 
 DEBUGOPTIONS=whatever virsh your commands
 
 and
 
 DEBUGOPTIONS=whatever libvirt --option-to-not-fork-in-background
 
 I don't have the man page handy right now. HTH

Thanks for your reply ... I will check tomorrow when I am back at my
office (the IPSEC-VPN is locked to my static IP etc etc).

You use an URI like

qemu+ssh://server

?

I read about transports:

http://libvirt.org/remote.html#Remote_transports

and libvirtd is definitely running at the remote host.

I somehow suspect that systemd does *something* to the used sockets
... dunno.

Regards, Stefan




[gentoo-user] virt-manager and ssh

2013-10-03 Thread Stefan G. Weichinger

Does anyone of you use virt-manager to control QEMU/KVM-hosts?

I do or try ... and I always get hickups when I edit VM-settings.

Tried virt-manager-0.9.5, 0.10.0, 0.10.0-r1  ... same behavior, when I
click Save for setting the disks properties it runs into a timeout or
something.

The connection uses ssh and I access the host via an IPSEC-VPN (running
on my router). Normal ssh and/or mosh-sessions are fine.

I allow all TCP/UDP-ports through their firewall for my IPs ... but on
the target host I see:

libvirtd[5742]: No response from client 0x7fa8060eef80 after 5 keepalive
messages in 31 seconds

which seems to be the issue somehow.

Does anyone know this problem?

(feels like this server is my test case for nearly all topics right now)

Stefan



Re: [gentoo-user] virt-manager and ssh

2013-10-03 Thread William Kenworthy
On 03/10/13 17:18, Stefan G. Weichinger wrote:
 
 Does anyone of you use virt-manager to control QEMU/KVM-hosts?
 
 I do or try ... and I always get hickups when I edit VM-settings.
 
 Tried virt-manager-0.9.5, 0.10.0, 0.10.0-r1  ... same behavior, when I
 click Save for setting the disks properties it runs into a timeout or
 something.
 
 The connection uses ssh and I access the host via an IPSEC-VPN (running
 on my router). Normal ssh and/or mosh-sessions are fine.
 
 I allow all TCP/UDP-ports through their firewall for my IPs ... but on
 the target host I see:
 
 libvirtd[5742]: No response from client 0x7fa8060eef80 after 5 keepalive
 messages in 31 seconds
 
 which seems to be the issue somehow.
 
 Does anyone know this problem?
 
 (feels like this server is my test case for nearly all topics right now)
 
 Stefan
 

Are you running stp.  I was having a problem that when I did anything to
libvirt it would disconnect the bridge and stp reconfigured.  Turning it
off fixed it (am using openvswitch)

BillK





Re: [gentoo-user] virt-manager and ssh

2013-10-03 Thread Stefan G. Weichinger
Am 03.10.2013 11:43, schrieb William Kenworthy:
 On 03/10/13 17:18, Stefan G. Weichinger wrote:

 Does anyone of you use virt-manager to control QEMU/KVM-hosts?

 I do or try ... and I always get hickups when I edit VM-settings.

 Tried virt-manager-0.9.5, 0.10.0, 0.10.0-r1  ... same behavior, when I
 click Save for setting the disks properties it runs into a timeout or
 something.

 The connection uses ssh and I access the host via an IPSEC-VPN (running
 on my router). Normal ssh and/or mosh-sessions are fine.

 I allow all TCP/UDP-ports through their firewall for my IPs ... but on
 the target host I see:

 libvirtd[5742]: No response from client 0x7fa8060eef80 after 5 keepalive
 messages in 31 seconds

 which seems to be the issue somehow.

 Does anyone know this problem?

 (feels like this server is my test case for nearly all topics right now)

 Stefan

 
 Are you running stp.  I was having a problem that when I did anything to
 libvirt it would disconnect the bridge and stp reconfigured.  Turning it
 off fixed it (am using openvswitch)

Could you specify where to turn that off? I don't know stp ... sorry.
Thanks!

(and no openvswitch here)




Re: [gentoo-user] virt-manager and ssh

2013-10-03 Thread Stefan G. Weichinger
Am 03.10.2013 11:45, schrieb Stefan G. Weichinger:

 Are you running stp.  I was having a problem that when I did anything to
 libvirt it would disconnect the bridge and stp reconfigured.  Turning it
 off fixed it (am using openvswitch)
 
 Could you specify where to turn that off? I don't know stp ... sorry.

Ah, it's a bridge feature ;-)

I assume I should turn it off on the KVM server. Will do now.




Re: [gentoo-user] virt-manager and ssh

2013-10-03 Thread Stefan G. Weichinger
Am 03.10.2013 11:49, schrieb Stefan G. Weichinger:
 Am 03.10.2013 11:45, schrieb Stefan G. Weichinger:
 
 Are you running stp.  I was having a problem that when I did anything to
 libvirt it would disconnect the bridge and stp reconfigured.  Turning it
 off fixed it (am using openvswitch)

 Could you specify where to turn that off? I don't know stp ... sorry.
 
 Ah, it's a bridge feature ;-)
 
 I assume I should turn it off on the KVM server. Will do now.
 
 

No change:

I get


Fehler beim Anwenden von Ă„nderungen: Interner Fehler: Client Socket ist
geschlossen

Traceback (most recent call last):
  File /usr/share/virt-manager/virtManager/details.py, line 2022, in
config_apply
ret = self.config_disk_apply(key)
  File /usr/share/virt-manager/virtManager/details.py, line 2323, in
config_disk_apply
return self._change_config_helper(df, da, hf, ha)
  File /usr/share/virt-manager/virtManager/details.py, line 2566, in
_change_config_helper
self.vm.refresh_xml()
  File /usr/share/virt-manager/virtManager/libvirtobject.py, line 115,
in refresh_xml
self._xml = self._XMLDesc(self._active_xml_flags)
  File /usr/share/virt-manager/virtManager/domain.py, line 924, in
_XMLDesc
return self._backend.XMLDesc(flags)
  File /usr/lib64/python2.7/site-packages/libvirt.py, line 400, in XMLDesc
if ret is None: raise libvirtError ('virDomainGetXMLDesc() failed',
dom=self)
libvirtError: Interner Fehler: Client Socket ist geschlossen

(german parts in there ...) and still the

libvirtd[5742]: No response from client 0x7fa8060eef10 after 5 keepalive
messages in 31 seconds

on the server.




Re: [gentoo-user] virt-manager and ssh

2013-10-03 Thread Michael Hampicke
Am 03.10.2013 11:52, schrieb Stefan G. Weichinger:
 Am 03.10.2013 11:49, schrieb Stefan G. Weichinger:
 Am 03.10.2013 11:45, schrieb Stefan G. Weichinger:

 Are you running stp.  I was having a problem that when I did anything to
 libvirt it would disconnect the bridge and stp reconfigured.  Turning it
 off fixed it (am using openvswitch)

 Could you specify where to turn that off? I don't know stp ... sorry.

 Ah, it's a bridge feature ;-)

 I assume I should turn it off on the KVM server. Will do now.


 
 No change:
 
 I get
  *** snipped error ***

Did you restart libvirt after the change?

virt-manager over ssh here works fine.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] virt-manager and ssh

2013-10-03 Thread Stefan G. Weichinger
Am 03.10.2013 13:42, schrieb Michael Hampicke:

 Did you restart libvirt after the change?
 
 virt-manager over ssh here works fine.

Restarted, rebuilt ...

which release do you use? Which USE-flags?

I get closed client socket again right now.






Re: [gentoo-user] virt-manager and ssh

2013-10-03 Thread Michael Hampicke
Am 03.10.2013 13:52, schrieb Stefan G. Weichinger:
 Am 03.10.2013 13:42, schrieb Michael Hampicke:
 
 Did you restart libvirt after the change?

 virt-manager over ssh here works fine.
 
 Restarted, rebuilt ...
 
 which release do you use? Which USE-flags?
 

Client side:
[ebuild   R] app-emulation/libvirt-1.1.2-r3  USE=caps libvirtd lvm
macvtap nls numa policykit python qemu systemd udev vepa virt-network
virtualbox -audit -avahi -firewalld -fuse -iscsi -lxc -nfs -openvz
-parted -pcap -phyp -rbd -sasl (-selinux) -uml -xen
PYTHON_SINGLE_TARGET=python2_7 -python2_6 PYTHON_TARGETS=python2_7
-python2_6 0 kB
[ebuild   R] app-emulation/virt-manager-0.10.0-r1
USE=gnome-keyring policykit -debug -sasl
PYTHON_SINGLE_TARGET=python2_7 -python2_6 PYTHON_TARGETS=python2_7
-python2_6 0 kB


Server side:

[ebuild   R   ~] app-emulation/libvirt-1.1.2-r3  USE=caps libvirtd lvm
macvtap nls numa python qemu udev vepa virt-network -audit -avahi
-firewalld -fuse -iscsi -lxc -nfs -openvz -parted -pcap -phyp -policykit
-rbd -sasl (-selinux) -systemd -uml -virtualbox -xen
PYTHON_SINGLE_TARGET=python2_7 -python2_6 PYTHON_TARGETS=python2_7
-python2_6 0 kB

I connect via ssh+pubkey



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] virt-manager and ssh

2013-10-03 Thread Stefan G. Weichinger
Am 03.10.2013 15:39, schrieb Michael Hampicke:

 Server side:
 
 [ebuild   R   ~] app-emulation/libvirt-1.1.2-r3  USE=caps libvirtd
 lvm macvtap nls numa python qemu udev vepa virt-network -audit
 -avahi -firewalld -fuse -iscsi -lxc -nfs -openvz -parted -pcap
 -phyp -policykit -rbd -sasl (-selinux) -systemd -uml -virtualbox
 -xen PYTHON_SINGLE_TARGET=python2_7 -python2_6
 PYTHON_TARGETS=python2_7 -python2_6 0 kB
 
 I connect via ssh+pubkey

Thanks ... looks quite the same for me ... rebuilding things now.

I even consider to create a VM locally and copy the XML file over ...
just to get things running ... frustrating!

Stefan




Re: [gentoo-user] virt-manager and ssh

2013-10-03 Thread Stefan G. Weichinger
Am 03.10.2013 16:03, schrieb Stefan G. Weichinger:
 Am 03.10.2013 15:39, schrieb Michael Hampicke:
 
 Server side:

 [ebuild   R   ~] app-emulation/libvirt-1.1.2-r3  USE=caps libvirtd
 lvm macvtap nls numa python qemu udev vepa virt-network -audit
 -avahi -firewalld -fuse -iscsi -lxc -nfs -openvz -parted -pcap
 -phyp -policykit -rbd -sasl (-selinux) -systemd -uml -virtualbox
 -xen PYTHON_SINGLE_TARGET=python2_7 -python2_6
 PYTHON_TARGETS=python2_7 -python2_6 0 kB

 I connect via ssh+pubkey
 
 Thanks ... looks quite the same for me ... rebuilding things now.
 
 I even consider to create a VM locally and copy the XML file over ...
 just to get things running ... frustrating!

Whenever I want to edit anything ... I get these hangups.
*sigh*




Re: [gentoo-user] virt-manager and ssh

2013-10-03 Thread Stefan G. Weichinger

Maybe my bridge-setup is wrong?

# cat /etc/systemd/system/bridge.service
[Unit]
Description=network bridge for KVM
After=network.target

[Service]
Type=oneshot
RemainAfterExit=yes

EnvironmentFile=/etc/conf.d/network_systemd

ExecStart=/sbin/brctl addbr ${bridge_name}
ExecStart=/usr/bin/tunctl -b -u ${user} -t ${tap_name}

ExecStart=/bin/ifconfig ${bridge_name} ${address} netmask ${netmask} up
ExecStart=/bin/ifconfig ${interface} up
ExecStart=/bin/ifconfig ${tap_name} up 0.0.0.0 promisc
ExecStart=/sbin/brctl addif ${bridge_name} ${tap_name} ${interface}
ExecStart=/sbin/sysctl net.ipv4.conf.${bridge_name}.forwarding=1
#ExecStart=/sbin/iptables -t nat -A POSTROUTING -o ${interface} -j
MASQUERADE
ExecStart=/bin/ip route add default via ${gateway}

ExecStop=/bin/ip route del default via ${gateway}
ExecStop=/sbin/sysctl net.ipv4.conf.${bridge_name}.forwarding=0
ExecStop=/bin/ifconfig ${tap_name} down
ExecStop=/sbin/brctl delif ${bridge_name} ${tap_name}
ExecStop=/usr/bin/tunctl -d ${tap_name}
ExecStop=/bin/ifconfig ${bridge_name} down
ExecStop=/bin/ifconfig ${interface} down
ExecStop=/sbin/brctl delbr ${bridge_name}
#ExecStop=/sbin/iptables -t nat -D POSTROUTING -o ${interface} -j MASQUERADE

[Install]
WantedBy=multi-user.target




# ip a
1: lo: LOOPBACK,UP,LOWER_UP mtu 65536 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
   valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
   valid_lft forever preferred_lft forever
2: eno1: BROADCAST,MULTICAST,UP,LOWER_UP mtu 1500 qdisc mq master br0
state UP qlen 1000
link/ether d8:9d:67:1a:bc:80 brd ff:ff:ff:ff:ff:ff
inet6 fe80::da9d:67ff:fe1a:bc80/64 scope link
   valid_lft forever preferred_lft forever
3: eno2: BROADCAST,MULTICAST,UP,LOWER_UP mtu 1500 qdisc mq state UP
qlen 1000
link/ether d8:9d:67:1a:bc:81 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.201/24 brd 192.168.1.255 scope global eno2
   valid_lft forever preferred_lft forever
inet6 fe80::da9d:67ff:fe1a:bc81/64 scope link
   valid_lft forever preferred_lft forever
4: eno3: BROADCAST,MULTICAST mtu 1500 qdisc noop state DOWN qlen 1000
link/ether d8:9d:67:1a:bc:82 brd ff:ff:ff:ff:ff:ff
5: eno4: BROADCAST,MULTICAST mtu 1500 qdisc noop state DOWN qlen 1000
link/ether d8:9d:67:1a:bc:83 brd ff:ff:ff:ff:ff:ff
6: sit0: NOARP mtu 1480 qdisc noop state DOWN
link/sit 0.0.0.0 brd 0.0.0.0
7: br0: BROADCAST,MULTICAST,UP,LOWER_UP mtu 1500 qdisc noqueue state UP
link/ether d6:ce:b7:07:92:a5 brd ff:ff:ff:ff:ff:ff
inet 10.96.25.131/25 brd 10.96.25.255 scope global br0
   valid_lft forever preferred_lft forever
inet6 fe80::4481:f2ff:fe56:12bf/64 scope link
   valid_lft forever preferred_lft forever
8: qtap0: NO-CARRIER,BROADCAST,MULTICAST,PROMISC,UP mtu 1500 qdisc
pfifo_fast master br0 state DOWN qlen 500
link/ether d6:ce:b7:07:92:a5 brd ff:ff:ff:ff:ff:ff


--- I am really scratching my head here ... this box takes way more time
and effort than expected ...

I run sshd.socket ... and not a sshd.service ... tested sshd.service
now, no difference.

When I edit (for example) the RAM within virt-manager and click Apply
... it takes some seconds and drops the connection:


Fehler beim Anwenden von Ă„nderungen: Interner Fehler: Client Socket ist
geschlossen

Traceback (most recent call last):
  File /usr/share/virt-manager/virtManager/details.py, line 1998, in
config_apply
ret = self.config_memory_apply()
  File /usr/share/virt-manager/virtManager/details.py, line 2196, in
config_memory_apply
return self._change_config_helper(df, da, hf, ha)
  File /usr/share/virt-manager/virtManager/details.py, line 2549, in
_change_config_helper
self.vm.refresh_xml()
  File /usr/share/virt-manager/virtManager/libvirtobject.py, line 105,
in refresh_xml
self._xml = self._XMLDesc(self._active_xml_flags)
  File /usr/share/virt-manager/virtManager/domain.py, line 881, in
_XMLDesc
return self._backend.XMLDesc(flags)
  File /usr/lib64/python2.7/site-packages/libvirt.py, line 400, in XMLDesc
if ret is None: raise libvirtError ('virDomainGetXMLDesc() failed',
dom=self)
libvirtError: Interner Fehler: Client Socket ist geschlossen


---

I checked for permission issues.

Created group libvirt on server, edited libvirtd.conf to use it, created
my user sgw on the server and added it to the libvirt-group.

The URI is: qemu+ssh://sgw@jupi/system

and it connects fine ... but then drops.

I am pretty much lost right now .. tired and frustrated ... and in need
of some break ... otoh it can't be that hard to find the reason, I assume.

Stefan








Re: [gentoo-user] virt-manager and ssh

2013-10-03 Thread Stefan G. Weichinger
Am 03.10.2013 17:15, schrieb Stefan G. Weichinger:
 
 Maybe my bridge-setup is wrong?

unlikely ... I use the same setup on at least 2 others systems w/
QEMU/KVM and systemd.

compared USE-flags ... same.

The main difference is the connection ... IPSEC and stuff ...

I tested and edited a VM on a host in my basement, same virt-manager,
ssh+pubkey ... works fast and correct, no delays, no timeout.

Very strange.







Re: [gentoo-user] virt-manager and ssh

2013-10-03 Thread Stefan G. Weichinger
Am 03.10.2013 17:32, schrieb Stefan G. Weichinger:
 Am 03.10.2013 17:15, schrieb Stefan G. Weichinger:

 Maybe my bridge-setup is wrong?
 
 unlikely ... I use the same setup on at least 2 others systems w/
 QEMU/KVM and systemd.
 
 compared USE-flags ... same.
 
 The main difference is the connection ... IPSEC and stuff ...
 
 I tested and edited a VM on a host in my basement, same virt-manager,
 ssh+pubkey ... works fast and correct, no delays, no timeout.
 
 Very strange.

seems to be the server or the connection ...

Took the effort and installed ubuntu into a VM ;-) and virt-manager in
there. Connected to the server ... same behavior.

plain ssh session works fine and stable.

Maybe I should file a bug somewhere.

Stefan




Re: [gentoo-user] virt-manager-0.9.1 broken?

2012-03-16 Thread Stefan G. Weichinger

Solved with patch from:

https://bugs.gentoo.org/show_bug.cgi?id=329987



Re: [gentoo-user] virt-manager-0.9.1 broken?

2012-03-14 Thread Stefan G. Weichinger
Am 13.03.2012 23:17, schrieb Alan McKinnon:
 On Tue, 13 Mar 2012 23:13:33 +0100
 Stefan G. Weichinger li...@xunil.at wrote:
 

 Anyone else seeing this?

 No bugreport yet, and I rebuilt and revdeped 

 Stefan

 
 I'm thinking you hit send before typing up the bit where you say what
 the issue is you are having.

Oh, yes, sorry!

see here:

$ virt-manager
Traceback (most recent call last):
  File /usr/share/virt-manager/virt-manager.py, line 393, in module
_show_startup_error(str(run_e), .join(traceback.format_exc()))
  File /usr/share/virt-manager/virt-manager.py, line 63, in
_show_startup_error
from virtManager.error import vmmErrorDialog
  File /usr/share/virt-manager/virtManager/error.py, line 25, in module
from virtManager.baseclass import vmmGObject
  File /usr/share/virt-manager/virtManager/baseclass.py, line 28, in
module
running_config, gobject, GObject, gtk =
virtManager.guidiff.get_imports()
  File /usr/share/virt-manager/virtManager/guidiff.py, line 46, in
get_imports
import virtManager.util
  File /usr/share/virt-manager/virtManager/util.py, line 28, in module
import virtinst
  File /usr/lib64/python2.7/site-packages/virtinst/__init__.py, line
37, in module
from Guest import Guest, XenGuest
  File /usr/lib64/python2.7/site-packages/virtinst/Guest.py, line 27,
in module
import urlgrabber.progress as progress
  File /usr/lib64/python2.7/site-packages/urlgrabber/__init__.py, line
54, in module
from grabber import urlgrab, urlopen, urlread
  File /usr/lib64/python2.7/site-packages/urlgrabber/grabber.py, line
427, in module
import pycurl
ImportError: /usr/lib64/python2.7/site-packages/pycurl.so: undefined
symbol: gcry_control



[gentoo-user] virt-manager-0.9.1 broken?

2012-03-13 Thread Stefan G. Weichinger

Anyone else seeing this?

No bugreport yet, and I rebuilt and revdeped 

Stefan



Re: [gentoo-user] virt-manager-0.9.1 broken?

2012-03-13 Thread Alan McKinnon
On Tue, 13 Mar 2012 23:13:33 +0100
Stefan G. Weichinger li...@xunil.at wrote:

 
 Anyone else seeing this?
 
 No bugreport yet, and I rebuilt and revdeped 
 
 Stefan
 

I'm thinking you hit send before typing up the bit where you say what
the issue is you are having.

-- 
Alan McKinnnon
alan.mckin...@gmail.com




Re: [gentoo-user] virt-manager-0.9.1 broken?

2012-03-13 Thread Bruce Hill, Jr.



On March 13, 2012 at 6:13 PM Stefan G. Weichinger li...@xunil.at wrote:


 Anyone else seeing this?

 No bugreport yet, and I rebuilt and revdeped 

 Stefan



There is a stabilization request for it:
https://bugs.gentoo.org/show_bug.cgi?id=407559
--
Happy Penguin Computers`)
126 Fenco Drive( \
Tupelo, MS 38801^^
662-269-2706; 662-491-8613
support at happypenguincomputers dot com
http://www.happypenguincomputers.com



Re: [gentoo-user] Virt-manager

2011-07-08 Thread john
On Thu, 07 Jul 2011 21:17:12 -0400
Albert Hopkins mar...@letterboxes.org wrote:

 
 
 On Thursday, July 7 at 23:30 (+0100), john said:
 
  On Thu, 07 Jul 2011 17:26:18 -0400
 
  
  Have cleared up error messages using config as suggested.
  
  I still get the issue when starting /etc/init.d/libvirtd
   
* Starting libvirtd ...
   /usr/sbin/libvirtd: error: Unable to initialize network sockets.
   Check /var/log/messages or run without --daemon for more info.
* start-stop-daemon: failed to start
   `/usr/sbin/libvirtd'[ !! ]
* ERROR: libvirtd failed to start
 
 You'll have to turn up the logging level of libvirt (to find out
 exactly what it's trying to do and where it's erroring out).
 
  BUT when i start /usr/sbin/libvirtd from command line virt-manager
  now works. It lets me create vms (yippee)
  
  I was unaware that libvirtd was a separate package (thought it was
  part of virt-manager. After reading your hints it dawned on me that
  is was seaparate so have enabled more use flags. I should check
  more carefully the output of emerge -vp.
  
 
 libvirt (not libvirtd) is a seperate package, it (possibly) contains a
 number of things, including
 
 libvirt: the C library that allows you to manage many different types
 of virtualization platforms using a common API.
 Python bindings for the above
 A command-line and shell interface (called virsh)
 libvirtd, which is a daemon helper used to manage virtualization
 platforms which don't have their own management service (such as kvm).
 
 virt-manager, is a seperate product.  It is a GUI interface written in
 python that is used to talk to manage different types of
 virtualization platforms.  It uses libvirt (its python bindings) to
 do this.  Think of it as a GUI version of virsh.
 
 But you don't need virt-manager to use libvirt, and you don't even
 need libvirtd to use libvirt (e.g. you are interfacing with Xen or
 VMware hypervisors).
 
 That's why I was trying to say it's good for you to figure out what
 you are trying to do, before you go through the trouble of figuring
 out how to solve a problem that doesn't even pertain to you and could
 have been avoided altogether just by choosing the right combination
 of USE flags.
 
 If you are just wanting have a GUI for Xen, for example, you don't
 even need to worry about libvirtd.  If, for example, you are using
 KVM but you want the VMs to bridge off a physical interface and have
 no need for virtual networks, then you don't even need the virt-net
 USE flag. 
  Anyway I am up and running with a big thanks to yourself and will
  have a closer look at the service another day.
 
 Ok
 
 

LOL Well I was up and running but now when trying to create VMs I get
(have done upgrade of around 20 packages)
 
Uncaught error validating install parameters: Must pass a VirtualDevice
instance.

Traceback (most recent call last):
  File /usr/share/virt-manager/virtManager/create.py, line 1241, in
validate
return self.validate_final_page()
  File /usr/share/virt-manager/virtManager/create.py, line 1501, in
validate_final_page
self.guest.add_device(self.nic)
  File /usr/lib64/python2.7/site-packages/virtinst/Guest.py, line
666, in add_device
raise ValueError(_(Must pass a VirtualDevice instance.))
ValueError: Must pass a VirtualDevice instance.

dnsmasq installed. python-updater run. revdep-rebuild etc..

Are there any other GUIs to try for for virtualisation?

Or is it better sticking to CL to qemu-kvm?
Am I expecting too much for this just to work?



 
-- 
--
John D Maunder
j...@jdm.myzen.co.uk



Re: [gentoo-user] Virt-manager

2011-07-08 Thread john
On Fri, 8 Jul 2011 21:22:40 +0100
john j...@jdm.myzen.co.uk wrote:

 On Thu, 07 Jul 2011 21:17:12 -0400
 Albert Hopkins mar...@letterboxes.org wrote:
 
  
  
  On Thursday, July 7 at 23:30 (+0100), john said:
  
   On Thu, 07 Jul 2011 17:26:18 -0400
  
   
   Have cleared up error messages using config as suggested.
   
   I still get the issue when starting /etc/init.d/libvirtd

 * Starting libvirtd ...
/usr/sbin/libvirtd: error: Unable to initialize network sockets.
Check /var/log/messages or run without --daemon for more info.
 * start-stop-daemon: failed to start
`/usr/sbin/libvirtd'[ !! ]
 * ERROR: libvirtd failed to start
  
  You'll have to turn up the logging level of libvirt (to find out
  exactly what it's trying to do and where it's erroring out).
  
   BUT when i start /usr/sbin/libvirtd from command line virt-manager
   now works. It lets me create vms (yippee)
   
   I was unaware that libvirtd was a separate package (thought it was
   part of virt-manager. After reading your hints it dawned on me
   that is was seaparate so have enabled more use flags. I should
   check more carefully the output of emerge -vp.
   
  
  libvirt (not libvirtd) is a seperate package, it (possibly)
  contains a number of things, including
  
  libvirt: the C library that allows you to manage many different
  types of virtualization platforms using a common API.
  Python bindings for the above
  A command-line and shell interface (called virsh)
  libvirtd, which is a daemon helper used to manage virtualization
  platforms which don't have their own management service (such as
  kvm).
  
  virt-manager, is a seperate product.  It is a GUI interface written
  in python that is used to talk to manage different types of
  virtualization platforms.  It uses libvirt (its python bindings) to
  do this.  Think of it as a GUI version of virsh.
  
  But you don't need virt-manager to use libvirt, and you don't even
  need libvirtd to use libvirt (e.g. you are interfacing with Xen or
  VMware hypervisors).
  
  That's why I was trying to say it's good for you to figure out what
  you are trying to do, before you go through the trouble of figuring
  out how to solve a problem that doesn't even pertain to you and
  could have been avoided altogether just by choosing the right
  combination of USE flags.
  
  If you are just wanting have a GUI for Xen, for example, you don't
  even need to worry about libvirtd.  If, for example, you are using
  KVM but you want the VMs to bridge off a physical interface and have
  no need for virtual networks, then you don't even need the
  virt-net USE flag. 
   Anyway I am up and running with a big thanks to yourself and will
   have a closer look at the service another day.
  
  Ok
  
  
 
 LOL Well I was up and running but now when trying to create VMs I get
 (have done upgrade of around 20 packages)
  
 Uncaught error validating install parameters: Must pass a
 VirtualDevice instance.
 
 Traceback (most recent call last):
   File /usr/share/virt-manager/virtManager/create.py, line 1241, in
 validate
 return self.validate_final_page()
   File /usr/share/virt-manager/virtManager/create.py, line 1501, in
 validate_final_page
 self.guest.add_device(self.nic)
   File /usr/lib64/python2.7/site-packages/virtinst/Guest.py, line
 666, in add_device
 raise ValueError(_(Must pass a VirtualDevice instance.))
 ValueError: Must pass a VirtualDevice instance.
 
 dnsmasq installed. python-updater run. revdep-rebuild etc..
 
 Are there any other GUIs to try for for virtualisation?
 
 Or is it better sticking to CL to qemu-kvm?
 Am I expecting too much for this just to work?
 
 
 
  

ok I might be being dumb but found a way round this (through trial and
error) 

In advanced options in step 5 of 5 select Specify Shared Device Name

Please note you'll need to create a bridge as well but selecting the
above removes error message.

Caw this is tough but fun.




-- 
--
John D Maunder
j...@jdm.myzen.co.uk



Re: [gentoo-user] Virt-manager

2011-07-08 Thread Albert Hopkins


On Friday, July 8 at 21:22 (+0100), john said:

[...]
 LOL Well I was up and running but now when trying to create VMs I get
 (have done upgrade of around 20 packages)
  
 Uncaught error validating install parameters: Must pass a VirtualDevice
 instance.
 
 Traceback (most recent call last):
   File /usr/share/virt-manager/virtManager/create.py, line 1241, in
 validate
 return self.validate_final_page()
   File /usr/share/virt-manager/virtManager/create.py, line 1501, in
 validate_final_page
 self.guest.add_device(self.nic)
   File /usr/lib64/python2.7/site-packages/virtinst/Guest.py, line
 666, in add_device
 raise ValueError(_(Must pass a VirtualDevice instance.))
 ValueError: Must pass a VirtualDevice instance.
 
 dnsmasq installed. python-updater run. revdep-rebuild etc..
 

 Are there any other GUIs to try for for virtualisation?
 
 Or is it better sticking to CL to qemu-kvm?
 Am I expecting too much for this just to work?
 

I can honestly say that I haven't experienced so much pain working with
libvirt/virt-manger.  If I had I probably would have given up, but I've
been using it for years now.

What versions of packages are you using?  Are you mixing stable/unstable 
packages?

I can't really say.  I've never seen that error before.  What steps are
you taking to create the VM?

 





Re: [gentoo-user] Virt-manager

2011-07-08 Thread Albert Hopkins


On Friday, July 8 at 22:37 (+0100), john said:

 ok I might be being dumb but found a way round this (through trial and
 error) 
 
 In advanced options in step 5 of 5 select Specify Shared Device Name
 
 Please note you'll need to create a bridge as well but selecting the
 above removes error message.
 

Ok, the problem appears that you never really solved the first issue you
had.  So that's causing other issues down the pipe, which is often the
case.




Re: [gentoo-user] Virt-manager

2011-07-08 Thread john
On Fri, 08 Jul 2011 17:57:55 -0400
Albert Hopkins mar...@letterboxes.org wrote:

 
 
 On Friday, July 8 at 21:22 (+0100), john said:
 
 [...]
  LOL Well I was up and running but now when trying to create VMs I
  get (have done upgrade of around 20 packages)
   
  Uncaught error validating install parameters: Must pass a
  VirtualDevice instance.
  
  Traceback (most recent call last):
File /usr/share/virt-manager/virtManager/create.py, line 1241,
  in validate
  return self.validate_final_page()
File /usr/share/virt-manager/virtManager/create.py, line 1501,
  in validate_final_page
  self.guest.add_device(self.nic)
File /usr/lib64/python2.7/site-packages/virtinst/Guest.py, line
  666, in add_device
  raise ValueError(_(Must pass a VirtualDevice instance.))
  ValueError: Must pass a VirtualDevice instance.
  
  dnsmasq installed. python-updater run. revdep-rebuild etc..
  
 
  Are there any other GUIs to try for for virtualisation?
  
  Or is it better sticking to CL to qemu-kvm?
  Am I expecting too much for this just to work?
  
 
 I can honestly say that I haven't experienced so much pain working
 with libvirt/virt-manger.  If I had I probably would have given up,
 but I've been using it for years now.
 
 What versions of packages are you using?  Are you mixing
 stable/unstable packages?
 
 I can't really say.  I've never seen that error before.  What steps
 are you taking to create the VM?
 
  
 
 
 

Using latest stable versions of all packages regarding
virt-manager/libvirt and all associated but I am using 
.39-r2 kernel (which oddly cures a usb issue I have been having
with .38 

There is post on the forum regarding this issue as well (recent)
but looks like no fix was found.

Have tried a few vms now and seen to be running ok. Was trying to see
any differences with VirtualBox (better speed/usability).

Can't say there is much in it but only a home user so will not see too
much speed difference anyway.

Using gui to create images on hard disc and running isos from there.

I perhaps should read the documentation but like to try things first
before getting too involved. lxc next!!!


Thanks for your guidance. I don't think I would have got this far
without it.

-- 
--
John D Maunder
j...@jdm.myzen.co.uk



[gentoo-user] Virt-manager

2011-07-07 Thread john

I am trying to start virt-manager but when I start the daemon

/etc/init.d/libvirtd i get

 * Starting libvirtd ...
/usr/sbin/libvirtd: error: Unable to initialize network sockets.
Check /var/log/messages or run without --daemon for more info.
 * start-stop-daemon: failed to start
`/usr/sbin/libvirtd'[ !! ]
 * ERROR: libvirtd failed to start

Any suggestions???
-- 
--
John D Maunder
j...@jdm.myzen.co.uk



Re: [gentoo-user] Virt-manager

2011-07-07 Thread Albert Hopkins


On Thursday, July 7 at 19:15 (+0100), john said:

 
 I am trying to start virt-manager but when I start the daemon
 
 /etc/init.d/libvirtd i get
 
  * Starting libvirtd ...
 /usr/sbin/libvirtd: error: Unable to initialize network sockets.
 Check /var/log/messages or run without --daemon for more info.
  * start-stop-daemon: failed to start
 `/usr/sbin/libvirtd'[ !! ]
  * ERROR: libvirtd failed to start
 
 Any suggestions???

Other than the obvious (which is to check /var/log/messages or run
without --daemon)...

My guess is that you have enabled the virt-network USE flag but the
system is not configured as such that it could start the default virtual
network.  Among other things you need:

  * iptables support in there kernel
  * bridging support in the kernel
  * tun/tap support in the kernel
  * brctl (probably a dependency of the package itself)
  * iproute2 (probably a dependency of the package itself)

Did /var/log/messages tell you anything (did you bother to look)?  Also
libvirt has a log level that can be set in the config, you could
increase that (and also check the logs).

You should also check the logs.

-a





Re: [gentoo-user] Virt-manager

2011-07-07 Thread john
On Thu, 07 Jul 2011 14:24:48 -0400
Albert Hopkins mar...@letterboxes.org wrote:

 
 
 On Thursday, July 7 at 19:15 (+0100), john said:
 
  
  I am trying to start virt-manager but when I start the daemon
  
  /etc/init.d/libvirtd i get
  
   * Starting libvirtd ...
  /usr/sbin/libvirtd: error: Unable to initialize network sockets.
  Check /var/log/messages or run without --daemon for more info.
   * start-stop-daemon: failed to start
  `/usr/sbin/libvirtd'[ !! ]
   * ERROR: libvirtd failed to start
  
  Any suggestions???
 
 Other than the obvious (which is to check /var/log/messages or run
 without --daemon)...
 
 My guess is that you have enabled the virt-network USE flag but the
 system is not configured as such that it could start the default
 virtual network.  Among other things you need:
 
   * iptables support in there kernel
   * bridging support in the kernel
   * tun/tap support in the kernel
   * brctl (probably a dependency of the package itself)
   * iproute2 (probably a dependency of the package itself)
 
 Did /var/log/messages tell you anything (did you bother to look)?
 Also libvirt has a log level that can be set in the config, you could
 increase that (and also check the logs).
 
 You should also check the logs.
 
 -a
 
 

 
iptables is running, bridging and tun have been loaded as modules
iproute2 has now been installed but makes no odds. Not sure about brctl
as I can't find this?

Have started libvirtd and get the following
when trying to start virt-manager

20:28:05.083: 5216: info :
libvirt version: 0.9.1 20:28:05.083: 5216: error : virCommandWait:1281 :
internal error Child process (/sbin/iptables --table mangle --insert
POSTROUTING --out-interface virbr0 --protocol udp --destination-port 68
--jump CHECKSUM --checksum-fill) status unexpected: exit status 1
20:28:05.084: 5216: warning : networkAddGeneralIptablesRules:1199 :
Could not add rule to fixup DHCP response checksums on network
'default'. 20:28:05.084: 5216: warning :
networkAddGeneralIptablesRules:1200 : May need to update iptables
package  kernel to support CHECKSUM rule. 20:28:05.256: 5216: error :
virCommandWait:1281 : internal error Child process (/sbin/ip addr add
192.168.122.1/24 broadcast 192.168.122.255 dev virbr0) status
unexpected: exit status 1 20:28:05.256: 5216: error :
networkAddAddrToBridge:1625 : internal error cannot set IP address on
bridge 'virbr0' 20:28:05.449: 5216: error : virCommandWait:1281 :
internal error Child process (/sbin/iptables --table mangle --delete
POSTROUTING --out-interface virbr0 --protocol udp --destination-port 68
--jump CHECKSUM --checksum-fill) status unexpected: exit status 1
20:28:05.481: 5216: warning : networkStartNetworkDaemon:1800 : Failed
to delete dummy tap device '(null)' on bridge 'virbr0' : Invalid
argument 20:28:05.526: 5216: error : udevGetDMIData:1493 : Failed to
get udev device for syspath '/sys/devices/virtual/dmi/id' or
'/sys/class/dmi/id' 20:28:51.078: 5219: error :
remoteDispatchAuthPolkit:5139 : Policy kit denied action
org.libvirt.unix.manage from pid 6810, uid 1000: exit status 1
20:31:26.177: 5218: error : do_open:1085 : no connection driver
available for No connection for URI qemu:///system

Does mean something++
no connection driver
available for No connection for URI qemu:///system


The only log entry is:-
Jul  7 20:40:53 localhost /etc/init.d/libvirtd[8275]:
start-stop-daemon: failed to start `/usr/sbin/libvirtd' Jul  7 20:40:53
localhost /etc/init.d/libvirtd[8264]: ERROR: libvirtd failed to star

Cannot see option to make this more verbose.

 
--
John D Maunder
j...@jdm.myzen.co.uk



Re: [gentoo-user] Virt-manager

2011-07-07 Thread Albert Hopkins


On Thursday, July 7 at 20:46 (+0100), john said:

Well, I see several errors, you may want to start with the first one and
work your way down.

 iptables is running, bridging and tun have been loaded as modules
 iproute2 has now been installed but makes no odds. Not sure about brctl
 as I can't find this?
 
 Have started libvirtd and get the following
 when trying to start virt-manager
 
 20:28:05.083: 5216: info :
 libvirt version: 0.9.1 20:28:05.083: 5216: error : virCommandWait:1281 :
 internal error Child process (/sbin/iptables --table mangle --insert
 POSTROUTING --out-interface virbr0 --protocol udp --destination-port 68
 --jump CHECKSUM --checksum-fill) status unexpected: exit status 1

iptables is failing.  Maybe you don't have the correct modules or have
them installed.

 20:28:05.084: 5216: warning : networkAddGeneralIptablesRules:1199 :
 Could not add rule to fixup DHCP response checksums on network
 'default'. 20:28:05.084: 5216: warning :
 networkAddGeneralIptablesRules:1200 : May need to update iptables
 package  kernel to support CHECKSUM rule. 20:28:05.256: 5216: error :
 virCommandWait:1281 : internal error Child process (/sbin/ip addr add
 192.168.122.1/24 broadcast 192.168.122.255 dev virbr0) status
 unexpected: exit status 1 20:28:05.256: 5216: error :
 networkAddAddrToBridge:1625 : internal error cannot set IP address on
 bridge 'virbr0' 20:28:05.449: 5216: error : virCommandWait:1281 :
 internal error Child process (/sbin/iptables --table mangle --delete
 POSTROUTING --out-interface virbr0 --protocol udp --destination-port 68
 --jump CHECKSUM --checksum-fill) status unexpected: exit status 1
 20:28:05.481: 5216: warning : networkStartNetworkDaemon:1800 : Failed
 to delete dummy tap device '(null)' on bridge 'virbr0' : Invalid
 argument 20:28:05.526: 5216: error : udevGetDMIData:1493 : Failed to
 get udev device for syspath '/sys/devices/virtual/dmi/id' or
 '/sys/class/dmi/id' 20:28:51.078: 5219: error :
 remoteDispatchAuthPolkit:5139 : Policy kit denied action
 org.libvirt.unix.manage from pid 6810, uid 1000: exit status 1
 20:31:26.177: 5218: error : do_open:1085 : no connection driver
 available for No connection for URI qemu:///system
 
 Does mean something++
 no connection driver
 available for No connection for URI qemu:///system
 

The subsequent errors may be because of the first.  So I'd start with
that.

If you are not going to use virtual networks, then you could simply
disable the virt-net USE flag and save yourself some time.

As for as iptables.  You need the right sub-drivers (or whatever they're
called).  Basically if you are using virtual networking you need to be
able to do NAT.  I have the following:

CONFIG_NF_CONNTRACK=m
CONFIG_NF_CONNTRACK_MARK=y
# CONFIG_NF_CONNTRACK_EVENTS is not set
# CONFIG_NF_CT_PROTO_DCCP is not set
# CONFIG_NF_CT_PROTO_SCTP is not set
# CONFIG_NF_CT_PROTO_UDPLITE is not set
# CONFIG_NF_CONNTRACK_AMANDA is not set
# CONFIG_NF_CONNTRACK_FTP is not set
# CONFIG_NF_CONNTRACK_H323 is not set
# CONFIG_NF_CONNTRACK_IRC is not set
# CONFIG_NF_CONNTRACK_NETBIOS_NS is not set
# CONFIG_NF_CONNTRACK_PPTP is not set
# CONFIG_NF_CONNTRACK_SANE is not set
# CONFIG_NF_CONNTRACK_SIP is not set
# CONFIG_NF_CONNTRACK_TFTP is not set
# CONFIG_NF_CT_NETLINK is not set
CONFIG_NF_DEFRAG_IPV4=m
CONFIG_NF_CONNTRACK_IPV4=m
CONFIG_NF_CONNTRACK_PROC_COMPAT=y
# CONFIG_IP_NF_QUEUE is not set
CONFIG_IP_NF_IPTABLES=m
CONFIG_IP_NF_MATCH_ADDRTYPE=m
# CONFIG_IP_NF_MATCH_AH is not set
# CONFIG_IP_NF_MATCH_ECN is not set
# CONFIG_IP_NF_MATCH_TTL is not set
CONFIG_IP_NF_FILTER=m
CONFIG_IP_NF_TARGET_REJECT=mNAT/masquerading.
# CONFIG_IP_NF_TARGET_LOG is not set
# CONFIG_IP_NF_TARGET_ULOG is not set
CONFIG_NF_NAT=m
CONFIG_NF_NAT_NEEDED=y
CONFIG_IP_NF_TARGET_MASQUERADE=m
# CONFIG_IP_NF_TARGET_NETMAP is not set
# CONFIG_IP_NF_TARGET_REDIRECT is not set
# CONFIG_NF_NAT_SNMP_BASIC is not set
# CONFIG_NF_NAT_FTP is not set
# CONFIG_NF_NAT_IRC is not set
# CONFIG_NF_NAT_TFTP is not set
# CONFIG_NF_NAT_AMANDA is not set
# CONFIG_NF_NAT_PPTP is not set
# CONFIG_NF_NAT_H323 is not set
# CONFIG_NF_NAT_SIP is not set
CONFIG_IP_NF_MANGLE=m
# CONFIG_IP_NF_TARGET_CLUSTERIP is not set
# CONFIG_IP_NF_TARGET_ECN is not set
# CONFIG_IP_NF_TARGET_TTL is not set
# CONFIG_IP_NF_RAW is not set
# CONFIG_IP_NF_ARPTABLES is not set
# CONFIG_BRIDGE_NF_EBTABLES is not set

I have the following modules loaded (may not all be used by libvirt
though):

$ lsmod|egrep 'ipt|nf'
ipt_MASQUERADE  1523  3 
iptable_nat 3053  1 
nf_nat 11757  2 ipt_MASQUERADE,iptable_nat
nf_conntrack_ipv4   8846  4 iptable_nat,nf_nat
nf_defrag_ipv4  1131  1 nf_conntrack_ipv4
nf_conntrack   40786  5
ipt_MASQUERADE,iptable_nat,nf_nat,nf_conntrack_ipv4,xt_state
ipt_REJECT  1998  2 
iptable_mangle  1392  1 
iptable_filter  1312  1 
ip_tables  13195  3
iptable_nat,iptable_mangle,iptable_filter
x_tables   13624  9

Re: [gentoo-user] Virt-manager

2011-07-07 Thread john
On Thu, 07 Jul 2011 17:26:18 -0400
Albert Hopkins mar...@letterboxes.org wrote:

 
 
 On Thursday, July 7 at 20:46 (+0100), john said:
 
 Well, I see several errors, you may want to start with the first one
 and work your way down.
 
  iptables is running, bridging and tun have been loaded as modules
  iproute2 has now been installed but makes no odds. Not sure about
  brctl as I can't find this?
  
  Have started libvirtd and get the following
  when trying to start virt-manager
  
  20:28:05.083: 5216: info :
  libvirt version: 0.9.1 20:28:05.083: 5216: error :
  virCommandWait:1281 : internal error Child process (/sbin/iptables
  --table mangle --insert POSTROUTING --out-interface virbr0
  --protocol udp --destination-port 68 --jump CHECKSUM
  --checksum-fill) status unexpected: exit status 1
 
 iptables is failing.  Maybe you don't have the correct modules or have
 them installed.
 
  20:28:05.084: 5216: warning : networkAddGeneralIptablesRules:1199 :
  Could not add rule to fixup DHCP response checksums on network
  'default'. 20:28:05.084: 5216: warning :
  networkAddGeneralIptablesRules:1200 : May need to update iptables
  package  kernel to support CHECKSUM rule. 20:28:05.256: 5216:
  error : virCommandWait:1281 : internal error Child process
  (/sbin/ip addr add 192.168.122.1/24 broadcast 192.168.122.255 dev
  virbr0) status unexpected: exit status 1 20:28:05.256: 5216: error :
  networkAddAddrToBridge:1625 : internal error cannot set IP address
  on bridge 'virbr0' 20:28:05.449: 5216: error : virCommandWait:1281 :
  internal error Child process (/sbin/iptables --table mangle --delete
  POSTROUTING --out-interface virbr0 --protocol udp
  --destination-port 68 --jump CHECKSUM --checksum-fill) status
  unexpected: exit status 1 20:28:05.481: 5216: warning :
  networkStartNetworkDaemon:1800 : Failed to delete dummy tap device
  '(null)' on bridge 'virbr0' : Invalid argument 20:28:05.526: 5216:
  error : udevGetDMIData:1493 : Failed to get udev device for syspath
  '/sys/devices/virtual/dmi/id' or '/sys/class/dmi/id' 20:28:51.078:
  5219: error : remoteDispatchAuthPolkit:5139 : Policy kit denied
  action org.libvirt.unix.manage from pid 6810, uid 1000: exit status
  1 20:31:26.177: 5218: error : do_open:1085 : no connection driver
  available for No connection for URI qemu:///system
  
  Does mean something++
  no connection driver
  available for No connection for URI qemu:///system
  
 
 The subsequent errors may be because of the first.  So I'd start with
 that.
 
 If you are not going to use virtual networks, then you could simply
 disable the virt-net USE flag and save yourself some time.
 
 As for as iptables.  You need the right sub-drivers (or whatever
 they're called).  Basically if you are using virtual networking you
 need to be able to do NAT.  I have the following:
 
 CONFIG_NF_CONNTRACK=m
 CONFIG_NF_CONNTRACK_MARK=y
 # CONFIG_NF_CONNTRACK_EVENTS is not set
 # CONFIG_NF_CT_PROTO_DCCP is not set
 # CONFIG_NF_CT_PROTO_SCTP is not set
 # CONFIG_NF_CT_PROTO_UDPLITE is not set
 # CONFIG_NF_CONNTRACK_AMANDA is not set
 # CONFIG_NF_CONNTRACK_FTP is not set
 # CONFIG_NF_CONNTRACK_H323 is not set
 # CONFIG_NF_CONNTRACK_IRC is not set
 # CONFIG_NF_CONNTRACK_NETBIOS_NS is not set
 # CONFIG_NF_CONNTRACK_PPTP is not set
 # CONFIG_NF_CONNTRACK_SANE is not set
 # CONFIG_NF_CONNTRACK_SIP is not set
 # CONFIG_NF_CONNTRACK_TFTP is not set
 # CONFIG_NF_CT_NETLINK is not set
 CONFIG_NF_DEFRAG_IPV4=m
 CONFIG_NF_CONNTRACK_IPV4=m
 CONFIG_NF_CONNTRACK_PROC_COMPAT=y
 # CONFIG_IP_NF_QUEUE is not set
 CONFIG_IP_NF_IPTABLES=m
 CONFIG_IP_NF_MATCH_ADDRTYPE=m
 # CONFIG_IP_NF_MATCH_AH is not set
 # CONFIG_IP_NF_MATCH_ECN is not set
 # CONFIG_IP_NF_MATCH_TTL is not set
 CONFIG_IP_NF_FILTER=m
 CONFIG_IP_NF_TARGET_REJECT=mNAT/masquerading.
 # CONFIG_IP_NF_TARGET_LOG is not set
 # CONFIG_IP_NF_TARGET_ULOG is not set
 CONFIG_NF_NAT=m
 CONFIG_NF_NAT_NEEDED=y
 CONFIG_IP_NF_TARGET_MASQUERADE=m
 # CONFIG_IP_NF_TARGET_NETMAP is not set
 # CONFIG_IP_NF_TARGET_REDIRECT is not set
 # CONFIG_NF_NAT_SNMP_BASIC is not set
 # CONFIG_NF_NAT_FTP is not set
 # CONFIG_NF_NAT_IRC is not set
 # CONFIG_NF_NAT_TFTP is not set
 # CONFIG_NF_NAT_AMANDA is not set
 # CONFIG_NF_NAT_PPTP is not set
 # CONFIG_NF_NAT_H323 is not set
 # CONFIG_NF_NAT_SIP is not set
 CONFIG_IP_NF_MANGLE=m
 # CONFIG_IP_NF_TARGET_CLUSTERIP is not set
 # CONFIG_IP_NF_TARGET_ECN is not set
 # CONFIG_IP_NF_TARGET_TTL is not set
 # CONFIG_IP_NF_RAW is not set
 # CONFIG_IP_NF_ARPTABLES is not set
 # CONFIG_BRIDGE_NF_EBTABLES is not set
 
 I have the following modules loaded (may not all be used by libvirt
 though):
 
 $ lsmod|egrep 'ipt|nf'
 ipt_MASQUERADE  1523  3 
 iptable_nat 3053  1 
 nf_nat 11757  2 ipt_MASQUERADE,iptable_nat
 nf_conntrack_ipv4   8846  4 iptable_nat,nf_nat
 nf_defrag_ipv4  1131  1 nf_conntrack_ipv4
 nf_conntrack   40786  5
 ipt_MASQUERADE,iptable_nat,nf_nat,nf_conntrack_ipv4,xt_state
 ipt_REJECT  

Re: [gentoo-user] Virt-manager

2011-07-07 Thread Albert Hopkins


On Thursday, July 7 at 23:30 (+0100), john said:

 On Thu, 07 Jul 2011 17:26:18 -0400

 
 Have cleared up error messages using config as suggested.
 
 I still get the issue when starting /etc/init.d/libvirtd
  
   * Starting libvirtd ...
  /usr/sbin/libvirtd: error: Unable to initialize network sockets.
  Check /var/log/messages or run without --daemon for more info.
   * start-stop-daemon: failed to start
  `/usr/sbin/libvirtd'[ !! ]
   * ERROR: libvirtd failed to start

You'll have to turn up the logging level of libvirt (to find out exactly
what it's trying to do and where it's erroring out).

 BUT when i start /usr/sbin/libvirtd from command line virt-manager now
 works. It lets me create vms (yippee)
 
 I was unaware that libvirtd was a separate package (thought it was part
 of virt-manager. After reading your hints it dawned on me that is was
 seaparate so have enabled more use flags. I should check more carefully
 the output of emerge -vp.
 

libvirt (not libvirtd) is a seperate package, it (possibly) contains a
number of things, including

libvirt: the C library that allows you to manage many different types of
virtualization platforms using a common API.
Python bindings for the above
A command-line and shell interface (called virsh)
libvirtd, which is a daemon helper used to manage virtualization
platforms which don't have their own management service (such as kvm).

virt-manager, is a seperate product.  It is a GUI interface written in
python that is used to talk to manage different types of virtualization
platforms.  It uses libvirt (its python bindings) to do this.  Think of
it as a GUI version of virsh.

But you don't need virt-manager to use libvirt, and you don't even need
libvirtd to use libvirt (e.g. you are interfacing with Xen or VMware
hypervisors).

That's why I was trying to say it's good for you to figure out what you
are trying to do, before you go through the trouble of figuring out how
to solve a problem that doesn't even pertain to you and could have been
avoided altogether just by choosing the right combination of USE flags.

If you are just wanting have a GUI for Xen, for example, you don't even
need to worry about libvirtd.  If, for example, you are using KVM but
you want the VMs to bridge off a physical interface and have no need for
virtual networks, then you don't even need the virt-net USE flag.
 
 Anyway I am up and running with a big thanks to yourself and will have
 a closer look at the service another day.

Ok




[gentoo-user] virt-manager: Warning: KVM is not available

2010-09-06 Thread Alexander Tiurin
Hi!

I start virt-manager-0.8.5, create a new  virtual machine and get a
message  Warning: KVM is not available  Why?

Thanks.


Some details:

lsmod | grep kvm
kvm_intel  35560  0 
kvm   207681  1 kvm_intel


getfacl /dev/kvm 
getfacl: Removing leading '/' from absolute path names
# file: dev/kvm
# owner: root
# group: kvm
user::rw-
user:alexanderyt:rw-
group::rw-
mask::rw-
other::---


uid=1000(alexanderyt) gid=1000(alexanderyt)
groups=1000(alexanderyt),10(wheel),18(audio),27(video),446(plugdev),447(pulse-access),448(pulse),453(kvm),104(vboxusers)