rancher / old-vm

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

Error provisioning a rancher/vm-rancheros #70

Open joao-fidalgo opened 8 years ago

joao-fidalgo commented 8 years ago

Running rancher/server:v1.0.0 and rancher/agent:v0.11.0 on rancher-os v0.4.3 (bare metal)

Log from rancher/vm-rancheros that failed to launch

29/03/2016 21:14:57 dnsmasq: bad dhcp-range at line 2 of /etc/dnsmasq.conf 29/03/2016 21:14:57 /var/lib/rancher/startvm: line 99: let: NEWCIDR=16 29/03/2016 21:14:57 16-1: syntax error in expression (error token is "16-1") 29/03/2016 21:14:57 /var/lib/rancher/startvm: line 123: let: i=2886795269^(1<<16 29/03/2016 21:14:57 16): missing `)' (error token is "16)") 29/03/2016 21:14:57 Error: either "local" is duplicate, or "10.42.0.169/16" is a garbage. 29/03/2016 21:14:57 Could not initialize SDL(No available video device) - exiting

pwFoo commented 8 years ago

Same problem here.

pwFoo commented 8 years ago

Workaround -nographic: docker run [...] rancher/vm-rancheros -nographic -m 1024m -smp 1

ranchervm web interface need some more qemu options ;)

pwFoo commented 8 years ago

But after 3 instances up and running I can't login... ssh -p 32768 rancher@127.0.0.1 ssh_exchange_identification: read: Connection reset by peer

So how to login to vm-rancheros?

pwFoo commented 8 years ago

vm-rancheros would be great for testing, but console or ssh password login would be needed. Any idea?

pwFoo commented 8 years ago

Strange... tested it again today and all works fine!

First I tested with RANCHER_NETWORK=true with ubuntu and centos with network problems. After remove RANCHER_NETWORK=true all works fine. Tested also vm-rancheros and also without any problems!

No web console, but ssh login with rancher / rancher is ok for me. :)

pwFoo commented 7 years ago

Built my own vm-RancherOS image, but how to set a persistent login password? At the moment I change it during boot by editing grub line...