how to mount a Guest OS imagefile(Xen)/怎样在不启动虚拟机的情况下修改虚拟机的配置。
2008-09-02 02:58
531 查看
如果你想在不启动虚拟机的情况下改变虚拟机的设置,比如在你想克隆一个虚拟机时,你可以在克隆完直接通过mount来修改虚拟机的IP,hostname等等,非常方便。或者是想往虚拟机中拷贝什么文件。可以用lomount的命令将虚拟机的镜像文件挂起。命令如下:
lomount -diskimage /PATH/TO/Image.file -partition n /mnt
在mount前请注意以下事项:
1。 对于RHEL的虚拟机来说,这个命令不可以mount类型是LVM的分区。所以在安装虚拟机操作系统的时候请注意不要使用default分区。最好手动分区。
2。 对于SLES的虚拟机来说,这个命令不可以mount类型是refeies的分区。所以在安装虚拟机操作系统的时候请注意不要使用default分区。最好手动分区。
3。 请记住你要mount的分区号。
4。 修改完之后请记住umount.
lomount -diskimage /PATH/TO/Image.file -partition n /mnt
在mount前请注意以下事项:
1。 对于RHEL的虚拟机来说,这个命令不可以mount类型是LVM的分区。所以在安装虚拟机操作系统的时候请注意不要使用default分区。最好手动分区。
2。 对于SLES的虚拟机来说,这个命令不可以mount类型是refeies的分区。所以在安装虚拟机操作系统的时候请注意不要使用default分区。最好手动分区。
3。 请记住你要mount的分区号。
4。 修改完之后请记住umount.
相关文章推荐
- 如何挂载一个镜像文件(how to mount an image file)
- How to mount a xen image ?
- How to mount a xen image ?
- 如何挂载一个镜像文件(how to mount an image file)
- How to mount a xen image ?
- 启动hadoop报ERROR org.apache.hadoop.hdfs.server.namenode.FSImage: Failed to load image from FSImageFile
- How to make a USB stick use ISO image file in debian
- How to release xendesktop per user/device license 怎样手动释放Citrix XenDesktop 许可证
- 安装MiniSAP,DAEMON加载CD1,显示“Unable to mount image.File not accessible”
- How to fix "Resource file <C_PsdRsdll> not found" issue in Windows OS
- How to mount an ISO Image with AIX 6.1 TL4
- How to Reset Mac OS File Associations - 如何重设mac系统的文件关联
- How to get xen whole-machine dump image and analyse it prepair
- 虚拟机启动时出现"No permission to access this virtual machine. Configuration file: x:\xx\xxx.vmx."
- ubuntu 复制文件到xp (How i can copy file from server(OS:ubuntu 10.04) to my PC
- 虚拟机img出错无法启动?mount it in host OS and do the recovery.
- How to supress page header --在特定条件下怎样阻止页首和页尾-修改
- How QEMU fakes GPA to guest OS
- how to create image file and format it
- How to release xendesktop per user/device license 怎样手动释放Citrix XenDesktop 许可证