Virtualbox lze pomerne dobre spravovat z prikazove radky (napr. pres SSH). Resp. vse co jde delat pres GUI, melo by jit i v prikazove radce. K Windows pak budes pristupovat pres vzdalenou plochu (protokol RDP).
Par poznamek k instalaci mam, treba Ti pomuzou. Je to ale k trosicku starsi verzi virtualboxu. Kdyby se Ti to zdalo nekompletni dej vedet, snazil jsem se to trosku pozmenit, aby to bylo vice anonymni. Prikazy pro konfiguraci urcite najdes na webu.
# cd /root/
# wget http://download.virtualbox.org/virtualbox/3.0.2/virtualbox-3.0_3.0.2-49928_Debian_lenny_i386.deb
# mv virtualbox-3.0_3.0.2-49928_Debian_lenny_i386.deb\?e\=1248072102\&h\=ffe218d059195ca02c7d2a135766ad38 virtualbox-3.0_3.0.2-49928_Debian_lenny_i386.deb
# dpkg -i virtualbox-3.0_3.0.2-49928_Debian_lenny_i386.deb
Selecting previously deselected package virtualbox-3.0.
(Reading database ... 21935 files and directories currently installed.)
Unpacking virtualbox-3.0 (from virtualbox-3.0_3.0.2-49928_Debian_lenny_i386.deb) ...
dpkg: dependency problems prevent configuration of virtualbox-3.0:
virtualbox-3.0 depends on libcurl3 (>= 7.16.2-1); however:
Package libcurl3 is not installed.
virtualbox-3.0 depends on libqt4-network (>= 4.4.3); however:
Package libqt4-network is not installed.
virtualbox-3.0 depends on libqtcore4 (>= 4.4.3); however:
Package libqtcore4 is not installed.
virtualbox-3.0 depends on libqtgui4 (>= 4.4.3); however:
Package libqtgui4 is not installed.
virtualbox-3.0 depends on libsdl1.2debian (>= 1.2.10-1); however:
Package libsdl1.2debian is not installed.
virtualbox-3.0 depends on libxcursor1 (>> 1.1.2); however:
Package libxcursor1 is not installed.
virtualbox-3.0 depends on libxmu6; however:
Package libxmu6 is not installed.
virtualbox-3.0 depends on libxslt1.1 (>= 1.1.18); however:
Package libxslt1.1 is not installed.
virtualbox-3.0 depends on libxt6; however:
Package libxt6 is not installed.
dpkg: error processing virtualbox-3.0 (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
virtualbox-3.0
# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
ca-certificates defoma fontconfig fontconfig-config libasound2 libaudio2 libcurl3 libdirectfb-1.0-0 libexpat1 libfontconfig1 libfreetype6 libice6
libjpeg62 liblcms1 libmng1 libmysqlclient15off libpng12-0 libqt4-dbus libqt4-designer libqt4-network libqt4-qt3support libqt4-script libqt4-sql
libqt4-sql-mysql libqt4-xml libqtcore4 libqtgui4 libsdl1.2debian libsdl1.2debian-alsa libsm6 libssh2-1 libsvga1 libsysfs2 libtiff4 libts-0.0-0 libx86-1
libxcursor1 libxfixes3 libxi6 libxmu6 libxrandr2 libxrender1 libxslt1.1 libxt6 mysql-common openssl qt4-qtconfig svgalibg1 ttf-dejavu ttf-dejavu-core
ttf-dejavu-extra
Suggested packages:
defoma-doc dfontmgr psfontmgr x-ttcidfont-conf libasound2-plugins nas libfreetype6-dev liblcms-utils libqt4-dev
Recommended packages:
libft-perl
The following NEW packages will be installed:
ca-certificates defoma fontconfig fontconfig-config libasound2 libaudio2 libcurl3 libdirectfb-1.0-0 libexpat1 libfontconfig1 libfreetype6 libice6
libjpeg62 liblcms1 libmng1 libmysqlclient15off libpng12-0 libqt4-dbus libqt4-designer libqt4-network libqt4-qt3support libqt4-script libqt4-sql
libqt4-sql-mysql libqt4-xml libqtcore4 libqtgui4 libsdl1.2debian libsdl1.2debian-alsa libsm6 libssh2-1 libsvga1 libsysfs2 libtiff4 libts-0.0-0 libx86-1
libxcursor1 libxfixes3 libxi6 libxmu6 libxrandr2 libxrender1 libxslt1.1 libxt6 mysql-common openssl qt4-qtconfig svgalibg1 ttf-dejavu ttf-dejavu-core
ttf-dejavu-extra
0 upgraded, 51 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 23.9MB of archives.
After this operation, 55.5MB of additional disk space will be used.
Do you want to continue [Y/n]?
Configuring virtualbox-3.0
Creating group 'vboxusers'
Users of VirtualBox must be members of that group. Host network interfaces will be assigned to that group.
Configuring virtualbox-3.0
Unable to find a precompiled module for the current kernel!
Without a suitable kernel module you will not be able to start any VMs. It is strongly recommended to compile a kernel module now. The kernel headers
and the tools to build kernel modules (gcc, make, binutils, ...) are required. However if you know that a suitable kernel module already exists at
another location, you might want to override the default by setting KDIR=<full_path_to_vboxdrv_module> in /etc/default/virtualbox. The compilation
can also be done later by executing
/etc/init.d/vboxdrv setup
as root.
Should the vboxdrv kernel module be compiled now?
<Yes><No>
# adduser --ingroup vboxusers uzivatel
# vim /etc/ssh/sshd_config
DenyUsers uzivatel
# /etc/init.d/ssh reload
# su - uzivatel
$ VBoxManage createvm -name uzivatel_01_windows_xp -register
$ VBoxManage createvdi -filename uzivatel_01_windows_xp -size 20000 -register
$ VBoxManage modifyvm uzivatel_01_windows_xp -hda uzivatel_01_windows_xp.vdi
$ VBoxManage modifyvm uzivatel_01_windows_xp -memory "2048MB"
$ VBoxManage modifyvm uzivatel_01_windows_xp -vrdp on
$ VBoxManage modifyvm uzivatel_01_windows_xp -vrdpport 3390
$ VBoxManage modifyvm uzivatel_01_windows_xp -vrdpauthtype external
$ VBoxManage modifyvm uzivatel_01_windows_xp -nic1 nat
$ VBoxManage modifyvm liberda_01_linux_debian --hwvirtex on
$ VBoxManage modifyvm uzivatel_01_windows_xp -acpi on -boot1 dvd
$ VBoxManage modifyvm uzivatel_01_windows_xp --cpus 4
$ VBoxManage modifyvm uzivatel_01_windows_xp -ostype WindowsXp
$ VBoxManage modifyvm uzivatel_01_windows_xp -dvd /home/uzivatel/winxp.iso
Start hosta:
# su uzivatel -c "VBoxManage -nologo startvm uzivatel_01_windows_xp -type vrdp
Vzdalena plocha:
$ rdesktop -k en-us -u uzivatel -p - 192.168.1.100:3390