克隆与批量创建虚拟机
概述
参考:
注意:CentOS7 想要挂载 Ubuntu 20.04 虚拟机内的文件是不行的,内核不支持,报错如下:
~]# guestmount --rw -a /var/lib/libvirt/images/common-ubuntu-test.bj-test.qcow2 -m /dev/ubuntu-vg/lv-0 /mnt/test
libguestfs: error: mount_options: mount exited with status 32: mount: wrong fs type, bad option, bad superblock on /dev/mapper/ubuntu--vg-lv--0,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so.
guestmount: ‘/dev/ubuntu-vg/lv-0’ could not be mounted.
guestmount: Did you mean to mount one of these filesystems?
guestmount: /dev/sda1 (unknown)
guestmount: /dev/sda2 (xfs)
guestmount: /dev/ubuntu-vg/lv-0 (xfs)
其他依赖挂载的命令都是这种报错,比如 virt-sysprep、virt-edit 等等
通过 virt-sysprep 传送网络设备的配置文件?
修改 VM 的 IP
反馈
此页是否对你有帮助?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.