Skip to content

Compatibility of kvm-vmi with KVM-accelerated Linux containers (e.g., Dockur) #192

@julie-nga

Description

@julie-nga

Hello, I was wondering if kvm-vmi can work with a monitored VM created with Dockur. Dockur automates Windows installation inside a Docker container using KVM and QEMU, and here is what I get from docker ps:

ju@ju-virtual-machine:~/Desktop$ docker ps
CONTAINER ID   IMAGE             COMMAND                  CREATED          STATUS          PORTS                                                   NAMES
21865c18e35c   dockurr/windows   "/usr/bin/tini -s /r…"   18 minutes ago   Up 18 minutes   3389/tcp, 0.0.0.0:8006->8006/tcp, [::]:8006->8006/tcp   windows

And the related qemu-system-x86_64 process:

ju@ju-virtual-machine:~/Desktop$ ps -eo pid,cmd | grep -E 'qemu-system|qemu-kvm' | grep -v grep
   3283 qemu-system-x86_64 -nodefaults -cpu host,kvm=on,l3-cache=on,+hypervisor,migratable=no,-vmx -smp 2,sockets=1,dies=1,cores=2,threads=1 -m 4G -machine type=q35,smm=on,graphics=off,vmport=off,dump-guest-core=off,hpet=off,accel=kvm -enable-kvm -global kvm-pit.lost_tick_policy=discard -smbios type=1,serial=VMware564d491d6cf426f7368f3c94cdd0c11c -display vnc=:0,websocket=5700 -vga virtio -monitor telnet:localhost:7100,server,nowait,nodelay -daemonize -D /run/shm/qemu.log -pidfile /run/shm/qemu.pid -name windows,process=windows,debug-threads=on -serial pty -device usb-ehci,id=ehci -device usb-tablet -netdev tap,id=hostnet0,ifname=qemu,script=no,downscript=no -device virtio-net-pci,id=net0,netdev=hostnet0,romfile=,mac=02:3F:46:5C:76:7E -drive file=/storage/data.img,id=data3,format=raw,cache=none,aio=native,discard=on,detect-zeroes=on,if=none -device virtio-blk-pci,drive=data3,bus=pcie.0,addr=0xa,iothread=io2,bootindex=3 -object iothread,id=io2 -rtc base=localtime -global ICH9-LPC.disable_s3=1 -global ICH9-LPC.disable_s4=1 -object rng-random,id=objrng0,filename=/dev/urandom -device virtio-rng-pci,rng=objrng0,id=rng0,bus=pcie.0 -global q35-pcihost.x-pci-hole64-fix=false

How would I connect to such a VM to run something like vmi-win-guid name winxp /tmp/introspector ?

NB: I would do the (Bare-metal setup) in a nested virtualization environment on VMware.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions