ennweb / docker-kvm Goto Github PK
View Code? Open in Web Editor NEWQEMU/KVM docker image
License: MIT License
QEMU/KVM docker image
License: MIT License
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]
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
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
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!
Using the stock configuration, startup.sh
seems to fail to create bridge.conf
.
REF:
Line 94 in da2d60e
hi, thx for this dcoker . can you add custom NAMESERVERS (args) in docker compose not support "dns" (docker/compose#2847 (comment))?
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?
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:
ennweb/kvm
within the past 2 days (28-Sep-2016)./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:
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.