Case 1:
RancherOS(host OS)+rancher/vm-rancheros
Cmd: same as document described, it is docker run -e "RANCHER_VM=true" --cap-add NET_ADMIN -v /tmp/ranchervm:/ranchervm --device /dev/kvm:/dev/kvm --device /dev/net/tun:/dev/net/tun rancher/vm-rancheros
Result: device eth0 in VM cant not obtain ip address from DHCP server, even if manually config eth0 and ip route, still cann't ping bridge docker0
Case 2:
RancherOS(host OS)+rnd-dockerhub.huawei.com/library/rancher-vm-ubuntu:14.04, rnd-dockerhub.huawei.com/library/rancher-vm-ubuntu:14.04 is almost same as rancher/vm-ubuntu, just change id/pwd for ubuntu os image
Cmd: same as document described, it is docker run -e "RANCHER_VM=true" --cap-add NET_ADMIN -v /tmp/ranchervm:/ranchervm --device /dev/kvm:/dev/kvm --device /dev/net/tun:/dev/net/tun rnd-dockerhub.huawei.com/library/rancher-vm-ubuntu:14.04
Result: same as Case 1
Case 3:
Ubuntu(host OS)+rancher/vm-rancheros
Cmd: same as document described, it is docker run -e "RANCHER_VM=true" --cap-add NET_ADMIN -v /tmp/ranchervm:/ranchervm --device /dev/kvm:/dev/kvm --device /dev/net/tun:/dev/net/tun rancher/vm-rancheros
Result: network of VM in container works
Case 1:
RancherOS
(host OS)+rancher/vm-rancheros
Cmd: same as document described, it isdocker run -e "RANCHER_VM=true" --cap-add NET_ADMIN -v /tmp/ranchervm:/ranchervm --device /dev/kvm:/dev/kvm --device /dev/net/tun:/dev/net/tun rancher/vm-rancheros
Result: deviceeth0
in VM cant not obtain ip address from DHCP server, even if manually configeth0
and ip route, still cann'tping
bridgedocker0
Case 2:
RancherOS
(host OS)+rnd-dockerhub.huawei.com/library/rancher-vm-ubuntu:14.04
,rnd-dockerhub.huawei.com/library/rancher-vm-ubuntu:14.04
is almost same asrancher/vm-ubuntu
, just change id/pwd for ubuntu os image Cmd: same as document described, it isdocker run -e "RANCHER_VM=true" --cap-add NET_ADMIN -v /tmp/ranchervm:/ranchervm --device /dev/kvm:/dev/kvm --device /dev/net/tun:/dev/net/tun rnd-dockerhub.huawei.com/library/rancher-vm-ubuntu:14.04
Result: same asCase 1
Case 3:
Ubuntu
(host OS)+rancher/vm-rancheros
Cmd: same as document described, it isdocker run -e "RANCHER_VM=true" --cap-add NET_ADMIN -v /tmp/ranchervm:/ranchervm --device /dev/kvm:/dev/kvm --device /dev/net/tun:/dev/net/tun rancher/vm-rancheros
Result: network of VM in container works