Solaris xVM x86 configure file

本文介绍了使用Xen创建虚拟机的过程及配置文件内容。详细展示了通过virt-install创建的para-osol-b93虚拟机的具体配置,包括内存、CPU设置、启动行为、网络配置等。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

[allen@araj-nhm:~]sudo xm list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0   962     8     r-----    362.5
para-osol-b93                                2  1024     1     -b----    218.8
[allen@araj-nhm:~]sudo xm list -l 2
(domain
    (domid 2)
    (on_crash restart)
    (uuid b8623007-2a43-4287-6ac3-9dfaf4208690)
    (bootloader_args )
    (vcpus 1)
    (name para-osol-b93)
    (on_poweroff destroy)
    (on_reboot restart)
    (bootloader /usr/lib/xen/bin/pygrub)
    (maxmem 1024)
    (memory 1024)
    (shadow_memory 0)
    (cpu_weight 256)
    (cpu_cap 0)
    (features )
    (on_xend_start ignore)
    (on_xend_stop shutdown)
    (start_time 1220395644.2)
    (cpu_time 218.85878721)
    (online_vcpus 1)
    (image
        (linux
            (kernel )
            (notes
                (PADDR_OFFSET 1073741824)
                (XEN_VERSION xen-3.0)
                (GUEST_OS Solaris)
                (VIRT_BASE 1073741824)
                (LOADER generic)
            )
        )
    )
    (status 2)
    (state -b----)
    (store_mfn 336944)
    (console_mfn 337285)
    (device
        (vif
            (mac 00:16:3e:08:b7:78)
            (script vif-vnic)
            (uuid 1abe3d61-949d-6502-eb23-60ef0a8d4a3e)
            (backend 0)
        )
    )
    (device
        (vbd
            (uname phy:/dev/dsk/c0d0s3)
            (uuid e234cf06-b234-b3b8-a96d-e12b3c2faa99)
            (mode w)
            (dev xvda:disk)
            (backend 0)
            (bootable 1)
        )
    )
    (device
        (console
            (protocol vt100)
            (location 2)
            (uuid 53345b86-d612-8aa9-8a27-0f9dcf9d6690)
        )
    )
)
[allen@araj-nhm:~]sudo cat /var/lib/xend/domains/b8623007-2a43-4287-6ac3-9dfaf4208690/config.sxp
(domain
    (domid 2)
    (vcpus_params ())
    (PV_args )
    (PV_bootloader /usr/lib/xen/bin/pygrub)
    (VCPUs_live 1)
    (actions_after_crash restart)
    (uuid b8623007-2a43-4287-6ac3-9dfaf4208690)
    (PV_ramdisk )
    (name_label para-osol-b93)
    (VCPUs_at_startup 1)
    (HVM_boot_params ())
    (platform ())
    (PV_kernel )
    (memory_static_min 0)
    (HVM_boot_policy )
    (VCPUs_max 1)
    (memory_static_max 1073741824)
    (actions_after_shutdown destroy)
    (memory_dynamic_max 1073741824)
    (is_a_template False)
    (memory_dynamic_min 1073741824)
    (PV_bootloader_args )
    (other_config ())
    (actions_after_reboot restart)
    (on_crash restart)
    (uuid b8623007-2a43-4287-6ac3-9dfaf4208690)
    (bootloader_args )
    (vcpus 1)
    (name para-osol-b93)
    (on_poweroff destroy)
    (on_reboot restart)
    (bootloader /usr/lib/xen/bin/pygrub)
    (maxmem 1024)
    (memory 1024)
    (shadow_memory 0)
    (vcpu_avail 1)
    (cpu_weight 256)
    (cpu_cap 0)
    (features )
    (on_xend_start ignore)
    (on_xend_stop shutdown)
    (start_time 1220395644.2)
    (image
        (linux
            (kernel )
            (notes
                (PADDR_OFFSET 1073741824)
                (XEN_VERSION xen-3.0)
                (GUEST_OS Solaris)
                (VIRT_BASE 1073741824)
                (LOADER generic)
            )
        )
    )
    (status 1)
    (state ------)
    (store_mfn 336944)
    (console_mfn 337285)
    (device
        (vif
            (mac 00:16:3e:08:b7:78)
            (script vif-vnic)
            (uuid 1abe3d61-949d-6502-eb23-60ef0a8d4a3e)
            (backend 0)
        )
    )
    (device
        (vbd
            (uname phy:/dev/dsk/c0d0s3)
            (uuid e234cf06-b234-b3b8-a96d-e12b3c2faa99)
            (mode w)
            (dev xvda:disk)
            (backend 0)
            (bootable 1)
        )
    )
)
[allen@araj-nhm:~]sodu virsh dumpxml 2 > /tmp/domain2.xml   
-bash: sodu: command not found
[allen@araj-nhm:~]sudo virsh dumpxml 2 > /tmp/domain2.xml
[allen@araj-nhm:~]cat /tmp/domain2.xml
<domain type='xen' id='2'>
  <name>para-osol-b93</name>
  <uuid>b8623007-2a43-4287-6ac3-9dfaf4208690</uuid>
  <bootloader>/usr/lib/xen/bin/pygrub</bootloader>
  <os>
    <type>linux</type>
  </os>
  <memory>1048576</memory>
  <vcpu>1</vcpu>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <devices>
    <interface type='ethernet'>
      <target dev='vif2.0'/>
      <mac address='00:16:3e:08:b7:78'/>
      <script path='vif-vnic'/>
    </interface>
    <disk type='block' device='disk'>
      <driver name='phy'/>
      <source dev='/dev/dsk/c0d0s3'/>
      <target dev='xvda'/>
    </disk>
    <console tty='/dev/pts/4'/>
  </devices>
</domain>

Note: The steps above show how to get the configuration file for a domain when creating it with virt-install. The pygrub is used, so there is no need to specify the kernel image and the root files system image.

 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值