I am new to VM and Ganeti. I followed the instructions / docs on installing Ganeti. I have a 1 node ganeti cluster currently. This will expand if I can figure out how to get the networking part of the VM's working. I have created the bridge xen-br0 and I can connect to the ip address that I have assigned to this bridge so I assume it is configured correctly. Here is what I see from the ifconfig:
root@node1:/home/bbeverage# ifconfig
eth0 Link encap:Ethernet HWaddr 00:1a:a0:e8:8b:07
inet6 addr: fe80::21a:a0ff:fee8:8b07/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:15143 errors:0 dropped:0 overruns:0 frame:0
TX packets:3587 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2189253 (2.1 MB) TX bytes:450495 (450.4 KB)
Interrupt:21 Memory:febe0000-fec00000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:1200 errors:0 dropped:0 overruns:0 frame:0
TX packets:1200 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:186036 (186.0 KB) TX bytes:186036 (186.0 KB)
tap0 Link encap:Ethernet HWaddr fe:3b:d8:b6:d4:cc
inet6 addr: fe80::fc3b:d8ff:feb6:d4cc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:8782 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
tap1 Link encap:Ethernet HWaddr fe:d9:c7:65:cc:fe
inet6 addr: fe80::fcd9:c7ff:fe65:ccfe/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:8725 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
xen-br0 Link encap:Ethernet HWaddr 00:1a:a0:e8:8b:07
inet addr:10.1.233.33 Bcast:10.1.0.255 Mask:255.255.0.0
inet6 addr: fe80::21a:a0ff:fee8:8b07/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:14949 errors:0 dropped:0 overruns:0 frame:0
TX packets:3581 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1903092 (1.9 MB) TX bytes:433119 (433.1 KB)
xen-br0:0 Link encap:Ethernet HWaddr 00:1a:a0:e8:8b:07
inet addr:10.1.233.34 Bcast:0.0.0.0 Mask:255.255.255.255
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
I have no idea where xen-br0:0 comes from unless Ganeti created it since that is the ip I used to init the cluster
Here is what I see when I show the info of the instance that is using tap1:
UUID: 1e1b2968-472e-48af-b97d-94c94e54ea11
Serial number: 5
Creation time: 2014-04-21 14:36:22
Modification time: 2014-04-21 17:01:10
State: configured to be up, actual state is up
Nodes:
group: default (UUID c3c3b7d7-9031-4855-b7b0-2ffa76a7f6e5)
- secondaries:
Operating system: debootstrap+default
Operating system parameters:
Allocated network port: 11000
Hypervisor: kvm
Hypervisor parameters:
acpi: default (True)
boot_order: default (disk)
cdrom2_image_path: default ()
cdrom_disk_type: default ()
cdrom_image_path: default ()
cpu_cores: default (0)
cpu_mask: default (all)
cpu_sockets: default (0)
cpu_threads: default (0)
cpu_type: default ()
disk_cache: default (default)
disk_type: default (paravirtual)
floppy_image_path: default ()
initrd_path:
kernel_args: default (ro)
kernel_path:
keymap: default ()
kvm_extra: default ()
kvm_flag: default ()
kvm_path: default (/usr/bin/kvm)
machine_version: default ()
mem_path: default ()
migration_downtime: default (30)
nic_type: default (paravirtual)
reboot_behavior: default (reboot)
root_path: default (/dev/vda1)
security_domain: default ()
security_model: default (none)
serial_console: default (True)
serial_speed: default (38400)
soundhw: default ()
spice_bind: default ()
spice_image_compression: default ()
spice_ip_version: default (0)
spice_jpeg_wan_compression: default ()
spice_password_file: default ()
spice_playback_compression: default (True)
spice_streaming_video: default ()
spice_tls_ciphers: default (HIGH:-DES:-3DES:-EXPORT:-ADH)
spice_use_tls: default (False)
spice_use_vdagent: default (True)
spice_zlib_glz_wan_compression: default ()
usb_devices: default ()
usb_mouse: default ()
use_chroot: default (False)
use_localtime: default (False)
vga: default ()
vhost_net: default (False)
vnc_bind_address: default ()
vnc_password_file: default ()
vnc_tls: default (False)
vnc_x509_path: default ()
vnc_x509_verify: default (False)
vnet_hdr: default (True)
Back-end parameters:
always_failover: default (False)
auto_balance: default (True)
maxmem: default (128)
memory: default (128)
minmem: default (128)
spindle_use: default (1)
vcpus: default (1)
NICs:
- nic/0:
MAC: aa:00:00:ae:a4:5c
IP: 10.1.233.35
mode: bridged
link: xen-br0
vlan:
network: None
UUID: 28656d75-413e-47e4-a858-ea9db4ce694e
name: None
Disk template: plain
Disks:
- disk/0: plain, size 4.0G
access mode: rw
logical_id: xenvg/b9396de6-1c52-4bd1-a4bd-37a6970f5994.disk0
on primary: /dev/xenvg/b9396de6-1c52-4bd1-a4bd-37a6970f5994.disk0 (252:0)
name: None
UUID: 48677991-aefe-4199-9f69-990a36d54ccc
I passed ip addresses when creating the instances. I assumed this was how you set the IP address to access the VM.
I have entries in my host file to allow name resolution locally. The only IP address that has a NIC is
node1.adn.com this is xen-br0's ip address.
I cannot connect using gnt-instance console <name> it just hangs I also can not ping any of the ip addresses from the machine hosting Ganeti. I do not see how the translation of IP to VM happens. If someone could point me in the direction of how to configure the network that would be GREAT! I need to create several VM's with external IP addresses.
Any help would be appreciated.
Thanks,
Brian