歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> XenServer中設置Linux VM從光驅引導

XenServer中設置Linux VM從光驅引導

日期:2017/2/28 14:45:27   编辑:Linux教程

Xenserver中設置Linux VM從光驅引導

http://docs.vmd.citrix.com/XenServer/6.2.0/1.0/en_gb/reference.html

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): runninguuid ( 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): <not in database>
snapshots ( RO):
snapshot-time ( RO): 19700101T00:00:00Z
snapshot-info ( RO):
parent ( RO): <not in database>
children ( RO):
is-control-domain ( RO): false
power-state ( RO): halted
memory-actual ( RO): 2147483648
memory-target ( RO): <expensive field>
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): <not in database>
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): <expensive field>
allowed-VIF-devices (SRO): <expensive field>
possible-hosts ( RO): <expensive field>
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): <expensive field>
resident-on ( RO): <not in database>
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): <restrictions><restriction field="memory-static-max" max="137438953472" /><restriction field="vcpus-max" max="16" /><restriction property="number-of-vbds" max="7" /><restriction property="number-of-vifs" max="7" /></restrictions>
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): <expensive field>
os-version (MRO): <not in database>
PV-drivers-version (MRO): <not in database>
PV-drivers-up-to-date ( RO): <not in database>
memory (MRO): <not in database>
disks (MRO): <not in database>
networks (MRO): <not in database>
other (MRO): <not in database>
live ( RO): <not in database>
guest-metrics-last-updated ( RO): <not in database>
cooperative ( RO) [DEPRECATED]: <expensive field>
tags (SRW):
appliance ( RW): <not in database>
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可以看到啟動選項可以選了。。。

Copyright © Linux教程網 All Rights Reserved