下载制作完成的虚拟机镜像
wget http://192.168.1.1/vps.img -P /etc/xen/
建立配置文件:
# vim /etc/xen/vps
name = "vps"
uuid = "38c36e77-fdea-6839-ed9e-6eae22f52cd4"
maxmem = 3584
memory = 3584
vcpus = 4
bootloader = "/usr/bin/pygrub"
on_poweroff = "destroy"
on_reboot = "restart"
on_crash = "restart"
disk = [ "tap:aio:/etc/xen/vps.img,xvda,w" ]
vif = [ "mac=00:16:36:70:d0:39,bridge=xenbr0,script=vif-bridge" ]
时间: 2024-12-10 12:41:57