Welcome 微信登录

首页 / 操作系统 / Linux / XenServer中设置Linux VM从光驱引导

Xenserver中设置Linux VM从光驱引导http://docs.vmd.citrix.com/XenServer/6.2.0/1.0/en_gb/reference.htmlHVM-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可以看到启动选项可以选了。。。推荐阅读:XenServer如何添加本地存储 http://www.linuxidc.com/Linux/2013-06/86433.htm开启并配置Citrix XenServer的SNMP服务 http://www.linuxidc.com/Linux/2013-01/78487.htmCentOS/Linux安装 XS-Tools (XenServer) http://www.linuxidc.com/Linux/2012-10/71607.htmXenServer教程:XenCneter实现热迁移步骤 http://www.linuxidc.com/Linux/2012-10/71606.htmIntelliJ IDEA运行Play Framework的test modeSolaris 11 包管理新体验相关资讯      XenServer 
  • XenServer中虚拟机和快照导出与导  (今 17:33)
  • XenServer重新生成自签证书  (06月22日)
  • XenServer安装虚拟机---先扩容存放  (11/03/2014 19:29:43)
  • XenServer忘记root密码的解决方法  (今 17:30)
  • XenServer的虚拟机里安装配置双网  (12/13/2015 19:41:49)
  • 重置XenServer本地磁盘LVM为EXT3格  (11/03/2013 20:14:16)
本文评论 查看全部评论 (0)
表情: 姓名: 字数