vbox虚拟机像vm那样使用物理磁盘啊!
-
- 帖子: 89
- 注册时间: 2008-11-18 8:50
vbox虚拟机像vm那样使用物理磁盘啊!
vbox也是一款好用的虚拟,机而且而且还是开源的。windows 下用过。ubuntu下也用过。
好像没有发现能够使用虚拟磁盘的功能。网上有帖子说帮助文档的124页的第99节,有说明写可以用,但是英文的看不懂啊。
有没有用过的朋友帮助说一下。
好像没有发现能够使用虚拟磁盘的功能。网上有帖子说帮助文档的124页的第99节,有说明写可以用,但是英文的看不懂啊。
有没有用过的朋友帮助说一下。
-
- 帖子: 89
- 注册时间: 2008-11-18 8:50
Re: vbox虚拟机像vm那样使用物理磁盘啊!
写错了,是使用物理磁盘。
- 自由建客
- 帖子: 13468
- 注册时间: 2008-07-30 23:21
- 系统: Debian stable AMD64
Re: vbox虚拟机像vm那样使用物理磁盘啊!
用静态分配的映象文件是一样的,而且更安全,只是创建时费些时间而已
- 吴广德
- 帖子: 347
- 注册时间: 2006-10-26 9:24
- 系统: Ubuntu 18.04 LTS
- 来自: 中国-广西-南宁
Re: vbox虚拟机像vm那样使用物理磁盘啊!
放弃吧楼主,Vbox现在是不能使用物理盘的......
Ubuntu 18.04 LTS使用中......
主板:MSI Z97 gaming 9 ACK
CPU:I7 4790K
内存:DDR3 8G x 4 = 32G
硬盘:60G SSD(/) + 1T HD(/home)
显示器:Philips 274E5Q
主板:MSI Z97 gaming 9 ACK
CPU:I7 4790K
内存:DDR3 8G x 4 = 32G
硬盘:60G SSD(/) + 1T HD(/home)
显示器:Philips 274E5Q
-
- 帖子: 89
- 注册时间: 2008-11-18 8:50
Re: vbox虚拟机像vm那样使用物理磁盘啊!
谢谢,两位朋友。。
- photor
- 论坛版主
- 帖子: 11004
- 注册时间: 2008-04-26 12:41
Re: vbox虚拟机像vm那样使用物理磁盘啊!
当然可以用物理磁盘,这个坛子里就有帖,自己搜吴广德 写了:放弃吧楼主,Vbox现在是不能使用物理盘的......
- 吴广德
- 帖子: 347
- 注册时间: 2006-10-26 9:24
- 系统: Ubuntu 18.04 LTS
- 来自: 中国-广西-南宁
Re: vbox虚拟机像vm那样使用物理磁盘啊!
呃,更正一下,我在2.1.4版的VBox帮助文件里找到了这个9.10.1. Access to entire physical hard disk
While this variant is the simplest to set up, you must be aware that this will give a guest operating system direct and full access to an entire physical disk. If your host operating system is also booted from this disk, please take special care to not access the partition from the guest at all. On the positive side, the physical disk can be repartitioned in arbitrary ways without having to recreate the image file that gives access to the raw disk.
To create an image that represents an entire physical hard disk (which will not contain any actual data, as this will all be stored on the physical disk), on a Linux host, use the command
VBoxManage internalcommands createrawvmdk -filename /path/to/file.vmdk
-rawdisk /dev/sda
This creates the image /path/to/file.vmdk (must be absolute), and all data will be read and written from /dev/sda.
On a Windows host, instead of the above device specification, use e.g. \\.\PhysicalDrive0.
Creating the image requires read/write access for the given device. Read/write access is also later needed when using the image from a virtual machine.
Just like with regular disk images, this does not automatically register the newly created image in the internal registry of hard disks. If you want this done automatically, add -register:
VBoxManage internalcommands createrawvmdk -filename /path/to/file.vmdk
-rawdisk /dev/sda -register
After registering, you can assign the newly created image to a virtual machine with
VBoxManage modifyvm WindowsXP -hda /path/to/file.vmdk
When this is done the selected virtual machine will boot from the specified physical disk.
Ubuntu 18.04 LTS使用中......
主板:MSI Z97 gaming 9 ACK
CPU:I7 4790K
内存:DDR3 8G x 4 = 32G
硬盘:60G SSD(/) + 1T HD(/home)
显示器:Philips 274E5Q
主板:MSI Z97 gaming 9 ACK
CPU:I7 4790K
内存:DDR3 8G x 4 = 32G
硬盘:60G SSD(/) + 1T HD(/home)
显示器:Philips 274E5Q
-
- 帖子: 89
- 注册时间: 2008-11-18 8:50
Re: vbox虚拟机像vm那样使用物理磁盘啊!
说是可以,具体怎么操作啊,是不是有两个版本一个是收费的。
现在用的免费的是不是没有这个功能啊,,
现在用的免费的是不是没有这个功能啊,,
- photor
- 论坛版主
- 帖子: 11004
- 注册时间: 2008-04-26 12:41
Re: vbox虚拟机像vm那样使用物理磁盘啊!
vbox从来没有收费版清 凉散 人 写了:说是可以,具体怎么操作啊,是不是有两个版本一个是收费的。
现在用的免费的是不是没有这个功能啊,,
- 吴广德
- 帖子: 347
- 注册时间: 2006-10-26 9:24
- 系统: Ubuntu 18.04 LTS
- 来自: 中国-广西-南宁
Re: vbox虚拟机像vm那样使用物理磁盘啊!
以很烂的英文水平简单译一下好了
9.10.1. Access to entire physical hard disk
使用“整个”物理硬盘
While this variant is the simplest to set up, you must be aware that this will give a guest operating system direct and full access to an entire physical disk. If your host operating system is also booted from this disk, please take special care to not access the partition from the guest at all. On the positive side, the physical disk can be repartitioned in arbitrary ways without having to recreate the image file that gives access to the raw disk.
这段太长,不好译(主要是我英文烂),要点就是提醒你──如果你的主系统在这块硬盘上,那就不要轻易拿来给虚拟机“使用”。
To create an image that represents an entire physical hard disk (which will not contain any actual data, as this will all be stored on the physical disk), on a Linux host, use the command
VBoxManage internalcommands createrawvmdk -filename /path/to/file.vmdk
-rawdisk /dev/sda
建立vmdk硬盘文件的命令(Linux系统里):
VBoxManage internalcommands createrawvmdk -filename /path/to/file.vmdk -rawdisk /dev/sda
大意就是──[命令] [文件名] [文件的绝对路径] [-rawdisk参数] [硬盘位置]
This creates the image /path/to/file.vmdk (must be absolute), and all data will be read and written from /dev/sda.
告诉你虽然建立了vmdk文件,但全部数据的读写都是在物理硬盘上......
On a Windows host, instead of the above device specification, use e.g. \\.\PhysicalDrive0.
Creating the image requires read/write access for the given device. Read/write access is also later needed when using the image from a virtual machine.
Just like with regular disk images, this does not automatically register the newly created image in the internal registry of hard disks. If you want this done automatically, add -register:
VBoxManage internalcommands createrawvmdk -filename /path/to/file.vmdk
-rawdisk /dev/sda -register
After registering, you can assign the newly created image to a virtual machine with
VBoxManage modifyvm WindowsXP -hda /path/to/file.vmdk
When this is done the selected virtual machine will boot from the specified physical disk.
Windows就不译了,呵呵
9.10.1. Access to entire physical hard disk
使用“整个”物理硬盘
While this variant is the simplest to set up, you must be aware that this will give a guest operating system direct and full access to an entire physical disk. If your host operating system is also booted from this disk, please take special care to not access the partition from the guest at all. On the positive side, the physical disk can be repartitioned in arbitrary ways without having to recreate the image file that gives access to the raw disk.
这段太长,不好译(主要是我英文烂),要点就是提醒你──如果你的主系统在这块硬盘上,那就不要轻易拿来给虚拟机“使用”。
To create an image that represents an entire physical hard disk (which will not contain any actual data, as this will all be stored on the physical disk), on a Linux host, use the command
VBoxManage internalcommands createrawvmdk -filename /path/to/file.vmdk
-rawdisk /dev/sda
建立vmdk硬盘文件的命令(Linux系统里):
VBoxManage internalcommands createrawvmdk -filename /path/to/file.vmdk -rawdisk /dev/sda
大意就是──[命令] [文件名] [文件的绝对路径] [-rawdisk参数] [硬盘位置]
This creates the image /path/to/file.vmdk (must be absolute), and all data will be read and written from /dev/sda.
告诉你虽然建立了vmdk文件,但全部数据的读写都是在物理硬盘上......
On a Windows host, instead of the above device specification, use e.g. \\.\PhysicalDrive0.
Creating the image requires read/write access for the given device. Read/write access is also later needed when using the image from a virtual machine.
Just like with regular disk images, this does not automatically register the newly created image in the internal registry of hard disks. If you want this done automatically, add -register:
VBoxManage internalcommands createrawvmdk -filename /path/to/file.vmdk
-rawdisk /dev/sda -register
After registering, you can assign the newly created image to a virtual machine with
VBoxManage modifyvm WindowsXP -hda /path/to/file.vmdk
When this is done the selected virtual machine will boot from the specified physical disk.
Windows就不译了,呵呵
Ubuntu 18.04 LTS使用中......
主板:MSI Z97 gaming 9 ACK
CPU:I7 4790K
内存:DDR3 8G x 4 = 32G
硬盘:60G SSD(/) + 1T HD(/home)
显示器:Philips 274E5Q
主板:MSI Z97 gaming 9 ACK
CPU:I7 4790K
内存:DDR3 8G x 4 = 32G
硬盘:60G SSD(/) + 1T HD(/home)
显示器:Philips 274E5Q
- yaska
- 帖子: 1169
- 注册时间: 2007-10-28 21:35
Re: vbox虚拟机像vm那样使用物理磁盘啊!
可以。。
早就用来测试 U盘启动了。。
早就用来测试 U盘启动了。。
-
- 帖子: 89
- 注册时间: 2008-11-18 8:50
Re: vbox虚拟机像vm那样使用物理磁盘啊!
谢谢朋友们。。