Code Monkey home page Code Monkey logo

docker-kvm's People

Contributors

aemr3 avatar elacy avatar ragaar avatar shuguet avatar sysoleg avatar tukiyo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

docker-kvm's Issues

Can't use more than one CPU core

Hi,
I've tried to change the smp value but the container won't use more than one CPU core
In the logs I see a warn repeated for [smp value] times:

warning: host doesn't support requested feature: CPUID.01H:ECX.vmx [bit 5]

Network configuration problems

Hi!

I am impressed of your work. But I have a problem while setting up the docker image.

Startup script:

docker run -v ${PWD}:/data \
    --cap-add NET_ADMIN \
    --device /dev/kvm:/dev/kvm \
    --device /dev/net/tun:/dev/net/tun \
    -e RAM=2048 \
    -e SMP=1 \
    -e IMAGE=/data/win10 \
    -e ISO=/data/win10.iso \
    -p 2222:22 \
    -p 8088:80 \
    ennweb/kvm

Output:

[iso]
parameter: -drive file=/data/win10.iso,media=cdrom,index=2
[disk image]
parameter: -drive file=/data/win10,if=virtio,cache=none,format=qcow2,index=1
[network]
Set 'tap0' persistent and owned by uid 0

dnsmasq: bad command line options: bad IP address

Can you help me in some way? Do I have to configure something on my host system? I tried to commenting out the param --cap-add, but the I receive another error..

Thanks and best,
imscaradh

/startup.sh: line 104: ifconfig: command not found

qemu-img create -f qcow2 barge.qcow2 2G

docker run \
    --privileged \
    --rm \
    -v /dev:/dev \
    -v ${PWD}:/data \
    -e IMAGE=/data/barge.qcow2 \
    ennweb/kvm
[cpu]
parameter: qemu64
[disk image]
parameter: -device virtio-scsi-pci,id=scsi -drive file=/data/barge.qcow2,if=none,id=hd,cache=none,discard=unmap,index=1 -device scsi-hd,drive=hd
[network]
Set 'tap0' persistent and owned by uid 0
/startup.sh: line 104: ifconfig: command not found

spice via remote server

Hi, maybe I'm asking very stupid questions here, but is it possible to connect via spice? (remote server > https://www.spice-space.org/)

and if yes, how do i do that;-)

I tryed openning poort 3001 to the contaner but cant connect via the remote server.

Also is it possible to hide the VM from the guest? i'm reading something about qemu:arg but i dont understand where to put it in the docker-compose file.

i hope i'n not overasking, thanks!

VNC password

It would be good to allow setting the password protection for VNC server.
If you don't plan this feature I would like to add it, are you accepting pull requests?

GPU Passthrough

There's no option, from what I can see, to pass a PCI device to the KVM.

I'm not all that familiar with /usr/bin/kvm, but it appears the commands expected are[1]:

-device vfio-pci,host=01:00.0,x-vga=on \
-device vfio-pci,host=01:00.1

NOTES:

  1. I downloaded ennweb/kvm within the past 2 days (28-Sep-2016).
  2. I have a working VM who's image was setup independently to include the PCI device.
  3. I passed the PCI device, /dev/dri, into the container and it should be ready to pass into the kvm.

FOLLOW-UP:
I don't know if I'll be on the computer much this weekend, but I plan on trying to rewrite the dockerfile or maybe running a second instance of qemu-system-x86_64 and pushing the PCI device manually. I'll share my findings, but it would be nice to get some help with investigating this.

Additionally, thanks for the work to put this together. It's a pretty compact image and I like the interface!

REF:

  1. https://ubuntuforums.org/showthread.php?t=2320369&p=13469670#post13469670

Bridge mode not working

I got the container up and running, but bridge mode always breaks everything. Upon configuring bridge mode I always end up with:

Bridge mode config always ends up with: /startup.sh: line 94: /etc/qemu/bridge.conf: No such file or directory.

Line 94 says:
echo allow $NETWORK_BRIDGE > /etc/qemu/bridge.conf

Not sure what $NETWORK_BRIDGE should contain. Any help would be much appreciated.

After making sure the container can write it's /etc/qemu config file the following problem is:

failed to get mtu of bridge `br0': No such device
qemu-system-x86_64: -netdev bridge,br=br0,id=net0: bridge helper failed

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.