Hello Andrei, to modify the keyboard layout, please edit /etc/rc.conf and modify the "KEYMAP=" entry [1]. For the next update, we will upload it with the US-en keyboard by default and the possibility to modify it with the CONTEXT.
When the VM boots, the script located in /usr/share/opennebula/init.rb [2] is executed. This script configures all the services. The service that provides DHCP and DNS is dnsmasq [3], so the script generates the configuration file for dnsmasq: /etc/dnsmasq.conf and it also configures /etc/resolv.conf. Dnsmasq provides many options for the DHCP service, you will find in this script that besides the mac => ip list for all the ips in the routers private network, it also sets itself as the NTP server (dhcp-option=42) and DNS server (dhcp-option=4). Regarding the DNS service, since dnsmasq is providing that service, hosts that have the router as their nameserver will be able to locate any ip in the routers /etc/hosts file (it needs a dnsmasq restart after each modification: /etc/rc.d/dnsmasq restart). Enabling DHCP in the router's context: ----8<---- # mandatory fields: TARGET = "hdb" PRIVNET = "$NETWORK[TEMPLATE, NETWORK=\"private_network_name\"]", TEMPLATE = "$TEMPLATE" # enables DHCP DHCP = "YES|NO" ---->8---- If you need any further modification to the DHCP service I recommend you modify the "configure_dnsmasq" method [4] If you need any other specific information please let me know. [1] https://wiki.archlinux.org/index.php/KEYMAP (/etc/rc.conf using the legacy rc.conf format) [2] https://gist.github.com/3737116#L443 [3] http://www.thekelleys.org.uk/dnsmasq/doc.html [4] https://gist.github.com/3737116#L204 cheers, Jaime On Sat, Sep 15, 2012 at 12:48 AM, Andrei Vakhnin <[email protected]> wrote: > > I downloaded Virtual Router appliance from Marketplace but having hard time > accessing disk image due to keymap issue (wrong keyboard characters). Do I > have to set keymap=us-en in my router vm template? I am also looking for more > detail documentation on how to setup DHCP and DNS. Thanks > > Here is my template: > NAME = "OpenNebula Router" > CPU = 1 > MEMORY = 1024 > > FEATURES=[ ACPI=yes ] > > DISK = [ > IMAGE_ID = 24, > driver = raw, > readonly = no ] > > NIC = [ > network = "Small network", > bridge = "br2", > model = virtio ] > > GRAPHICS = [ > type = "vnc", > listen = "0.0.0.0"] > > OS = [ > boot = hd, > arch = x86_64 ] > > RAW=[ TYPE=kvm ] > > > CONTEXT = [ > TARGET = "hdb", > PRIVNET = "$NETWORK[TEMPLATE, NETWORK=\"Small Network\"]", > TEMPLATE = "$TEMPLATE", > DHCP = "YES|NO", > NTP = "YES|NO" > > > > On Jul 17, 2012, at 2:46 AM, Jaime Melis wrote: > > Dear OpenNebula users, > > we have published a new appliance: a Virtual Router to be deployed into > OpenNebula networkw in order to provide a variety of networking services: > > - DHCP > - NTP > - Router (masquerade) > - Port forwarding > - DNS > > The purpose of this appliance is to make it easier for users to deploy > uncontextualized images with OpenNebula. > > Documentation: http://opennebula.org/documentation:rel3.6:router > Virtual Router: > https://marketplace.c12g.com/appliance/50042d5d8fb81d68af000003 > > Enjoy! > > Cheers, > Jaime > > -- > Jaime Melis > Project Engineer > OpenNebula - The Open Source Toolkit for Cloud Computing > www.OpenNebula.org | [email protected] > _______________________________________________ > Users mailing list > [email protected] > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org > > -- Jaime Melis Project Engineer OpenNebula - The Open Source Toolkit for Cloud Computing www.OpenNebula.org | [email protected] _______________________________________________ Users mailing list [email protected] http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
