Category Archives: Uncategorized - Page 2

Chrome DNS Troubleshooting

Learned a couple things about Chrome that I didn’t know.

chrome://net-internals/#DNS
chrome://flags (disable async DNS)

Seabios 1.7.5 and Qemu 2.1

So apparently I may need a new version of Seabios (1.7.5) to use the new version of qemu from the ppa I was tryng…

I can’t find a Trusty port, so I’m going to use a .deb package from “Jessie” which is (I think) the version Ubunutu 14.04 is based off of.
http://http.us.debian.org/debian/pool/main/s/seabios/seabios_1.7.5-1_all.deb

sudo dpkg -i seabios_1.7.5-1_all.deb
sudo add-apt-repository ppa:jacob/virtualisation
sudo apt-get update
sudo apt-get dist-upgrade

Well, it doesn’t crash…

It recognizes the USB controller, but I can’t see the either USB memory stick or my external drive…

Properly add, then hopefully remove ppa…

Note that the problems I’m having with this ppa are more likely something I’ve done wrong. I’m hoping properly add, then remove the ppa with ppa-purge. That should, in theory downgrade me back to the original versions of qemu. Otherwise, I may just remove them, and force reinstall the parts I think I need to get back to the old Windows VM working. Then I might try the PPA again.

Proper way to add:

sudo add-apt-repository ppa:jacob/virtualisation
sudo apt-get update
sudo apt-get dist-upgrade
ppa-purge ppa:jacob/virtualisation

apt-get remove –purge qemu*
apt-get remove –purge virt-manager virt-viewer sudo apt-get install libvirt-bin
apt-get remove –purge spice-vdagent virt-viewer libspice-client-gtk-3.0-4 virt-manager qemu-system spice-client spice-client-gtk python-spice-client-gtk
apt-get autoremove
apt-get update
apt-get dist-upgrade

sudo add-apt-repository ppa:jacob/virtualisation
sudo apt-get update
sudo apt-get dist-upgrade
apt-get install spice-vdagent virt-viewer libspice-client-gtk-3.0-4 virt-manager qemu-system spice-client spice-client-gtk python-spice-client-gtk libvirt-bin qemu
ppa-purge ppa:jacob/virtualisation

AT THIS POINT THINGS WORKED — I was apparently back the state I was in before adding the ppa. Now, glutton for punishment that I am, I’m trying again:

sudo add-apt-repository ppa:jacob/virtualisation
sudo apt-get update
sudo apt-get dist-upgrade
No joy…

so…
sudo ppa-purge ppa:jacob/virtualisation
sudo apt-get update
sudo apt-get dist-upgrade

And back to working… Still no usb 3… Maybe if I syspreped the windows image or installed fresh from this version of qemu????

The Qemu adventure continues

The PPA didn’t do so well on my notebook — or at least with my Windows Guest VM. It now reboots in a continuous loop. I can start it with the qemu that I previously compiled, but not with the PPA version. May try installing a Linux guest and see if it works with the one out of the PPA. That is really the only type of guest I had tried with the PPA version… Ah well, I am getting to be an old hand at installing Ubuntu… Worst case is I get to do that again.

Qemu 2.1 USB 3.0 PassThrough Fails (Hall of Shame) Ubuntu 14.04 Windows 7 Guest

I guess I just need to suck it up and setup a Linux guest to see what (if any) parameters work and to rule out driver issues on the guest…

Windows 7 guest drivers from here: http://www.driverscape.com/manufacturers/renesas/usb  (NEC 3.0 Controller)

Using Ubuntu 14.04 with a custom complied qemu 2.1 with all the defaults (except PREFIX=/opt/qemu)

With this (uncommented part),

I get:

qemu-system-x86_64: hw/usb/hcd-xhci.c:896: xhci_events_update: Assertion `intr->er_full’ failed.
Aborted (core dumped)

also from dmesg:

[16948.896976] usb 4-4: reset SuperSpeed USB device number 10 using xhci_hcd
[16948.914304] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88023580f600

Tail end of qemu invocation shell script (showing previous ideas).

-device nec-usb-xhci,id=xhci,bus=pci.0,addr=0x14.0 \
-device usb-host,bus=xhci.0,vendorid=0x13fe,productid=0x5100
#-device usb-host,bus=xhci.0,hostbus=4,hostport=10
#-device usb-host,bus=xhci.0,vendorid=0x13fe,productid=0x5100
#below changes everytime I remove/reinsert drive
#-device usb-host,bus=xhci.0,hostbus=3,hostport=11
#below failed with core dump usb_handle_packet assertion failed
#-device usb-host,vendorid=0x13fe,productid=0x5100

#vfio-bind 0000:00:14.0
#-device vfio-pci,host=14:00.0,bus=pcie.0
#-device usb-storage,bus=xhci.4,port=2
#-device usb-host,vendorid=0x0480,productid=0x200

-device nec-usb-xhci,id=xhci,bus=pci.0,addr=0x14.0 \
-device usb-host,bus=xhci.0,vendorid=0x13fe,productid=0x5100
#-device usb-host,bus=xhci.0,hostbus=4,hostport=10
#-device usb-host,bus=xhci.0,vendorid=0x13fe,productid=0x5100
#below changes everytime I remove/reinsert drive
#-device usb-host,bus=xhci.0,hostbus=3,hostport=11
#below failed with core dump usb_handle_packet assertion failed
#-device usb-host,vendorid=0x13fe,productid=0x5100

#vfio-bind 0000:00:14.0
#-device vfio-pci,host=14:00.0,bus=pcie.0
#-device usb-storage,bus=xhci.4,port=2
#-device usb-host,vendorid=0x0480,productid=0x200

Next steps, maybe I should try this with a Linux guest to test the parameters and rule out driver issues?

Virtual Box UUID grr….

VBoxManage internalcommands sethduuid imagefile.vdi

OpenVPN on AWS

So far I am impressed with OpenVPN AS on AWS with Windows clients.  I haven’t tested beyond the two test users — so how well it scales is yet to be seen.

I am having some trouble getting a Linux host (Ubuntu 14.04) to function properly.  I’m not seeing errors, but the connection doesn’t appear to be working.  That appears to be high on my “ToDo” list for today.

Google Drive on Linux

google-drive-ocamlfuse -label acc1 gdrive.acc1

To umount:

fusermount -u gdrive.acc1

Restart network on Ubuntu (bridge network)

sudo ifdown br0 && sudo ifup br0

QEMU/KVM Startup Script

Right now I’m running this with root privileges for the bridged network adapter.  I really need to find a better, cleaner way to do this…

#!/bin/sh
export QEMU_AUDIO_DRV=alsa
DISKIMG=/export/vm/win7old.qcow2
APPIMG=~/vm/apps.qcow2
VIRTIMG=/export/vm/virtio-win-0.1-81.iso
#CZ=~/vm/clonezilla-live.iso
CZ=~/vm/win7-64.iso
qemu-system-x86_64 –enable-kvm -drive file=${DISKIMG},if=virtio -m 8192 \
-device virtio-net,netdev=tunnel -netdev tap,id=tunnel,ifname=vnet0 \
-drive file=${VIRTIMG},index=3,media=cdrom \
-cdrom ${CZ} \
-rtc base=localtime,clock=host -smp cores=8 \
-drive file=${APPIMG},if=virtio \
-no-quit -no-frame \
-usbdevice tablet -soundhw all -cpu host -vga vmware
#-usb -device usb-host,hostbus=1,hostaddr=6
# Last part was working for USB pass through — disabled for now, slow?