Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

ODAVP: How To Create a Fully-Virtualized Guests (HVM) from an OS ISO image (Doc ID

1524138.1)

[root@odax52iscdb01-dom0 ~]# mkdir -p /OVS/staging/vm_temp/openfiler

[root@odax52iscdb01-dom0 ~]# dd if=/dev/zero


of=/OVS/staging/vm_temp/openfiler/openfiler.img oflag=direct bs=1M count=20480
20480+0 records in
20480+0 records out
21474836480 bytes (21 GB) copied, 167.898 seconds, 128 MB/s
[root@odax52iscdb01-dom0 ~]# cd /OVS/staging/vm_temp/openfiler

[root@odax52iscdb01-dom0 openfiler]# cat vm.cfg


name = 'openfiler'
kernel = '/usr/lib/xen/boot/hvmloader'
device_model = '/usr/lib/xen/bin/qemu-dm'
builder = 'hvm'
memory = '4096'
vcpus = 2
acpi = 1
apic = 1
pae = 1
disk = [u'file:/OVS/staging/vm_temp/openfiler/openfiler.img,xvda,w',
'file:/OVS/staging/openfileresa-2.99.1-x86_64-disc1.iso,xvdc:cdrom,r']
boot="dc"
on_reboot = 'destroy'
on_crash = 'destroy'
on_poweroff = 'destroy'
keymap = 'it'
usbdevice = 'tablet'
vif = [ 'type=ioemu, bridge=net1' ]
vfb = [ 'type=vnc,vnclisten=0.0.0.0,vncunused=1' ]

[root@odax52iscdb01-dom0 openfiler]# tar -Sczvf openfiler.tgz


/OVS/staging/vm_temp/openfiler/openfiler.img /OVS/staging/vm_temp/openfiler/vm.cfg

[root@odax52iscdb01 ~]# oakcli import vmtemplate openfiler -files


/OVS/staging/vm_temp/openfiler/openfiler.tgz -repo ovmrepo -node 0

kernel = '/usr/lib/xen/boot/hvmloader'
vif = ['type=ioemu, bridge=net1']
extra = 'NODENAME=openfilervm'
cpus = '50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71'
disk =
['file:/OVS/Repositories/ovmrepo/.ACFS/snaps/openfilervm/VirtualMachines/openfilerv
m/openfiler.img,xvda,w',
'file:/OVS/Repositories/ovmrepo/.ACFS/snaps/openfilervm/VirtualMachines/openfilervm
/cdrom,r']
on_reboot = 'destroy'
boot = 'dc'
pae = 1
memory = 4096
cpu_cap = 0
maxvcpus = 2
maxmem = 4096
acpi = 1
on_poweroff = 'destroy'
on_crash = 'destroy'
apic = 1
usbdevice = 'tablet'
name = 'openfilervm'
device_model = '/usr/lib/xen/bin/qemu-dm'
builder = 'hvm'
vfb = ['type=vnc,vnclisten=0.0.0.0,vncunused=1']
vcpus = 2
keymap = 'it'

You might also like