zoukankan      html  css  js  c++  java
  • 如何动态更换一个虚机CDROM的ISO镜像

    Use xm block-list <domid> to find the cdrom be-path for the domain, for example: 
    localhost:~# xm block-list 3
    Vdev  BE handle state evt-ch ring-ref BE-path
    768    0    0     1      -1     -1    /local/domain/0/backend/vbd/3/768  
    5632   0    0     1      -1     -1    /local/domain/0/backend/vbd/3/5632 
    Having identified the cdrom device (5632) you can check what iso image it is connected to: 
    localhost:~# xenstore-read /local/domain/0/backend/vbd/3/5632/params
    /root/win/win.ISO
    To connect a new iso image: 
    xenstore-write local/domain/0/backend/vbd/3/5632/params /mnt/new.iso 
    And you can now see that it is connected: 
    xenstore-read /local/domain/0/backend/vbd/3/5632/params /mnt/new.iso 
    This method works with both emulated devices and with gplpv drivers. 
  • 相关阅读:
    面向对象和面向过程的区别
    k-means算法
    win10系统下安装mysql
    python并发编程之多进程
    操作系统的概念
    前端基础之html
    聚类分析
    决策树
    Mysql
    SQL练习题
  • 原文地址:https://www.cnblogs.com/feisky/p/2394298.html
Copyright © 2011-2022 走看看