# ln -s /DISK_PATH /OVS/seed_poolDirectory structure:
# cd /OVS/seed_pool/
# unzip V15726-01.zip
Archive: V15726-01.zip
creating: OVM_EL52_jeos_i386_PVM_WebLogic10gR3_v10/
inflating: OVM_EL52_jeos_i386_PVM_WebLogic10gR3_v10/README
inflating: OVM_EL52_jeos_i386_PVM_WebLogic10gR3_v10/vm.cfg
inflating: OVM_EL52_jeos_i386_PVM_WebLogic10gR3_v10/System.img
inflating: OVM_EL52_jeos_i386_PVM_WebLogic10gR3_v10/u01.img
inflating: OVM_EL52_jeos_i386_PVM_WebLogic10gR3_v10/weblogic.img
/OVS/seed_pool/OVM_template_nameGenerate a new MAC address
|
|- System.img (operating system image file)
|- extra.img (optional additional image file(s))
|- vm.cfg (virtual machine configuration file)
|- README
# export PYTHONPATH=/opt/ovs-agent-2.3; python -c "from OVSCommons import randomMAC; print randomMAC()"Edit the vm.cfg file
00:16:3e:74:21:bb
# cd OVM_EL52_jeos_i386_PVM_WebLogic10gR3_v10/*** Change ***
# cat vm.cfg
bootloader = '/usr/bin/pygrub'
disk = ['file:/OVS/seed_pool/OVM_EL52_jeos_i386_PVM_WebLogic10gR3_v10/System.img,xvda,w',
'file:/OVS/seed_pool/OVM_EL52_jeos_i386_PVM_WebLogic10gR3_v10/weblogic.img,xvdb,w',
'file:/OVS/seed_pool/OVM_EL52_jeos_i386_PVM_WebLogic10gR3_v10/u01.img,xvdc,w']
memory = '1024'
name = 'OVM_EL52_jeos_i386_PVM_WebLogic10gR3_v10'
on_crash = 'restart'
on_reboot = 'restart'
vcpus = 2
vfb = ['type=vnc,vncunused=1,vnclisten=0.0.0.0']
vif = ['']
# cat vm.cfgCreate and start up the guest virtual machine
bootloader = '/usr/bin/pygrub'
disk = ['file:/OVS/seed_pool/OVM_EL52_jeos_i386_PVM_WebLogic10gR3_v10/System.img,xvda,w',
'file:/OVS/seed_pool/OVM_EL52_jeos_i386_PVM_WebLogic10gR3_v10/weblogic.img,xvdb,w',
'file:/OVS/seed_pool/OVM_EL52_jeos_i386_PVM_WebLogic10gR3_v10/u01.img,xvdc,w']
memory = '1024'
name = 'OVM_EL52_jeos_i386_PVM_WebLogic10gR3_v10'
on_crash = 'restart'
on_reboot = 'restart'
vcpus = 2
vfb = ['type=vnc,vncunused=1,vnclisten=0.0.0.0']
vif = ['mac=00:16:3e:74:21:bb', ]
# xm create /OVS/seed_pool/OVM_EL52_jeos_i386_PVM_WebLogic10gR3_v10/vm.cfgFind out the VNC port number
Using config file "/OVS/seed_pool/OVM_EL52_jeos_i386_PVM_WebLogic10gR3_v10/vm.cfg".
Started domain OVM_EL52_jeos_i386_PVM_WebLogic10gR3_v10 (id=4)
# xm list -l OVM_EL52_jeos_i386_PVM_WebLogic10gR3_v10 |grep locationConnect vnc by vncviewer:
(location 0.0.0.0:5900)
(location 2)
Set IP Address/Netmask/Gateway and Hostname... THEN
Done... good for me for new learning -)
No comments:
Post a Comment