Kvm: qemu with option "-enable-kvm" or kvm-84 from AUR?

whats the difference between the two? Which one should be preferred?
thanks!

Yeah, my bad.  The patches to qemu would come from upstream KVM, like they did before.  Avi Kivity, not Tobias.  My mistake there.
And yeah, I think some of those distinctions are us using different semantics.  I'd call the qemu implementation that Avi maintains a fork -- but that is different to me than, as you worded it, kvm being a fork of qemu.  When saying "kvm" and referring to a chunk of code, not what I'll call for this conversation's sake "the kvm project," has always referred to the kvm module -- the kernel code, again hence the name.  Back when the userspace code was just a set of patches to qemu, this confusion was rarer.  (Even after the kvm project started maintaining their own version of the code, they also maintained the qemu patch set to apply to the qemu project -- their version was just qemu, pre-patched.  Avi discusses that philosophy of modifying the original code as little as possible in his most recent blog a few months ago.)  The kvm userspace code is -- again, by Avi's own description -- qemu and libkvm.  (http://www.linux-kvm.org/page/Code - "The kvm userspace code (libkvm and qemu) is available through a git tree.")  kvm-the-project does maintain a prepatched qemu, but that doesn't make it kvm's code -- particularly when kvm's intent all along was to have their patches accepted by qemu, which they now have.  So while you can say that kvm-the-project has within it a build of qemu -- and if you wanted, you could even call it a fork, though the maintainer declines to use the term -- qemu is not kvm.
I'd also add that though the gray area there exists, from a future-discussion perspective it does make things a lot clearer if we refer to kvm the module, the "pure" build of qemu, and kvm's qemu build (or qemu-kvm) as separate.
And by extension, no, kvm-userspace has not reached 10.0.0.  There's a reason that the kvm userspace code just has build numbers.  Its version number is 85.  It would make a lot of sense to say that the kvm-maintained patches were modified and applied to qemu upstream to make qemu 10.0.0, but the post-10 stability patches for kvm were applied independently to qemu and qemu-kvm -- qemu-kvm basically getting just kvm-related stability patches, which are submitted upstream to qemu (and thus qemu-kvm moving up in build number), and qemu using the qemu-kvm patches as well as patches relating to other parts of the system.
Getting back to the meat of the question, it is important to note that the kvm we're getting from the arch package is NOT the kvm that you would get from building the download file.  You called it clean, and you're absolutely right -- it's *too* clean.  Download the KVM package from sourceforge, build, and do a make -n install; you get:
make -C kernel DESTDIR="" install
make -C libkvm DESTDIR="" install
make -C qemu DESTDIR="" install
Which makes sense if you read their docs -- the KVM build, as per KVM, come as a (independent of the kernel) set of modules and a QEMU build to go with those modules, just like it was before it was accepted by linux-kernel.  (You could probably have noticed that kernel modules were being build when you run make, but there was so much stuff in there that I thought it easier to cut/paste the install phase for clarity.)  The Arch PKGBUILD, however, just compiles qemu-kvm and its necessary libraries:
for dir in libkvm user qemu extboot; do
        cd ${srcdir}/kvm-${pkgver}/${dir}
        make || return 1
    done
and then hand-installs those components without the kernel modules meant to go with it.  Unless the package builder knows something the KVM developer doesn't, I wouldn't go around using that qemu build with whatever KVM module version from whatever different kernel version you may have willy-nilly.
If I had the hankering to run the KVM maintained userspace stuff, I'd do what they said and run their kernel stuff too.  I think a proper KVM build should do that.  But that's not my call, since I'm not the extra maintainer.  As it stands, for me I'd rather use the in-kernel version, which I think will get the kernel-side patches that the KVM project's kernel code gets anyway since there is so much attention on the kernel, but also has the benefit of the qemu userspace code getting bug fixes from the qemu devs themselves.  It sounded to me like that was the direction kvm itself was moving.  But to each their own, of course.  I'd just say better to stick all the way with one or all the way with the other method, and not just start making hybrids without a much deeper knowledge of the code than I think any of us have.
Last edited by slinkygn (2009-05-04 02:11:30)

Similar Messages

  • Problem with option: enable this distribution point for prestaged content

    Hi, for past few days I have been focused on application deployment with SCCM 2012 R2 (I am learning SCCM 2012 R2 reading books, watching video trainings . . .). Having followed allong book Mastering System Center 2012 R2 Configuration Manager I also did
    deployment of Microsoft Office 2013, Adobe Reader 11, Foxit Reader 4.2 and Notepad ++ to test collection containing one Windows 7 computer. In one of examples prestaged content file is created for Foxit Reader application. In order to do so, if I am
    right, option Enable this distribution point for prestaged content
    has to be checked on distribution point and I did that.
    Problem is that I noticed deployment of any application to test collection failed every time - system waits for prestaged content file if this option is selected. Then I have to delete deployment of given application, application itself, deselect option
    Enable this distribution point for prestaged content and create app, distribute it to DP and deploy to test collection - then everything works well.
    To make things worse, having deselect option Enable this distribution point for prestaged content (I did it yesterday and I checked that several times) this morning I checked again and this option is selected again. What might be the cause
    of this behaviour? I expected this option to be deselected - this is weird to say at least.
     

    When you enable the option "Enable this distribution
    point for prestaged content" on a DP, it causes newly created applications/packages to default to "Manually copy the content in this package to the distribution point"... This would then cause the deployments on the clients to remain
    at 'waiting for content' - unless if you manually prestage the content, as this option requires it.
    If you enable the option "Enable this distribution
    point for prestaged content" on the DP, but want to automatically have CM distribute the content, then configure the app/package to do so,
    before distributing the content: Distribution Settings tab > Prestaged distribution point settings > Automatically download content when packages are assign to distribution points.

  • New GIMP with optional single-window mode

    According to this blog http://www.mmiworks.net/eng/publication … -mode.html, GIMP will have a single-window option in the future. This has regularily been a request by the community, especially by people using GIMP under Windows. As preferences of the community are at 50%-50% for or against a single window user interface, they want to keep both as an option.
    I installed gimp-git from AUR today but I did not see an option to activate the single window mode. Anybodfy else tried this?

    There is a discussion about it on gimp-dev. This thread may have forked in the middle, but the idea keeps going:
    https://lists.xcf.berkeley.edu/lists/gi … 23253.html
    For those of you that have never been to their mailing list, Firefox will complain about a bad certificate. It's been this way for years and isn't a malware site.

  • Qemu with kvm is very, very slow

    Hi!
    I first installed kvm by following http://wiki.archlinux.org/index.php/Kvm
    And I also tried the "using qemu with kvm support" method from http://wiki.archlinux.org/index.php/QEMU
    With both methods, a VM is very, very slow (when i start an iso, you literally see it render the things, and after that when you get the grub menu, it takes ages for the pointer to move if you press the arrow keys).
    I'm on a Dell laptop with Intel C2D cpu with VT support (and enabled in bios, I checked)
    [dieter@dieter-dellD620-arch ~]$ egrep '^flags.*(vmx|svm)|model name' /proc/cpuinfo
    model name : Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz
    flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm lahf_lm tpr_shadow
    model name : Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz
    flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm lahf_lm tpr_shadow
    [dieter@dieter-dellD620-arch ~]$ lsmod | egrep 'qemu|vbox|kvm'
    kvm_intel 43752 0
    kvm 169896 1 kvm_intel
    [dieter@dieter-dellD620-arch ~]$ cat /etc/udev/rules.d/65-kvm.rules
    KERNEL=="kvm", NAME="%k", GROUP="kvm", MODE="0660"
    [dieter@dieter-dellD620-arch ~]$ ls -alh /dev/kvm
    crw-rw---- 1 root kvm 10, 232 2009-07-18 17:12 /dev/kvm
    [dieter@dieter-dellD620-arch ~]$ grep kvm /etc/group
    kvm:x:78:dieter
    anyone an idea?

    damjan wrote:
    try qemu-kvm-0.10.5, it's the stable qemu with additional kvm support:
    http://sourceforge.net/projects/kvm/fil … z/download
    also, in the qemu monitor you can check to see if kvm is used with "info kvm" .. should return "kvm support: enabled"
    finally, the grub menu is using old BIOS APIs and cpu pooling since it's running in 16bit mode with no drivers. It uses up 100% of one of my cores when I leave a VM on the grub menu. Make sure you run a serious OS soon and check performance there.
    Thanks
    - i am using 0.10.5 (this is the version that Arch has packaged)
    - it says kvm enabled, and you're right, once it goes out of grub, it goes much faster!
    - apparently my keyboard arrows are just plainly being ignored

  • Unable to open KVM's from UCS Console

    Unable to open KVM's from UCS KVM Console, Windows 2008 R2 with Java installed try in IE and Firefox, I am able see all KVM's but when I click on KVM it will ask for save or open, saving to disk and opening from disk, directly open not working. Any configuration for IE and Java

    Try to Attach the Screenshot here....

  • DAC - Can I run more then one Exection Plans with full load option enabled?

    Hello All,
    I have configured for subject Area sales – Orders, Backlog and Invoices (OBIEE)
    Now I want to run DAC to load the underline tables for subject Areas Financials – Revenue Analysis and Financials – GL Budget and Expenses, I have identified the relevant fact tables and built a Execution Plan in DAC.
    DAC - In which mode should I run the execution plan?
    With full load option enabled or disabled because already full load run is done for sales – Orders, Backlog and Invoices and this run should not disturb the existing data
    If I run with full load option enabled do it overrides the existing data for other subject area
    Please help me I am bit confused!
    Regards,
    SMA
    Edited by: SMA on Aug 18, 2009 3:36 PM

    No need of combining all the subject areas into one execution plan. Simply run the second ETL without checking the full load option. It will do the full load for the tables related to the newly added subject areas and incremental for the common tables between old and new subject areas.

  • CS call drop with Wi-Fi option enabled

    My Friend bought Iphone 6 from U.S and using the same in Inida ( Indian SIM ) and facing a unique issue where First MO CS call is getting failed when Wi-Fi option enabled on device. As soon as we Disable Wi-Fi on Device , No such behavior  and CS calls works perfectly fine .
    As per oerator analysis , such failed calls are not even hitting there network . 
    Need Apple expert support to identify exact reason for these CS call failures .Why device is behaving in such manner.

    Apple doesn’t routinely monitor the discussions. These are mostly user to user discussions.
    Send Apple feedback. They won't answer, but at least will know there is a problem. If enough people send feedback, it may get the problem solved sooner.
    Feedback
    Troubleshooting Wi-Fi issues in OS X
    Wireless Connection Problems - Fix
    Wireless Connection Problems - Fix (2)
    Wireless Connection Problems - Fix (3)
    Wireless Connection Problems - Fix (4)

  • [SOLVED] Windows Guest VM in QEMU with OVMF freezing on boot

    I'm having some issues booting Windows 8.1 with ovmf. I've taken out the references to vga passthrough for debugging this issue. This is a fresh installation, I have a separate installation that works just fine (albeit bloated), and I don't know where the difference comes.
    The command I used:
    # qemu-system-x86_64 -enable-kvm -m 4G -cpu host -M q35 -balloon virtio \
    -drive if=pflash,format=raw,readonly,file=/var/lib/libvirt/images/ovmf_x64.bin \
    -drive if=pflash,format=raw,file=/var/lib/libvirt/images/ovmf_vars_x64.bin \
    -smp 6,sockets=1,cores=6,threads=1 -net nic,model=virtio -net bridge,br=br0 -name win8 \
    -device virtio-scsi-pci,id=scsi \
    -device ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1 \
    -drive file=/var/lib/libvirt/images/Win8.1Base-OVMF.cow,id=disk,format=qcow2,if=none -device scsi-hd,drive=disk \
    -drive file=/usr/share/virtio/virtio-win.iso,id=virtiocd,if=none -device ide-cd,bus=ide.1,drive=virtiocd
    I have tried his with ovmf-svn and Gerd Hoffman's repository, both giving the same effect.
    It starts to boot for a while, and then freezes at a point like this:
    EDIT: When I take out references to the q35 chipset, including the ioh3420 device, it will boot.
    EDIT 2: After I installed the driver for my nvidia card (the point of this from the beginning), I was then able to boot with q35 chipset again. Wahoo!
    Last edited by noctlos (2015-04-30 20:47:06)

    Oh, thank you so much. That fixed it!
    You did not posted any boot error [...]
    Well, I posted the screenshot ("output of the VM"), because I couldn't copy the text from the VM. And I guess I was too lazy to type... It contains the boot error.
    Edit: In order to eventually help people find this, I'm typing the error partially, here:
    :: Mounting /run/archiso/cowspace (tmpfs) filesystem, size=75%...
    losetup: cannot find an unused loop device
    :: Mounting '' to '/run/archiso/sfs/airootfs'
    Waiting 30 seconds for device...
    ERROR: '' device did not show up after 30 seconds...
    Falling back to interactive prompt
    You can try to fix the problem manually, log out when you are finished
    sh: can't acces tty; job control turned off
    [rootfs /]#
    Last edited by rebootl (2014-11-16 09:32:50)

  • [Solved] No sound from VM (Windows 7) on qemu with virt-manager

    I posted this in Newbie corner,
    https://bbs.archlinux.org/viewtopic.php?id=176131
    but let me re-post here becase it is about sound matter.
    I have installed Windows 7 (64bit) on qemu with virt-manager.
    It seems that audio works fine inside the guest os, but I can hear no sound.
    [Guest]
    Guest os: Windows 7 (64 bit)
    Sound driver: ich6
    Console: Spice (VNC doesn't work.)
    [Host]
    linux 3.12.8-1 (base)
    qemu 1.7.0-1
    virt-manager 0.10.0-4
    libvirt 1.2.1-1
    According to
    https://bbs.archlinux.org/viewtopic.php?id=157604
    I did as follow before launch the VM, but it doesn't solve the problem.
    export QEMU_AUDIO_DRV=alsa
    What shoud I check and do?
    Followings are some additional information:
    * If I put the same command above
    % /usr/sbin/qemu-system-x86_64 -name win7qemu002...
    It produces error.
    char device redirected to /dev/pts/4 (label charserial0)
    Could not access KVM kernel module: Permission denied
    failed to initialize KVM: Permission denied
    * According to the someone's discussion,
    I added my user to kvm group
    % sudo gpasswd -a taro kvm
    or edited /etc/libvirt/qemu.conf, but they don't fix this errors.
    % sudo vi /etc/libvirt/qemu.conf
    - #user = "root"
    + user = "taro"
    * Everytime I launch the virt-manager,
    a dialog "Authentication" pops-up and asks
    for my user password (not root password).
    % ps aux | grep kvm                                                     [~]
    root       252  0.0  0.0      0     0 ?        S<   02:25   0:00 [kvm-irqfd-clea
    n]
    nobody   10199 63.0 27.0 1613768 1070088 ?     Sl   11:31   0:34 /usr/sbin/qemu-system-x86_64 -name win7qemu002 -S -machine pc-i440fx-1.7,accel=kvm,usb=off -m 1024 -realtime mlock=off -smp 1,sockets=1,cores=1,threads=1 -uuid 00b5056b-9055-aa4f-d7a6-aef72cc8edd4 -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/win7qemu002.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=localtime -no-shutdown -boot menu=off,strict=on -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x6 -drive file=/mnt/win/win7qemu002,if=none,id=drive-ide0-0-0,format=raw -device ide-hd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0 -drive if=none,id=drive-ide0-1-0,readonly=on,format=raw -device ide-cd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -netdev tap,fd=22,id=hostnet0 -device e1000,netdev=hostnet0,id=net0,mac=08:00:27:8f:ff:84,bus=pci.0,addr=0x7,bootindex=1 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -chardev spicevmc,id=charchannel0,name=vdagent -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=com.redhat.spice.0 -device usb-tablet,id=input0 -spice port=5900,addr=127.0.0.1,disable-ticketing,seamless-migration=on -device qxl-vga,id=video0,ram_size=67108864,vram_size=67108864,bus=pci.0,addr=0x2 -device intel-hda,id=sound0,bus=pci.0,addr=0x3 -device hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5
    root     10201  0.0  0.0      0     0 ?        S    11:31   0:00 [kvm-pit/10199]
    taro     10340  0.0  0.0  10668  1060 pts/2    S+   11:32   0:00 grep kvm
    Last edited by taro (2014-02-15 12:36:43)

    Self reply.
    Finally, I got to hear sound from windows 7 as guest OS.
    I gave up to use virt-manager and launches OS image by command line
    like follows.
    % export QEMU_AUDIO_DRV=alsa
    % qemu-system-x86_64 /mnt/win/win7qemu002 -cpu kvm64,+nx -enable-kvm -m 1536 -soundhw hda -usb
    Then, sounds works good.
    # However, the quality is bad because of heavy CPU load.
    Virt-manager may make things complex..
    Sorry for the duplicated post.
    https://bbs.archlinux.org/viewtopic.php?pid=1373935
    Last edited by taro (2014-02-15 12:36:19)

  • No sound from VM (Windows 7) on qemu with virt-manager

    I have installed Windows 7 (64bit) on qemu with virt-manager.
    It seems that audio works fine inside the guest os, but I can hear no sound.
    [Guest]
    Guest os: Windows 7 (64 bit)
    Sound driver: ich6
    Console: Spice (VNC doesn't work.)
    [Host]
    linux 3.12.8-1 (base)
    qemu 1.7.0-1
    virt-manager 0.10.0-4
    libvirt 1.2.1-1
    According to
    https://bbs.archlinux.org/viewtopic.php?id=157604
    I did as follow before launch the VM, but it doesn't solve the problem.
    export QEMU_AUDIO_DRV=alsa
    What shoud I check and do?
    For additional information,
    % ps aux | grep kvm                                                     [~]
    root       252  0.0  0.0      0     0 ?        S<   02:25   0:00 [kvm-irqfd-clea
    n]
    nobody   10199 63.0 27.0 1613768 1070088 ?     Sl   11:31   0:34 /usr/sbin/qemu-system-x86_64 -name win7qemu002 -S -machine pc-i440fx-1.7,accel=kvm,usb=off -m 1024 -realtime mlock=off -smp 1,sockets=1,cores=1,threads=1 -uuid 00b5056b-9055-aa4f-d7a6-aef72cc8edd4 -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/win7qemu002.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=localtime -no-shutdown -boot menu=off,strict=on -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x6 -drive file=/mnt/win/win7qemu002,if=none,id=drive-ide0-0-0,format=raw -device ide-hd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0 -drive if=none,id=drive-ide0-1-0,readonly=on,format=raw -device ide-cd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -netdev tap,fd=22,id=hostnet0 -device e1000,netdev=hostnet0,id=net0,mac=08:00:27:8f:ff:84,bus=pci.0,addr=0x7,bootindex=1 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -chardev spicevmc,id=charchannel0,name=vdagent -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=com.redhat.spice.0 -device usb-tablet,id=input0 -spice port=5900,addr=127.0.0.1,disable-ticketing,seamless-migration=on -device qxl-vga,id=video0,ram_size=67108864,vram_size=67108864,bus=pci.0,addr=0x2 -device intel-hda,id=sound0,bus=pci.0,addr=0x3 -device hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5
    root     10201  0.0  0.0      0     0 ?        S    11:31   0:00 [kvm-pit/10199]
    taro     10340  0.0  0.0  10668  1060 pts/2    S+   11:32   0:00 grep kvm
    * If I put the same command above
    % /usr/sbin/qemu-system-x86_64 -name win7qemu002...
    It produces error.
    char device redirected to /dev/pts/4 (label charserial0)
    Could not access KVM kernel module: Permission denied
    failed to initialize KVM: Permission denied
    * According to the someone's discussion,
    I added my user to kvm group
    % sudo gpasswd -a taro kvm
    or edited /etc/libvirt/qemu.conf, but they don't fix this errors.
    % sudo vi /etc/libvirt/qemu.conf
    - #user = "root"
    + user = "taro"
    * Everytime I launch the virt-manager,
    a dialog "Authentication" pops-up and asks
    for my user password (not root password).
    best regards.
    Last edited by taro (2014-06-29 02:54:25)

    I'm having the same issue.  Not running Windows though... I have a minimal Ubuntu 14.04 as the guest (Arch as the host.)  Been trying everything I can think of but I can't get any sound in virt-manager.  Like you said, the sound seems to play OK in the guest, it's recognizing the card, volume is turned up but no sound.  It has to be an issue with my host configuration but I'm not sure what.  I can get sound to play in the same guest if I launch qemu directly and use ac97.  Something's gotta just be misconfigured with virt-manager/libvirt/Spice.  I thought a permissions issue at first since by default it runs as the "nobody" user but I even tried the foolish thing of setting /etc/libvirt/qemu.conf so qemu runs as root... still no go.  I'd really like to use virt-manager for the nice GUI, presistant settings, and extra features like Spice and the QXL driver that enables KMS on the guest.

  • [SOLVED] Qemu with host networking space.

    Hello, I'm trying to lunch Qemu with host networking, so the VM's can talk to each other, what I did so far is creating the following bridges ( Actually virt-manager did that for me ):
    br0, virbr0 -> virbr0-nic ( the interface )
    and have the following network interfaces:
    br0, lo, virbr0, wlp1s0
    What I think I'm missing is something on the code... I'm lunching with:
    qemu-system-x86 -kernel kernel -cpu host -m 2024 -hda image.image
    I did review the following manuals
    https://wiki.archlinux.org/index.php/QE … networking
    https://wiki.archlinux.org/index.php/Network_bridge
    I'm missing the right command, thanks.
    Last edited by abdullah (2015-02-06 18:00:11)

    abdullah wrote:
    Well, still trying, here is the code that I'm using right now:
    ./start.sh
    #!/bin/bash
    bridge=br0
    tap=$(sudo tunctl -u $(whoami) -b)
    sudo ip link set $tap up
    sleep 1s
    sudo brctl addif $bridge $tap
    qemu-system ..... etc \
    -net nic,vlan0,model=virtio,macaddr=00:16:35:AF:94:4B \
    -net nic,vlan=0,ifname=$tap,script=no,downscript=no
    sudo brctl delif $bridge $tap
    sudo ip link set $tap down
    sudo tunctl -d $tap
    which the reff was in https://activedoc.opensuse.org/book/ope … h-qemu-kvm
    any help please?
    Sorry if I am late to the party... but here's how I do this with bridged networking.
    Let's assume that I have 2 guests, an ArchLinux and Window 7. These are the start scripts:
    : cat start-arch.sh
    #!/bin/bash
    vm_dir="/export/scratch/VMs"
    scripts_dir="${vm_dir}/scripts"
    . ${scripts_dir}/macaddr-gen.sh
    # Generate a random MAC address
    gen_macaddr mac
    # Start the emulator
    qemu-system-x86_64 -enable-kvm -smp 2 \
    -net bridge,br=br0 -net nic,macaddr=${mac},model=virtio \
    -drive file="${vm_dir}/arch-x86_64-1",if=virtio -nographic
    : cat start-win7.sh
    #!/bin/bash
    vm_dir="/export/scratch/VMs"
    scripts_dir="${vm_dir}/scripts"
    . ${scripts_dir}/macaddr-gen.sh
    # Generate a random MAC address
    gen_macaddr mac
    # Start the emulator
    qemu-system-x86_64 -enable-kvm -m 3G -smp 2 \
    -net bridge,br=br0 -net nic,macaddr=${mac},model=virtio \
    -drive file="${vm_dir}/win7-x86_64-1",if=virtio \
    -usbdevice tablet -vga qxl -spice port=5930,disable-ticketing
    : cat macaddr-gen.sh
    #!/bin/bash
    # Generate a random MAC address
    gen_macaddr() {
    local str i macaddr _mac=$1
    str=$(cat /dev/random | tr -cd '[:xdigit:]' | head -c 12 | \
    tr '[:upper:]' '[:lower:]')
    i=0
    macaddr=""
    while [ $i -lt 6 ]; do
    macaddr=${macaddr}${str:0:2}":"
    str=${str:2}
    let i=i+1
    done
    eval $_mac=\${macaddr%:}
    : cat /etc/qemu/bridge.conf
    allow br0
    Note, that the MAC addresses of virtualized NICs in the VMs must be different. If you now do
    : ./start-arch.sh &
    : ./start-win7.sh
    Assuming that you have already set up  a bridge br0, qemu will create several tap? interfaces and insert them into that bridge (using the qemu-bridge-helper suid binary), and you'll have a virtual LAN rooted at br0.
    EDIT: Added a slightly faster random MAC generator and comments.
    Last edited by Leonid.I (2015-02-09 20:13:50)

  • [solved] Xorg freezing on wakeup with EXA enabled

    I am having a weird issue. Whenever I put my laptop to sleep and then I wake it up, Xorg seems to freeze on me. I've noticed this only happens with EXA enabled and it does not happen when the laptop hibernates. I don't have any other issues with X (as far as I can tell) and I really want to use EXA acceleration because otherwise maximizing or restoring windows and also viewing the widget dashboard in KDE 4.4 is painfully slow ... ~2-3s. With EXA, it is instantaneous and since I really put my laptop to sleep a lot, I would like to figure out what is going on.
    Here is some info, let me know if you need other information:
    xf86-video-ati 6.12.4-3 (xorg-video-drivers)
    libgl 7.7.1-0.1
    ati-dri 7.7.1-0.1
    xorg-server 1.7.5.902-1 (xorg)
    xorg-server-utils 7.5-3 (xorg)
    xorg-utils 7.6-1 (xorg)
    xorg-xinit 1.2.1-1 (xorg)
    01:00.0 VGA compatible controller: ATI Technologies Inc M66-P [Mobility Radeon X1700]
    xorg.conf:
    Section "Device"
    Identifier "Card0"
    Driver "radeon"
    VendorName "ATI Technologies Inc"
    BoardName "M66-P [Mobility Radeon X1700]"
    Option "DRI" "on"
    Option "DynamicPM" "on" # Dynamic powersaving.
    Option "ClockGating" "on" # Assisting option for powersaving.
    Option "AccelMethod" "EXA" # EXA should fit most cases.
    Option "EXAVSync" "on" # EXAVSync is explained above.
    Option "DMAForXv" "on" # Forced option in order to enable Xv overlay.
    Option "ScalerWidth" "2048" # That should fix some very rare bugs.
    Option "EnablePageFlip" "on" # It will not be enabled on R5xx cards.
    Option "RenderAccel" "on" # Optional. It should be enabled by default.
    Option "AccelDFS" "on" #Optional. See the man page.
    Option "BusType" "PCIE"
    BusID "PCI:1:0:0"
    EndSection
    If tried all kinds of combinations with xorg.conf ... even tried it without an xorg.conf and nothing seems to work. It either freezes on wake-up (with EXA) or KDE is slugish (anything else).
    I also tried installing the ATI proprietary drivers as well, but I can't since they don't work with the updated versions of X/kernel that I have.
    Does any1 have any suggestions or maybe know if it's possible to dynamically stop EXA just before suspending to RAM and enabling it on wake up?
    Thanks!
    [edit] forgot to mention that I am running x86_64 packages
    Last edited by despotic (2010-04-18 17:09:35)

    Nevermind ... a system update fixed it

  • Can't connect to Netgear router with WPA enabled (MBP)

    I just received a Macbook pro today, everything is wonderful except wireless networking. When it first started up, it detected my wireless network, showed me the SSID, and asked for a password. I entered the password, and it failed to connect. I decided to try later and did the rest of the install.
    I connected via cabled ethernet and downloaded all of the updates. For a machine that shipped from the Apple store (custom config) a few days ago, I was surprised at having 13 LARGE updates to download. Grabbed them all, including a Firmware update which required two reboots. One for everything else, and another for the firmware.
    I tried again from sysprefs, and asked for the diagnostics. It asks me for my WEP key, and there is no option for WPA. I tried entered the WPA key anyway, despite only three WEP options showing up, and it still fails.
    Going through the Airport 'tab' and editing the connection, I get an option for WPA Personal, Enterprise, WPA 2 Personal, and WPA2 Enterprise as well.
    I tried using WPA Personal and WPA 2 Personal and entering the key which works on other notebooks, still no joy.

    Which Netgear router do you have? I use the Netgear
    RangeMax WPN824 and works well with WPA enabled but I
    think it may have failed to work the first time.
    WGT624 v2. Works fine with other wireless devices from a number of vendors, and is detected by the Mac, but I can't connect. I don't want to disable WPA if I can help it, I have a number of other systems configured for it as is, plus guests that come to visit.
    but some how I had to delete the connection,
    let airport find it again and re-enter the password
    to get it to work. One of those things I kind of did
    in the process of troubleshooting and can't remember
    exactly how it was I did it
    I'll try that and see if it helps. Thanks for following up.
    UPDATE: Sure enough, I deleted the network and added it back in by manually specifying the SSID and password, and it works now. No idea why, but there it is... thank you very much.

  • Launching xcode from nfs share (Ensure that Xcode.app is installed on a volume with ownership enabled)

    Hi!
    We have mac mini (Yosemite) and NFS server under Ubnuntu 14.04.
    Also we have xcode resides on NFS share that mounted to mac.
    Problem: When I try launch xcode from nfs share I got error message:
    NSLocalizedRecoverySuggestion=Ensure that Xcode.app is installed on a volume with ownership enabled
    You can see full error here:
    https://gist.github.com/keferoff/fcfd3ea6c13f6ba481fa
    The question is:
    How I can launch xcode from nfs share? For some reasons I can't use xcode-select or store several xcodes locally.
    Thanks in advance!

    It's cool answer but I need solution how to accomplish my task. Maybe I can use iSCSI device or NBD device ot maybe there we have some NFS mount options?

  • ORA-12699: error when connecting to server with FIPS enabled

    Hi all,
    I have a oracle client and server with FIPS enabled on them. When I use SQL Developer from the client, I can connect to the server and run queries on them.
    I have an ADO based application, which I am trying to run on the client to query the oracle server, but the open database call seems to fail on this with the ORA-12699 error ..
    Heres the connection string I am using ... "Provider=OraOLEDB.Oracle;Data Source=Test;User Id=scott;Password=tiger;"
    Are there any other options to be added to the connection string string ?? any ideas / comments would be of great help ...
    Note : I am using Oracle 11G ..
    --sachi                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Naveen,
    Forms 5.0 is not certified and not tested with Oracle DB 10g because it was desupported before 10g got released.
    The other problem is hard to give a generic answer for and I suggest to address this to metalink.oracle.com
    Frank

Maybe you are looking for

  • Email report as attachment with link to webi version

    I want to schedule a webi report such that the report is sent as an excel attachment. In addition I want to provide a URL to the report that the user can click to view the report in Webi in the browser with live/current data if required. The actual r

  • FTP Adaptert - Junk Filename is created in archive folder

    Hi All, Junk filename is getting created in archive directory. I have one ftp adapter,after the file is getting processed the file's are getting moved to archive directory. But with some different Junk file name suffiffed with timestamp/ filename are

  • MacBook Pro 10.6.8 still freezing after performing clean install of os.

    Took to local Apple Store and they performed clean install of operating system.  Worked for approximately 10 minutes and back to freezing again.  Can still move cursor but everything else is unresponsive.  Any suggestions would be helpful.  Thanks.

  • [TNS-12560: Protocol Adapter Error] after every 48 Hours

    Dear All, Our company encountered a very strange Oracle database issue, here is the details: Environment 1. Dell 2950 Server with Windows Server 2003, Oracle 9i 9.2.0.1 and WebLogic Platform Server 8.1 SP3 installed; 2. Two databases on the Oracle, o

  • Installation of Business Suite 7 for ERP

    Hi Friends, I need ur suggestions and support for installation of  Business Suite 7 for ERP My client requirement is, They need  installing  Bussiness Suite 7 components (CRM,SRM,SCM,PLM) in single server. Is its possible, i waiting for  valuable rep