Adding Instances on existing master node, ganeti

1. Download latest ubuntu under /iso

# mkdir /iso

2. Install VNC viewer for windows user and TigerVNC for linux and MAC users
3. Create instance - On master node
# gnt-instance add -t plain -o noop \
    -s 200G -B minmem=256M,maxmem=512M \
    -n nodeX.example.com \
    --no-start --no-name-check --no-ip-check \
    wordpress
4. Check if the instance is created or not
# gnt-instance list -o +network_port

5. Install OS from ISO file you have downloaded under /iso

# gnt-instance start \
    -H boot_order=cdrom,cdrom_image_path=/iso/ubuntu19.04-amd64.iso \
    wordpress

Waiting for job 125 for wordpressX ...

6. Check that your VM status has changed from “ADMIN_down” to “running”:
# gnt-instance list -o +network_port

 Network Configuration (Attaching VMs to the service network)

1. Check the status using gnt-instance list to see which bridge is used by different instances.
# gnt-instance list -o name,nic.bridge/0
Instance NicBridge/0
node1      br-lanten
node2    br-lanten
node3  br-lan
node4  br-lanten

If it is not assigned to right bridge then modify the network bridge

# gnt-instance modify --net 0:modify,link=link-name wordpress

example:

In above network bridge list if you want to change node3, br-lan to br-lanten the run this command

# gnt-instance modify --net 0:modify,link=br-lanten wordpress

Then reboot instance

#gnt-instance reboot instance2


Comments

Popular posts from this blog

Preventing new account creation

Rclone syncs your files to cloud storage (Gdrive)