菜鸟求助

Kvm、VMware、Virtualbox、Xen、Qemu 等
回复
huisong83
帖子: 2
注册时间: 2007-08-07 12:43
送出感谢: 0
接收感谢: 0

菜鸟求助

#1

帖子 huisong83 » 2007-08-07 12:48

刚开始接解ubuntu
所以是在XP环境下用虚拟机装的ubuntu
但不知该如何用虚拟机中的ubuntu来访问物理主机XP系统中的硬盘和文件夹?
我的虚拟机用的是virtualbox
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙
送出感谢: 4 次
接收感谢: 256 次

#2

帖子 eexpress » 2007-08-07 13:24

这个,论坛好多。还有virtualbox的pdf。
● 鸣学
huisong83
帖子: 2
注册时间: 2007-08-07 12:43
送出感谢: 0
接收感谢: 0

#3

帖子 huisong83 » 2007-08-07 16:00

这个论坛是很多,不过大部分都是主机是ubuntu,虚拟机里装XP的
而我的是主机是XP系统,虚拟机里装备ubuntu的
好难找啊!!
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙
送出感谢: 4 次
接收感谢: 256 次

官网有pdf下载的啊。

#4

帖子 eexpress » 2007-08-07 16:07

5.4. Folder Sharing
Shared Folders allow you to access files of your host system from within the guest system, much
like ordinary shares on Windows networks would -- except that shared folders do not need a net-
working setup. Sharing is accomplished using a special service on the host and a file system driver
for the guest, both of which are provided by VirtualBox.
In order to use this feature, the VirtualBox Guest Additions have to be installed. Currently, Shared
Folders are limited to Windows XP, Windows 2000 and Linux 2.4 and 2.6 guests.
To declare a folder as shared to VirtualBox, you specify a certain path on the host (which will be-
come the shared folder) and give it a "share name" that only VirtualBox will use. Using this share
name, which the VirtualBox Shared Folders service will provide to the guest, a drive letter mapping
can be performed in the guest.
Shares are created using the VBoxManage command line interface; see Chapter 7, VBoxManage ref-
erence. The command is as follows:
VBoxManage sharedfolder add "VM name" -name "sharename" -hostpath "C:\test"
There are three types of shares:
1. global shares which are available to all VMs;
2. VM shares which are only available to the VM for which they have been defined;
3. transient VM shares, which can be added and removed at runtime and do not persist after a VM
has stopped; for these, add the -transient option to the above command line.
Then, you can mount the shared folder from inside a VM the same way as you would mount an or-
dinary network share:
• In a Windows guest, use the following command:
net use x: \\vboxsvr\sharename
Replace "x:" with the drive letter that you want to use for the share, and sharename with the
share name specified with VBoxManage.
• In a Linux guest, use the following command:
mount -t vboxsf [-o OPTIONS] sharename mountpoint
Replace sharename with the share name specified with VBoxManage, and mountpoint with
the path where you want the share to be mounted (e.g. /mnt/share). The usual mount rules ap-
ply, that is, create this directory first if it does not exist yet.
Beyond the standard options supplied by the mount command, the following OPTIONS are avail-
able:
iocharset CHARSET
38
Configuring virtual machines
to set the character set used for I/O operations (utf8 by default) and
convertcp CHARSET
to specify the character set used for the shared folder name (utf8 by default).
● 鸣学
回复

回到 “虚拟机和虚拟化”