VirtualBox kasutamine Debian Squeeze operatsioonisüsteemiga

Allikas: Kuutõrvaja

Sissejuhatus

Virtualiseerimise tarkvara VirtualBox teeb 2010 aasta suvel teistest erinevaks asjaolu, et guest saab kasutada BIOS asemel UEFI keskkonda.

VirtualBox paigaldamine

VirtualBox tarkvara paigaldamiseks sobib öelda

# aptitude install linux-headers-2.6-$(uname -r | sed 's,.*-,,') virtualbox-ose

mille tulemusena paigaldatakse VirtualBox tarkvara sh vajalikud tuuma moodulid.

Kasutamine

Vajadusel laadida vboxdrv tuuma moodul

# modprobe vboxdrv

mis ütleb tuuma logisse

[125250.645487] vboxdrv: Trying to deactivate the NMI watchdog permanently... [125250.645487] vboxdrv: Successfully done. [125250.645487] vboxdrv: Found 4 processor cores. [125250.645487] vboxdrv: fAsync=0 offMin=0x932 offMax=0x599d [125250.645487] vboxdrv: TSC mode is 'synchronous', kernel timer mode is 'normal'. [125250.645487] vboxdrv: Successfully loaded version 3.2.4_OSE (interface 0x00140001).

ja kävitamiseks sobib öelda käsurealt

$ virtualbox

ning avaneb sarnane haldusliides

Virtualbox-1.gif

Guestile vastav aken paistab selline

Virtualbox-2.gif

Võrk

Võrgu kasutamiseks on viis võimalust

  • NAT - VirtualBox tarkvara vahendab guestile läbi hosti lo seadme võrku, toimub NAT ja guest saab kasutada DHCP ja DNS teenust (neid pakub samuti oma nö sisemiste vahenditega VirtualBox tarkvara); vaikimisi on guestide poolt vaadates vaikelüüsi ip aadress 10.0.2.2; guesti otseselt eemalt ei saa pöörudada, aga pöördudes esmalt guestist välja, nt hosti
guest$ ssh priit@10.0.2.2 -R 20200:localhost:22

ning seejärel hostist guesti üle sama ssh ühenduse

host$ ssh priit@localhost -p20200
  • TODO

Tõmmise kasutamine

TODO, http://muralipiyer.blogspot.com/2008/02/mounting-virtualbox-vdi-disk-authentic.html

Märkused

  • Debian Lenny keskkonnas on võimalik Backportsidest kasutada v. 3.2.4 tarkvara
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information      
Initializing package states... Done
Reading task descriptions... Done  
The following packages are BROKEN:
  libstdc++6 
The following NEW packages will be installed:
  dkms{a} fakeroot{a} gcc{a} gcc-4.3{a} libaudio2{a} libgomp1{a} libmng1{a} libqt4-dbus{a} libqt4-designer{a} libqt4-network{a} 
  libqt4-opengl{a} libqt4-qt3support{a} libqt4-script{a} libqt4-sql{a} libqt4-sql-mysql{a} libqt4-xml{a} libqtcore4{a} libqtgui4{a} 
  libvncserver0{a} make{a} qt4-qtconfig{a} virtualbox-ose virtualbox-ose-dkms{a} virtualbox-ose-qt{a} 
The following packages will be upgraded:
  binutils cpp-4.3 gcc-4.3-base libgcc1 
4 packages upgraded, 24 newly installed, 0 to remove and 70 not upgraded.
Need to get 37.1MB of archives. After unpacking 93.8MB will be used.
The following packages have unmet dependencies:
  libstdc++6: Depends: gcc-4.3-base (= 4.3.2-1.1) but 4.3.4-6~bpo50+1 is to be installed.
The following actions will resolve these dependencies:

Upgrade the following packages:
libstdc++6 [4.3.2-1.1 (stable, now) -> 4.3.4-6~bpo50+1 (lenny-backports)]

Score is 120

Accept this solution? [Y/n/q/?]

Kasulikud lisamaterjalid