Re: Question regarding KVM networking

2010-06-21 Thread Charles Duffy
On 06/21/2010 09:51 AM, Kangkook Jee wrote: Does KVM hook into NetFilter to intercept packets destined for the guest, or PF_PACKET? None of the above. With -net user, KVM uses techniques derived from SLiRP to simulate a network stack with only traditional userspace UNIX socket calls. With -

Re: Regarding NAT configuration with KVM

2010-06-21 Thread Charles Duffy
This is the libvirt default network configuration. Please see the libvirt documentation and mailing list for support. As an aside -- you'll probably want to use a bridged configuration rather than the NATted one. If you really do want to stick with the NAT configuration, you'll need to make su

Re: virtio disk slower than IDE?

2009-11-16 Thread Charles Duffy
Gordan Bobic wrote: Lastly, do you use cache=wb on qemu? it's just a fun mode, we use cache=off only. I don't see the option being set in the logs, so I'd guess it's whatever qemu-kvm defaults to. You can set this through libvirt by putting an element such as the following within your elem

Re: kvm or qemu-kvm?

2009-09-30 Thread Charles Duffy
Ross Boylan wrote: http://www.linux-kvm.org/page/HOWTO1 says to build kvm I should get the latest kvm-release.tar.gz. http://www.linux-kvm.org/page/Downloads says "If you want to use the latest version of KVM kernel modules and supporting userspace, you can download the latest version from http:

Re: a streaming server on a kvm virtual machine?

2009-09-24 Thread Charles Duffy
For a heavily I/O-bound load such as media streaming, it's better not to use virtualization. There are some newer technologies such as SR-IOV which may mitigate these problems, but I don't particularly suggest straying that close to the bleeding edge on a presumably mission-critical system. I

Re: VNC server for KVM VM

2009-08-14 Thread Charles Duffy
Daniel Bareiro wrote: inet_listen: bind(ipv4,0.0.0.0,5903): Address already in use inet_listen: FAILED If you check with netstat, I expect you'll see the port in TIME_WAIT state; if so, this will eventually clean itself up if you just wait a little bit before restarting. One option to avoid

Re: qemu-kvm-0.11.0-rc1 guests failing without noapic (on x86_64 host)

2009-08-12 Thread Charles Duffy
Figured this out -- It's actually a consequence of the Fedora packaging I'm using relying on an external BIOS (built as part of the Bochs package); the BIOS installed by qemu-kvm-0.11.0-rc1 works just fine. Apologies for the noise. -- To unsubscribe from this list: send the line "unsubscribe

Re: qemu-kvm-0.11.0-rc1 guests failing without noapic (on x86_64 host)

2009-08-11 Thread Charles Duffy
Charles Duffy wrote: Howdy. The libguestfs kernel and appliance I've been using successfully with qemu-kvm-0.10.6 and prior fails horribly with qemu-kvm-0.11.0-rc1 unless 'noapic' is passed on the kernel command line: To follow up with a quick note -- I have quite a lot

qemu-kvm-0.11.0-rc1 guests failing without noapic (on x86_64 host)

2009-08-11 Thread Charles Duffy
Howdy. The libguestfs kernel and appliance I've been using successfully with qemu-kvm-0.10.6 and prior fails horribly with qemu-kvm-0.11.0-rc1 unless 'noapic' is passed on the kernel command line: /usr/bin/qemu-kvm /usr/bin/qemu-kvm -drive file=/local/fvte-q/.fvte/states/vms/15a54e63c1d84e2e

Re: KVM Migrate

2009-08-06 Thread Charles Duffy
This doesn't speak directly to your live migration issue -- but copy-and-pasting a libvirt-generated command line (as you're doing here) and using it by hand is perilous. As I mentioned when you asked in the IRC channel, you shouldn't be using fd= here when starting kvm by hand -- it expects t

Re: init scripts for KVM guests UPDATE!

2009-07-18 Thread Charles Duffy
To echo Michael a little here -- posting this on the KVM mailing list implies that it shouldn't have dependencies beyond KVM; as such, the libvirt mailing list would probably be a better place for these scripts. That said -- no, there isn't an option within libvirt to save or gracefully shut d

Re: Trouble understanding net config options

2009-07-15 Thread Charles Duffy
Michael Jinks wrote: On Wed, Jul 15, 2009 at 6:24 PM, Chris Webb wrote: You want -net nic,vlan=0 -net tap,vlan=0,ifname=tap11 -net nic,vlan=1 -net tap,vlan=1,ifname=tap12 Progress! This works, I can bring up the guest and watch it boot, but both of its NICs came up bound to the first bridg

Re: How to mount the qcow2.img image?

2009-07-06 Thread Charles Duffy
John Wong wrote: > Can i mount the qcow2.img image on my linux-2.6.30/amd64 host? > the qcow2.img is winxp(ntfs) qcow2.img image. See qemu-nbd, nbd-client and kpartx. For simpler manipulations, however, you might find Guestfish (or other libguestfs components) an appropriate tool. -- To unsubscr

Re: Weird Windows license issue

2009-07-02 Thread Charles Duffy
Michael Jinks wrote: On Thu, Jul 2, 2009 at 5:45 PM, Sterling Windmill wrote: What do you mean by "rejected"? Is the installer not taking your key (I doubt this would be caused by anything KVM specific), Right, that. I don't have the screen in front of me so I might be getting the exact word

Re: VM config file

2009-07-01 Thread Charles Duffy
Zhang Qian wrote: I'd like to know if there is a configuration file for each KVM virtual machine? I can define a domain by "virsh define" command, but where the configuraiton parameters are persisted for the VM? virsh is not a part of kvm, but rather libvirt; you should ask for support for it

Re: Newbie, struggling with graphics and qemu monitor

2009-06-30 Thread Charles Duffy
Michael Jinks wrote: Given the way qemu and screen interact, using the same keystrokes to initiate commands, it would be really useful to have some other way to detach and re-attach to a kvm guest on the fly. It's pretty easy to configure screen to use a different set of keystrokes. I find tha

Re: [libvirt] qemu-kvm-0.10.5, kvm-kmod-2.6.30, libvirt-0.6.4 - save/restore still unreliable

2009-06-12 Thread Charles Duffy
Nikola Ciprich wrote: using ... -incoming exec:cat /home/...image.vm seems to start the machine, but it seems to be stuck, even though I removed -S parameter. That may well be a guest issue rather than a qemu migration problem -- I've seen similar difficulties for guests being resumed via in

Re: OCFS2 file system corruption with QEMU/KVM

2009-06-07 Thread Charles Duffy
Bike & Snow wrote: Is anyone using OCFS2 on a SAN based setup (in my case iSCSI) for a shared storage setup for KVM? I've got a really nice setup that works really well and gives very good performance. However, the QEMU disk images (raw format) keep corrupting. Is OCFS2 to be avoided in the se

Re: [KVM_AUTOTEST] unattended installs

2009-06-02 Thread Charles Duffy
David Huff wrote: I had some issues getting the guest to read a vvfat floppy passed to the guest via qemu option "-fda fat:floppy:rw:./floppy" it would pass the dir as a vfat disk and the guest could mount it, however guest could not read the files on the vdisk.. I'm surprised you opted to

Re: Best choice for copy/clone/snapshot

2009-05-13 Thread Charles Duffy
Ross Boylan wrote: Or do you mean I should back each virtual disk with an LVM volume? Yes, this option is what was meant. That does seem cleaner; I've just been following the docs and they use regular files. They say I can't just use a raw partition, but maybe kvm-img -f qcow2 /dev/MyVolumeGr

Re: SCSI block device timeouts post-migration on x86_64 linux guests

2009-05-07 Thread Charles Duffy
Marcelo Tosatti wrote: There's no savevm handler at all: Ahh! Thank you for the explanation. There was an incomplete patch posted to qemu-devel a while ago, which I can't find. I'm guessing that would be "[PATCH] save/restore for LSI SCSI", by Nolan : http://permalink.gmane.org/gmane.comp

Re: KVM + virt-manager: which is the perfect host Linux distro?

2009-05-03 Thread Charles Duffy
Evert wrote: Can I conclude from that that Debian is the best host distro to go for? Better than Red Hat & Gentoo? I'm not really convinced there's a big enough difference that it matters -- particularly on a production system where you intend to stick to stable, well-tested software. That sa

SCSI block device timeouts post-migration on x86_64 linux guests

2009-04-28 Thread Charles Duffy
Per subject. Observed on kvm-83 through kvm-85; haven't traced back further. No longer occurs when switching to IDE. Manifests with messages similar to the following on restore: sd 0:0:0:0: [sda] ABORT operation started sd 0:0:0:0: ABORT operation timed-out. sd 0:0:0:0: [sda] ABORT operation st

Re: kvm 84 update

2009-04-14 Thread Charles Duffy
Armindo Silva wrote: On Tue, Apr 14, 2009 at 12:40 AM, Charles Duffy wrote: What problems with the VNC window? The mouse is always out of sync. That's what -usbdevice tablet is for. Other problem is that all my guest lost their default network config - they all had static ips

Re: kvm 84 update

2009-04-13 Thread Charles Duffy
Armindo Silva wrote: There are a few glitches/problems with this version (at least using win2k3 server as guest). The problems with the vnc window only disappear when i create a new guest, with the old ones the mouse is still out of sync. What problems with the VNC window? Other problem is th

Re: kvm-autotest new test, save and load

2009-04-06 Thread Charles Duffy
David Huff wrote: Submitting new test for review and comments. This test was originally developed by the Red Hat QE team. It starts a new guest saves it and reloads the saved state. looking for comments and or improvements that can be made to this test. I have some code (aimed at testing s

Re: How to Use LibVirt to mange KVM virtual machine

2009-04-03 Thread Charles Duffy
You should ask about this on the libvirt mailing list and IRC channel, not here. That said, a few quick points: 1. the libvirt you're running is very old. 2. you might consider setting the emulator to point to a shell script which records the command line it's called with to a file before doin

Re: KVM-74: HELP PLEASE - cannot boot from cdrom for recovery

2009-03-31 Thread Charles Duffy
Gerry Reno wrote: Well, you're missing a set of opening quotation marks here... and your file doesn't have a .iso extension? That's rather unusual. Anyhow, inasmuch as you're unable to run a define successfully, this is a libvirt usage problem, not a kvm issue; I suggest you try irc.oftc.n

Re: KVM-74: HELP PLEASE - cannot boot from cdrom for recovery

2009-03-31 Thread Charles Duffy
Gerry Reno wrote: Charles Duffy wrote: Gerry Reno wrote: What is GUI VMM? virt-manager To get support for kvm proper here, you'll want to use ps to see the command line with which libvirtd is invoking kvm and provide that. /usr/bin/qemu-kvm -S -M pc -m 512 -smp 2 -name MX_3 -monito

Re: KVM-74: HELP PLEASE - cannot boot from cdrom for recovery

2009-03-31 Thread Charles Duffy
Gerry Reno wrote: What is GUI VMM? virt-manager The libvirt mailing list is the right place to get support for virt-manager. To get support for kvm proper here, you'll want to use ps to see the command line with which libvirtd is invoking kvm and provide that. That said, the XML you copie

Re: More vcd info wanted

2009-03-30 Thread Charles Duffy
Bill Davidsen wrote: Ryan Harper wrote: -vnc localhost:1 -- will display the guest VGA display on the localhost. A remote system can do: vncviewer ${kvmhost}:1 to view the guest VGA. Thanks, will try later tonight. Have to have a bit of care getting the number right (unique) since there might

Re: Single Graphic Card only for KVM-Guest, not Linux?

2009-03-16 Thread Charles Duffy
PCI passthrough for video cards isn't expected to work, even if the host isn't using them at all. See prior on-list discussion for details; my understanding is that the guest won't run the card's video BIOS at boot-time. -- To unsubscribe from this list: send the line "unsubscribe kvm" in the

Re: Problem with KVM-84 and more than 4 processors

2009-03-03 Thread Charles Duffy
Matthias Hovestadt wrote: This mail seems to be somehow related to the bug report of Justin Keogh from 30th Dec 2008. He was able to fix his problem by simply setting CONFIG_KVM=m, but I'm already using modules, so his workaround can't be applied here. Quick question -- does your dmesg output i

Re: Unknown device found in window xp domain

2009-02-20 Thread Charles Duffy
Daniel Schwager wrote: My devicemanager shows me a unknown device with the following ID: PCI\VEN_1AF4&DEV_1003&SUBSYS_00031AF4&REV_00\3&13C0B0C5&0&28 This would be the virtio replacement for the serial console. Windows doesn't really have a "serial" console at all, so don't worry abou

Re: headless embedde linux

2009-02-05 Thread Charles Duffy
heinz wrote: This kernel does support kvm and the prement patch to make it pretty good for real time things. A kvm virtual machine is running for example windows xp with some WPF gui. That would be a nice solution, and for many problems - including those windows gui guys needing real time as we

Re: how increase/decrease ram on running vm ?

2008-12-29 Thread Charles Duffy
Василец Дмитрий wrote: Xen hypervisor can increase and decrease cpu and ram. will be able this function on kvm/qemu ? Last time I was familiar with Xen's balloon driver, it had the exact same limitation as the kvm one. -- To unsubscribe from this list: send the line "unsubscribe kvm" in the

Re: Serial ATA Support - will it come?

2008-12-29 Thread Charles Duffy
Let's back up here a bit -- When you say "no disk was found at all" when using SCSI emulation, do you mean the kernel booted and was unable to find the hard drives, or did it not even get that far? The SCSI emulation uses the sym53c8xx driver, which was first developed against 2.0.36; it's b

Re: [PATCH] Kvm: Qemu: save nvram

2008-12-18 Thread Charles Duffy
Zhang, Xiantao wrote: Charles Duffy wrote: Speaking with my end-user hat on, this seems to violate the principal of least surprise: I would expect NVRAM contents to be discarded, not saved to a file in the current working directory, if no relevant option were given on the command line. Maybe

Re: [PATCH] Kvm: Qemu: save nvram

2008-12-17 Thread Charles Duffy
Zhang, Yang wrote: Hi Please drop former. This is the modify patch for save nvram. I add the new command line arg of "-nvram file" to specify the location Of the file. Without the arg ,it will save the nvram in the current dir and named as "nvram.dat". Also, it will read the saved file "nvram.

Re: KVM live migration syntax

2008-12-08 Thread Charles Duffy
Philipp Wehrheim wrote: Hey, I lately tried to live migrate a VM but had to find out that the syntax shown in the KVM examples and the actual syntax expected by the code do not match. from the Wiki: tcp:// migration protocol [...] So the syntax expected by the code is *with

Re: how to compile kvm 64 bit

2008-12-04 Thread Charles Duffy
paolo pedaletti wrote: Ciao, sorry for this silly question, but I can't compile kvm-79 for AMD 64bit Please pardon me for following up on one silly question with another -- but is your host running a 64-bit userland? (What is the output of "uname -m"?) -- To unsubscribe from this list: send

Re: Is this a bug in qemu-img?

2008-11-24 Thread Charles Duffy
walt wrote: Any chance that 'commit' could be added to raw as well as qcow2? Raw images by their nature can't contain metadata -- they have only the exact contents of the virtual drive, which is what makes them "raw" -- so they by definition can't support copy-on-write (and thus commit) or o

Re: [ANNOUNCE] kvm-79 release

2008-11-14 Thread Charles Duffy
Jan Kiszka wrote: Farkas Levente wrote: - guest fedora-9 latest kernel-2.6.26.6-79.fc9.i686 still not boot, - guest centos-5 x86_64's kernel-2.6.18-92.1.17.el5 still gives the same crash as kvm-78 (screenshot attached), Those two should be fine with this patch [1]. You are welcome to test it a

Re: kvm-78 - kernel panic after using system_reset except when using -no-kvm-irqchip

2008-11-12 Thread Charles Duffy
Jan Kiszka wrote: Charles Duffy wrote: irq 25, desc: 803afc80, depth: 1, count: 0, unhandled: 0 ->handle_irq(): 800b54e3, handle_bad_irq+0x0/0x1f6 ->chip(): 802ea700, 0x802ea700 ->action(): IRQ_DISABLED set unexpected IRQ trap at

kvm-78 - kernel panic after using system_reset except when using -no-kvm-irqchip

2008-11-11 Thread Charles Duffy
This happens every other use of system_reset -- ie. resetting the system using system_reset while in this panic'd state results in correct functionality. Following the suggestion and booting the guest with noapic results in other IRQ-related errors. The guest kernel is CentOS 5 2.6.18-53.el5

Re: KVM can't install Windows 98

2008-10-17 Thread Charles Duffy
Bill Davidsen wrote: I agree completely with the "no way" and "FAILS" evaluation, it continues to hang during install from the CD image with - FC6 Intel 6600 dual core with kvm 65 - FC9 Intel quad core 9400 2.6.27-3 kernel and latest kvm and qemu upgrades - FC9 AMD dual core (number in another b

Re: KVM can't install Windows

2008-10-16 Thread Charles Duffy
Bill Davidsen wrote: I need a Win98SE VM to do some software testing and support. Unfortunately KVM seems to not be able to run 98SE, although it runs a bunch of more recent Windows versions I can't use for this. I really don't want to support multiple VM servers, and there is pressure to go t

Re: KVM bridge Networking and openvpn

2008-09-08 Thread Charles Duffy
jd wrote: Now when I create new VM, using the command line... qemu-system-x86_64 -net nic,vlan=0,macaddr=00:16:3e:70:8f:33 -net tap,vlan=0 -hda /mnt/vm_data/test_xp.hda.disk.xm -m 256 The VM does not seem to get the IP address :( (may be dhcp request is failing) You aren't providing ifname o

Re: 63 sectors

2008-09-04 Thread Charles Duffy
Ian Kirk wrote: I thought that updating qemu-img to have quasi-fdisk functionality was a good idea myself. Is there a respected libfdisk.so thing that could be used to abstract most of the work ? Exporting textual output and piping that to sfdisk is one approach. -- To unsubscribe from this li

Re: How to use current KVM with non-modular kernel

2008-09-03 Thread Charles Duffy
Would it not address your security concerns to build a modular kernel, load the current kvm module, and then drop CAP_SYS_MODULE as part of your boot scripts? -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [EMAIL PROTECTED] More majordomo info at

[PLEASE IGNORE] Re: etherboot unusably slow w/ kvm-74, current head

2008-09-02 Thread Charles Duffy
Sorry -- tftp configuration error on my end; hit "send" before finishing environment valiadation; my apologies. -- 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

etherboot unusably slow w/ kvm-74, current head

2008-09-02 Thread Charles Duffy
Per subject; etherboot is requiring tens of minutes just to partially download pxelinux.0: Probing pci nic... [e1000-82540em]Ethernet addr: 00:16:3E:ED:DA:6A Searching for server (DHCP).. Me: 169.254.1.254, DHCP: 192.168.66.1, TFTP: 169.254.0.1, Gateway 169.254.0.1 Loading 169.254.0.1:/pxe

Re: [ANNOUNCE] kvm-74 release

2008-08-28 Thread Charles Duffy
A few quick notes: - The extboot.bin regression from kvm-71 (SCSI drives being unavailable after reboot) is still outstanding. - kvm (and presumably qemu) doesn't check for fd= parameters pointing to file descriptor numbers which are not, in fact, open; this results in select() spinning on

Re: serial/ rs232 and qemu /kvm?

2008-08-19 Thread Charles Duffy
Michael Malone wrote: If you're trying to use virt-manager, then don't. Virt-manager stops you from having access to a bunch of the underlying features of kvm/qemu such as serial ports. I'm told they're working on it, but it's only useful for a basic setup at the moment. Serial ports *are*

Re: e1000 PXE breakage bisected down in kvm-userspace

2008-08-04 Thread Charles Duffy
Anthony Liguori wrote: diff --git a/qemu/hw/e1000.c b/qemu/hw/e1000.c index 1be69ec..6a07b0c 100644 --- a/qemu/hw/e1000.c +++ b/qemu/hw/e1000.c @@ -521,8 +521,8 @@ e1000_can_receive(void *opaque) { E1000State *s = opaque; -return ((s->mac_reg[RCTL] & E1000_RCTL_EN) && - s->mac_

Re: e1000 PXE breakage bisected down in kvm-userspace

2008-08-04 Thread Charles Duffy
Anthony Liguori wrote: Charles Duffy wrote: Anthony Liguori wrote: Charles Duffy wrote: Per subject. "git bisect run" script (and libvirt xml helper) attached. Does the problem go away if you make the e1000_can_receive() function always return 1? Yes. Presumably, this is the

Re: e1000 PXE breakage bisected down in kvm-userspace

2008-08-04 Thread Charles Duffy
Anthony Liguori wrote: Charles Duffy wrote: Per subject. "git bisect run" script (and libvirt xml helper) attached. Does the problem go away if you make the e1000_can_receive() function always return 1? Yes. -- To unsubscribe from this list: send the line "unsubscribe kvm&

e1000 PXE breakage bisected down in kvm-userspace

2008-08-04 Thread Charles Duffy
Per subject. "git bisect run" script (and libvirt xml helper) attached. 87b5acf6125d205119e3194c02ed6e71715517dc is first bad commit commit 87b5acf6125d205119e3194c02ed6e71715517dc Author: Anthony Liguori <[EMAIL PROTECTED]> Date: Wed May 7 13:09:40 2008 -0500 kvm: qemu: stop dropping so

kvm-72 rhel4 (2.6.9-derived) i386 guest - rtl8139 stalling; lost interrupts?

2008-08-01 Thread Charles Duffy
I have observed downloads to stall on an RHEL4 i386 guest (on an x86_64 host), such that creating additional network traffic (ie. pinging the virtual host in question) will "unstick" the download. This does not happen to a RHEL5 x86_64 guest on the same host, and is quite reliably reproducible

[PATCH] autoport overrides actual VNC port number in dump-xml

2008-07-29 Thread Charles Duffy
Per subject; if autoport is in use for a host, the current virDomainGraphicsDefFormat code always emits "port=-1", even if a port is assigned to the host; this leaves no way for a client to find the VNC port assigned to the host in question. diff --git a/src/domain_conf.c b/src/domain_conf.c in

Re: e1000 and PXE issues

2008-07-28 Thread Charles Duffy
FYI, I'm experiencing this as well, and note that the issue still occurs with -no-kvm, but not with current qemu-trunk (r4955); that said, qemu-trunk's behavior doesn't seem to be perfect either -- there are several "No IP address" responses before one is acknowledged. -- To unsubscribe from

kvm-71 e1000 etherboot failure reading DHCP responses

2008-07-21 Thread Charles Duffy
Per subject. Etherboot comes up but is unable to get an IP address, despite perfectly valid-looking incoming responses. Once booted, Linux has no problem with DHCP. Switching to the rtl8139 (while changing nothing else) works around the issue. -- To unsubscribe from this list: send the line

Re: Sporadic loss of networking (kvm-70, e1000, tap)

2008-07-07 Thread Charles Duffy
Switching from e1000 to rtl8139 appears to work around the issue. -- 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

Sporadic loss of networking (kvm-70, e1000, tap)

2008-07-07 Thread Charles Duffy
Several times over the last few days, I've lost network connectivity from one of my guests. This has happened only during interactive sessions in which I take an action resulting in a large screen update. I have tried flood pinging (only with the default, small packet size), and not been able t

kvm-70 w/ x86_64 CentOS5 guest failing to exit on halt

2008-07-02 Thread Charles Duffy
Per subject. As the below log makes evident, ACPI is quite certainly enabled: Halting system... md: stopping all md devices. Shutdown: hda ACPI: PCI interrupt for device :00:06.0 disabled ACPI: PCI interrupt for device :00:05.0 disabled ACPI: PCI interrupt for device :00:04.0 di

RE: [ANNOUNCE] kvm-70 release

2008-06-18 Thread Charles Duffy
CONFIG_KALLSYMS is indeed defined, but kallsyms_lookup_name doesn't appear to be exported in this kernel. -- 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: [ANNOUNCE] kvm-70 release

2008-06-18 Thread Charles Duffy
Farkas Levente wrote: kvm-70 do not compile on centos-5 kernel-2.6.18-53.1.21.el5 Easy enough to work around, as kallsyms_lookup_name is only used in one place: diff -ru kvm-70/kernel/external-module-compat.h kvm-70.new/kernel/external-module-compat.h --- kvm-70/kernel/external-module-compa