To request and setup a dual stack Virtual Machine at CERN, follow the points below
  1. Request a virtual machine through the CERN Virtual Machine Manager at https://vmm.cern.ch/vmm/ . You need to login with your CERN SSO credentials.
  2. Once you get notification from VMM about the successful creation of the machine, you need to ask the CERN Network Group to enable IPv6 for that machine. Sent an email to ipv6@cernNOSPAMPLEASE.ch with the hostname of your VM.
  3. In order to receive an IPv6 IP address from the dhcp server, you need some tweaks to the VM configuration. While we are trying to incorporate them in the VM creation process, for the moment you would have to configure them by hand. As "root" in the VM (use the sudo command), follow the next steps.
    • You need to allow the communication with the dhcp server in the IPv6 iptables. So, in /etc/sysconfig/ip6tables add the line in bold, then restart the ip6tables
[root@scipv6 scampana]# cat /etc/sysconfig/ip6tables
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -p ipv6-icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A INPUT -m state --state NEW -m udp -p udp --dport 7001 -j ACCEPT
-A INPUT -m state --state NEW -m udp -p udp --dport 546 --sport 547 -s fe80::/10 -d fe80::/10 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp6-adm-prohibited
-A FORWARD -j REJECT --reject-with icmp6-adm-prohibited
COMMIT
[root@scipv6 scampana]# /etc/init.d/ip6tables restart
ip6tables: Flushing firewall rules:                        [  OK  ]
ip6tables: Setting chains to policy ACCEPT: filter         [  OK  ]
ip6tables: Unloading modules:                              [  OK  ]
ip6tables: Applying firewall rules:                        [  OK  ]
    • Create the file /etc/dhcp/dhclient.conf and declare the mac address. You can find the address in LANDB at CERN:
      • Go to http://network.cern.ch
      • Click on "Display Information" and under "Device Name" put the name of your VM.
      • Take the MAC address from the "Network Interface Card(s)" field.

[root@scipv6 scampana]# cat /etc/dhcp/dhclient.conf 
interface "eth0" {
    hardware ethernet 00:15:5D:FF:30:77;
}

    • Delete the file /var/lib/dhclient/dhclient6.leases which may contain a wrong identifier used on another attempt

    • In the file /etc/sysconfig/network-scripts/ifcfg-eth0 add the line in bold below

[root@scipv6 scampana]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
BOOTPROTO="dhcp"
IPV6INIT="yes"
MTU="1500"
NM_CONTROLLED="yes"
ONBOOT="yes"
TYPE="Ethernet"
UUID="7cce3afb-f03e-4160-b37f-1d78100a400f"
DHCPV6C=yes
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r1 - 2013-10-30 - unknown
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    LCG All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2021 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback