All Projects → dylanbai8 → Onekey_OpenVZ_Install_Windows

dylanbai8 / Onekey_OpenVZ_Install_Windows

Licence: other
OpenVZ虚拟化(架构)VPS 一键安装 Windows 系统

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Onekey OpenVZ Install Windows

blog
retrohunblog
Stars: ✭ 46 (-41.77%)
Mutual labels:  qemu
UTM
Virtual machines for iOS and macOS
Stars: ✭ 16,904 (+21297.47%)
Mutual labels:  qemu
armv8-bare-metal
No description or website provided.
Stars: ✭ 72 (-8.86%)
Mutual labels:  qemu
bsod-kernel-fuzzing
BSOD: Binary-only Scalable fuzzing Of device Drivers
Stars: ✭ 130 (+64.56%)
Mutual labels:  qemu
Aqeous
(Inactive, Checkout AvanaOS, Rewrite of this) This is a New Operating System (Kernel right now). Made completely from scratch, We aim to make a complete OS for Learning purpose
Stars: ✭ 23 (-70.89%)
Mutual labels:  qemu
docker-routeros
Mikrotik RouterOS inside Docker container
Stars: ✭ 225 (+184.81%)
Mutual labels:  qemu
vmdashboard
web-based open source virtualization management interface for QEMU and KVM virtual machines
Stars: ✭ 66 (-16.46%)
Mutual labels:  qemu
quickgui
A Flutter frontend for quickget and quickemu.
Stars: ✭ 490 (+520.25%)
Mutual labels:  qemu
platypus-os
OS for pentesting, programming, and playing video games. Contributions welcome!
Stars: ✭ 23 (-70.89%)
Mutual labels:  qemu
python-negotiator
Scriptable KVM/QEMU guest agent implemented in Python
Stars: ✭ 40 (-49.37%)
Mutual labels:  qemu
TTstack
A private-cloud solution for SMEs !
Stars: ✭ 55 (-30.38%)
Mutual labels:  qemu
vps host server
VPS Hosting Server Daemon for provisioning, monitoring, and communications with the central system.
Stars: ✭ 12 (-84.81%)
Mutual labels:  openvz
FirmWire
FirmWire is a full-system baseband firmware emulation platform for fuzzing, debugging, and root-cause analysis of smartphone baseband firmwares
Stars: ✭ 555 (+602.53%)
Mutual labels:  qemu
Melvix
💻 A small operating system written from scratch
Stars: ✭ 69 (-12.66%)
Mutual labels:  qemu
kubash
Kubash - the K8$ shell for your kube clusters
Stars: ✭ 20 (-74.68%)
Mutual labels:  qemu
docker-minix
QEMU-based Docker image for Minix 3, based on the official CD-ROM ISO image installation from the Minix website
Stars: ✭ 31 (-60.76%)
Mutual labels:  qemu
cv4pve-api-php
Proxmox VE Client API for PHP
Stars: ✭ 45 (-43.04%)
Mutual labels:  qemu
simonpi
A quick & dirty script to emulate Raspberry PI family devices on your laptop.
Stars: ✭ 61 (-22.78%)
Mutual labels:  qemu
chaos-2
A hand-made SMP-aware kernel
Stars: ✭ 20 (-74.68%)
Mutual labels:  qemu
node-qemu-server
Free GUI / Frontend / Management tool for simple setup, configure and control virtual machines (qemu / kvm) within your HTML5 Webbrowser. Virtualization with Node.js / Currently under complete rewrite.
Stars: ✭ 41 (-48.1%)
Mutual labels:  qemu

OpenVZ虚拟化(架构)VPS 一键安装 Windows 系统

测试环境为 Debian7 (理论上支持 Debian Ubuntu 系列的大部分系统)

wget -N --no-check-certificate git.io/w.sh && chmod +x w.sh && bash w.sh


为 Debian/Ubuntu 安装远程桌面

依次执行 1、4

如果需要使用浏览器 依次执行 1、2、4

为 Dbian/Ubuntu 安装 WindowsXP

依次执行 3、4

默认启动内存为 512M 如果需要修改启动内存 依次执行 3、6、4

安装自定义 Windows 系统 (iOS 镜像)

执行 7 按提示操作


注意事项

1.如果安装完后 VNC桌面空白,查看是否有 Sub-process /usr/bin/dpkg returned an error code (1) 报错

解决办法1:
执行 rm /var/lib/dpkg/info/$nomdupaquet* -f 后重新安装

解决办法2:
更换源 或者更换系统

2.关于OpenVZ
在OpenVZ构架的VPS内安装Windows系统 CPU很容易100%运行
长期CPU、内存爆满 一般主机商不允许这样做 可能被判定为滥用而停封(短暂测试几小时或者一半天是没有问题的)

脚本的实现原理为在Debian/Ubuntu系统内使用qemu虚拟化工具安装运行了一个Windows虚拟机
因此,你为Windows系统分配的硬件资源应尽量的小于vps实际配置
举例:假如你的vps为2核CPU、2G内存,那么你分配给Windows的硬件资源应为1核CUP、1G内存,或者更少。这样以防止资源爆满

如果测试中你的vps不幸被停封了,发工单解释情况(随便编个理由),一般都是可以解封的
如果你需要长期运行Windows,一定要尽量使用少的资源,推荐不超过vps实际硬件资源的50%


开机自启动 Windows 虚拟机

编辑 /etc/rc.local
在 exit 0 前新增加一行 粘贴以下代码(具体配置可以自行修改)

qemu-system-x86_64 -hda /root/IMG/win.img -m 512M -smp 1 -daemonize -vnc :2 -net nic,model=virtio -net user -redir tcp:3389::3389

【修改端口映射】
默认主机仅将远程桌面3389端口转发至Windows系统 如果是用来运行程序(如建站)可能需要转发如80、443、22等端口
只需修改末尾 添加多个端口即可 如:-redir tcp:3389::3389 -redir tcp:443::443 -redir tcp:80::80
具体格式为 -redir [tcp|udp]:host-port::guest-port

查看端口是否正常映射:
lsof -i:"3389"
有返回内容即为映射正常

【修改其它配置】
-m 512M 表示内存为512M
-smp 2 表示使用两个CPU核心
-daemonize 在后台运行虚拟机
-vnc :2 开启vnc远程访问 其中:2标识vnc端口
-net nic,model=virtio -net user 即网络为NAT方式 OpenVZ充当虚拟机的网关和防火墙
-redir tcp:3389::3389 重定向虚拟机的3389端口到主机的网络界面上
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].