[libvirt-users] Error Attaching Seventh VirtIO-SCSI Device to Guest
by McEvoy, James
I have run into a problem attempting to attach the seventh virtio-scsi device to a RHEL 6.4 Guest from a RHEL 6.4 host running libvirt version 0.10.2-18.
I have a guest that is running RHEL6.4 where I can attach disks sda(boot), sdb, sdc, sdd, sde and sdf but when I try to attach sdg the virsh attach-disk command fails with the error:
error: Failed to attach disk
error: internal error Unable to determine model for scsi controller
I logged Bug 996327 on this issue including an attached script to repro the bug but there has been no activity on that bug so far.
This is the results when attaching virtio-scsi disks in a loop. Sdf is attached but sdg fails.
virsh attach-disk --domain UEM004n1 --source /dev/GuestVols/UEM004-5 --target sdf --cache none --type disk --config --wwn 1fc7058865439717 --serial c7d11fc7058865439717 --shareable
Disk attached successfully
Vol UEM004-6 created
virsh attach-disk --domain UEM004n1 --source /dev/GuestVols/UEM004-6 --target sdg --cache none --type disk --config --wwn 4d3ddb9d15b05e7e --serial 62fd4d3ddb9d15b05e7e --shareable
error: Failed to attach disk
error: internal error Unable to determine model for scsi controller
The script to create and attach LVM volumes using virtio-scsi is available here:
https://bugzilla.redhat.com/attachment.cgi?id=785925
Has anyone else run into this... I had the understanding that each virtio-controller could support 4K devices.
--jim
11 years
[libvirt-users] internal error: unexpected migration status in setup
by Thomas Stein
Hello.
Suddenly on one of my vm's i get:
2013-09-06 09:44:39.501+0000: 2277: error :
qemuMonitorJSONGetMigrationStatusReply:2377 : internal error: unexpected
migration status in setup
This happens when i try to migrate /and/ when i try to do a "savevm".
error: Failed to save domain domain to /opt/virt-backup-
blockcopy/domain/domain-memory
error: internal error: unexpected migration status in setup
What is this migration status thing and how can i change that?
thanks and best regards
t.
11 years
[libvirt-users] Is virsh supposed to work on Windows?
by Fernando Lozano
Hi there,
Sorry for the cross-post, but I seeked help on this issue before on
those lists, but nobody answered. :-(
I'm trying to use virsh and virt-viewer on Windows. I'm running the
latest binaries from http://spice-space.org/download.html, that is,
virt-viewer-x64-0.5.7.msi on a Windows 7 64-bits computer.
So far I got remote-viewer.exe to work, after some pain. But have no
sucess using virt-viewer.exe and virsh.exe. Are they supposed to work,
or am I loosing my time?
I know the kvm host setup (a CentOS 6.3 machine) is fine, because I can
connect using virsh from other CentOS and RHEL machines. I'm using TLS
to secure connenctions to libvirtd, without client certs.
I had a litthe trouble finding where to put certificate files on the
windows machine, but using Sysinternals ProcessMonitor I found they have
to be on the obvious path:
C:\usr\x86_64-w64-mingw32\sys-root\mingw\etc\pki{CA,libvirt}
Even then virsh can't connect:
virsh # connect qemu://kvmhost/system
error: Failed to connect to the hypervisor
error: Unable to set close-on-exec flag: Success
ProcessMonitor "strace" doesn't help me find what went wrong. I'm sure
I'm using the same *.pem files that works for Linux clients. It looks
like virsh is opening and reading those files ok. ProccessMonitor shows
a TCP connect and a TCP Disconnect events to the correct IP and port,
both resulting SUCCESS.
Any ideas? What can I do to debug virsh on Windows and find why it isn't
connecting to libvirt on CentOS? I tried -d and -l on Windows and Linux
but can't find where the debug logs are saved.
If you want, I can send ProcessMonitor captured events.
For Red Hat folks out there: I need this working so I can get approval
to buy subscriptions, The idea is production hosts will be RHEL. :-) If
not, my boss may end up buying XenServer ;-)
[]s, Fernando Lozano
11 years
[libvirt-users] Compiling libvirt for Xenserver 6.2
by Faisal Ali
Hi,
I am trying to compile libvirt-1.1.2 for Xenserver 6.2 using there DDK VM, however, it keeps giving error saying that it needs xenstore.h header file. However, I think Xenserver 6.2 is using older xs.h header file. Here is the excerpt of the beginning and end of the configure command
./configure
.
.
checking for xenstore.h... no
checking for xen/xen.h... yes
checking for xen/version.h... yes
checking for xen/dom0_ops.h... yes
checking for xen/sys/privcmd.h... no
checking for xen/linux/privcmd.h... no
configure: error: You must install the Xen development package to compile Xen driver with -lxenstore
How do compile with libvirt to look at xs.h file.
Thanks
11 years
[libvirt-users] windows guest network kept down automatically when several windows guest running in one KVM host,
by cochen
Hi all:
I have some kvm host(rhel 6.4, 2.6.32-358.0.1.el6.x86_64), I ran several windows guest on it(more than 10 guest on one host and the guest os are win7-32/win7-64/win2k8), but the guest network kept down automatically, lost package. I tried virtio drive and e1000 drive,but it didn't work. However, when I run cmd.exe ping some other subnet ip it worked.
The host and guest are connected by bridge.
Here is some configure infomation of my guest:
<interface type='bridge'>
<mac address='aa:aa:aa:49:39:71'/>
<source bridge='kvmbr3'/>
<model type='e1000'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
</interface>
brctl show as follow:
kvmbr28000.b8ca3a5cbea2noeth2
vnet0
vnet11
vnet13
vnet15
vnet17
vnet19
vnet2
vnet21
vnet23
vnet25
vnet27
vnet29
vnet5
vnet7
vnet9
The /etc/sysctl.conf configure as follow:
# Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and
# sysctl.conf(5) for more details.
# Controls IP packet forwarding
net.ipv4.ip_forward = 0
#net.ipv4.ip_forward = 1
# Controls source route verification
net.ipv4.conf.default.rp_filter = 1
# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0
# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0
# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1
# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1
# Disable netfilter on bridges.
# Controls the default maxmimum size of a mesage queue
kernel.msgmnb = 65536
# Controls the maximum size of a message, in bytes
kernel.msgmax = 65536
# Controls the maximum shared segment size, in bytes
kernel.shmmax = 68719476736
# Controls the maximum number of shared memory segments, in pages
kernel.shmall = 4294967296
########### add by operation V1.0 begin ############
net.ipv4.ip_local_port_range = 32768 65000
net.core.rmem_max = 8388608
net.core.wmem_max = 8388608
net.ipv4.tcp_rmem = 4096 87380 8388608
net.ipv4.tcp_wmem = 4096 65536 8388608
net.ipv4.tcp_max_syn_backlog = 8192
net.ipv4.tcp_window_scaling = 0
net.ipv4.tcp_sack = 0
net.ipv4.tcp_timestamps = 0
kernel.panic = 5
vm.swappiness = 51
########### add by operation V1.0 end ############
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
#add by wdh
#net.ipv4.conf.all.proxy_arp = 1
Best Regards,
cochen
11 years
[libvirt-users] Create ESXi vmknic using libvirt xml
by varun bhatnagar
Hi,
I am using libvirt on ESX hypervisor. Iam trying to create "vmknic" using
virsh but all my attempts are failing. Can anyone help me in achieving this?
Where can I find the xml template for this? or is there any wiki link which
I can follow to achieve this?
Regards,
Varun
11 years
[libvirt-users] No valid cgroup for machine...
by Jaka Hudoklin
Hello!
How do i get pass this error?
offlinehacker:~/ $ virsh --debug 0 -c lxc:/// create o1.xml
create: file(optdata): o1.xml
error: Failed to create domain from o1.xml
error: internal error: No valid cgroup for machine c1
My cgroups seem to be mounted:
cgroup on /sys/fs/cgroup/systemd type cgroup
(rw,nosuid,nodev,noexec,relatime,release_agent=/run/current-system/systemd/lib/systemd/systemd-cgroups-agent,name=systemd)
cgroup on /sys/fs/cgroup/cpuset type cgroup
(rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup
(rw,nosuid,nodev,noexec,relatime,cpuacct,cpu)
cgroup on /sys/fs/cgroup/memory type cgroup
(rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup
(rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup
(rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/blkio type cgroup
(rw,nosuid,nodev,noexec,relatime,blkio)
mqueue on /dev/mqueue type mqueue (rw,relatime)
I'm running libvirtd 1.1.1.
Thanks!
11 years
[libvirt-users] Customize UNIX socket permissions
by Jonathan Lebon
Hi,
I have a qemu domain which uses a virtio-serial port. On the
host, the unix socket is created in /var/lib/libvirt/qemu.
As non-root, I'd like to be able to communicate through this
unix socket.
The issue is that the socket is created as qemu:qemu with
permissions 755 (does this come from libvirt's umask?). Is
there any way to affect this permission from the domain's
XML definition file? Even if it has to be created as
qemu:qemu, having a permission of 775 would also be an
acceptable solution.
Thanks,
Jonathan
11 years
[libvirt-users] Is virsh blockcommit supported? Thanks a lot
by Guozhonghua
I had test the command virsh blockcommit, but it failed, with the libvirt version 1.1.0, and qemu version 1.6.0.
Is this feature being developing? Thanks
root@cvk-31:/vms/images# virsh -v
1.1.0
root@cvk-31:/vms/images# qemu-img -V
qemu-img version 1.6.0, Copyright (c) 2004-2008 Fabrice Bellard
usage: qemu-img command [command options]
root@cvk-31:/vms/images# virsh blockcommit Vmtest /vms/images/Vmtest1 --base /vms/image
s/Vmtest1_base --top /vms/images/Vmtest1_base_1 --wait --verbose ;echo $?
error: invalid argument: top '/vms/images/Vmtest1_base_1' in chain for '/vms/images/Vmtest1' has no backing file
1
root@cvk-31:/vms/images# qemu-img info /vms/images/Vmtest1_base_1
image: /vms/images/Vmtest1_base_1
file format: qcow2
virtual size: 9.8G (10485760000 bytes)
disk size: 6.0M
cluster_size: 2097152
backing file: /vms/images/Vmtest1_base
root@cvk-31:/vms/images# qemu-img info --backing-chain /vms/images/Vmtest1
image: /vms/images/Vmtest1
file format: qcow2
virtual size: 9.8G (10485760000 bytes)
disk size: 140M
cluster_size: 2097152
backing file: /vms/images/Vmtest1_base_1
image: /vms/images/Vmtest1_base_1
file format: qcow2
virtual size: 9.8G (10485760000 bytes)
disk size: 6.0M
cluster_size: 2097152
backing file: /vms/images/Vmtest1_base
image: /vms/images/Vmtest1_base
file format: qcow2
virtual size: 9.8G (10485760000 bytes)
disk size: 3.4G
cluster_size: 2097152
root@cvk-31:/vms/images# virsh blockcommit Vmtest /vms/images/Vmtest1 --base /vms/image
s/Vmtest1_base --wait --verbose ;echo $?
error: invalid argument: could not find base '/vms/images/Vmtest1_base' below '/vms/images/Vmtest1' in chain for '/vms/images/Vmtest1'
1
root@cvk-31:/vms/images# ls -al /vms/images/Vmtest1_base
-rw------- 1 root root 3705667584 Aug 23 10:19 /vms/images/Vmtest1_base
root@cvk-31:/vms/images# qemu-img info /vms/images/Vmtest1_base
image: /vms/images/Vmtest1_base
file format: qcow2
virtual size: 9.8G (10485760000 bytes)
disk size: 3.4G
cluster_size: 2097152
-------------------------------------------------------------------------------------------------------------------------------------
????????????????????????????????????????
????????????????????????????????????????
????????????????????????????????????????
???
This e-mail and its attachments contain confidential information from H3C, which is
intended only for the person or entity whose address is listed above. Any use of the
information contained herein in any way (including, but not limited to, total or partial
disclosure, reproduction, or dissemination) by persons other than the intended
recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender
by phone or email immediately and delete it!
11 years