Thursday, January 20, 2011

Installing Guest OS in Xen using xen command

Edit vm.cfg to suit your locations/hostnames/ip address

[root@xenhost sample]# cat vm.cfg
acpi = 1
apic = 1
bootloader = '/usr/bin/pygrub'
disk = ['file:/FMW/vms/sample/DomU-5EL-U5-x86_64-1.0.3.img,hda,w',
'file:/FMW/vms/sample/firststart.img ,sdb,w',
#'phy:/dev/mapper/DomUVol-appohs_d2,sdc,w',
'file:/FMW/vms/sample/swap,sdd,w',
'file:/FMW/vms/sample/tmp,sde,w',
]
localtime = 0
memory = 6144
name = 'guest1'
ne2000 = 0
on_crash = 'preserve'
on_poweroff = 'destroy'
on_reboot = 'restart'
on_shutdown = 'shutdown'
pae = 1
sdl = 0
serial = 'pty'
superpages = 1
timer_mode = 2
vcpus = 16
vif = ['ip=192.168.10.10']
vif_other_config = []
vnc = 1
vncunused = 1
[root@adcdap11 sample]#

[root@adcdap11 sample]# xm new vm.cfg

[root@adcdap11 sample]# xm listName                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0   512    16     r-----  11518.4
guest1                                          6144    16                 0.0
[root@adcdap11 sample]#
 







No comments:

Post a Comment