首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往
您找到你想要的搜索结果了吗?
是的
没有找到

xen 基本操作命令

虚拟机的组成部分 1.虚拟机配置文件 [root@localhost ~]# ls /etc/xen/ auto               scripts                              xend-pci-quirks.sxp      xmexample.hvm qemu-ifup      xend-config.sxp                xmexample1               xmexample.vti rhel5u8-1      xend-pci-permissive.sxp      xmexample2 2.储存虚拟机的介质 [root@localhost ~]# ls /var/lib/xen/p_w_picpaths/ rhel5u8-1.img #虚拟机的基本管理命令:查看、启动、关闭 使用xm查看虚拟机 [root@localhost ~]# xm list Name                                      ID Mem(MiB) VCPUs State   Time(s) Domain-0                                   0     3490     2 r-----    533.8 Domain-0 系统必须安装创建、管理、删除虚拟域的工具。它们包括 xm 和 xend 程序和服务。 尽量减少在 Domain-0 中运行程序和服务,Domain-0 中 CPU 的使用率直接影响其他虚拟域 CPU 资源的分配。 #使用xm启动虚拟机 [root@localhost ~]# xm create rhel5u8-1 Using config file "/etc/xen/rhel5u8-1". Started domain rhel5u8-1 [root@localhost ~]# xm list Name                                      ID Mem(MiB) VCPUs State   Time(s) Domain-0                                   0     3490     2 r-----    535.2 rhel5u8-1                                  2      520     1 r-----      3.7 #使用xm关闭虚拟机 [root@localhost ~]# xm shutdown 2 #使用virsh查看虚拟机 [root@localhost ~]# virsh list Id Name                 State ----------------------------------  0 Domain-0             running #使用virsh启动虚拟机 [root@localhost ~]# virsh start rhel5u8-1 Domain rhel5u8-1 started [root@localhost ~]# virsh list Id Name                 State ----------------------------------  0 Domain-0             running  3 rhel5u8-1            running #使用virsh关闭虚拟机 [root@localhost ~]# virsh shutdown rhel5u8-1 Domain rhel5u8-1 is being shutdown

02

中国开源镜像

China    Alibaba Cloud Computing    http://mirrors.aliyun.com/centos/ 阿里巴巴         China    Beijing Institute of Technology    http://mirror.bit.edu.cn/centos/ 北京理工大学         China    Beijing Teletron Telecom Engineering    http://mirrors.btte.net/centos/     北京电子电信工程     China    BitComm Ltd.    http://mirrors.pubyun.com/centos/ 公云         China    CDS China    http://mirrors.yun-idc.com/centos/    ftp://mirrors.yun-idc.com/centos/    rsync://mirrors.yun-idc.com/centos/ 首都在线 China    China University of Geosciences    http://mirrors.cug.edu.cn/centos/         中国地质大学 China    Dalian Neusoft University of Information    http://mirrors.neusoft.edu.cn/centos/    ftp://mirrors.neusoft.edu.cn/centos/     东软 China    Grand Cloud    http://mirrors.grandcloud.cn/centos/     盛大云     China    Huazhong University of Science and Technology    http://mirrors.hust.edu.cn/centos/        rsync://mirrors.hust.edu.cn/centos/ 华中科技大学 China    NetEase    http://mirrors.163.com/centos/     网易     China    Northeastern University, Shenyang Liaoni    http://mirror.neu.edu.cn/centos/ 东北大学         China    Qiming College of Huazhong University of Science and Technology    http://mirrors.hustunique.com/centos/        rsync://mirrors.hustunique.com/centos/ 华中科技大学 China    Sohu Inc, Beijing P.R. China    http://mirrors.sohu.com/centos/         搜狐 China    The Linux open source community mirror    http://mirrors.skyshe.cn/centos/        rsync://mirrors.skyshe.cn/centos/ 中国linux开源社团 China    University of Science and Tech of China    http://centos.ustc.edu.cn/centos/ 中国科技大学         China - Hong Kong     Web Services Ltd.    http://mirror.vpshosting.com.hk/pub/linux/centos/    ftp://mirror.vpshosting.com.hk/pub/linux/centos/     Hong Kong    01LINK NETWORK SERVICES LIMITED    http://centos.01link.hk/    ftp://centos.01link.hk/    rsync://centos.01link.hk/centos/ Hong Kong    CommuniLink Internet Limited    http://centos.communilink.net/    ftp://centos.communilink.net/centos/     Hong Kong    i-System Technology Limited    http://centos.uhost.h

02
领券