创建虚拟机(增)
迁移 VirtualBox 虚拟机
Importing Virtual Machine from Oracle VirtualBox to …
Import an Open Virtualization Format Virtual Machine
VirtualBox 7.0, VMware Workstation 16.2
第一步、导出虚拟机(VirtualBox)
1)Power off the virtual machine in VirtualBox.
2)Click File > Export Appliance.
3)Select one or more VMs to export, and click Next.
4)Select a Format(我们选择 1.0 格式)& provide a location to store the .ova file.
5)Follow the onscreen instructions to make the necessary changes.
6)Click Export to begin the export process.
第二步、导入虚拟机(VMware Workstation)
1)In Workstation Pro, select File > Open.
2)Browse to the .ovf or .ova file and click Open.
3)Type a name for the virtual machine, type or browse to the directory for the virtual machine files, and click Import.
4)然后,VMware Workstation 将完成导入工作;
鉴于 VMware Workstation 针对 OVF 严格检查,导入过程可能失败,点击 Retry 忽略;
安装 Windows 11 操作系统
huaweiran 的博客_VMware Workstation 创建 Windows 11(21H2)虚拟机
需要升级到 VMware Workstation 17 版本,该版本开始支持 Windows 11 操作系统;
创建虚拟机的详细过程与以往类似,所以程略过;
当虚拟机创建结束后,还需要添加 TPM 设备,大致步骤如下:
1)在添加 TPM 固件之前,需要对虚拟机加密:虚拟机 / 选项 / 访问控制 / 加密,输入密码并确认,并等待结束;
2)硬件 / 添加 / 可信平台模块,即可;
3)然后,启动虚拟机,进行操作系统的安装及后续设置,详细过程与以往类似;
通过 CD/DVD 启动
How to Boot VM from ISO Images/CD/DVD in VMware Workstation/vSphere?
1)创建虚拟机,并添加 CD/DVD 磁盘;
2)启动虚拟机,通过 ESC (or F2, F10, F12) 按键,来进入启动选项界面;
修改虚拟机(改)
剪贴板共享
1)安装 VMware Tools 组件;
2)<VM> / Settings / Options / Guest Isolation / Enable ….
3)经过配置与测试,我们用到的「Host 到 Guest 复制粘贴」功能能够正常工作;
Q:(02/19/23)在 Linux Guest 中,剪贴板共享无法正常工作,无法将复制内容同步到 Windows Guest 中?
A:我们检查 open-vm-tools-desktop 包,发现 /etc/xdg/autostart/vmware-user.desktop 文件,所以我们猜测「该自启动程序将在用户开机时运行,以实现启用剪贴板复制的功能」,其将运行 /usr/bin/vmware-user-suid-wrapper 命令。所以,我们以当前用户重新运行 vmware-user-suid-wrapper 命令,问题得以解决;
Q:(09/15/23)在 Linux Guest 中,剪贴板共享无法正常工作,无法将复制内容同步到 Windows Guest 中?
A:
安装 VMware Tools 扩展
for Linux
Manually Installing VMware Tools on a Linux Virtual Machine
open-vm-tools/README.md at master · vmware/open-vm-tools · GitHub
How to Install VMware Tools on Ubuntu/Debian VMware Virtual Machine
Q:我们的 Guest VM: Ubuntu 20.04 未显示 Install VMware Tools 按钮?
A:适用于 Linux 虚拟机的 VMware Tar Tool 在版本 10.3.10 中功能冻结,因此 Workstation Pro 中包含的 tar 工具 (linux.iso) 为 10.3.10,不会更新。鉴于此更改,部分 Linux VM 的 Install/Update/Reinstall VMware Tools 菜单按钮被禁用;
根据官方文档建议,安装 Open VM Tools 模块:
# https://github.com/vmware/open-vm-tools/blob/master/README.md apt-get install -y open-vm-tools open-vm-tools-desktop
改进
[Sol.] … Unable to change virtual machine power state: Directory not empty …
问题描述
当启动虚拟机时,产生 Unable to change virtual machine power state: Directory not empty 错误
原因分析
在我们的场景中,我们强制重启 Host 系统,导致 VMDK 的文件锁没有释放,所以当再次启动虚拟机时,VMware Workstation 判定相关的虚拟磁盘正被占用;
解决方案
删除 <VM Name>/*.lck 文件;