太懒
分类: LINUX
2013-07-11 15:15:42
Xenserver中设置Linux VM从光驱引导
HVM-boot-policy
the boot policy for HVM guests. Either BIOS Order or an empty string.
HVM-boot-params
the order key controls the HVM guest boot order,
represented as a string where each character is a boot method:
d for the CD/DVD, c for the root disk, and n for network PXE boot. The default is dc.
HVM-boot-policy="BIOS order"
[root@xenserver ~]# xe vm-list
uuid ( RO) : 5192aa43-0911-5382-f9d0-7de12eae448b
name-label ( RW): ora63_momo1
power-state ( RO): running
uuid ( RO) : a854ab3b-8bed-47c8-af06-83ca8ac44c62
name-label ( RW): Control domain on host: xenserver
power-state ( RO): running
[root@xenserver ~]#
[root@xenserver ~]# xe vm-list params=all uuid="5192aa43-0911-5382-f9d0-7de12eae448b"
uuid ( RO) : 5192aa43-0911-5382-f9d0-7de12eae448b
name-label ( RW): ora63_momo1
name-description ( RW):
user-version ( RW): 1
is-a-template ( RW): false
is-a-snapshot ( RO): false
snapshot-of ( RO):
snapshots ( RO):
snapshot-time ( RO): 19700101T00:00:00Z
snapshot-info ( RO):
parent ( RO):
children ( RO):
is-control-domain ( RO): false
power-state ( RO): halted
memory-actual ( RO): 2147483648
memory-target ( RO):
memory-overhead ( RO): 18874368
memory-static-max ( RW): 2147483648
memory-dynamic-max ( RW): 2147483648
memory-dynamic-min ( RW): 2147483648
memory-static-min ( RW): 536870912
suspend-VDI-uuid ( RW):
suspend-SR-uuid ( RW): 67cc7dcd-ea09-13c5-3a19-a6581d224e72
VCPUs-params (MRW):
VCPUs-max ( RW): 1
VCPUs-at-startup ( RW): 1
actions-after-shutdown ( RW): Destroy
actions-after-reboot ( RW): Restart
actions-after-crash ( RW): Restart
console-uuids (SRO):
platform (MRW): nx: true; acpi: 1; apic: true; pae: true; viridian: true
allowed-operations (SRO): changing_dynamic_range; changing_shadow_memory; changing_static_range; make_into_template; destroy; export; start_on; start; clone; copy; snapshot
current-operations (SRO):
blocked-operations (MRW):
allowed-VBD-devices (SRO):
allowed-VIF-devices (SRO):
possible-hosts ( RO):
HVM-boot-policy ( RW):
HVM-boot-params (MRW):
HVM-shadow-multiplier ( RW): 1.000
PV-kernel ( RW):
PV-ramdisk ( RW):
PV-args ( RW): graphical utf8
PV-legacy-args ( RW):
PV-bootloader ( RW): pygrub
PV-bootloader-args ( RW):
last-boot-CPU-flags ( RO): vendor: GenuineIntel; features: 0408e3bd-bfebfbff-00000001-20100800
last-boot-record ( RO):
resident-on ( RO):
affinity ( RW): f3620fb2-e940-4fd1-b003-b49c3a704450
other-config (MRW): vgpu_pci: ; base_template_name: Oracle Enterprise Linux 6 (64-bit); install-repository: cdrom; linux_template: true; mac_seed: 0602f662-23f2-ad0c-a715-716278423f87; rhel6: true; install-methods: cdrom,nfs,http,ftp
dom-id ( RO): -1
recommendations ( RO):
xenstore-data (MRW): vm-data:
ha-always-run ( RW) [DEPRECATED]: false
ha-restart-priority ( RW):
blobs ( RO):
start-time ( RO): 19700101T00:00:00Z
install-time ( RO): 20130711T14:39:50Z
VCPUs-number ( RO): 0
VCPUs-utilisation (MRO):
os-version (MRO):
PV-drivers-version (MRO):
PV-drivers-up-to-date ( RO):
memory (MRO):
disks (MRO):
networks (MRO):
other (MRO):
live ( RO):
guest-metrics-last-updated ( RO):
cooperative ( RO) [DEPRECATED]:
tags (SRW):
appliance ( RW):
start-delay ( RW): 0
shutdown-delay ( RW): 0
order ( RW): 0
version ( RO): 0
generation-id ( RO): 2179547399178184110:238488794479818564
[root@xenserver ~]#
[root@xenserver ~]# xe vm-list params=all uuid="5192aa43-0911-5382-f9d0-7de12eae448b" >> vmlist1.log
[root@xenserver ~]# xe vm-param-set uuid=5192aa43-0911-5382-f9d0-7de12eae448b HVM-boot-policy="BIOS order"
[root@xenserver ~]# xe vm-list params=all uuid="5192aa43-0911-5382-f9d0-7de12eae448b" >> vmlist2.log
[root@xenserver ~]#
[root@xenserver ~]# diff vmlist1.log vmlist2.log
38c38
< HVM-boot-policy ( RW):
---
> HVM-boot-policy ( RW): BIOS order
[root@xenserver ~]#
[root@xenserver ~]# xe vm-param-set uuid=5192aa43-0911-5382-f9d0-7de12eae448b HVM-boot-params:order="dc"
[root@xenserver ~]#
[root@xenserver ~]# xe vm-list params=all uuid="5192aa43-0911-5382-f9d0-7de12eae448b" >> vmlist3.log
[root@xenserver ~]#
[root@xenserver ~]# diff vmlist1.log vmlist3.log
38,39c38,39
< HVM-boot-policy ( RW):
< HVM-boot-params (MRW):
---
> HVM-boot-policy ( RW): BIOS order
> HVM-boot-params (MRW): order: dc
[root@xenserver ~]#
[root@xenserver ~]# diff vmlist2.log vmlist3.log
39c39
< HVM-boot-params (MRW):
---
> HVM-boot-params (MRW): order: dc
[root@xenserver ~]#
转到Xencenter可以看到启动选项可以选了。。。