Skip to content

Instantly share code, notes, and snippets.

@activeshadow
Created July 29, 2015 15:54
Show Gist options
  • Save activeshadow/b466dc08ca25c3239b07 to your computer and use it in GitHub Desktop.
Save activeshadow/b466dc08ca25c3239b07 to your computer and use it in GitHub Desktop.
minimega woes
Created kernel and initrd images using the following:
$ cd /opt/minimega && ./bin/vmbetter -branch unstable -level debug misc/vmbetter_configs/miniccc.conf
$ mv /opt/minimega/miniccc.* /root/
Configured a VM as follows:
minimega$ vm config
minibuntu: Current VM configuration:
Memory: 2048
VCPUS: 1
Migrate Path:
Disk Paths: []
CDROM Path:
Kernel Path: /root/miniccc.kernel
Initrd Path: /root/miniccc.initrd
Kernel Append: parent=10.0.0.1 port=9999
QEMU Path: /usr/bin/kvm
QEMU Append: []
Snapshot: true
Networks: [mega_bridge,100 mega_bridge,101]
UUID:
Setup a tap and dnsmasq:
minimega$ tap
host | bridge | tap | vlan | option
minibuntu | mega_bridge | mega_tap0 | 100 | 10.0.0.1/24
minibuntu | mega_bridge | mega_tap12 | 101 | 10.0.1.1/24
minimega$ dnsmasq
host | ID | Listening Address | Min | Max | Path | PID
minibuntu | 0 | 10.0.0.1 | 10.0.0.2 | 10.0.0.254 | /tmp/minimega/dnsmasq_521902826 | 29029
minibuntu | 2 | 10.0.1.1 | 10.0.1.2 | 10.0.1.254 | /tmp/minimega/dnsmasq_582718380 | 25766
Started VM:
minimega$ vm launch foo
minimega$ vm start foo
minimega$ vm info
host | id | name | state | memory | vcpus | migrate | disk | snapshot | initrd | kernel | cdrom | append | bridge | tap | bandwidth | mac | ip | ip6 | vlan | uuid | cc_active | tags
minibuntu | 7 | foo | RUNNING | 2048 | 1 | | [] | true | /root/miniccc.initrd | /root/miniccc.kernel | | parent=10.0.0.1 port=9999 | [mega_bridge mega_bridge] | [mega_tap13 mega_tap14] | [0.0/0.0 0.0/0.0] | [00:12:84:a1:71:5a 00:32:e5:fc:66:37] | [ ] | [ ] | [100 101] | 3aae6af3-043c-4f32-8c12-2ad6ed4f88c5 | false | map[]
Notice no IP address assigned to either interface... when I look at the terminal for this VM via
the minimega web interface, it mentions 'Cannot find device "eth1"'. I suspect it mentions the
same thing about eth0, but I can't confirm since I cannot scroll up. When I run `ip addr` via the
web VNC terminal, it only lists the loopback interface. Running `ifconfig eth0 up` results in a
'No such device' error.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment