使用Ultralso工具 参考 https://blog.csdn/Akilarex/article/details/89089272
1,安装ubuntu 16.04 LTS 桌面版
2,系统安装完成后,更新apt源,安装openssh-server,vim 等必要软件
3,安装xen-hypervisor
sudo apt install xen-hypervisor -y
4, 安装完成后重启系统
5,重启登录后,通过命令
sudo xl list
如果能看到Domain-0则说明Xen安装成功并能正常运行
6,安装vm管理工具
sudo apt-get install virtinst virt-viewer virt-manager
7,安装windows远程登录支持
#安装xrdp
sudo apt-get install xrdp
#安装vnc4server
sudo apt-get install vnc4server tightvncserver
#安装xubuntu-desktop
sudo apt-get install xubuntu-desktop
#向xsession中写入xfce4-session
echo xfce4-session >~/.xsession
#重启xrdp服务
sudo service xrdp restart

遇到的问题:
1,安装xen-hypervisor之后重启,系统无法启动,卡在:
parport_pc.956 Unable to set coherent dma mask: disabling DMA
经测试ubuntu 18.04 + xen-hypervisor-4.9-amd64 有此问题, ubuntu 16.04 + xen-hypervisor-4.6-amd64 可以正常启动
2,使用命令sudo xl create -c fortiweb-vm-64.hvm 创建 fwb vm 失败,没有找到桥接口
修改文件/etc/network/interfaces, 添加如下内容
vim /etc/network/interfaces

auto xenbr0
iface xenbr0 inet static
bridge_ports enp6s0
address 10.200.2.81
netmask 255.255.0.0
gateway 10.200.0.1
nameserver 180.76.76.76

auto enp6s0
iface enp6s0 inet manual

修改完成后重启

3,安装完xrdp 远程登录 服务器,table键 不能正常使用
这是因为table键被占用,在桌面application->settings->window manager ->keybord 设置中,把Super Table 快捷键clear 即可

更多推荐

xen环境搭建