这样的系统转换方案可行吗?

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
头像
百草谷居士
帖子: 3918
注册时间: 2006-02-10 16:36
系统: Mint21.1/Deepin20.8

这样的系统转换方案可行吗?

#1

帖子 百草谷居士 » 2008-01-08 12:50

我现在使用的是windows2003系统,在虚拟机上安装的ubuntu,现在想倒过来,使用ubuntu,在虚拟机上运行windows2003。

一、目前基本情况。电脑上有两个硬盘:磁盘0 有三个分区,分区0安装的windows2003,主要运行一个sql server数据库服务器;分区1是存放的文档资料和数据库;分区2没有太大用处。磁盘1 只有一个分区,存放的资料。
这些分区都是ntfs格式。现在我已经在磁盘1后面用分区调整工具 调整出来大约20G的空间。

二、方案
1、在cmos改变启动硬盘,使用磁盘1启动;
2、在磁盘1 的20G 空间中安装ubuntu 7.10;(考虑装server版,然后加装desktop环境)
3、安装virtualbox虚拟机软件;
4、建立一个windows虚拟机,直接使用磁盘0作为虚拟机的硬盘。
5、把 windows虚拟机 加载到启动项里,这样即使我不登录ubuntu,只要开机虚拟的windows2003也会自动运行,不影响其他机器使用sql server数据库。(怎么加载到启动项还不太清楚怎么办)。
debian 12 / 深度系统 20.9 / Mint 21.3

为何热衷于搞发行版的多,搞应用程序开发的少?Linux最多余的就是各种发行版,最缺的就是应用程序,特别是行业应用程序。
头像
ljj_jjl2008
论坛版主
帖子: 14255
注册时间: 2007-09-16 8:29

#2

帖子 ljj_jjl2008 » 2008-01-08 13:33

1,你用sql server数据库,要求的内存比较大,对网卡要求比较高,在虚拟机里面性能很低。
2,vbox不能用硬盘作为虚拟机的硬盘,只能是文件。
3,虚拟机需要用户权限,不登录ubuntu好像不能启动。

你的方案不可行。
头像
pxw816
帖子: 296
注册时间: 2007-10-16 19:29

#3

帖子 pxw816 » 2008-01-08 15:05

建议虚拟机使用VMware server,是专业为服务器虚拟机开发滴
cpu:Intel(R) Core(TM)2 Quad CPU Q6600
mem:2GB DDR2 800 *4
disk:ide320GB+(640GB+640GB)raid
video:Nvidia GTX 260+
network: Atheros AR8121/AR8113
monitor: BENQ FP92W
OS: ubuntu
头像
百草谷居士
帖子: 3918
注册时间: 2006-02-10 16:36
系统: Mint21.1/Deepin20.8

#4

帖子 百草谷居士 » 2008-01-08 15:48

vbox可以使用硬盘作为虚拟机磁盘的,帮助中这样说:
9.9 Using a raw host hard disk from a guest

Starting with version 1.4, as an alternative to using virtual disk images (as described in detail in chapter 5, Virtual storage, page 54), VirtualBox can also present either entire physical hard disks or selected partitions thereof as virtual disks to virtual machines. With VirtualBox, this type of access is called “raw hard disk access”; it allows a guest operating system to access its virtual hard disk much more quickly than with disk images, since data does not have to pass through two file systems (the one in the guest and the one on the host).

Warning: Raw hard disk access is for expert users only. Incorrect use or use of an outdated configuration can lead to total loss of data on the physical disk. Most importantly, do not attempt to boot the partition with the currently running host operating system in a guest. This will lead to severe data corruption.

Raw hard disk access – both for entire disks and individual partitions – is implemented as part of the VMDK image format support (see chapter 5.2, VMDK image files, page 56). As a result, you will need to create a special VMDK image file which defines where the data will be stored. After creating such a special VMDK image, you can use it like a regular virtual disk image. For example, you can use the Virtual Disk Manager (chapter 3.5, The Virtual Disk Manager, page 34) or VBoxManage to assign the image to a virtual machine.
debian 12 / 深度系统 20.9 / Mint 21.3

为何热衷于搞发行版的多,搞应用程序开发的少?Linux最多余的就是各种发行版,最缺的就是应用程序,特别是行业应用程序。
头像
ljj_jjl2008
论坛版主
帖子: 14255
注册时间: 2007-09-16 8:29

#5

帖子 ljj_jjl2008 » 2008-01-08 16:03

我也看了一下帮助,楼主说的对,应该是可以使用物理硬盘作为虚拟硬盘的,不过帮助中有警告,说这样有潜在危险。

你的这个方案的主要问题在sql server上,我不推荐你的方案。
头像
百草谷居士
帖子: 3918
注册时间: 2006-02-10 16:36
系统: Mint21.1/Deepin20.8

#6

帖子 百草谷居士 » 2008-01-09 12:14

这个sql server并没有太大负荷,所以性能不用考虑。
现在我考虑的问题主要有:
1、要ubuntu能够访问 磁盘0 才能提供给vbox使用,但同时带来一个问题:ntfs既然分配给了vbox,那么如果不小心ubuntu访问了 磁盘0,会造成什么问题?读取可行不?写入可行不?

2、vbox能不能靠加入 /etc/rc.local 文件方式在用户登录前启动,我想应该可以,但是对用户登录有没有影响。

3、在已经安装ubuntu的情况下,能不能使用pqmagic之类的工具再对分区进行大小调整?或者将原来的ntfs分区转换?
debian 12 / 深度系统 20.9 / Mint 21.3

为何热衷于搞发行版的多,搞应用程序开发的少?Linux最多余的就是各种发行版,最缺的就是应用程序,特别是行业应用程序。
回复