最终目的是在lxd部署windows2008镜像
WindowsServer2008镜像:
cn_windows_server_2008_r2_standard_enterprise_datacenter_and_web_with_sp1_x64_dvd_617598.iso
镜像参考链接:
https://discussion.scottibyte.com/t/migrate-a-hyper-v-windows-virtual-machine-to-a-lxd-vm/263
平台:海光服务器
在海光平台的华三服务器上部署了KVM以及virt-manager。
Base Board Information
Manufacturer: H3C
Product Name: RS41M2C5SCF
Version: 0302A7J2
Serial Number: 02A7J2523CC001YN
Asset Tag: OEM Define
Features:
Board is a hosting board
Board is replaceable
Location In Chassis: Chassis Location
Chassis Handle: 0x0033
Type: Motherboard
Contained Object Handles: 0
Handle 0x0033, DMI type 3, 22 bytes
Chassis Information
Manufacturer: H3C
Type: Rack Mount Chassis
Lock: Not Present
Version: 0235A4BM
Serial Number: 210235A4BM5241C00080
Asset Tag: OEM Define
Boot-up State: Safe
Power Supply State: Safe
Thermal State: Safe
Security Status: None
OEM Information: 0x00000000
Height: 2 U
Number Of Power Cords: 2
Contained Elements: 0
SKU Number: Default String
Handle 0x0008, DMI type 4, 48 bytes
Processor Information
Socket Designation: CPU1
Type: Central Processor
Family: Other
Manufacturer: Chengdu Hygon
ID: 22 0F 90 00 FF FB 8B 17
Version: Hygon C86 7380 32-core Processor
Voltage: 1.0 V
External Clock: 100 MHz
Max Speed: 3000 MHz
Current Speed: 2200 MHz
Status: Populated, Enabled
Upgrade: Socket SP3
L1 Cache Handle: 0x0005
L2 Cache Handle: 0x0006
L3 Cache Handle: 0x0007
Serial Number: 682F-C1E809BF
Asset Tag:
Part Number:
Core Count: 32
Core Enabled: 32
Thread Count: 64
Characteristics:
64-bit capable
Multi-Core
Hardware Thread
Execute Protection
Enhanced Virtualization
Power/Performance Control
思路
通过kvm安装导出qcow2镜像,在封装成DAPSP镜像压缩格式
通过virt-manager安装
出现的问题
遇到如上文,想换个思路试试
通过在virtualbox中通过将系统打在vmdk虚拟机磁盘中的方式:
再通过git bash 传送过去
通过qemu-img工具进行格式转换,转换过程中有了压缩
qemu-img convert -c -f vmdk -O qcow2 win2008-1_2.vmdk win2008-1_2.qcow2
将压缩文件传送到images目录下
cp win2008-1_2.vmdk /var/lib/libvirt/images/
再通过virt-manager打开镜像文件
但是一直无法加载系统
virtualBox uef形式启动
另一个方案就是通过在virtualbox里面通过uefi形式启动,不过实践证明错误:win2008 server版本不支持uef
在x86的上通过BIOS启动
启动成功,但是DAPSP平台导入镜像必须是uef格式启动,并且还需要做biso的底层配置,所以此方案暂时还不能用
折中方案
选用高版本的windows镜像
/********-2019-x86_64-kvm-40.qcow2
scp **s-server-2019-x86_64-kvm-40.qcow2 root@xx.160:/root
40GB系统盘,需要通过离线的方式文件形式导入到服务器内,由此带来的问题时携带不方便,选择的范围面小。