Re: Host crash
Looks like double free or similar. Try adding the kernel boot parameter slub_debug=ZFPU. Will do. Meanwhile I got the same error on the other host. I was able to login via ssh though. [208817.065852] [ cut here ] [208817.066187] kernel BUG at /build/buildd-linux-2.6_2.6.32-31-amd64-vrfdM4/linux-2.6-2.6.32/debian/build/source_amd64_none/mm/slub.c:2969! [208817.066941] invalid opcode: [#1] SMP [208817.067259] last sysfs file: /sys/devices/virtual/net/vlan240/statistics/tx_dropped [208817.067879] CPU 1 [208817.068137] Modules linked in: ocfs2 jbd2 quota_tree nfs fscache drbd lru_cache cn nfsd lockd nfs_acl auth_rpcgss sunrpc exportfs ib_iser rdma_cm ib_cm i w_cm ib_sa ib_mad ib_core ib_addr iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi ocfs2_dlmfs ocfs2_stack_o2cb ocfs2_dlm fuse ocfs2_nodemanager ocfs2_st ackglue configfs bridge loop 8021q garp stp bonding kvm_intel kvm tun snd_hda_codec_realtek snd_hda_intel snd_hda_codec pcspkr i2c_i801 snd_hwdep serio_raw s nd_pcm evdev snd_timer button i2c_core asus_atk0110 processor snd soundcore snd_page_alloc ext3 jbd mbcache dm_mod raid1 raid0 md_mod sd_mod crc_t10dif ata_g eneric uhci_hcd tg3 ata_piix pata_marvell ahci atl1 libphy e1000 libata sk98lin ehci_hcd usbcore scsi_mod nls_base thermal thermal_sys r8169 mii [last unload ed: scsi_wait_scan] [208817.069819] Pid: 2575, comm: smartd Not tainted 2.6.32-5-amd64 #1 P5K SE [208817.069819] RIP: 0010:[810e723f] [810e723f] kfree+0x55/0xcb [208817.069819] RSP: 0018:88021cb7daa8 EFLAGS: 00010246 [208817.069819] RAX: 0210006c RBX: 88021b47cee0 RCX: 8110fe5c [208817.069819] RDX: 88020b4f0200 RSI: 880008c92050 RDI: ea000700 [208817.069819] RBP: 88020001 R08: 0008 R09: 814564f0 [208817.069819] R10: 0002 R11: R12: 8110fe65 [208817.069819] R13: 88001f786540 R14: 88021a7f88d0 R15: 88013a56a0c0 [208817.069819] FS: 7f88f02e47e0() GS:880008c8() knlGS: [208817.069819] CS: 0010 DS: ES: CR0: 8005003b [208817.069819] CR2: 7fdc50e03000 CR3: 00021ca18000 CR4: 26e0 [208817.076622] DR0: DR1: DR2: [208817.076622] DR3: DR6: 0ff0 DR7: 0400 [208817.076622] Process smartd (pid: 2575, threadinfo 88021cb7c000, task 88021aeebf90) [208817.076622] Stack: [208817.076622] 88021b47cee0 88013a56a0c0 8110fe65 [208817.076622] 0 88021b47cee0 81110845 88010001 8117e716 [208817.076622] 0 88013a56a0c0 8118210a [208817.076622] Call Trace: [208817.076622] [8110fe65] ? bio_free_map_data+0x15/0x1e [208817.076622] [81110845] ? bio_uncopy_user+0x47/0x59 [208817.076622] [8117e716] ? freed_request+0x23/0x41 [208817.076622] [8118210a] ? blk_rq_unmap_user+0x1e/0x45 [208817.076622] [811859e7] ? sg_io+0x37a/0x3d7 [208817.076622] [81185f43] ? scsi_cmd_ioctl+0x217/0x3f4 [208817.076622] [8118f7b7] ? kobject_get+0x12/0x17 [208817.076622] [811845a4] ? get_disk+0x95/0xb4 [208817.076622] [a00e1b0c] ? sd_ioctl+0x9d/0xcb [sd_mod] [208817.076622] [81183915] ? __blkdev_driver_ioctl+0x69/0x7e [208817.076622] [81184110] ? blkdev_ioctl+0x7e6/0x836 [208817.076622] [81112a16] ? blkdev_open+0x0/0x96 [208817.076622] [81112a7d] ? blkdev_open+0x67/0x96 [208817.076622] [810ed3b5] ? __dentry_open+0x1c4/0x2bf [208817.076622] [810f8bef] ? do_filp_open+0x4e4/0x94b [208817.076622] [885e] ? block_ioctl+0x38/0x3c [208817.076622] [810fa8da] ? vfs_ioctl+0x21/0x6c [208817.076622] [810fae28] ? do_vfs_ioctl+0x48d/0x4cb [208817.076622] [810e5af1] ? virt_to_head_page+0x9/0x2a [208817.076622] [810faeb7] ? sys_ioctl+0x51/0x70 [208817.076622] [81010b42] ? system_call_fastpath+0x16/0x1b [208817.076622] Code: 83 c3 08 48 83 3b 00 eb ec 48 83 fd 10 0f 86 89 00 00 00 48 89 ef e8 b9 e8 ff ff 48 89 c7 48 8b 00 84 c0 78 13 66 a9 00 c0 75 04 0f 0 b eb fe 5b 5d 41 5c e9 b8 56 fd ff 48 8b 4c 24 18 4c 8b 4f [208817.076622] RIP [810e723f] kfree+0x55/0xcb [208817.076622] RSP 88021cb7daa8 [208817.091225] ---[ end trace 8f6caf5362dbbd98 ]--- [209744.526613] general protection fault: [#2] SMP [209744.527070] last sysfs file: /sys/devices/virtual/net/vlan240/statistics/tx_dropped [209744.527728] CPU 1 [209744.528055] Modules linked in: ocfs2 jbd2 quota_tree nfs fscache drbd lru_cache cn nfsd lockd nfs_acl auth_rpcgss sunrpc exportfs ib_iser rdma_cm ib_cm i w_cm ib_sa ib_mad ib_core ib_addr iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi ocfs2_dlmfs ocfs2_stack_o2cb ocfs2_dlm fuse ocfs2_nodemanager ocfs2_st ackglue configfs bridge loop 8021q garp stp bonding
Host crash
Hello, I ran into a crash today while I tried to log into one of my servers. I noticed ssh didn't respond at all. All virtual machines were running ok though. I had one terminal open to the server and it was running ok except ssh didn't work. I'm not quite sure if this is kvm related but I was hoping you experts could figure out what went wrong. Sorry for the noise it it is something else. My setup (two similar machines): Asus P5K SE mobo Quad Core Q6600 8 GB RAM Several NICs for different networks NICs: 01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 01) 02:00.0 Ethernet controller: Atheros Communications L1 Gigabit Ethernet (rev b0) 04:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8053 PCI-E Gigabit Ethernet Controller (rev 20) 05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 01) 06:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5751 Gigabit Ethernet PCI Express (rev 21) 07:01.0 Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 02) Realteks are bonded for drbd sync Marvell for my local net (using sk98lin driver) Intel for internet connection Broadcom for my SAN. not in use yet. two vlans on my local net Debian squeeze (all software stock squeeze except qemu-kvm) kernel 2.6.32-5-amd64 drbd used for shared storage between hosts qemu-kvm-0.14 home made script for starting and stopping virtual machines Just let me know if you need more info. Below is a cut from dmesg that I was able to save: [210618.760363] [ cut here ] [210618.760397] kernel BUG at /build/buildd-linux-2.6_2.6.32-31-amd64-vrfdM4/linux-2.6-2.6.32/debian/build/source_amd64_none/mm/slub.c:2969! [210618.760455] invalid opcode: [#1] SMP [210618.760489] last sysfs file: /sys/devices/virtual/net/vlan240/statistics/tx_dropped [210618.760542] CPU 3 [210618.760568] Modules linked in: nfs fscache ocfs2 jbd2 quota_tree drbd lru_cache cn nfsd lockd nfs_acl auth_rpcgss sunrpc exportfs ib_iser rdma_cm ib_cm iw_cm ib_sa ib_mad ib_core ib_addr iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi ocfs2_dlmfs ocfs2_stack_o2cb ocfs2_dlm ocfs2_nodemanager ocfs2_stackglue fuse configfs bridge loop 8021q garp stp bonding kvm_intel kvm tun snd_hda_codec_realtek snd_hda_intel snd_hda_codec nouveau snd_hwdep ttm snd_pcm snd_timer drm_kms_helper snd drm soundcore i2c_i801 i2c_algo_bit serio_raw snd_page_alloc asus_atk0110 evdev i2c_core pcspkr button processor ext3 jbd mbcache dm_mod raid1 raid0 md_mod sd_mod crc_t10dif pata_marvell ata_generic tg3 ahci ata_piix libphy uhci_hcd e1000 atl1 sk98lin libata scsi_mod ehci_hcd thermal thermal_sys usbcore r8169 nls_base mii [last unloaded: scsi_wait_scan] [210618.761141] Pid: 2588, comm: smartd Tainted: G M 2.6.32-5-amd64 #1 P5K SE [210618.761188] RIP: 0010:[810e723f] [810e723f] kfree+0x55/0xcb [210618.761244] RSP: 0018:88022447baa8 EFLAGS: 00010246 [210618.761272] RAX: 02100068 RBX: 8801fdc35560 RCX: 015e [210618.761320] RDX: 880207d68380 RSI: ea0007945700 RDI: ea000700 [210618.761367] RBP: 8802 R08: R09: 81455200 [210618.761413] R10: 0002 R11: R12: 8110fe65 [210618.761460] R13: 880224d56a80 R14: 88022a49 R15: 880207d68380 [210618.761508] FS: 7f70fb4207e0() GS:880008d8() knlGS: [210618.761557] CS: 0010 DS: ES: CR0: 8005003b [210618.761586] CR2: 7fa94149d6f0 CR3: 00022448e000 CR4: 26e0 [210618.761633] DR0: DR1: DR2: [210618.761680] DR3: DR6: 0ff0 DR7: 0400 [210618.761728] Process smartd (pid: 2588, threadinfo 88022447a000, task 88022ce92350) [210618.761776] Stack: [210618.761799] 8801fdc35560 880207d68380 8110fe65 [210618.761839] 0 8801fdc35560 81110845 88020001 88022aca2350 [210618.761899] 0 880207d68380 8118210a [210618.764184] Call Trace: [210618.764184] [8110fe65] ? bio_free_map_data+0x15/0x1e [210618.764184] [81110845] ? bio_uncopy_user+0x47/0x59 [210618.764184] [8118210a] ? blk_rq_unmap_user+0x1e/0x45 [210618.764184] [811859e7] ? sg_io+0x37a/0x3d7 [210618.764184] [81185f43] ? scsi_cmd_ioctl+0x217/0x3f4 [210618.764184] [810f6145] ? path_to_nameidata+0x15/0x37 [210618.764184] [a00a8b0c] ? sd_ioctl+0x9d/0xcb [sd_mod] [210618.764184] [81183915] ? __blkdev_driver_ioctl+0x69/0x7e [210618.764184] [81184110] ? blkdev_ioctl+0x7e6/0x836 [210618.764184] [810bc307] ? release_pages+0x17b/0x18d [210618.764184] [810ff946] ? touch_atime+0x7c/0x127 [210618.764184]
Re: Can I simulate a virtual Dual-Head Graphiccard?
Is this possible with kvm? Either simulate a dual head mapping to one wide SDL/VNC display. Or having two SDL/VNC displays? No. It was brought up before on the qemu list I believe. I think the gist was that qemu didn't support more than one vga card. Spice (www.spice-space.org) can do this. I just tested it and works well. Too bad spice isn't included in qemu-kvm yet. -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [ANNOUNCE] qemu-kvm-0.12.1
I'm also having both of these problems (booting from virtio and vgabios.bin). Debian 5, kernel 2.6.32 and qemu-kvm-0.12.1. -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: KVM-87 compile failed
CC [M] /tmp/kvm-87/kvm/kernel/x86/vmx.o /tmp/kvm-87/kvm/kernel/x86/vmx.c: In function ‘ept_rsvd_mask’: /tmp/kvm-87/kvm/kernel/x86/vmx.c:3272: error: ‘struct cpuinfo_x86’ has no member named ‘x86_phys_bits’ make[4]: *** [/tmp/kvm-87/kvm/kernel/x86/vmx.o] Error 1 make[3]: *** [/tmp/kvm-87/kvm/kernel/x86] Error 2 make[2]: *** [_module_/tmp/kvm-87/kvm/kernel] Error 2 make[1]: *** [all] Error 2 make: *** [kvm-kmod] Error 2 I got the same error on Ubuntu 9.04 (2.6.28-11-generic). Debian 5 (2.6.26-2-amd64) works. -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: 2D Graphics Performance
No, it works on windows too, it is just (quite) a bit of a pain to find and setup the correct driver. Any pointers where to look for them? SR -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Virtio disk drivers for windows
them anywhere, are there some some binary drivers that i could test out, or at least where can i get the sources to compile them myself? I would like to give them a try. I'd be interested in testing them too. If possible. Thanks, SR -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: New version of my kvmctl script
New version. Lots of small improvements and couple of new features. - Ability to change CD for virtual machine - Ability to add and remove USB devices to virtual machines - Init script (in /usr/local/share/doc/kvmctl/kvmctl.init) to start and stop virtual machines during boot/shutdown Installation instructions: - . Install KVM . Download and untar kvmctl package - cd / ; tar xzvf kvmctl-version.tar.gz . Install needed utilities - sudo (sudo) - brctl (bridge-utils) - socat (socat) - tunctl (uml-utilities) - ionice (util-linux) - nice (coreutils) - taskset (util-linux) - $EDITOR . Create group kvm and add users who should be able to control VMs - usermod -a -G kvm username . Set /dev/kvm permissions - /etc/udev/rules.d/91-permissions.rules - KERNEL==kvm, GROUP=kvm . To be able to use USB devices edit /etc/rcS.d/S02mountkernfs.sh Change line domount usbfs usbdevfs /proc/bus/usb usbfs -onodev,noexec,nosuid to domount usbfs usbdevfs /proc/bus/usb usbfs - nodev,noexec,nosuid,devmode=0660,devgid=117 (117 is gid of the kvm group) . Create group kvm (gid 117 in package) . If kvm gid != 117 - chgrp kvm /usr/local/bin /var/log/kvmctl /var/run/kvmctl /etc/qemu-ifup /etc/qemu-ifdown chgrp kvm /etc/kvmctl /etc/kvmctl/cfg . Set up sudo - install sudo - edit /etc/sudoers Cmnd_Alias KVM=/sbin/ifconfig,/usr/sbin/brctl,/usr/sbin/tunctl %kvm ALL=NOPASSWD: KVM . Use /etc/kvmctl/cfg/example.cfg as a template for new VMs . Set up network interfaces auto eth0 iface eth0 inet manual auto br0 iface br0 inet static address 192.168.0.1 network 192.168.0.0 netmask 255.255.255.0 broadcast 192.168.0.255 gateway 192.168.0.1 bridge_ports eth0 bridge_fd 9 bridge_hello 2 bridge_maxage 10 bridge_stp off auto vbr0 iface vbr0 inet static address 192.168.1.1 netmask 255.255.255.0 bridge_ports none bridge_fd 9 bridge_hello 2 bridge_maxage 12 bridge_stp off Usage - - Start a virtual machine $ kvmctl vmname start - Shutdown a virtual machine $ kvmctl vmname powerdown If guest doesn't power down in 30 seconds (configurable) it will be killed - Show details of a virtual machine $kvmctl vmname details - List all defined virtual machines and their status $ kvmctl list - List all running virtual machines $ kvmctl list onlyrunning - Show info about host USB devices $ kvmctl vmname hostusb - Add USB device to guest $ kvmctl vmname addusb 058f:6610 - Remove same USB device $ kvmctl vmname delusb 058f:6610 - Set a virtual machine to start during boot $ kvmctl vmname onboot yes Warning is displayed if virtual machine is defined to use SDL display - Check if virtual machine is started during boot $ kvmctl vmname onboot - Set a virtual machine not to start during boot $ kvmctl vmname onboot no - Print some info of the host every 10 seconds $ kvmctl monhost 10 If interval is omitted default value of 30 seconds is used - Change CD of the virtual machine $ kvmctl chcd /path/to/my/iso/image.img Configration files -- /etc/kvmctl/vm.conf This file is used by root (or anyone who has write access) to list and manage index numbers (VNC numbers). Also nice levels and CPU affinity are defined here. /etc/kvmctl/global.conf Path defines go here /etc/kvmctl/cfg/* Configuration files of the virtual machines. See example.cfg for instructions. Utility scripts --- /usr/local/bin/kvmctledit Is used to edit vm.conf. Simply starts $EDITOR. /usr/local/bin/kvmctl_fixperm Scans all config files for disk images and makes sure they are writable by kvm group. Works for files, lvm volumes and iSCSI volumes. /usr/local/share/doc/kvmctl/kvmctl.init Init script that can be copied to /etc/init.d. Manages virtual machines starting and stopping automatically during boot. Few notes - - Make sure you have configuration for each virtual machine defined in vm.conf - Edit /etc/qemu-ifup and make sure it uses same bridge names your system has - Don't use tabulator after virtual machine name in vm.conf Thats about it. Give it a try and let me know if you find it helpful. Most likely there are bugs but it works pretty well for me. If it breaks something it is very unfortunate but you're the only one to blame :) Download http://81.209.59.200/kvmctl-0.3.0.tar.gz -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More
Re: kvm-82 messages
What's your qemu command line? Host cpu type? /usr/local/bin/qemu-system-x86_64 -name wks 2:vista -m 2048 -smp 1 -soundhw ac97 -vga cirrus -cpu qemu64 -k sv -localtime -d rive file=/home/smr/kvm/vista.img,if=ide,cache=writethrough,boot=on -net nic,mac addr=AC:DE:48:28:03:00,model=e1000 -net tap,ifname=br0.3.0 -pidfile /var/run/kvm ctl/vista.pid -monitor unix:/var/run/kvmctl/vista.mon,server,nowait CPU is Core 2 Duo E6400 and, Vista x86 or x64? x86 -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: kvm-82 messages
2008/12/31 Avi Kivity a...@redhat.com: What happens to vista? which variant? Is it a regression? Vista ultimate. Install goes fine but first boot hangs after BIOS messages in black screen and CPU usage is at 100%. -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Question about limiting KVM cpu usage
2008/9/11 Steve Lorimer [EMAIL PROTECTED]: Hello, all, I have what should be a simple question concerning KVM. Is there a way to limit cpu usage for a KVM guest? In other words, if I am running four guest servers and something on one of them begins to use a ton of cpu, I don't really want it to slow down all the others. Is the only way to do this by limiting it to one cpu core? Granted, I would prefer that it have access to full computing power if no other guest needs it. Thanks for any advice. You can use standard linux process utilities. Check out nice, ionice and taskset. nice to set process priority ionice to set I/O priority taskset to set CPU affinity -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: New version of my kvmctl script
...and of course I forgot to mention few known issues there are. - init script is not working correctly. Starts VM as root - normal user can't control it after that - init script should also check that VM is set to use vnc for display. SDL won't work. - File/directory permissions might need fine tuning. -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html
kvm-73 + Debian Lenny + virtio + qcow2 error
Hi, Just as kvm-73 is out of the oven, I installed debian lenny guest to check out how cache=on|off affects performance. I created qcow2 image and installed guest with if=scsi (debian installer doesn't see virtio disks). After everything was up and running with virtio, I ran bonnie. At Writing with putc()... stage I got several end_request: I/O error, dev vda, sector n and Buffer I/O error on device vda2, logical block m errors. -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html
New version of my kvmctl script
For some reason I couldn't reply to my previous post... But here is a new version. Now with version number! :) Changes: - includes init script /etc/initd.d/kvm which starts and stops virtual machines when booting and shutting down the host. Shutting down the guest is done by sending system_powerdown to the guest. If the guest doesn't powerdown in 120 seconds (adjustable) it will be killed. - kvmctl can set vm to start or not to start during boot (kvmctl vmname onboot yes|no). Without yes/no script shows whether VM is started on boot or not. Download: http://81.209.59.133/kvmctl-0.0.1.tar.gz -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: New version of my kvmctl script
After quick googling I renamed the script/product/whatever to virmactl (VIrtual MAchine ConTroL). Download: http://81.209.59.133/virmactl-0.0.1.tar.gz -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html
Control script for kvm
I think pretty much everyone has made their own so here is mine. Few features: - Can start, stop, reset etc virtual machines - Can set niceness level (I/O, CPU) and CPU affinity - Handles tap devices and VNC displays Files and what they do... kvmctl - main script. does all the work kvmvmedit - script to edit /etc/kvmctl/vm.conf /etc/kvmctl/global.conf - files and directories /etc/kvmctl/vm.conf - list of virtual machines and their VNC displays, MAC address etc /etc/kvmctl/networks.conf - network configuration /etc/kvmctl/conf/* - configuration files for virtual machines /etc/qemu-ifup - script to bring up network devices /var/run/kvmctl - directory for monitor sockets, pid files and file containing VNC display number /var/log/kvmctl - log files There are some documentation in the configuration files that might be helpful. TODO: - Currently must be run as root. Get over this limitation. - ONBOOT flag to start certain virtual machines on boot. Also gracefully shut running vms on reboot/shutdown of host - Fix bugs Licensed under GPL2. And then the standard disclaimer... It does the job for me but in case it doesn't work for you or even breaks things badly you are the one to blame. Download here: http://81.209.59.133/kvmctl.tar.gz -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html