Вы находитесь на странице: 1из 27

1

.................................................................................................................................. 2
....................................................................................................................................... 3
........................................................................................................................ 3
................................................ 4
................................................................................ 5
................................................................................................................................ 6
...................................................... 7
.................................................................................................... 7
............................................................................................................. 8
................................................................................................................ 15
.................................................................... 20
..................................................................................... 25
....................................................................................................................................... 26

kvm-ok

1)

apt-get
aptitude

apt(

sudo apt-get install kvm


kvm-ok

sudo apt-get install qemu

qemu-img create -f qcow midisco.img 2000M

qemu -hda ~/midisco.img -cdrom ubuntu-11.04-desktop-i386.iso -m 256

qemu -hda midisco.img

kvm hda midisco.img

10

vde2
libvde2plug.

http://sourceforge.net/projects/vde/ .

vde2-2.3.1.tar.gz
tar xzvf

./configure --enable-vde
make
sudo make install

apt-get install vde2

11

vde_switch s

/tmp/switch1

show_info

help

dpipe

vde_switch s

/tmp/switch2

dpipe vde_plug /tmp/switch1 = vde_plug /tmp/switch2

12

openssh

dpipe vde_plug /tmp/switch2 = ssh l user 192.168.1.39 vde_plug


/tmp/switch1

vlan/print

vdekvm **
sudo vdekvm -net nic,macaddr=52:54:00:00:AA:02, -net
vde,vlan=0,sock=/tmp/switch2,port=2 /media/Data/midisco/midisco.img

sudo vdekvm -net nic,macaddr=52:54:00:00:AA:04, -net


vde,vlan=0,sock=/tmp/switch2,port=4 /media/Data/midisco.img

vdekvm

13

vdekvm -net nic,,macaddr=52:54:00:00:AA:02, -net


vde,vlan=0,sock=/tmp/switch1,port=3
/home/jbastida/HDD_VIRTUALES/qemu/midisco.img

vdekvm -net nic,macaddr=52:54:00:00:AA:04, -net


vde,vlan=0,sock=/tmp/switch2,port=4 /media/SD_2GB/midisco.img

ping.

ifconfig a
sudo ifconfig eth0 10.0.0.X netmask 255.255.255.0 up

14

15

enable-vde

root@roxfear-pc:/home/jbastida/Descargas/VirtualBox-4.1.2_OSE#./configure --enable-vde
--disable-hardening
Checking for environment: Determined build machine: linux.x86, target machine:
linux.x86, OK.
Checking for kBuild: found, OK.
Checking for gcc: found version 4.4.3, OK.
Checking for as86: found version 0.16.17, OK.
Checking for bcc: found version 0.16.17, OK.
Checking for iasl: found version 20090521, OK.
Checking for xslt: found, OK.
Checking for mkisofs: found genisoimage 1.1.10 (Linux), OK.
Checking for pthread: found, OK.
Checking for libxml2: found version 2.7.6, OK.
Checking for libxslt: found version 1.1.26, OK.
Checking for libIDL: found version 0.8.13, OK.
Checking for ssl: found version OpenSSL 0.9.8k 25 Mar 2009, OK.
Checking for libcurl: found version 7.19.7, OK.
Checking for zlib: found version 1.2.3.3, OK.
Checking for libpng: found version 1.2.42, OK.
Checking for SDL: found version 1.2.14, OK.
Checking for X libraries: found, OK.
Checking for Xcursor: found, OK.
Checking for Xinerama: found, OK.
Checking for Xrandr: found, OK.
Checking for Xmu: found, OK.
Checking for Mesa / GLU: found version 1.4, OK.
Checking for Qt4: found version 4.6.2, OK.
Checking for Qt4 devtools: found version 4.6.2, OK.
Checking for Python support: found version 2.6.5, OK.
Checking for Java support: OK.
Checking for PulseAudio: found version 0.9.21-63-gd3efa-dirty API version 12, OK.
Checking for static stc++ library: found, OK.
Checking for Linux kernel sources: found version 2.6.32, OK.
Checking for ALSA: found version 1.0.22, OK.
Checking for libcap library: found, OK.
Checking for compiler.h: compiler.h not found, OK.
Checking for makeself: found version 2.1.5, OK.
Successfully generated '/home/jbastida/Descargas/VirtualBox-4.1.2_OSE/AutoConfig.kmk'
and '/home/jbastida/Descargas/VirtualBox-4.1.2_OSE/env.sh'.
Source '/home/jbastida/Descargas/VirtualBox-4.1.2_OSE/env.sh' once before you start to
build VBox:
source /home/jbastida/Descargas/VirtualBox-4.1.2_OSE/env.sh
kmk
To compile the kernel modules, do:
cd ./out/linux.x86/release/bin/src
make
+++ WARNING +++ WARNING +++ WARNING +++ WARNING +++ WARNING +++ WARNING +++
Hardening is disabled. Please do NOT build packages for distribution with
disabled hardening!
+++ WARNING +++ WARNING +++ WARNING +++ WARNING +++ WARNING +++ WARNING +++
Enjoy!
----------------------------------------------------------------------------------------

virtualbox

16

17

18

dpipe vde_plug.

19

20

vde_switch
r
load

vlan/create 1
vlan/create 2

21

sudo vdekvm -net nic,macaddr=52:54:00:00:AA:02, -net vde,


sock=/tmp/switch_vde1, port=11 miserver1.img

vlan/print

vlan/print
0000 DATA END WITH '.'
VLAN 0000
-- Port 0001 tagged=0 active=1 status=Forwarding
-- Port 0011 tagged=0 active=1 status=Forwarding
.
1000 Success

port/setvlan.

vde$ port/setvlan 11 2
1000 Success
vde$ port/setvlan 12 2
1000 Success
vde$ port/setvlan 1 1
1000 Success
vde$ vlan/print
0000 DATA END WITH '.'
VLAN 0000
VLAN 0001
-- Port 0001 tagged=0 active=1 status=Forwarding
VLAN 0002
-- Port 0011 tagged=0 active=1 status=Forwarding
-- Port 0012 tagged=0 active=1 status=Forwarding
.
1000 Success

22

sudo dpipe vde_plug -p 20 /tmp/switch_vde2 = ssh -l user


192.168.25.50 vde_plug -p 20 /tmp/switch_vde1

802.1Q

sudo dpipe vde_plug -p 20 /tmp/switch_vde2 = ssh -l user


192.168.25.50 vde_plug -p 20 /tmp/switch_vde1
vlan/addport

vlan/addport 2 20
vlan/addport 1 20

vlan/addport
.

23

vlan/addport
vlan/delport

24

25

http://www.intel.com/support/processors/sb/CS030729.htm

http://support.amd.com/us/Pages/dynamicDetails.aspx?ListID=c5cd2c08-1432-4756-aafa4d9dc646342f&ItemID=177
http://www.linux-kvm.org/page/Main_Page
http://www.virtualbox.org/wiki/Virtualization
http://vde.sourceforge.net/

http://wiki.virtualsquare.org/wiki/index.php/Main_Page
http://www.archlinux.org/
http://www.guia-ubuntu.org/

http://www.ibm.com/developerworks/ssa/library/l-hypervisor/index.html
http://virt-manager.org/screenshots.html
: http://ark.intel.com/VTList.aspx

http://www.tomshardware.com/news/amd-cpu-windows-xp-mode,7739.html

http://es.wikipedia.org/wiki/VirtualBox

http://www.virtualbox.org/wiki/Guest_OSes

http://www.virtualbox.org/wiki/Licensing_FAQ

http://manpages.ubuntu.com/manpages/natty/man1/vde_l3.1.html

http://www.guia-ubuntu.org/index.php?title=Servidor_ssh
http://linux.die.net/man/1/qemu-kvm

26

http://slug.blog.aeminium.org/2011/02/21/qemu-ubuntu-maverick-usb-flashdrive/

http://wiki.virtualsquare.org/wiki/index.php/VDE_native_support_for_VirtualBox

http://www.virtualbox.org/wiki/Linux%20build%20instructions

http://dlc.sun.com.edgesuite.net/virtualbox/4.1.2/UserManual.pdf
http://www.4ward-project.eu/index.php?s=overview&c=WP3

27

Вам также может понравиться