call518
(JungJungIn)
June 16, 2015, 6:03pm
1
I try ONE template(CONTEXT= ),
ETH0_GATEWAY=“$NIC[GATEWAY,NETWORK="Public-Net"]”,
ETH0_IP=“$NIC[IP,NETWORK="Public-Net"]”,
ETH0_MAC=“$NIC[MAC,NETWORK="Public-Net"]”,
ETH0_MASK=“$NIC[NETWORK_MASK,NETWORK="Public-Net"]”,
ETH0_NETWORK=“$NIC[NETWORK_ADDRESS,NETWORK="Public-Net"]”,
but, in contextualization-image(disk.1.iso) of vm,
ETH0_GATEWAY=“192.168.33.1”
ETH0_IP=“192.168.33.101”
ETH0_MAC=“02:00:c0:a8:21:65”
ETH0_MASK and ETH0_NETWORK is lost…
I try it with OpenNebula 4.10.2, I want know why is it not working. (any documents, any info)
(I see New Contextualizaton Package )
thanks everybody~^^
VURoland
(Roland)
June 16, 2015, 6:16pm
2
hi, this might not be it, but worth a quick check; in this example from ONE docs:
When the template is instantiated, those parameters for eth0
are automatically set in the VM as:
CONTEXT=[
DISK_ID=“0”,
ETH0_DNS=“8.8.8.8 8.8.4.4”,
ETH0_GATEWAY=“80.0.0.1”,
ETH0_IP=“80.0.0.2”,
ETH0_MASK=“255.255.255.0”,
ETH0_NETWORK=“80.0.0.0”,
NETWORK=“YES”,
TARGET=“hda” ]
All values are separated with a " , " (and inside brackets with “CONTEXT=[ ]”)
here is the info from the latest version of ONE docs:
http://docs.opennebula.org/4.12/user/virtual_machine_setup/bcont.html
http://docs.opennebula.org/4.12/user/virtual_machine_setup/cong.html
call518
(JungJungIn)
June 16, 2015, 8:26pm
3
may be, “NETWORK=yes” is my goal…
I will try and report.
Thanks Roland
[result]
Add NETWORK=“yes”, Nice work…
context.sh in VM,
ETH0_DNS='8.8.8.8’
ETH0_GATEWAY='192.168.33.1’
ETH0_IP='192.168.33.101’
ETH0_MAC='02:00:c0:a8:21:65’
ETH0_MASK='255.255.255.0’
ETH0_NETWORK='192.168.33.0’
ETH1_DNS='8.8.8.8 8.8.4.4’
ETH1_GATEWAY='10.0.0.1’
ETH1_IP='10.0.0.2’
ETH1_MAC='02:00:0a:00:00:02’
ETH1_MASK='255.0.0.0’
ETH1_NETWORK=‘10.0.0.0’
thanks~