rancher / old-vm

(OBSOLETE) Package and Run Virtual Machines as Docker Containers
Apache License 2.0
645 stars 133 forks source link

BBVA/kvm: Partially based on RancherVM project #84

Open ahoeg opened 7 years ago

ahoeg commented 7 years ago

Found that great project which looks like a improved RancherVM.

Generic container for launching a Virtual Machine inside a Docker container. Features:

Maybe RancherVM could be improved with some of the features (interface mapping, ...) from BBVA/kvm?

strowi commented 7 years ago

This looks very interesting. I tried modifying the bbva-container to work with ranchervm, but it seems i have an error getting the container-details?

rancher_1 | 172.18.0.1 - - [02/Dec/2016 19:27:08] command: /var/lib/rancher/noVNC-0.0.2/cgi-bin/ranchervm "" rancher_1 | 172.18.0.1 - - [02/Dec/2016 19:27:09] Traceback (most recent call last): rancher_1 | File "/var/lib/rancher/noVNC-0.0.2/cgi-bin/ranchervm", line 433, in <module> rancher_1 | kvm_args = " ".join(container_details.get("Config").get("Cmd")) rancher_1 | TypeError rancher_1 |

"/var/lib/rancher/vm:/vm" is mounted in both containers, and i can see the vnc-socket in there. But the vm won't show up in the ranchervm index-page...

I only modified the startvm-script...

` --- a/startvm +++ b/startvm @@ -29,6 +29,22 @@

: ${KVM_CPU_OPTS:="-m 1024 -smp 4,sockets=4,cores=1,threads=1"}

+TMPDIR=mktemp -d -t ranchervm.XXXXXX