Tạo virtualbox sử dụng kích thước toàn màn hình trong windows 8

I am using VirtualBox to create multiple virtual machines running Ubuntu Linux, then configuring them khổng lồ create a virtual network. This virtual network is then used for testing & demonstrating basic networking and security concepts & technologies. The approach is to lớn create a base virtual machine và the clone it multiple times khổng lồ create nodes in the network. Each node needs minor configuration, such as setting IP addresses and routes for the network interfaces. I have detailed instructions so that hopefully anyone can create their own virtual network.

To make the creation of the virtual network easier and faster, my alặng is to automate as many steps as possible. The ultimate goal is that someone can tải về a base virtual machine image, specify the desired network topology, và then run a program that creates that virtual network. This article describes my current work towards this goal.

Bạn đang xem: Tạo virtualbox sử dụng kích thước toàn màn hình trong windows 8

Currently I am constantly testing and improving the steps to automate the virtual network creation. The steps và scripts are poorly designed, implemented và tested. But they work for me và so may be of use lớn others. However I recommend anyone using these instructions be prepared lớn for things to lớn go wrong - have sầu a backup at least of your base virtual machine.

Prepare the Host

The VirtualBox command line interface, VBoxManage, và a set of Bash shell scripts (& some comtháng Unix/Linux commands) are used lớn automate the creation of the virtual network. VBoxManage is installed when VirtualBox is installed. To run the scripts, Bash shell is needed. Bash is supported on most Unix-lượt thích operating systems, including Linux and OS X. For Windows, Bash can be run using Cygwin. I have developed the Bash scripts using Ubuntu Linux as the host operating. Some quiông xã testing confirmed that worked also in Cygwin on Windows 7. Further testing is needed lớn ensure they work successfully on other operating systems. If the scripts vị not work on your host, you are stuông chồng with using the manual steps.

There are several steps to lớn perkhung on your host computer before you can create a virtual network. The first steps, which apply to lớn all host operating systems, are to:

Unpachồng the downloaded virtual machine into a directory called base và open it in VirtualBox from the thực đơn Machine -> Add...

Now proceed to lớn the instructions specific to lớn your operating system. A 5 minute thử nghiệm of performing these steps on Ubuntu Linux is below.

Ubuntu Linux

I have tested on Ubuntu Linux 12.04 LTS và Ubuntu Linux 14.04 LTS. It"s highly likely other Linux distributions will also work successfully.

Microsoft Windows

I have sầu tested on Microsoft Windows 7. I hope it will also work in Windows 8.

Selecting Packages for Cygwin on Windows

Once Cygwin is installed, start it và you will be give a shell prompt (i.e. terminal). All subsequent commands are run in Cygwin terminal.

The next step is khổng lồ cài đặt the Subversion repository. After that is complete, there is a small step specific to lớn Windows lớn make VBoxManage available in your path.

Mac OS X

This has been successfully tested on OSX 10.8. Subversion is needed. If you don"t already have sầu it, then it is available via Xcode:

Usernames và Passwords

If you downloaded the provided base virtual machine then the username và password information is:

Default user: network; password networkRoot user: root; password networkMySQL admin password: network

If you create the base virtual machine yourself, then you may use the same passwords.

Checkout the virtnet Subversion Repository

mở cửa a terminal và proceed with the following steps. They should work on all host operating systems that tư vấn Bash.

A mix of Bash scripts & accompanying data files are used khổng lồ automate the creation of the virtual network. These are available on my virtnet Subversion repository. First create a directory called svn in your trang chủ directory.

host:~/svn/$ svn checkout https://neftekumsk.com/svn/virtnet/ This creates a directory called virtnet inside the ~/svn directory. Enter it & browse the contents. There are two sub-directories that are important at this moment:

~/svn/virtnet/bin/host/: contains the Bash scripts for running on the host.~/svn/virtnet/data/topologies/: contains the interfaces files that need lớn be copied to lớn each virtual machine that is created.

Xem thêm: Nam Sinh 1961 Hợp Hướng Nào : Nam Mạng + Nữ Mạng (2019), Xem Phong Thủy Hướng Nhà Đất Tuổi 1961 Tân Sửu

There is one more change lớn make. The permissions of a SSH private key tệp tin must be modified lớn be readable only by the user. To vì chưng so, type:

host:~/svn/$ chgrp -R Users ~/svn/virtnet/data/defaults/root/.sshIf you are using a different locale (e.g. French, German) then the group "Users" above may be different. See the answers to the questions on Superuser và Stackoverflow for more details.I have prepared some topologies that can be created automatically (you can see images of the topologies in the directory ~/svn/virtnet/data/images/). I describe how the topologies work & how to lớn create your own towards the over of this article.

Microsoft Windows (Cygwin) Only

If your host operating system is Microsoft Windows, you should now cài đặt the path to lớn VBoxManage by executing the following in the Cygwin terminal:

cygwin $ ln -s "/cygdrive/c/Program Files/Oracle/VirtualBox/VBoxManage.exe" VboxManageHere is a screenshot of using Cygwin to checkout the Stoàn quốc repository and then set the path & links lớn VBoxManage (cliông chồng on it to lớn zoom in).

SViệt Nam Checkout and Setting the Path in CygwinYou will need lớn re-run the last two commands everytime you start Cygwin. To avoid this, you can add the following two lines to the tệp tin .bash_profile:

PATH=$PATH:.ln -s "/cygdrive/c/Program Files/Oracle/VirtualBox/VBoxManage.exe" ~/svn/virtnet/bin/host/VboxManage

Create the Virtual Network

There are a number of pre-created topologies that you can choose from to quickly build a network. See them here. For this test I"ll use topology 5 which contains three nodes:

Topology 5

The rectangles in the topology diagram labelled neta & netb are switches created automatically by VirtualBox - they are not virtual machines that we need to create. The IPhường. addresses in all cases start with 192.168.. For example, interface eth1 of node 1 has IPhường address

Enter the directory containing the Bash scripts:

host:~$ cd ~/svn/virtnet/bin/host/Now run vn-createtopology with the topology number as the first (and only) parameter:

host:~/svn/virtnet/bin/host$ bash vn-createtopology 5This is the main script, which in turn calls others. You will see some output (hopefully) indicating that the virtual machines for the nodes are created. You may be prompted for a password for the root user of the base virtual machine (depending on whether or not you thiết đặt public/private keys for SSH).

If all goes well, then the new virtual machines, one for each node in the topology, will be created in VirtualBox. You can now start them and test your network. A quichồng way lớn start a VM và login khổng lồ it is to lớn use the provided script vn-ssh. It takes a parameter as an đầu vào, which indicates the node number to lớn start and login to. For example, to start node 1:

host:~/svn/virtnet/bin/host$ bash vn-ssh 1It may take a minute or so, but eventually you should be logged in to lớn node 1. Repeat for other nodes in another terminal, e.g. bash vn-ssh 2 (make sure you are in the correct directory, i.e. ~/svn/virtnet/bin/host).


If you encounter problems in setting up and using virtnet, then first see the Troubleshooting page. If that doesn"t solve sầu your problem, I recommend sending me an tin nhắn with a screenshot of the error.

Workflow Summary

One approach lớn using these scripts for creating virtual networks is:

Run vn-createtopology to create the desired topology of nodesUse the virtual networkWhen finished with the virtual network, delete the node virtual machines (when VirtualBox prompts, select lớn delete all files)Repeat from step 1.

You should delete the automatically created nodes before creating a new virtual network (or at least rename them) since the new network will use the same node names, e.g. node1, node2, node3.

The base virtual machine is not used in the virtual network. It is cloned lớn create the nodes in the network. Keep the base up to lớn date (in terms of required software packages & configuration) so when you create the virtual network the nodes will be up lớn date.

Creating Your Own Topology

See the README.txt file in the data/topologies/ directory of the Scả nước repository for an explanation of how khổng lồ create your own topology.