全球主机交流论坛

标题: 关于DD安装windows镜像的制作方法,joodle的方法能够实现? [打印本页]

作者: weifenghhu    时间: 2017-2-27 16:53
提示: 作者被禁止或删除 内容自动屏蔽
作者: ahao358    时间: 2017-2-28 01:21
那博客只是简明方法,关键是dd部分!
你要了解的内容,应该去天空学习封装和驱动集成!
作者: lcslan    时间: 2017-2-28 01:25
网卡驱动已经集成
作者: weifenghhu    时间: 2017-2-28 11:31
提示: 作者被禁止或删除 内容自动屏蔽
作者: weifenghhu    时间: 2017-2-28 11:32
提示: 作者被禁止或删除 内容自动屏蔽
作者: ahao358    时间: 2017-2-28 16:11
weifenghhu 发表于 2017-2-28 11:31
it天空的封装我大致会,封装玩怎么制作gz打包呢?

那博客已经说到用DD打包的,仔细看看。
也就是通过SSHFS将远程VPS指定目录虚拟成本地目录(磁盘),然后通过DD命令打包并压缩为文件到远程。如果你本地有两个磁盘,你可以省却了SSHFS这步:)
那编文章重点在于:
Once the Terminal has opened we will be inserting a few commands there. First one is “sudo -i” without the quotes to make ourself the root user.
Now create a new directory: “mkdir /mnt/temp”. Once that is done install SSHFS using “apt-get install sshfs”. Now, you will need a VPS or Server with at least 5GB disk space available. We will be uploading the template to that server while we are dumping the disk.
Now mount the external storage using the following command: “sudo sshfs root@YOURVPSIP:/home /mnt/temp”
Once that is done create a DD (dump) of the disk using the following command: “dd if=/dev/sda | gzip -1 | dd of=/mnt/temp/WindowsTemplate.gz”

前面部分是教你如何通过Proxmox安装(制作)WIN模版,如果目标环境一样,那直接将制作的GZ文件DD到目标机器即可;如果环境不一样,那还需要集成相应的驱动,比如 virtio 磁盘和网卡,或者目标为实体机,而系统无相应驱动,特别是网卡和磁盘驱动(无网卡驱动就无法连接网络,无磁盘驱动会导致蓝屏);封装用于解决蓝屏和SID重复(特殊应用情况);再有如果目标机器是实体机又无KVM(远程服务器)也不能自动获取IP的情况下,还要考虑通过脚本在启动后能自动配置网络参数。具体要根据你实际应用而定。
作者: ahao358    时间: 2017-2-28 23:08
ahao358 发表于 2017-2-28 16:11
那博客已经说到用DD打包的,仔细看看。
也就是通过SSHFS将远程VPS指定目录虚拟成本地目录(磁盘),然后 ...

cmd,BAT




欢迎光临 全球主机交流论坛 (https://fd.vvwvv.eu.org/) Powered by Discuz! X3.4